Class: Azure::ARM::Web::Models::RelayServiceConnectionEntityProperties

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

Overview

Model object.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#biztalk_uriString

Returns:

  • (String)


34
35
36
# File 'lib/azure_mgmt_web/models/relay_service_connection_entity_properties.rb', line 34

def biztalk_uri
  @biztalk_uri
end

#entity_connection_stringString

Returns:

  • (String)


19
20
21
# File 'lib/azure_mgmt_web/models/relay_service_connection_entity_properties.rb', line 19

def entity_connection_string
  @entity_connection_string
end

#entity_nameString

Returns:

  • (String)


16
17
18
# File 'lib/azure_mgmt_web/models/relay_service_connection_entity_properties.rb', line 16

def entity_name
  @entity_name
end

#hostnameString

Returns:

  • (String)


28
29
30
# File 'lib/azure_mgmt_web/models/relay_service_connection_entity_properties.rb', line 28

def hostname
  @hostname
end

#portInteger

Returns:

  • (Integer)


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

def port
  @port
end

#resource_connection_stringString

Returns:

  • (String)


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

def resource_connection_string
  @resource_connection_string
end

#resource_typeString

Returns:

  • (String)


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

def resource_type
  @resource_type
end

Class Method Details

.deserialize_object(object) ⇒ RelayServiceConnectionEntityProperties

Deserializes given Ruby Hash into Model object.

Parameters:

  • object (Hash)

    Ruby Hash object to deserialize.

Returns:



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/azure_mgmt_web/models/relay_service_connection_entity_properties.rb', line 81

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

  deserialized_property = object['entityName']
  output_object.entity_name = deserialized_property

  deserialized_property = object['entityConnectionString']
  output_object.entity_connection_string = deserialized_property

  deserialized_property = object['resourceType']
  output_object.resource_type = deserialized_property

  deserialized_property = object['resourceConnectionString']
  output_object.resource_connection_string = deserialized_property

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

  deserialized_property = object['port']
  deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
  output_object.port = deserialized_property

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



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
# File 'lib/azure_mgmt_web/models/relay_service_connection_entity_properties.rb', line 48

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

  serialized_property = object.entity_name
  output_object['entityName'] = serialized_property unless serialized_property.nil?

  serialized_property = object.entity_connection_string
  output_object['entityConnectionString'] = serialized_property unless serialized_property.nil?

  serialized_property = object.resource_type
  output_object['resourceType'] = serialized_property unless serialized_property.nil?

  serialized_property = object.resource_connection_string
  output_object['resourceConnectionString'] = serialized_property unless serialized_property.nil?

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

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

  serialized_property = object.biztalk_uri
  output_object['biztalkUri'] = serialized_property unless serialized_property.nil?

  output_object
end

Instance Method Details

#validateObject

Validate the object. Throws ValidationError if validation fails.



39
40
41
# File 'lib/azure_mgmt_web/models/relay_service_connection_entity_properties.rb', line 39

def validate
  # Nothing to validate
end