Class: Azure::ARM::Web::Models::HostingEnvironmentProfile

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

Overview

Specification for a hostingEnvironment (App Service Environment) to use for this resource

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idString

Environment)

Returns:

  • (String)

    Resource id of the hostingEnvironment (App Service



18
19
20
# File 'lib/azure_mgmt_web/models/hosting_environment_profile.rb', line 18

def id
  @id
end

#nameString

Environment) (read only)

Returns:

  • (String)

    Name of the hostingEnvironment (App Service



22
23
24
# File 'lib/azure_mgmt_web/models/hosting_environment_profile.rb', line 22

def name
  @name
end

#typeString

Environment) (read only)

Returns:

  • (String)

    Resource type of the hostingEnvironment (App Service



26
27
28
# File 'lib/azure_mgmt_web/models/hosting_environment_profile.rb', line 26

def type
  @type
end

Class Method Details

.deserialize_object(object) ⇒ HostingEnvironmentProfile

Deserializes given Ruby Hash into Model object.

Parameters:

  • object (Hash)

    Ruby Hash object to deserialize.

Returns:



61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/azure_mgmt_web/models/hosting_environment_profile.rb', line 61

def self.deserialize_object(object)
  return if object.nil?
  output_object = HostingEnvironmentProfile.new

  deserialized_property = object['id']
  output_object.id = deserialized_property

  deserialized_property = object['name']
  output_object.name = deserialized_property

  deserialized_property = object['type']
  output_object.type = 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.



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/azure_mgmt_web/models/hosting_environment_profile.rb', line 40

def self.serialize_object(object)
  object.validate
  output_object = {}

  serialized_property = object.id
  output_object['id'] = serialized_property unless serialized_property.nil?

  serialized_property = object.name
  output_object['name'] = serialized_property unless serialized_property.nil?

  serialized_property = object.type
  output_object['type'] = serialized_property unless serialized_property.nil?

  output_object
end

Instance Method Details

#validateObject

Validate the object. Throws ValidationError if validation fails.



31
32
33
# File 'lib/azure_mgmt_web/models/hosting_environment_profile.rb', line 31

def validate
  # Nothing to validate
end