Class: Azure::ARM::Web::Models::HostNameBindingProperties
- Inherits:
-
Object
- Object
- Azure::ARM::Web::Models::HostNameBindingProperties
- Includes:
- MsRestAzure
- Defined in:
- lib/azure_mgmt_web/models/host_name_binding_properties.rb
Overview
Model object.
Instance Attribute Summary collapse
-
#azure_resource_name ⇒ String
Azure resource name.
-
#azure_resource_type ⇒ AzureResourceType
include: ‘Website’, ‘TrafficManager’.
-
#custom_host_name_dns_record_type ⇒ CustomHostNameDnsRecordType
values include: ‘CName’, ‘A’.
-
#domain_id ⇒ String
Fully qualified ARM domain resource URI.
-
#host_name_type ⇒ HostNameType
‘Verified’, ‘Managed’.
-
#name ⇒ String
Hostname.
-
#site_name ⇒ String
Web app name.
Class Method Summary collapse
-
.deserialize_object(object) ⇒ HostNameBindingProperties
Deserializes given Ruby Hash into Model object.
-
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
Instance Method Summary collapse
-
#validate ⇒ Object
Validate the object.
Instance Attribute Details
#azure_resource_name ⇒ String
Returns Azure resource name.
25 26 27 |
# File 'lib/azure_mgmt_web/models/host_name_binding_properties.rb', line 25 def azure_resource_name @azure_resource_name end |
#azure_resource_type ⇒ AzureResourceType
include: ‘Website’, ‘TrafficManager’
29 30 31 |
# File 'lib/azure_mgmt_web/models/host_name_binding_properties.rb', line 29 def azure_resource_type @azure_resource_type end |
#custom_host_name_dns_record_type ⇒ CustomHostNameDnsRecordType
values include: ‘CName’, ‘A’
33 34 35 |
# File 'lib/azure_mgmt_web/models/host_name_binding_properties.rb', line 33 def custom_host_name_dns_record_type @custom_host_name_dns_record_type end |
#domain_id ⇒ String
Returns Fully qualified ARM domain resource URI.
22 23 24 |
# File 'lib/azure_mgmt_web/models/host_name_binding_properties.rb', line 22 def domain_id @domain_id end |
#host_name_type ⇒ HostNameType
‘Verified’, ‘Managed’
37 38 39 |
# File 'lib/azure_mgmt_web/models/host_name_binding_properties.rb', line 37 def host_name_type @host_name_type end |
#name ⇒ String
Returns Hostname.
16 17 18 |
# File 'lib/azure_mgmt_web/models/host_name_binding_properties.rb', line 16 def name @name end |
#site_name ⇒ String
Returns Web app name.
19 20 21 |
# File 'lib/azure_mgmt_web/models/host_name_binding_properties.rb', line 19 def site_name @site_name end |
Class Method Details
.deserialize_object(object) ⇒ HostNameBindingProperties
Deserializes given Ruby Hash into Model object.
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 109 110 111 112 113 114 115 116 117 118 119 120 121 |
# File 'lib/azure_mgmt_web/models/host_name_binding_properties.rb', line 83 def self.deserialize_object(object) return if object.nil? output_object = HostNameBindingProperties.new deserialized_property = object['name'] output_object.name = deserialized_property deserialized_property = object['siteName'] output_object.site_name = deserialized_property deserialized_property = object['domainId'] output_object.domain_id = deserialized_property deserialized_property = object['azureResourceName'] output_object.azure_resource_name = deserialized_property deserialized_property = object['azureResourceType'] if (!deserialized_property.nil? && !deserialized_property.empty?) enum_is_valid = AzureResourceType.constants.any? { |e| AzureResourceType.const_get(e).to_s.downcase == deserialized_property.downcase } warn 'Enum AzureResourceType does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid end output_object.azure_resource_type = deserialized_property deserialized_property = object['customHostNameDnsRecordType'] if (!deserialized_property.nil? && !deserialized_property.empty?) enum_is_valid = CustomHostNameDnsRecordType.constants.any? { |e| CustomHostNameDnsRecordType.const_get(e).to_s.downcase == deserialized_property.downcase } warn 'Enum CustomHostNameDnsRecordType does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid end output_object.custom_host_name_dns_record_type = deserialized_property deserialized_property = object['hostNameType'] if (!deserialized_property.nil? && !deserialized_property.empty?) enum_is_valid = HostNameType.constants.any? { |e| HostNameType.const_get(e).to_s.downcase == deserialized_property.downcase } warn 'Enum HostNameType does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid end output_object.host_name_type = deserialized_property output_object end |
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
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 |
# File 'lib/azure_mgmt_web/models/host_name_binding_properties.rb', line 50 def self.serialize_object(object) object.validate output_object = {} serialized_property = object.name output_object['name'] = serialized_property unless serialized_property.nil? serialized_property = object.site_name output_object['siteName'] = serialized_property unless serialized_property.nil? serialized_property = object.domain_id output_object['domainId'] = serialized_property unless serialized_property.nil? serialized_property = object.azure_resource_name output_object['azureResourceName'] = serialized_property unless serialized_property.nil? serialized_property = object.azure_resource_type output_object['azureResourceType'] = serialized_property unless serialized_property.nil? serialized_property = object.custom_host_name_dns_record_type output_object['customHostNameDnsRecordType'] = serialized_property unless serialized_property.nil? serialized_property = object.host_name_type output_object['hostNameType'] = serialized_property unless serialized_property.nil? output_object end |
Instance Method Details
#validate ⇒ Object
Validate the object. Throws ValidationError if validation fails.
42 43 |
# File 'lib/azure_mgmt_web/models/host_name_binding_properties.rb', line 42 def validate end |