azure_mgmt_network 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/.rspec +3 -0
- data/.travis.yml +3 -0
- data/Gemfile +15 -0
- data/LICENSE.txt +21 -0
- data/README.md +131 -0
- data/Rakefile +5 -0
- data/azure_mgmt_network.gemspec +39 -0
- data/lib/azure_mgmt_network.rb +139 -0
- data/lib/azure_mgmt_network/Models/address_space.rb +60 -0
- data/lib/azure_mgmt_network/Models/application_gateway.rb +104 -0
- data/lib/azure_mgmt_network/Models/application_gateway_backend_address.rb +67 -0
- data/lib/azure_mgmt_network/Models/application_gateway_backend_address_pool.rb +90 -0
- data/lib/azure_mgmt_network/Models/application_gateway_backend_address_pool_properties_format.rb +121 -0
- data/lib/azure_mgmt_network/Models/application_gateway_backend_http_settings.rb +90 -0
- data/lib/azure_mgmt_network/Models/application_gateway_backend_http_settings_properties_format.rb +98 -0
- data/lib/azure_mgmt_network/Models/application_gateway_cookie_based_affinity.rb +16 -0
- data/lib/azure_mgmt_network/Models/application_gateway_frontend_ip_configuration.rb +91 -0
- data/lib/azure_mgmt_network/Models/application_gateway_frontend_ip_configuration_properties_format.rb +117 -0
- data/lib/azure_mgmt_network/Models/application_gateway_frontend_port.rb +90 -0
- data/lib/azure_mgmt_network/Models/application_gateway_frontend_port_properties_format.rb +70 -0
- data/lib/azure_mgmt_network/Models/application_gateway_http_listener.rb +90 -0
- data/lib/azure_mgmt_network/Models/application_gateway_http_listener_properties_format.rb +124 -0
- data/lib/azure_mgmt_network/Models/application_gateway_ip_configuration.rb +90 -0
- data/lib/azure_mgmt_network/Models/application_gateway_ip_configuration_properties_format.rb +77 -0
- data/lib/azure_mgmt_network/Models/application_gateway_list_result.rb +88 -0
- data/lib/azure_mgmt_network/Models/application_gateway_operational_state.rb +18 -0
- data/lib/azure_mgmt_network/Models/application_gateway_properties_format.rb +338 -0
- data/lib/azure_mgmt_network/Models/application_gateway_protocol.rb +16 -0
- data/lib/azure_mgmt_network/Models/application_gateway_request_routing_rule.rb +90 -0
- data/lib/azure_mgmt_network/Models/application_gateway_request_routing_rule_properties_format.rb +124 -0
- data/lib/azure_mgmt_network/Models/application_gateway_request_routing_rule_type.rb +15 -0
- data/lib/azure_mgmt_network/Models/application_gateway_sku.rb +88 -0
- data/lib/azure_mgmt_network/Models/application_gateway_sku_name.rb +17 -0
- data/lib/azure_mgmt_network/Models/application_gateway_ssl_certificate.rb +90 -0
- data/lib/azure_mgmt_network/Models/application_gateway_ssl_certificate_properties_format.rb +87 -0
- data/lib/azure_mgmt_network/Models/application_gateway_tier.rb +15 -0
- data/lib/azure_mgmt_network/Models/azure_async_operation_result.rb +85 -0
- data/lib/azure_mgmt_network/Models/backend_address_pool.rb +90 -0
- data/lib/azure_mgmt_network/Models/backend_address_pool_properties_format.rb +120 -0
- data/lib/azure_mgmt_network/Models/connection_reset_shared_key.rb +64 -0
- data/lib/azure_mgmt_network/Models/connection_reset_shared_key_properties_format.rb +60 -0
- data/lib/azure_mgmt_network/Models/connection_shared_key.rb +58 -0
- data/lib/azure_mgmt_network/Models/dhcp_options.rb +60 -0
- data/lib/azure_mgmt_network/Models/dns_name_availability_result.rb +58 -0
- data/lib/azure_mgmt_network/Models/error.rb +114 -0
- data/lib/azure_mgmt_network/Models/error_details.rb +76 -0
- data/lib/azure_mgmt_network/Models/frontend_ip_configuration.rb +90 -0
- data/lib/azure_mgmt_network/Models/frontend_ip_configuration_properties_format.rb +181 -0
- data/lib/azure_mgmt_network/Models/inbound_nat_rule.rb +90 -0
- data/lib/azure_mgmt_network/Models/inbound_nat_rule_properties_format.rb +163 -0
- data/lib/azure_mgmt_network/Models/ip_allocation_method.rb +16 -0
- data/lib/azure_mgmt_network/Models/load_balancer.rb +104 -0
- data/lib/azure_mgmt_network/Models/load_balancer_list_result.rb +88 -0
- data/lib/azure_mgmt_network/Models/load_balancer_properties_format.rb +210 -0
- data/lib/azure_mgmt_network/Models/load_balancing_rule.rb +90 -0
- data/lib/azure_mgmt_network/Models/load_balancing_rule_properties_format.rb +195 -0
- data/lib/azure_mgmt_network/Models/load_distribution.rb +17 -0
- data/lib/azure_mgmt_network/Models/local_network_gateway.rb +104 -0
- data/lib/azure_mgmt_network/Models/local_network_gateway_list_result.rb +88 -0
- data/lib/azure_mgmt_network/Models/local_network_gateway_properties_format.rb +83 -0
- data/lib/azure_mgmt_network/Models/network_interface.rb +104 -0
- data/lib/azure_mgmt_network/Models/network_interface_dns_settings.rb +89 -0
- data/lib/azure_mgmt_network/Models/network_interface_ip_configuration.rb +90 -0
- data/lib/azure_mgmt_network/Models/network_interface_ip_configuration_properties_format.rb +179 -0
- data/lib/azure_mgmt_network/Models/network_interface_list_result.rb +88 -0
- data/lib/azure_mgmt_network/Models/network_interface_properties_format.rb +158 -0
- data/lib/azure_mgmt_network/Models/network_security_group.rb +104 -0
- data/lib/azure_mgmt_network/Models/network_security_group_list_result.rb +88 -0
- data/lib/azure_mgmt_network/Models/network_security_group_properties_format.rb +181 -0
- data/lib/azure_mgmt_network/Models/operation_status.rb +17 -0
- data/lib/azure_mgmt_network/Models/probe.rb +90 -0
- data/lib/azure_mgmt_network/Models/probe_properties_format.rb +157 -0
- data/lib/azure_mgmt_network/Models/probe_protocol.rb +16 -0
- data/lib/azure_mgmt_network/Models/public_ip_address.rb +104 -0
- data/lib/azure_mgmt_network/Models/public_ip_address_dns_settings.rb +85 -0
- data/lib/azure_mgmt_network/Models/public_ip_address_list_result.rb +88 -0
- data/lib/azure_mgmt_network/Models/public_ip_address_properties_format.rb +126 -0
- data/lib/azure_mgmt_network/Models/security_rule.rb +90 -0
- data/lib/azure_mgmt_network/Models/security_rule_access.rb +16 -0
- data/lib/azure_mgmt_network/Models/security_rule_direction.rb +16 -0
- data/lib/azure_mgmt_network/Models/security_rule_list_result.rb +89 -0
- data/lib/azure_mgmt_network/Models/security_rule_properties_format.rb +174 -0
- data/lib/azure_mgmt_network/Models/security_rule_protocol.rb +17 -0
- data/lib/azure_mgmt_network/Models/subnet.rb +90 -0
- data/lib/azure_mgmt_network/Models/subnet_list_result.rb +88 -0
- data/lib/azure_mgmt_network/Models/subnet_properties_format.rb +115 -0
- data/lib/azure_mgmt_network/Models/transport_protocol.rb +16 -0
- data/lib/azure_mgmt_network/Models/usage.rb +98 -0
- data/lib/azure_mgmt_network/Models/usage_name.rb +68 -0
- data/lib/azure_mgmt_network/Models/usage_unit.rb +15 -0
- data/lib/azure_mgmt_network/Models/usages_list_result.rb +78 -0
- data/lib/azure_mgmt_network/Models/virtual_network.rb +104 -0
- data/lib/azure_mgmt_network/Models/virtual_network_gateway.rb +104 -0
- data/lib/azure_mgmt_network/Models/virtual_network_gateway_connection.rb +104 -0
- data/lib/azure_mgmt_network/Models/virtual_network_gateway_connection_list_result.rb +89 -0
- data/lib/azure_mgmt_network/Models/virtual_network_gateway_connection_properties_format.rb +141 -0
- data/lib/azure_mgmt_network/Models/virtual_network_gateway_connection_type.rb +18 -0
- data/lib/azure_mgmt_network/Models/virtual_network_gateway_ip_configuration.rb +90 -0
- data/lib/azure_mgmt_network/Models/virtual_network_gateway_ip_configuration_properties_format.rb +117 -0
- data/lib/azure_mgmt_network/Models/virtual_network_gateway_list_result.rb +88 -0
- data/lib/azure_mgmt_network/Models/virtual_network_gateway_properties_format.rb +126 -0
- data/lib/azure_mgmt_network/Models/virtual_network_gateway_type.rb +15 -0
- data/lib/azure_mgmt_network/Models/virtual_network_list_result.rb +88 -0
- data/lib/azure_mgmt_network/Models/virtual_network_properties_format.rb +123 -0
- data/lib/azure_mgmt_network/Models/vpn_type.rb +16 -0
- data/lib/azure_mgmt_network/application_gateways.rb +915 -0
- data/lib/azure_mgmt_network/load_balancers.rb +709 -0
- data/lib/azure_mgmt_network/local_network_gateways.rb +550 -0
- data/lib/azure_mgmt_network/module_definition.rb +6 -0
- data/lib/azure_mgmt_network/network_interfaces.rb +709 -0
- data/lib/azure_mgmt_network/network_resource_provider_client.rb +195 -0
- data/lib/azure_mgmt_network/network_security_groups.rb +718 -0
- data/lib/azure_mgmt_network/public_ip_addresses.rb +711 -0
- data/lib/azure_mgmt_network/security_rules.rb +563 -0
- data/lib/azure_mgmt_network/subnets.rb +552 -0
- data/lib/azure_mgmt_network/usages.rb +113 -0
- data/lib/azure_mgmt_network/version.rb +6 -0
- data/lib/azure_mgmt_network/virtual_network_gateway_connections.rb +945 -0
- data/lib/azure_mgmt_network/virtual_network_gateways.rb +686 -0
- data/lib/azure_mgmt_network/virtual_networks.rb +707 -0
- metadata +311 -0
@@ -0,0 +1,157 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Network
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
class ProbePropertiesFormat
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<SubResource>] Gets Load balancer rules that use this
|
16
|
+
# probe
|
17
|
+
attr_accessor :load_balancing_rules
|
18
|
+
|
19
|
+
# @return [ProbeProtocol] Gets or sets the protocol of the end point.
|
20
|
+
# Possible values are http pr Tcp. If Tcp is specified, a received ACK
|
21
|
+
# is required for the probe to be successful. If http is specified,a
|
22
|
+
# 200 OK response from the specifies URI is required for the probe to
|
23
|
+
# be successful. Possible values for this property include: 'Http',
|
24
|
+
# 'Tcp'.
|
25
|
+
attr_accessor :protocol
|
26
|
+
|
27
|
+
# @return [Integer] Gets or sets Port for communicating the probe.
|
28
|
+
# Possible values range from 1 to 65535, inclusive.
|
29
|
+
attr_accessor :port
|
30
|
+
|
31
|
+
# @return [Integer] Gets or sets the interval, in seconds, for how
|
32
|
+
# frequently to probe the endpoint for health status. Typically, the
|
33
|
+
# interval is slightly less than half the allocated timeout period (in
|
34
|
+
# seconds) which allows two full probes before taking the instance out
|
35
|
+
# of rotation. The default value is 15, the minimum value is 5
|
36
|
+
attr_accessor :interval_in_seconds
|
37
|
+
|
38
|
+
# @return [Integer] Gets or sets the number of probes where if no
|
39
|
+
# response, will result in stopping further traffic from being
|
40
|
+
# delivered to the endpoint. This values allows endponints to be taken
|
41
|
+
# out of rotation faster or slower than the typical times used in
|
42
|
+
# Azure.
|
43
|
+
attr_accessor :number_of_probes
|
44
|
+
|
45
|
+
# @return [String] Gets or sets the URI used for requesting health
|
46
|
+
# status from the VM. Path is required if a protocol is set to http.
|
47
|
+
# Otherwise, it is not allowed. There is no default value
|
48
|
+
attr_accessor :request_path
|
49
|
+
|
50
|
+
# @return [String] Gets or sets Provisioning state of the PublicIP
|
51
|
+
# resource Updating/Deleting/Failed
|
52
|
+
attr_accessor :provisioning_state
|
53
|
+
|
54
|
+
#
|
55
|
+
# Validate the object. Throws ValidationError if validation fails.
|
56
|
+
#
|
57
|
+
def validate
|
58
|
+
@load_balancing_rules.each{ |e| e.validate if e.respond_to?(:validate) } unless @load_balancing_rules.nil?
|
59
|
+
end
|
60
|
+
|
61
|
+
#
|
62
|
+
# Serializes given Model object into Ruby Hash.
|
63
|
+
# @param object Model object to serialize.
|
64
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
65
|
+
#
|
66
|
+
def self.serialize_object(object)
|
67
|
+
object.validate
|
68
|
+
output_object = {}
|
69
|
+
|
70
|
+
serialized_property = object.load_balancing_rules
|
71
|
+
unless serialized_property.nil?
|
72
|
+
serializedArray = []
|
73
|
+
serialized_property.each do |element|
|
74
|
+
unless element.nil?
|
75
|
+
element = SubResource.serialize_object(element)
|
76
|
+
end
|
77
|
+
serializedArray.push(element)
|
78
|
+
end
|
79
|
+
serialized_property = serializedArray
|
80
|
+
end
|
81
|
+
output_object['loadBalancingRules'] = serialized_property unless serialized_property.nil?
|
82
|
+
|
83
|
+
serialized_property = object.protocol
|
84
|
+
output_object['protocol'] = serialized_property unless serialized_property.nil?
|
85
|
+
|
86
|
+
serialized_property = object.port
|
87
|
+
output_object['port'] = serialized_property unless serialized_property.nil?
|
88
|
+
|
89
|
+
serialized_property = object.interval_in_seconds
|
90
|
+
output_object['intervalInSeconds'] = serialized_property unless serialized_property.nil?
|
91
|
+
|
92
|
+
serialized_property = object.number_of_probes
|
93
|
+
output_object['numberOfProbes'] = serialized_property unless serialized_property.nil?
|
94
|
+
|
95
|
+
serialized_property = object.request_path
|
96
|
+
output_object['requestPath'] = serialized_property unless serialized_property.nil?
|
97
|
+
|
98
|
+
serialized_property = object.provisioning_state
|
99
|
+
output_object['provisioningState'] = serialized_property unless serialized_property.nil?
|
100
|
+
|
101
|
+
output_object
|
102
|
+
end
|
103
|
+
|
104
|
+
#
|
105
|
+
# Deserializes given Ruby Hash into Model object.
|
106
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
107
|
+
# @return [ProbePropertiesFormat] Deserialized object.
|
108
|
+
#
|
109
|
+
def self.deserialize_object(object)
|
110
|
+
return if object.nil?
|
111
|
+
output_object = ProbePropertiesFormat.new
|
112
|
+
|
113
|
+
deserialized_property = object['loadBalancingRules']
|
114
|
+
unless deserialized_property.nil?
|
115
|
+
deserializedArray = [];
|
116
|
+
deserialized_property.each do |element1|
|
117
|
+
unless element1.nil?
|
118
|
+
element1 = SubResource.deserialize_object(element1)
|
119
|
+
end
|
120
|
+
deserializedArray.push(element1);
|
121
|
+
end
|
122
|
+
deserialized_property = deserializedArray;
|
123
|
+
end
|
124
|
+
output_object.load_balancing_rules = deserialized_property
|
125
|
+
|
126
|
+
deserialized_property = object['protocol']
|
127
|
+
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
128
|
+
enum_is_valid = ProbeProtocol.constants.any? { |e| ProbeProtocol.const_get(e).to_s.downcase == deserialized_property.downcase }
|
129
|
+
fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
|
130
|
+
end
|
131
|
+
output_object.protocol = deserialized_property
|
132
|
+
|
133
|
+
deserialized_property = object['port']
|
134
|
+
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
135
|
+
output_object.port = deserialized_property
|
136
|
+
|
137
|
+
deserialized_property = object['intervalInSeconds']
|
138
|
+
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
139
|
+
output_object.interval_in_seconds = deserialized_property
|
140
|
+
|
141
|
+
deserialized_property = object['numberOfProbes']
|
142
|
+
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
143
|
+
output_object.number_of_probes = deserialized_property
|
144
|
+
|
145
|
+
deserialized_property = object['requestPath']
|
146
|
+
output_object.request_path = deserialized_property
|
147
|
+
|
148
|
+
deserialized_property = object['provisioningState']
|
149
|
+
output_object.provisioning_state = deserialized_property
|
150
|
+
|
151
|
+
output_object.validate
|
152
|
+
|
153
|
+
output_object
|
154
|
+
end
|
155
|
+
end
|
156
|
+
end
|
157
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Network
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for ProbeProtocol
|
10
|
+
#
|
11
|
+
module ProbeProtocol
|
12
|
+
Http = "Http"
|
13
|
+
Tcp = "Tcp"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,104 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Network
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# PublicIPAddress resource
|
10
|
+
#
|
11
|
+
class PublicIpAddress < MsRestAzure::Resource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [PublicIpAddressPropertiesFormat]
|
16
|
+
attr_accessor :properties
|
17
|
+
|
18
|
+
# @return [String] Gets a unique read-only string that changes whenever
|
19
|
+
# the resource is updated
|
20
|
+
attr_accessor :etag
|
21
|
+
|
22
|
+
#
|
23
|
+
# Validate the object. Throws ValidationError if validation fails.
|
24
|
+
#
|
25
|
+
def validate
|
26
|
+
@properties.validate unless @properties.nil?
|
27
|
+
end
|
28
|
+
|
29
|
+
#
|
30
|
+
# Serializes given Model object into Ruby Hash.
|
31
|
+
# @param object Model object to serialize.
|
32
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
33
|
+
#
|
34
|
+
def self.serialize_object(object)
|
35
|
+
object.validate
|
36
|
+
output_object = {}
|
37
|
+
|
38
|
+
serialized_property = object.location
|
39
|
+
output_object['location'] = serialized_property unless serialized_property.nil?
|
40
|
+
|
41
|
+
serialized_property = object.id
|
42
|
+
output_object['id'] = serialized_property unless serialized_property.nil?
|
43
|
+
|
44
|
+
serialized_property = object.name
|
45
|
+
output_object['name'] = serialized_property unless serialized_property.nil?
|
46
|
+
|
47
|
+
serialized_property = object.type
|
48
|
+
output_object['type'] = serialized_property unless serialized_property.nil?
|
49
|
+
|
50
|
+
serialized_property = object.tags
|
51
|
+
output_object['tags'] = serialized_property unless serialized_property.nil?
|
52
|
+
|
53
|
+
serialized_property = object.properties
|
54
|
+
unless serialized_property.nil?
|
55
|
+
serialized_property = PublicIpAddressPropertiesFormat.serialize_object(serialized_property)
|
56
|
+
end
|
57
|
+
output_object['properties'] = serialized_property unless serialized_property.nil?
|
58
|
+
|
59
|
+
serialized_property = object.etag
|
60
|
+
output_object['etag'] = serialized_property unless serialized_property.nil?
|
61
|
+
|
62
|
+
output_object
|
63
|
+
end
|
64
|
+
|
65
|
+
#
|
66
|
+
# Deserializes given Ruby Hash into Model object.
|
67
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
68
|
+
# @return [PublicIpAddress] Deserialized object.
|
69
|
+
#
|
70
|
+
def self.deserialize_object(object)
|
71
|
+
return if object.nil?
|
72
|
+
output_object = PublicIpAddress.new
|
73
|
+
|
74
|
+
deserialized_property = object['location']
|
75
|
+
output_object.location = deserialized_property
|
76
|
+
|
77
|
+
deserialized_property = object['id']
|
78
|
+
output_object.id = deserialized_property
|
79
|
+
|
80
|
+
deserialized_property = object['name']
|
81
|
+
output_object.name = deserialized_property
|
82
|
+
|
83
|
+
deserialized_property = object['type']
|
84
|
+
output_object.type = deserialized_property
|
85
|
+
|
86
|
+
deserialized_property = object['tags']
|
87
|
+
output_object.tags = deserialized_property
|
88
|
+
|
89
|
+
deserialized_property = object['properties']
|
90
|
+
unless deserialized_property.nil?
|
91
|
+
deserialized_property = PublicIpAddressPropertiesFormat.deserialize_object(deserialized_property)
|
92
|
+
end
|
93
|
+
output_object.properties = deserialized_property
|
94
|
+
|
95
|
+
deserialized_property = object['etag']
|
96
|
+
output_object.etag = deserialized_property
|
97
|
+
|
98
|
+
output_object.validate
|
99
|
+
|
100
|
+
output_object
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
@@ -0,0 +1,85 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Network
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Contains FQDN of the DNS record associated with the public IP address
|
10
|
+
#
|
11
|
+
class PublicIpAddressDnsSettings
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Gets or sets the Domain name label.The concatenation
|
16
|
+
# of the domain name label and the regionalized DNS zone make up the
|
17
|
+
# fully qualified domain name associated with the public IP address. If
|
18
|
+
# a domain name label is specified, an A DNS record is created for the
|
19
|
+
# public IP in the Microsoft Azure DNS system.
|
20
|
+
attr_accessor :domain_name_label
|
21
|
+
|
22
|
+
# @return [String] Gets the FQDN, Fully qualified domain name of the A
|
23
|
+
# DNS record associated with the public IP. This is the concatenation
|
24
|
+
# of the domainNameLabel and the regionalized DNS zone.
|
25
|
+
attr_accessor :fqdn
|
26
|
+
|
27
|
+
# @return [String] Gets or Sests the Reverse FQDN. A user-visible, fully
|
28
|
+
# qualified domain name that resolves to this public IP address. If the
|
29
|
+
# reverseFqdn is specified, then a PTR DNS record is created pointing
|
30
|
+
# from the IP address in the in-addr.arpa domain to the reverse FQDN.
|
31
|
+
attr_accessor :reverse_fqdn
|
32
|
+
|
33
|
+
#
|
34
|
+
# Validate the object. Throws ValidationError if validation fails.
|
35
|
+
#
|
36
|
+
def validate
|
37
|
+
# Nothing to validate
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Serializes given Model object into Ruby Hash.
|
42
|
+
# @param object Model object to serialize.
|
43
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
44
|
+
#
|
45
|
+
def self.serialize_object(object)
|
46
|
+
object.validate
|
47
|
+
output_object = {}
|
48
|
+
|
49
|
+
serialized_property = object.domain_name_label
|
50
|
+
output_object['domainNameLabel'] = serialized_property unless serialized_property.nil?
|
51
|
+
|
52
|
+
serialized_property = object.fqdn
|
53
|
+
output_object['fqdn'] = serialized_property unless serialized_property.nil?
|
54
|
+
|
55
|
+
serialized_property = object.reverse_fqdn
|
56
|
+
output_object['reverseFqdn'] = serialized_property unless serialized_property.nil?
|
57
|
+
|
58
|
+
output_object
|
59
|
+
end
|
60
|
+
|
61
|
+
#
|
62
|
+
# Deserializes given Ruby Hash into Model object.
|
63
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
64
|
+
# @return [PublicIpAddressDnsSettings] Deserialized object.
|
65
|
+
#
|
66
|
+
def self.deserialize_object(object)
|
67
|
+
return if object.nil?
|
68
|
+
output_object = PublicIpAddressDnsSettings.new
|
69
|
+
|
70
|
+
deserialized_property = object['domainNameLabel']
|
71
|
+
output_object.domain_name_label = deserialized_property
|
72
|
+
|
73
|
+
deserialized_property = object['fqdn']
|
74
|
+
output_object.fqdn = deserialized_property
|
75
|
+
|
76
|
+
deserialized_property = object['reverseFqdn']
|
77
|
+
output_object.reverse_fqdn = deserialized_property
|
78
|
+
|
79
|
+
output_object.validate
|
80
|
+
|
81
|
+
output_object
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
@@ -0,0 +1,88 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Network
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Response for ListPublicIpAddresses Api service call
|
10
|
+
#
|
11
|
+
class PublicIpAddressListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<PublicIpAddress>] Gets List of publicIP addresses that
|
16
|
+
# exists in a resource group
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
# @return [String] Gets the URL to get the next set of results.
|
20
|
+
attr_accessor :next_link
|
21
|
+
|
22
|
+
#
|
23
|
+
# Validate the object. Throws ValidationError if validation fails.
|
24
|
+
#
|
25
|
+
def validate
|
26
|
+
@value.each{ |e| e.validate if e.respond_to?(:validate) } unless @value.nil?
|
27
|
+
end
|
28
|
+
|
29
|
+
#
|
30
|
+
# Serializes given Model object into Ruby Hash.
|
31
|
+
# @param object Model object to serialize.
|
32
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
33
|
+
#
|
34
|
+
def self.serialize_object(object)
|
35
|
+
object.validate
|
36
|
+
output_object = {}
|
37
|
+
|
38
|
+
serialized_property = object.value
|
39
|
+
unless serialized_property.nil?
|
40
|
+
serializedArray = []
|
41
|
+
serialized_property.each do |element|
|
42
|
+
unless element.nil?
|
43
|
+
element = PublicIpAddress.serialize_object(element)
|
44
|
+
end
|
45
|
+
serializedArray.push(element)
|
46
|
+
end
|
47
|
+
serialized_property = serializedArray
|
48
|
+
end
|
49
|
+
output_object['value'] = serialized_property unless serialized_property.nil?
|
50
|
+
|
51
|
+
serialized_property = object.next_link
|
52
|
+
output_object['nextLink'] = serialized_property unless serialized_property.nil?
|
53
|
+
|
54
|
+
output_object
|
55
|
+
end
|
56
|
+
|
57
|
+
#
|
58
|
+
# Deserializes given Ruby Hash into Model object.
|
59
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
60
|
+
# @return [PublicIpAddressListResult] Deserialized object.
|
61
|
+
#
|
62
|
+
def self.deserialize_object(object)
|
63
|
+
return if object.nil?
|
64
|
+
output_object = PublicIpAddressListResult.new
|
65
|
+
|
66
|
+
deserialized_property = object['value']
|
67
|
+
unless deserialized_property.nil?
|
68
|
+
deserializedArray = [];
|
69
|
+
deserialized_property.each do |element1|
|
70
|
+
unless element1.nil?
|
71
|
+
element1 = PublicIpAddress.deserialize_object(element1)
|
72
|
+
end
|
73
|
+
deserializedArray.push(element1);
|
74
|
+
end
|
75
|
+
deserialized_property = deserializedArray;
|
76
|
+
end
|
77
|
+
output_object.value = deserialized_property
|
78
|
+
|
79
|
+
deserialized_property = object['nextLink']
|
80
|
+
output_object.next_link = deserialized_property
|
81
|
+
|
82
|
+
output_object.validate
|
83
|
+
|
84
|
+
output_object
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|