Class: Azure::ARM::Web::Models::HostName
- Inherits:
-
Object
- Object
- Azure::ARM::Web::Models::HostName
- Includes:
- MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_web/models/host_name.rb
Overview
Details of a hostname derived from a domain
Instance Attribute Summary collapse
-
#azure_resource_name ⇒ String
to.
-
#azure_resource_type ⇒ AzureResourceType
assigned to.
-
#custom_host_name_dns_record_type ⇒ CustomHostNameDnsRecordType
values include: ‘CName’, ‘A’.
-
#host_name_type ⇒ HostNameType
‘Verified’, ‘Managed’.
-
#name ⇒ String
Name of the hostname.
-
#site_names ⇒ Array<String>
This list will have more than one site only if the hostname is pointing to a Traffic Manager.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for HostName class as Ruby Hash.
Instance Attribute Details
#azure_resource_name ⇒ String
to. If it is assigned to a traffic manager then it will be the traffic manager name otherwise it will be the website name
26 27 28 |
# File 'lib/generated/azure_mgmt_web/models/host_name.rb', line 26 def azure_resource_name @azure_resource_name end |
#azure_resource_type ⇒ AzureResourceType
assigned to. Possible values include: ‘Website’, ‘TrafficManager’
30 31 32 |
# File 'lib/generated/azure_mgmt_web/models/host_name.rb', line 30 def azure_resource_type @azure_resource_type end |
#custom_host_name_dns_record_type ⇒ CustomHostNameDnsRecordType
values include: ‘CName’, ‘A’
34 35 36 |
# File 'lib/generated/azure_mgmt_web/models/host_name.rb', line 34 def custom_host_name_dns_record_type @custom_host_name_dns_record_type end |
#host_name_type ⇒ HostNameType
‘Verified’, ‘Managed’
38 39 40 |
# File 'lib/generated/azure_mgmt_web/models/host_name.rb', line 38 def host_name_type @host_name_type end |
#name ⇒ String
Returns Name of the hostname.
16 17 18 |
# File 'lib/generated/azure_mgmt_web/models/host_name.rb', line 16 def name @name end |
#site_names ⇒ Array<String>
This list will have more than one site only if the hostname is pointing to a Traffic Manager
21 22 23 |
# File 'lib/generated/azure_mgmt_web/models/host_name.rb', line 21 def site_names @site_names end |
Class Method Details
.mapper ⇒ Object
Mapper for HostName class as Ruby Hash. This will be used for serialization/deserialization.
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/generated/azure_mgmt_web/models/host_name.rb', line 45 def self.mapper() { required: false, serialized_name: 'HostName', type: { name: 'Composite', class_name: 'HostName', model_properties: { name: { required: false, serialized_name: 'name', type: { name: 'String' } }, site_names: { required: false, serialized_name: 'siteNames', type: { name: 'Sequence', element: { required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, azure_resource_name: { required: false, serialized_name: 'azureResourceName', type: { name: 'String' } }, azure_resource_type: { required: false, serialized_name: 'azureResourceType', type: { name: 'Enum', module: 'AzureResourceType' } }, custom_host_name_dns_record_type: { required: false, serialized_name: 'customHostNameDnsRecordType', type: { name: 'Enum', module: 'CustomHostNameDnsRecordType' } }, host_name_type: { required: false, serialized_name: 'hostNameType', type: { name: 'Enum', module: 'HostNameType' } } } } } end |