Class: Azure::ARM::Web::Models::VnetInfoProperties

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

Overview

Model object.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cert_blobString

key of the private key used to authenticate a Point-To-Site VPN connection.

Returns:

  • (String)

    A certificate file (.cer) blob containing the public



24
25
26
# File 'lib/azure_mgmt_web/models/vnet_info_properties.rb', line 24

def cert_blob
  @cert_blob
end

#cert_thumbprintString

Returns The client certificate thumbprint.

Returns:

  • (String)

    The client certificate thumbprint



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

def cert_thumbprint
  @cert_thumbprint
end

#dns_serversString

comma-separated list of IP addresses.

Returns:

  • (String)

    Dns servers to be used by this VNET. This should be a



35
36
37
# File 'lib/azure_mgmt_web/models/vnet_info_properties.rb', line 35

def dns_servers
  @dns_servers
end

#resync_requiredBoolean

Returns Flag to determine if a resync is required.

Returns:

  • (Boolean)

    Flag to determine if a resync is required



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

def resync_required
  @resync_required
end

#routesArray<VnetRoute>

connection uses.

Returns:

  • (Array<VnetRoute>)

    The routes that this virtual network



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

def routes
  @routes
end

#vnet_resource_idString

Returns The vnet resource id.

Returns:

  • (String)

    The vnet resource id



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

def vnet_resource_id
  @vnet_resource_id
end

Class Method Details

.deserialize_object(object) ⇒ VnetInfoProperties

Deserializes given Ruby Hash into Model object.

Parameters:

  • object (Hash)

    Ruby Hash object to deserialize.

Returns:



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
122
# File 'lib/azure_mgmt_web/models/vnet_info_properties.rb', line 89

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

  deserialized_property = object['vnetResourceId']
  output_object.vnet_resource_id = deserialized_property

  deserialized_property = object['certThumbprint']
  output_object.cert_thumbprint = deserialized_property

  deserialized_property = object['certBlob']
  output_object.cert_blob = deserialized_property

  deserialized_property = object['routes']
  unless deserialized_property.nil?
    deserialized_array = []
    deserialized_property.each do |element1|
      unless element1.nil?
        element1 = VnetRoute.deserialize_object(element1)
      end
      deserialized_array.push(element1)
    end
    deserialized_property = deserialized_array
  end
  output_object.routes = deserialized_property

  deserialized_property = object['resyncRequired']
  output_object.resync_required = deserialized_property

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



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
75
76
77
78
79
80
81
82
# File 'lib/azure_mgmt_web/models/vnet_info_properties.rb', line 49

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

  serialized_property = object.vnet_resource_id
  output_object['vnetResourceId'] = serialized_property unless serialized_property.nil?

  serialized_property = object.cert_thumbprint
  output_object['certThumbprint'] = serialized_property unless serialized_property.nil?

  serialized_property = object.cert_blob
  output_object['certBlob'] = serialized_property unless serialized_property.nil?

  serialized_property = object.routes
  unless serialized_property.nil?
    serializedArray = []
    serialized_property.each do |element|
      unless element.nil?
        element = VnetRoute.serialize_object(element)
      end
      serializedArray.push(element)
    end
    serialized_property = serializedArray
  end
  output_object['routes'] = serialized_property unless serialized_property.nil?

  serialized_property = object.resync_required
  output_object['resyncRequired'] = serialized_property unless serialized_property.nil?

  serialized_property = object.dns_servers
  output_object['dnsServers'] = serialized_property unless serialized_property.nil?

  output_object
end

Instance Method Details

#validateObject

Validate the object. Throws ValidationError if validation fails.



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

def validate
  @routes.each{ |e| e.validate if e.respond_to?(:validate) } unless @routes.nil?
end