azure_mgmt_network 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
data/lib/azure_mgmt_network/Models/application_gateway_request_routing_rule_properties_format.rb
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
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
|
+
# Properties of Request routing rule of application gateway
|
|
10
|
+
#
|
|
11
|
+
class ApplicationGatewayRequestRoutingRulePropertiesFormat
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [ApplicationGatewayRequestRoutingRuleType] Gets or sets the
|
|
16
|
+
# rule type. Possible values for this property include: 'Basic'.
|
|
17
|
+
attr_accessor :rule_type
|
|
18
|
+
|
|
19
|
+
# @return [SubResource] Gets or sets backend address pool resource of
|
|
20
|
+
# application gateway
|
|
21
|
+
attr_accessor :backend_address_pool
|
|
22
|
+
|
|
23
|
+
# @return [SubResource] Gets or sets frontend port resource of
|
|
24
|
+
# application gateway
|
|
25
|
+
attr_accessor :backend_http_settings
|
|
26
|
+
|
|
27
|
+
# @return [SubResource] Gets or sets http listener resource of
|
|
28
|
+
# application gateway
|
|
29
|
+
attr_accessor :http_listener
|
|
30
|
+
|
|
31
|
+
# @return [String] Gets or sets Provisioning state of the request
|
|
32
|
+
# routing rule resource Updating/Deleting/Failed
|
|
33
|
+
attr_accessor :provisioning_state
|
|
34
|
+
|
|
35
|
+
#
|
|
36
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
37
|
+
#
|
|
38
|
+
def validate
|
|
39
|
+
@backend_address_pool.validate unless @backend_address_pool.nil?
|
|
40
|
+
@backend_http_settings.validate unless @backend_http_settings.nil?
|
|
41
|
+
@http_listener.validate unless @http_listener.nil?
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
#
|
|
45
|
+
# Serializes given Model object into Ruby Hash.
|
|
46
|
+
# @param object Model object to serialize.
|
|
47
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
|
48
|
+
#
|
|
49
|
+
def self.serialize_object(object)
|
|
50
|
+
object.validate
|
|
51
|
+
output_object = {}
|
|
52
|
+
|
|
53
|
+
serialized_property = object.rule_type
|
|
54
|
+
output_object['ruleType'] = serialized_property unless serialized_property.nil?
|
|
55
|
+
|
|
56
|
+
serialized_property = object.backend_address_pool
|
|
57
|
+
unless serialized_property.nil?
|
|
58
|
+
serialized_property = SubResource.serialize_object(serialized_property)
|
|
59
|
+
end
|
|
60
|
+
output_object['backendAddressPool'] = serialized_property unless serialized_property.nil?
|
|
61
|
+
|
|
62
|
+
serialized_property = object.backend_http_settings
|
|
63
|
+
unless serialized_property.nil?
|
|
64
|
+
serialized_property = SubResource.serialize_object(serialized_property)
|
|
65
|
+
end
|
|
66
|
+
output_object['backendHttpSettings'] = serialized_property unless serialized_property.nil?
|
|
67
|
+
|
|
68
|
+
serialized_property = object.http_listener
|
|
69
|
+
unless serialized_property.nil?
|
|
70
|
+
serialized_property = SubResource.serialize_object(serialized_property)
|
|
71
|
+
end
|
|
72
|
+
output_object['httpListener'] = serialized_property unless serialized_property.nil?
|
|
73
|
+
|
|
74
|
+
serialized_property = object.provisioning_state
|
|
75
|
+
output_object['provisioningState'] = serialized_property unless serialized_property.nil?
|
|
76
|
+
|
|
77
|
+
output_object
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
#
|
|
81
|
+
# Deserializes given Ruby Hash into Model object.
|
|
82
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
|
83
|
+
# @return [ApplicationGatewayRequestRoutingRulePropertiesFormat]
|
|
84
|
+
# Deserialized object.
|
|
85
|
+
#
|
|
86
|
+
def self.deserialize_object(object)
|
|
87
|
+
return if object.nil?
|
|
88
|
+
output_object = ApplicationGatewayRequestRoutingRulePropertiesFormat.new
|
|
89
|
+
|
|
90
|
+
deserialized_property = object['ruleType']
|
|
91
|
+
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
|
92
|
+
enum_is_valid = ApplicationGatewayRequestRoutingRuleType.constants.any? { |e| ApplicationGatewayRequestRoutingRuleType.const_get(e).to_s.downcase == deserialized_property.downcase }
|
|
93
|
+
fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
|
|
94
|
+
end
|
|
95
|
+
output_object.rule_type = deserialized_property
|
|
96
|
+
|
|
97
|
+
deserialized_property = object['backendAddressPool']
|
|
98
|
+
unless deserialized_property.nil?
|
|
99
|
+
deserialized_property = SubResource.deserialize_object(deserialized_property)
|
|
100
|
+
end
|
|
101
|
+
output_object.backend_address_pool = deserialized_property
|
|
102
|
+
|
|
103
|
+
deserialized_property = object['backendHttpSettings']
|
|
104
|
+
unless deserialized_property.nil?
|
|
105
|
+
deserialized_property = SubResource.deserialize_object(deserialized_property)
|
|
106
|
+
end
|
|
107
|
+
output_object.backend_http_settings = deserialized_property
|
|
108
|
+
|
|
109
|
+
deserialized_property = object['httpListener']
|
|
110
|
+
unless deserialized_property.nil?
|
|
111
|
+
deserialized_property = SubResource.deserialize_object(deserialized_property)
|
|
112
|
+
end
|
|
113
|
+
output_object.http_listener = deserialized_property
|
|
114
|
+
|
|
115
|
+
deserialized_property = object['provisioningState']
|
|
116
|
+
output_object.provisioning_state = deserialized_property
|
|
117
|
+
|
|
118
|
+
output_object.validate
|
|
119
|
+
|
|
120
|
+
output_object
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
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 ApplicationGatewayRequestRoutingRuleType
|
|
10
|
+
#
|
|
11
|
+
module ApplicationGatewayRequestRoutingRuleType
|
|
12
|
+
Basic = "Basic"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
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
|
+
# SKU of application gateway
|
|
10
|
+
#
|
|
11
|
+
class ApplicationGatewaySku
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [ApplicationGatewaySkuName] Gets or sets name of application
|
|
16
|
+
# gateway SKU. Possible values for this property include:
|
|
17
|
+
# 'Standard_Small', 'Standard_Medium', 'Standard_Large'.
|
|
18
|
+
attr_accessor :name
|
|
19
|
+
|
|
20
|
+
# @return [ApplicationGatewayTier] Gets or sets tier of application
|
|
21
|
+
# gateway. Possible values for this property include: 'Standard'.
|
|
22
|
+
attr_accessor :tier
|
|
23
|
+
|
|
24
|
+
# @return [Integer] Gets or sets capacity (instance count) of
|
|
25
|
+
# application gateway
|
|
26
|
+
attr_accessor :capacity
|
|
27
|
+
|
|
28
|
+
#
|
|
29
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
30
|
+
#
|
|
31
|
+
def validate
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
#
|
|
35
|
+
# Serializes given Model object into Ruby Hash.
|
|
36
|
+
# @param object Model object to serialize.
|
|
37
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
|
38
|
+
#
|
|
39
|
+
def self.serialize_object(object)
|
|
40
|
+
object.validate
|
|
41
|
+
output_object = {}
|
|
42
|
+
|
|
43
|
+
serialized_property = object.name
|
|
44
|
+
output_object['name'] = serialized_property unless serialized_property.nil?
|
|
45
|
+
|
|
46
|
+
serialized_property = object.tier
|
|
47
|
+
output_object['tier'] = serialized_property unless serialized_property.nil?
|
|
48
|
+
|
|
49
|
+
serialized_property = object.capacity
|
|
50
|
+
output_object['capacity'] = serialized_property unless serialized_property.nil?
|
|
51
|
+
|
|
52
|
+
output_object
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
#
|
|
56
|
+
# Deserializes given Ruby Hash into Model object.
|
|
57
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
|
58
|
+
# @return [ApplicationGatewaySku] Deserialized object.
|
|
59
|
+
#
|
|
60
|
+
def self.deserialize_object(object)
|
|
61
|
+
return if object.nil?
|
|
62
|
+
output_object = ApplicationGatewaySku.new
|
|
63
|
+
|
|
64
|
+
deserialized_property = object['name']
|
|
65
|
+
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
|
66
|
+
enum_is_valid = ApplicationGatewaySkuName.constants.any? { |e| ApplicationGatewaySkuName.const_get(e).to_s.downcase == deserialized_property.downcase }
|
|
67
|
+
fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
|
|
68
|
+
end
|
|
69
|
+
output_object.name = deserialized_property
|
|
70
|
+
|
|
71
|
+
deserialized_property = object['tier']
|
|
72
|
+
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
|
73
|
+
enum_is_valid = ApplicationGatewayTier.constants.any? { |e| ApplicationGatewayTier.const_get(e).to_s.downcase == deserialized_property.downcase }
|
|
74
|
+
fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
|
|
75
|
+
end
|
|
76
|
+
output_object.tier = deserialized_property
|
|
77
|
+
|
|
78
|
+
deserialized_property = object['capacity']
|
|
79
|
+
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
|
80
|
+
output_object.capacity = deserialized_property
|
|
81
|
+
|
|
82
|
+
output_object.validate
|
|
83
|
+
|
|
84
|
+
output_object
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
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 ApplicationGatewaySkuName
|
|
10
|
+
#
|
|
11
|
+
module ApplicationGatewaySkuName
|
|
12
|
+
StandardSmall = "Standard_Small"
|
|
13
|
+
StandardMedium = "Standard_Medium"
|
|
14
|
+
StandardLarge = "Standard_Large"
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
# SSL certificates of application gateway
|
|
10
|
+
#
|
|
11
|
+
class ApplicationGatewaySslCertificate < MsRestAzure::SubResource
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [ApplicationGatewaySslCertificatePropertiesFormat]
|
|
16
|
+
attr_accessor :properties
|
|
17
|
+
|
|
18
|
+
# @return [String] Gets name of the resource that is unique within a
|
|
19
|
+
# resource group. This name can be used to access the resource
|
|
20
|
+
attr_accessor :name
|
|
21
|
+
|
|
22
|
+
# @return [String] A unique read-only string that changes whenever the
|
|
23
|
+
# resource is updated
|
|
24
|
+
attr_accessor :etag
|
|
25
|
+
|
|
26
|
+
#
|
|
27
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
28
|
+
#
|
|
29
|
+
def validate
|
|
30
|
+
@properties.validate unless @properties.nil?
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
#
|
|
34
|
+
# Serializes given Model object into Ruby Hash.
|
|
35
|
+
# @param object Model object to serialize.
|
|
36
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
|
37
|
+
#
|
|
38
|
+
def self.serialize_object(object)
|
|
39
|
+
object.validate
|
|
40
|
+
output_object = {}
|
|
41
|
+
|
|
42
|
+
serialized_property = object.id
|
|
43
|
+
output_object['id'] = serialized_property unless serialized_property.nil?
|
|
44
|
+
|
|
45
|
+
serialized_property = object.properties
|
|
46
|
+
unless serialized_property.nil?
|
|
47
|
+
serialized_property = ApplicationGatewaySslCertificatePropertiesFormat.serialize_object(serialized_property)
|
|
48
|
+
end
|
|
49
|
+
output_object['properties'] = serialized_property unless serialized_property.nil?
|
|
50
|
+
|
|
51
|
+
serialized_property = object.name
|
|
52
|
+
output_object['name'] = serialized_property unless serialized_property.nil?
|
|
53
|
+
|
|
54
|
+
serialized_property = object.etag
|
|
55
|
+
output_object['etag'] = serialized_property unless serialized_property.nil?
|
|
56
|
+
|
|
57
|
+
output_object
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
#
|
|
61
|
+
# Deserializes given Ruby Hash into Model object.
|
|
62
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
|
63
|
+
# @return [ApplicationGatewaySslCertificate] Deserialized object.
|
|
64
|
+
#
|
|
65
|
+
def self.deserialize_object(object)
|
|
66
|
+
return if object.nil?
|
|
67
|
+
output_object = ApplicationGatewaySslCertificate.new
|
|
68
|
+
|
|
69
|
+
deserialized_property = object['id']
|
|
70
|
+
output_object.id = deserialized_property
|
|
71
|
+
|
|
72
|
+
deserialized_property = object['properties']
|
|
73
|
+
unless deserialized_property.nil?
|
|
74
|
+
deserialized_property = ApplicationGatewaySslCertificatePropertiesFormat.deserialize_object(deserialized_property)
|
|
75
|
+
end
|
|
76
|
+
output_object.properties = deserialized_property
|
|
77
|
+
|
|
78
|
+
deserialized_property = object['name']
|
|
79
|
+
output_object.name = deserialized_property
|
|
80
|
+
|
|
81
|
+
deserialized_property = object['etag']
|
|
82
|
+
output_object.etag = deserialized_property
|
|
83
|
+
|
|
84
|
+
output_object.validate
|
|
85
|
+
|
|
86
|
+
output_object
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|
|
@@ -0,0 +1,87 @@
|
|
|
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
|
+
# Properties of SSL certificates of application gateway
|
|
10
|
+
#
|
|
11
|
+
class ApplicationGatewaySslCertificatePropertiesFormat
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [String] Gets or sets the certificate data
|
|
16
|
+
attr_accessor :data
|
|
17
|
+
|
|
18
|
+
# @return [String] Gets or sets the certificate password
|
|
19
|
+
attr_accessor :password
|
|
20
|
+
|
|
21
|
+
# @return [String] Gets or sets the certificate public data
|
|
22
|
+
attr_accessor :public_cert_data
|
|
23
|
+
|
|
24
|
+
# @return [String] Gets or sets Provisioning state of the ssl
|
|
25
|
+
# certificate resource Updating/Deleting/Failed
|
|
26
|
+
attr_accessor :provisioning_state
|
|
27
|
+
|
|
28
|
+
#
|
|
29
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
30
|
+
#
|
|
31
|
+
def validate
|
|
32
|
+
# Nothing to validate
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
#
|
|
36
|
+
# Serializes given Model object into Ruby Hash.
|
|
37
|
+
# @param object Model object to serialize.
|
|
38
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
|
39
|
+
#
|
|
40
|
+
def self.serialize_object(object)
|
|
41
|
+
object.validate
|
|
42
|
+
output_object = {}
|
|
43
|
+
|
|
44
|
+
serialized_property = object.data
|
|
45
|
+
output_object['data'] = serialized_property unless serialized_property.nil?
|
|
46
|
+
|
|
47
|
+
serialized_property = object.password
|
|
48
|
+
output_object['password'] = serialized_property unless serialized_property.nil?
|
|
49
|
+
|
|
50
|
+
serialized_property = object.public_cert_data
|
|
51
|
+
output_object['publicCertData'] = serialized_property unless serialized_property.nil?
|
|
52
|
+
|
|
53
|
+
serialized_property = object.provisioning_state
|
|
54
|
+
output_object['provisioningState'] = serialized_property unless serialized_property.nil?
|
|
55
|
+
|
|
56
|
+
output_object
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
#
|
|
60
|
+
# Deserializes given Ruby Hash into Model object.
|
|
61
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
|
62
|
+
# @return [ApplicationGatewaySslCertificatePropertiesFormat]
|
|
63
|
+
# Deserialized object.
|
|
64
|
+
#
|
|
65
|
+
def self.deserialize_object(object)
|
|
66
|
+
return if object.nil?
|
|
67
|
+
output_object = ApplicationGatewaySslCertificatePropertiesFormat.new
|
|
68
|
+
|
|
69
|
+
deserialized_property = object['data']
|
|
70
|
+
output_object.data = deserialized_property
|
|
71
|
+
|
|
72
|
+
deserialized_property = object['password']
|
|
73
|
+
output_object.password = deserialized_property
|
|
74
|
+
|
|
75
|
+
deserialized_property = object['publicCertData']
|
|
76
|
+
output_object.public_cert_data = deserialized_property
|
|
77
|
+
|
|
78
|
+
deserialized_property = object['provisioningState']
|
|
79
|
+
output_object.provisioning_state = deserialized_property
|
|
80
|
+
|
|
81
|
+
output_object.validate
|
|
82
|
+
|
|
83
|
+
output_object
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
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 ApplicationGatewayTier
|
|
10
|
+
#
|
|
11
|
+
module ApplicationGatewayTier
|
|
12
|
+
Standard = "Standard"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
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
|
+
# The response body contains the status of the specified asynchronous
|
|
10
|
+
# operation, indicating whether it has succeeded, is inprogress, or has
|
|
11
|
+
# failed. Note that this status is distinct from the HTTP status code
|
|
12
|
+
# returned for the Get Operation Status operation itself. If the
|
|
13
|
+
# asynchronous operation succeeded, the response body includes the HTTP
|
|
14
|
+
# status code for the successful request. If the asynchronous operation
|
|
15
|
+
# failed, the response body includes the HTTP status code for the failed
|
|
16
|
+
# request and error information regarding the failure.
|
|
17
|
+
#
|
|
18
|
+
class AzureAsyncOperationResult
|
|
19
|
+
|
|
20
|
+
include MsRestAzure
|
|
21
|
+
|
|
22
|
+
# @return [OperationStatus] Status of the AzureAsuncOperation. Possible
|
|
23
|
+
# values for this property include: 'InProgress', 'Succeeded', 'Failed'.
|
|
24
|
+
attr_accessor :status
|
|
25
|
+
|
|
26
|
+
# @return [Error]
|
|
27
|
+
attr_accessor :error
|
|
28
|
+
|
|
29
|
+
#
|
|
30
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
31
|
+
#
|
|
32
|
+
def validate
|
|
33
|
+
@error.validate unless @error.nil?
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
#
|
|
37
|
+
# Serializes given Model object into Ruby Hash.
|
|
38
|
+
# @param object Model object to serialize.
|
|
39
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
|
40
|
+
#
|
|
41
|
+
def self.serialize_object(object)
|
|
42
|
+
object.validate
|
|
43
|
+
output_object = {}
|
|
44
|
+
|
|
45
|
+
serialized_property = object.status
|
|
46
|
+
output_object['status'] = serialized_property unless serialized_property.nil?
|
|
47
|
+
|
|
48
|
+
serialized_property = object.error
|
|
49
|
+
unless serialized_property.nil?
|
|
50
|
+
serialized_property = Error.serialize_object(serialized_property)
|
|
51
|
+
end
|
|
52
|
+
output_object['error'] = 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 [AzureAsyncOperationResult] Deserialized object.
|
|
61
|
+
#
|
|
62
|
+
def self.deserialize_object(object)
|
|
63
|
+
return if object.nil?
|
|
64
|
+
output_object = AzureAsyncOperationResult.new
|
|
65
|
+
|
|
66
|
+
deserialized_property = object['status']
|
|
67
|
+
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
|
68
|
+
enum_is_valid = OperationStatus.constants.any? { |e| OperationStatus.const_get(e).to_s.downcase == deserialized_property.downcase }
|
|
69
|
+
fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
|
|
70
|
+
end
|
|
71
|
+
output_object.status = deserialized_property
|
|
72
|
+
|
|
73
|
+
deserialized_property = object['error']
|
|
74
|
+
unless deserialized_property.nil?
|
|
75
|
+
deserialized_property = Error.deserialize_object(deserialized_property)
|
|
76
|
+
end
|
|
77
|
+
output_object.error = deserialized_property
|
|
78
|
+
|
|
79
|
+
output_object.validate
|
|
80
|
+
|
|
81
|
+
output_object
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|