# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::CDN::Mgmt::V2017_10_12
  module Models
    #
    # Edgenode is a global Point of Presence (POP) location used to deliver CDN
    # content to end users.
    #
    class EdgeNode < ProxyResource

      include MsRestAzure

      # @return [Array<IpAddressGroup>] List of ip address groups.
      attr_accessor :ip_address_groups


      #
      # Mapper for EdgeNode class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'EdgeNode',
          type: {
            name: 'Composite',
            class_name: 'EdgeNode',
            model_properties: {
              id: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'id',
                type: {
                  name: 'String'
                }
              },
              name: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              type: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'type',
                type: {
                  name: 'String'
                }
              },
              ip_address_groups: {
                client_side_validation: true,
                required: true,
                serialized_name: 'properties.ipAddressGroups',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'IpAddressGroupElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'IpAddressGroup'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
