class Azure::CDN::Mgmt::V2017_04_02::Models::DeepCreatedOrigin

The main origin of CDN content which is added when creating a CDN endpoint.

Attributes

host_name[RW]

@return [String] The address of the origin. It can be a domain name, IPv4 address, or IPv6 address.

http_port[RW]

@return [Integer] The value of the HTTP port. Must be between 1 and 65535

https_port[RW]

@return [Integer] The value of the HTTPS port. Must be between 1 and 65535

name[RW]

@return [String] Origin name

Public Class Methods

mapper() click to toggle source

Mapper for DeepCreatedOrigin class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2017-04-02/generated/azure_mgmt_cdn/models/deep_created_origin.rb, line 36
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'DeepCreatedOrigin',
    type: {
      name: 'Composite',
      class_name: 'DeepCreatedOrigin',
      model_properties: {
        name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        host_name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.hostName',
          type: {
            name: 'String'
          }
        },
        http_port: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.httpPort',
          constraints: {
            InclusiveMaximum: 65535,
            InclusiveMinimum: 1
          },
          type: {
            name: 'Number'
          }
        },
        https_port: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.httpsPort',
          constraints: {
            InclusiveMaximum: 65535,
            InclusiveMinimum: 1
          },
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end