Class: Azure::ARM::Web::Models::ManagedHostingEnvironmentProperties
- Inherits:
-
Object
- Object
- Azure::ARM::Web::Models::ManagedHostingEnvironmentProperties
- Includes:
- MsRestAzure
- Defined in:
- lib/azure_mgmt_web/models/managed_hosting_environment_properties.rb
Overview
Model object.
Instance Attribute Summary collapse
-
#api_management_account ⇒ String
with this managed hosting environment (read only).
-
#dns_suffix ⇒ String
DNS suffix of the managed hosting environment.
-
#environment_is_healthy ⇒ Boolean
environment is healthy.
-
#environment_status ⇒ String
of the managed hosting environment.
-
#ipssl_address_count ⇒ Integer
hosting environment.
-
#location ⇒ String
“West US”.
-
#name ⇒ String
Name of the managed hosting environment.
-
#resource_group ⇒ String
(read only).
-
#status ⇒ ManagedHostingEnvironmentStatus
managed hosting environment.
-
#subscription_id ⇒ String
only).
-
#suspended ⇒ Boolean
environment is suspended.
-
#virtual_network ⇒ VirtualNetworkProfile
environment’s virtual network.
Class Method Summary collapse
-
.deserialize_object(object) ⇒ ManagedHostingEnvironmentProperties
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
#api_management_account ⇒ String
with this managed hosting environment (read only)
62 63 64 |
# File 'lib/azure_mgmt_web/models/managed_hosting_environment_properties.rb', line 62 def api_management_account @api_management_account end |
#dns_suffix ⇒ String
Returns DNS suffix of the managed hosting environment.
36 37 38 |
# File 'lib/azure_mgmt_web/models/managed_hosting_environment_properties.rb', line 36 def dns_suffix @dns_suffix end |
#environment_is_healthy ⇒ Boolean
environment is healthy
48 49 50 |
# File 'lib/azure_mgmt_web/models/managed_hosting_environment_properties.rb', line 48 def environment_is_healthy @environment_is_healthy end |
#environment_status ⇒ String
of the managed hosting environment
52 53 54 |
# File 'lib/azure_mgmt_web/models/managed_hosting_environment_properties.rb', line 52 def environment_status @environment_status end |
#ipssl_address_count ⇒ Integer
hosting environment
33 34 35 |
# File 'lib/azure_mgmt_web/models/managed_hosting_environment_properties.rb', line 33 def ipssl_address_count @ipssl_address_count end |
#location ⇒ String
“West US”
20 21 22 |
# File 'lib/azure_mgmt_web/models/managed_hosting_environment_properties.rb', line 20 def location @location end |
#name ⇒ String
Returns Name of the managed hosting environment.
16 17 18 |
# File 'lib/azure_mgmt_web/models/managed_hosting_environment_properties.rb', line 16 def name @name end |
#resource_group ⇒ String
(read only)
44 45 46 |
# File 'lib/azure_mgmt_web/models/managed_hosting_environment_properties.rb', line 44 def resource_group @resource_group end |
#status ⇒ ManagedHostingEnvironmentStatus
managed hosting environment. Possible values include: ‘Preparing’, ‘Ready’, ‘Deleting’
25 26 27 |
# File 'lib/azure_mgmt_web/models/managed_hosting_environment_properties.rb', line 25 def status @status end |
#subscription_id ⇒ String
only)
40 41 42 |
# File 'lib/azure_mgmt_web/models/managed_hosting_environment_properties.rb', line 40 def subscription_id @subscription_id end |
#suspended ⇒ Boolean
environment is suspended. The environment can be suspended e.g. when the management endpoint is no longer available (most likely because NSG blocked the incoming traffic)
58 59 60 |
# File 'lib/azure_mgmt_web/models/managed_hosting_environment_properties.rb', line 58 def suspended @suspended end |
#virtual_network ⇒ VirtualNetworkProfile
environment’s virtual network
29 30 31 |
# File 'lib/azure_mgmt_web/models/managed_hosting_environment_properties.rb', line 29 def virtual_network @virtual_network end |
Class Method Details
.deserialize_object(object) ⇒ ManagedHostingEnvironmentProperties
Deserializes given Ruby Hash into Model object.
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 |
# File 'lib/azure_mgmt_web/models/managed_hosting_environment_properties.rb', line 127 def self.deserialize_object(object) return if object.nil? output_object = ManagedHostingEnvironmentProperties.new deserialized_property = object['name'] output_object.name = deserialized_property deserialized_property = object['location'] output_object.location = deserialized_property deserialized_property = object['status'] if (!deserialized_property.nil? && !deserialized_property.empty?) enum_is_valid = ManagedHostingEnvironmentStatus.constants.any? { |e| ManagedHostingEnvironmentStatus.const_get(e).to_s.downcase == deserialized_property.downcase } warn 'Enum ManagedHostingEnvironmentStatus does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid end output_object.status = deserialized_property deserialized_property = object['virtualNetwork'] unless deserialized_property.nil? deserialized_property = VirtualNetworkProfile.deserialize_object(deserialized_property) end output_object.virtual_network = deserialized_property deserialized_property = object['ipsslAddressCount'] deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty? output_object.ipssl_address_count = deserialized_property deserialized_property = object['dnsSuffix'] output_object.dns_suffix = deserialized_property deserialized_property = object['subscriptionId'] output_object.subscription_id = deserialized_property deserialized_property = object['resourceGroup'] output_object.resource_group = deserialized_property deserialized_property = object['environmentIsHealthy'] output_object.environment_is_healthy = deserialized_property deserialized_property = object['environmentStatus'] output_object.environment_status = deserialized_property deserialized_property = object['suspended'] output_object.suspended = deserialized_property deserialized_property = object['apiManagementAccount'] output_object.api_management_account = deserialized_property output_object end |
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
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 109 110 111 112 113 114 115 116 117 118 119 120 |
# File 'lib/azure_mgmt_web/models/managed_hosting_environment_properties.rb', line 76 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.location output_object['location'] = serialized_property unless serialized_property.nil? serialized_property = object.status output_object['status'] = serialized_property unless serialized_property.nil? serialized_property = object.virtual_network unless serialized_property.nil? serialized_property = VirtualNetworkProfile.serialize_object(serialized_property) end output_object['virtualNetwork'] = serialized_property unless serialized_property.nil? serialized_property = object.ipssl_address_count output_object['ipsslAddressCount'] = serialized_property unless serialized_property.nil? serialized_property = object.dns_suffix output_object['dnsSuffix'] = serialized_property unless serialized_property.nil? serialized_property = object.subscription_id output_object['subscriptionId'] = serialized_property unless serialized_property.nil? serialized_property = object.resource_group output_object['resourceGroup'] = serialized_property unless serialized_property.nil? serialized_property = object.environment_is_healthy output_object['environmentIsHealthy'] = serialized_property unless serialized_property.nil? serialized_property = object.environment_status output_object['environmentStatus'] = serialized_property unless serialized_property.nil? serialized_property = object.suspended output_object['suspended'] = serialized_property unless serialized_property.nil? serialized_property = object.api_management_account output_object['apiManagementAccount'] = serialized_property unless serialized_property.nil? output_object end |
Instance Method Details
#validate ⇒ Object
Validate the object. Throws ValidationError if validation fails.
67 68 69 |
# File 'lib/azure_mgmt_web/models/managed_hosting_environment_properties.rb', line 67 def validate @virtual_network.validate unless @virtual_network.nil? end |