Class: Azure::ARM::Web::Models::ManagedHostingEnvironmentProperties

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/azure_mgmt_web/models/managed_hosting_environment_properties.rb

Overview

Model object.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#api_management_accountString

with this managed hosting environment (read only)

Returns:

  • (String)

    Resource id of the api management account associated



62
63
64
# File 'lib/azure_mgmt_web/models/managed_hosting_environment_properties.rb', line 62

def 
  @api_management_account
end

#dns_suffixString

Returns DNS suffix of the managed hosting environment.

Returns:

  • (String)

    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_healthyBoolean

environment is healthy

Returns:

  • (Boolean)

    True/false indicating whether the managed hosting



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_statusString

of the managed hosting environment

Returns:

  • (String)

    Detailed message about with results of the last check



52
53
54
# File 'lib/azure_mgmt_web/models/managed_hosting_environment_properties.rb', line 52

def environment_status
  @environment_status
end

#ipssl_address_countInteger

hosting environment

Returns:

  • (Integer)

    Number of ip ssl addresses reserved for the managed



33
34
35
# File 'lib/azure_mgmt_web/models/managed_hosting_environment_properties.rb', line 33

def ipssl_address_count
  @ipssl_address_count
end

#locationString

“West US”

Returns:

  • (String)

    Location of the managed hosting environment e.g.



20
21
22
# File 'lib/azure_mgmt_web/models/managed_hosting_environment_properties.rb', line 20

def location
  @location
end

#nameString

Returns Name of the managed hosting environment.

Returns:

  • (String)

    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_groupString

(read only)

Returns:

  • (String)

    Resource group of the managed hosting environment



44
45
46
# File 'lib/azure_mgmt_web/models/managed_hosting_environment_properties.rb', line 44

def resource_group
  @resource_group
end

#statusManagedHostingEnvironmentStatus

managed hosting environment. Possible values include: ‘Preparing’, ‘Ready’, ‘Deleting’

Returns:



25
26
27
# File 'lib/azure_mgmt_web/models/managed_hosting_environment_properties.rb', line 25

def status
  @status
end

#subscription_idString

only)

Returns:

  • (String)

    Subscription of the managed hosting environment (read



40
41
42
# File 'lib/azure_mgmt_web/models/managed_hosting_environment_properties.rb', line 40

def subscription_id
  @subscription_id
end

#suspendedBoolean

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)

Returns:

  • (Boolean)

    True/false indicating whether the managed hosting



58
59
60
# File 'lib/azure_mgmt_web/models/managed_hosting_environment_properties.rb', line 58

def suspended
  @suspended
end

#virtual_networkVirtualNetworkProfile

environment’s virtual network

Returns:



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.

Parameters:

  • object (Hash)

    Ruby Hash object to deserialize.

Returns:



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. = deserialized_property

  output_object
end

.serialize_object(object) ⇒ Hash

Serializes given Model object into Ruby Hash.

Parameters:

  • object

    Model object to serialize.

Returns:

  • (Hash)

    Serialized object in form of 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.
  output_object['apiManagementAccount'] = serialized_property unless serialized_property.nil?

  output_object
end

Instance Method Details

#validateObject

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