class Azure::Web::Mgmt::V2018_02_01::Models::HostName

Details of a hostname derived from a domain.

Attributes

azure_resource_name[RW]

@return [String] Name of the Azure resource the hostname is assigned to. If it is assigned to a Traffic Manager then it will be the Traffic Manager name otherwise it will be the app name.

azure_resource_type[RW]

@return [AzureResourceType] Type of the Azure resource the hostname is assigned to. Possible values include: 'Website', 'TrafficManager'

custom_host_name_dns_record_type[RW]

@return [CustomHostNameDnsRecordType] Type of the DNS record. Possible values include: 'CName', 'A'

host_name_type[RW]

@return [HostNameType] Type of the hostname. Possible values include: 'Verified', 'Managed'

name[RW]

@return [String] Name of the hostname.

site_names[RW]

@return [Array<String>] List of apps the hostname is assigned to. This list will have more than one app only if the hostname is pointing to a Traffic Manager.

Private Class Methods

mapper() click to toggle source

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

# File lib/2018-02-01/generated/azure_mgmt_web/models/host_name.rb, line 45
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'HostName',
    type: {
      name: 'Composite',
      class_name: 'HostName',
      model_properties: {
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        site_names: {
          client_side_validation: true,
          required: false,
          serialized_name: 'siteNames',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        azure_resource_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'azureResourceName',
          type: {
            name: 'String'
          }
        },
        azure_resource_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'azureResourceType',
          type: {
            name: 'Enum',
            module: 'AzureResourceType'
          }
        },
        custom_host_name_dns_record_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'customHostNameDnsRecordType',
          type: {
            name: 'Enum',
            module: 'CustomHostNameDnsRecordType'
          }
        },
        host_name_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'hostNameType',
          type: {
            name: 'Enum',
            module: 'HostNameType'
          }
        }
      }
    }
  }
end