class Azure::CDN::Mgmt::V2020_04_15::Models::DeepCreatedOrigin

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

Attributes

enabled[RW]

@return [Boolean] Origin is enabled for load balancing or not. By default, origin is always enabled.

host_name[RW]

@return [String] The address of the origin. It can be a domain name, IPv4 address, or IPv6 address. This should be unique across all origins in an endpoint.

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 which must be unique within the endpoint.

origin_host_header[RW]

@return [String] The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default.

priority[RW]

@return [Integer] Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5.

weight[RW]

@return [Integer] Weight of the origin in given origin group for load balancing. Must be between 1 and 1000

Public Class Methods

mapper() click to toggle source

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

# File lib/2020-04-15/generated/azure_mgmt_cdn/models/deep_created_origin.rb, line 73
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'
          }
        },
        origin_host_header: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.originHostHeader',
          type: {
            name: 'String'
          }
        },
        priority: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.priority',
          constraints: {
            InclusiveMaximum: 5,
            InclusiveMinimum: 1
          },
          type: {
            name: 'Number'
          }
        },
        weight: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.weight',
          constraints: {
            InclusiveMaximum: 1000,
            InclusiveMinimum: 1
          },
          type: {
            name: 'Number'
          }
        },
        enabled: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.enabled',
          type: {
            name: 'Boolean'
          }
        },
        private_link_alias: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.privateLinkAlias',
          type: {
            name: 'String'
          }
        },
        private_link_resource_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.privateLinkResourceId',
          type: {
            name: 'String'
          }
        },
        private_link_location: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.privateLinkLocation',
          type: {
            name: 'String'
          }
        },
        private_link_approval_message: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.privateLinkApprovalMessage',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end