class Azure::CDN::Mgmt::V2016_10_02::Models::Origin
CDN
origin is the source of the content being delivered via CDN
. When the edge nodes represented by an endpoint do not have the requested content cached, they attempt to fetch it from one or more of the configured origins.
Attributes
host_name[RW]
@return [String] The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.
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.
provisioning_state[RW]
@return [String] Provisioning status of the origin.
resource_state[RW]
@return [OriginResourceState] Resource
status of the origin. Possible values include: 'Creating', 'Active', 'Deleting'
Public Class Methods
mapper()
click to toggle source
Mapper for Origin
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2016-10-02/generated/azure_mgmt_cdn/models/origin.rb, line 42 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Origin', type: { name: 'Composite', class_name: 'Origin', 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' } }, location: { client_side_validation: true, required: true, serialized_name: 'location', type: { name: 'String' } }, tags: { client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { client_side_validation: true, required: false, serialized_name: 'StringElementType', 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' } }, resource_state: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.resourceState', type: { name: 'String' } }, provisioning_state: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.provisioningState', type: { name: 'String' } } } } } end