azure_mgmt_network 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. checksums.yaml +4 -4
  2. data/azure_mgmt_network.gemspec +4 -9
  3. data/lib/azure_mgmt_network.rb +100 -39
  4. data/lib/azure_mgmt_network/application_gateways.rb +175 -401
  5. data/lib/azure_mgmt_network/express_route_circuit_authorizations.rb +429 -0
  6. data/lib/azure_mgmt_network/express_route_circuit_peerings.rb +427 -0
  7. data/lib/azure_mgmt_network/express_route_circuits.rb +911 -0
  8. data/lib/azure_mgmt_network/express_route_service_providers.rb +149 -0
  9. data/lib/azure_mgmt_network/load_balancers.rb +139 -314
  10. data/lib/azure_mgmt_network/local_network_gateways.rb +102 -228
  11. data/lib/azure_mgmt_network/models/address_space.rb +1 -3
  12. data/lib/azure_mgmt_network/models/application_gateway.rb +7 -9
  13. data/lib/azure_mgmt_network/models/application_gateway_backend_address.rb +1 -3
  14. data/lib/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +1 -3
  15. data/lib/azure_mgmt_network/models/application_gateway_backend_address_pool_properties_format.rb +16 -18
  16. data/lib/azure_mgmt_network/models/application_gateway_backend_http_settings.rb +1 -3
  17. data/lib/azure_mgmt_network/models/application_gateway_backend_http_settings_properties_format.rb +32 -8
  18. data/lib/azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb +1 -1
  19. data/lib/azure_mgmt_network/models/{application_gateway_frontend_ip_configuration.rb → application_gateway_frontend_ipconfiguration.rb} +7 -9
  20. data/lib/azure_mgmt_network/models/{application_gateway_frontend_ip_configuration_properties_format.rb → application_gateway_frontend_ipconfiguration_properties_format.rb} +12 -15
  21. data/lib/azure_mgmt_network/models/application_gateway_frontend_port.rb +1 -3
  22. data/lib/azure_mgmt_network/models/application_gateway_frontend_port_properties_format.rb +1 -3
  23. data/lib/azure_mgmt_network/models/application_gateway_http_listener.rb +1 -3
  24. data/lib/azure_mgmt_network/models/application_gateway_http_listener_properties_format.rb +34 -17
  25. data/lib/azure_mgmt_network/models/{application_gateway_ip_configuration.rb → application_gateway_ipconfiguration.rb} +7 -9
  26. data/lib/azure_mgmt_network/models/{application_gateway_ip_configuration_properties_format.rb → application_gateway_ipconfiguration_properties_format.rb} +6 -8
  27. data/lib/azure_mgmt_network/models/application_gateway_list_result.rb +4 -6
  28. data/lib/azure_mgmt_network/models/application_gateway_operational_state.rb +1 -1
  29. data/lib/azure_mgmt_network/models/application_gateway_path_rule.rb +88 -0
  30. data/lib/azure_mgmt_network/models/application_gateway_path_rule_properties_format.rb +101 -0
  31. data/lib/azure_mgmt_network/models/application_gateway_probe.rb +88 -0
  32. data/lib/azure_mgmt_network/models/application_gateway_probe_properties_format.rb +118 -0
  33. data/lib/azure_mgmt_network/models/application_gateway_properties_format.rb +151 -81
  34. data/lib/azure_mgmt_network/models/application_gateway_protocol.rb +1 -1
  35. data/lib/azure_mgmt_network/models/application_gateway_request_routing_rule.rb +1 -3
  36. data/lib/azure_mgmt_network/models/application_gateway_request_routing_rule_properties_format.rb +26 -11
  37. data/lib/azure_mgmt_network/models/application_gateway_request_routing_rule_type.rb +2 -1
  38. data/lib/azure_mgmt_network/models/application_gateway_sku.rb +6 -8
  39. data/lib/azure_mgmt_network/models/application_gateway_sku_name.rb +1 -1
  40. data/lib/azure_mgmt_network/models/application_gateway_ssl_certificate.rb +1 -3
  41. data/lib/azure_mgmt_network/models/application_gateway_ssl_certificate_properties_format.rb +1 -3
  42. data/lib/azure_mgmt_network/models/application_gateway_tier.rb +1 -1
  43. data/lib/azure_mgmt_network/models/application_gateway_url_path_map.rb +88 -0
  44. data/lib/azure_mgmt_network/models/application_gateway_url_path_map_properties_format.rb +122 -0
  45. data/lib/azure_mgmt_network/models/authorization_list_result.rb +87 -0
  46. data/lib/azure_mgmt_network/models/authorization_properties_format.rb +79 -0
  47. data/lib/azure_mgmt_network/models/authorization_use_status.rb +16 -0
  48. data/lib/azure_mgmt_network/models/azure_async_operation_result.rb +5 -7
  49. data/lib/azure_mgmt_network/models/backend_address_pool.rb +1 -3
  50. data/lib/azure_mgmt_network/models/backend_address_pool_properties_format.rb +30 -15
  51. data/lib/azure_mgmt_network/models/connection_reset_shared_key.rb +10 -16
  52. data/lib/azure_mgmt_network/models/connection_shared_key.rb +1 -3
  53. data/lib/azure_mgmt_network/models/{connection_reset_shared_key_properties_format.rb → connection_shared_key_result.rb} +11 -15
  54. data/lib/azure_mgmt_network/models/dhcp_options.rb +1 -3
  55. data/lib/azure_mgmt_network/models/dns_name_availability_result.rb +1 -3
  56. data/lib/azure_mgmt_network/models/error.rb +4 -6
  57. data/lib/azure_mgmt_network/models/error_details.rb +1 -3
  58. data/lib/azure_mgmt_network/models/express_route_circuit.rb +118 -0
  59. data/lib/azure_mgmt_network/models/express_route_circuit_arp_table.rb +65 -0
  60. data/lib/azure_mgmt_network/models/express_route_circuit_authorization.rb +88 -0
  61. data/lib/azure_mgmt_network/models/express_route_circuit_list_result.rb +86 -0
  62. data/lib/azure_mgmt_network/models/express_route_circuit_peering.rb +88 -0
  63. data/lib/azure_mgmt_network/models/express_route_circuit_peering_advertised_public_prefix_state.rb +18 -0
  64. data/lib/azure_mgmt_network/models/express_route_circuit_peering_config.rb +92 -0
  65. data/lib/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb +87 -0
  66. data/lib/azure_mgmt_network/models/express_route_circuit_peering_properties_format.rb +194 -0
  67. data/lib/azure_mgmt_network/models/express_route_circuit_peering_state.rb +16 -0
  68. data/lib/azure_mgmt_network/models/express_route_circuit_peering_type.rb +17 -0
  69. data/lib/azure_mgmt_network/models/express_route_circuit_properties_format.rb +179 -0
  70. data/lib/azure_mgmt_network/models/express_route_circuit_routes_table.rb +89 -0
  71. data/lib/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb +76 -0
  72. data/lib/azure_mgmt_network/models/express_route_circuit_sku.rb +83 -0
  73. data/lib/azure_mgmt_network/models/express_route_circuit_sku_family.rb +16 -0
  74. data/lib/azure_mgmt_network/models/express_route_circuit_sku_tier.rb +16 -0
  75. data/lib/azure_mgmt_network/models/express_route_circuit_stats.rb +67 -0
  76. data/lib/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb +85 -0
  77. data/lib/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb +88 -0
  78. data/lib/azure_mgmt_network/models/express_route_circuits_stats_list_result.rb +85 -0
  79. data/lib/azure_mgmt_network/models/express_route_service_provider.rb +92 -0
  80. data/lib/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb +67 -0
  81. data/lib/azure_mgmt_network/models/express_route_service_provider_list_result.rb +86 -0
  82. data/lib/azure_mgmt_network/models/express_route_service_provider_properties_format.rb +97 -0
  83. data/lib/azure_mgmt_network/models/{frontend_ip_configuration.rb → frontend_ipconfiguration.rb} +7 -9
  84. data/lib/azure_mgmt_network/models/{frontend_ip_configuration_properties_format.rb → frontend_ipconfiguration_properties_format.rb} +133 -77
  85. data/lib/azure_mgmt_network/models/inbound_nat_pool.rb +88 -0
  86. data/lib/azure_mgmt_network/models/inbound_nat_pool_properties_format.rb +134 -0
  87. data/lib/azure_mgmt_network/models/inbound_nat_rule.rb +1 -3
  88. data/lib/azure_mgmt_network/models/inbound_nat_rule_properties_format.rb +11 -12
  89. data/lib/azure_mgmt_network/models/{ip_allocation_method.rb → ipallocation_method.rb} +3 -3
  90. data/lib/azure_mgmt_network/models/ipconfiguration.rb +88 -0
  91. data/lib/azure_mgmt_network/models/ipconfiguration_properties_format.rb +113 -0
  92. data/lib/azure_mgmt_network/models/load_balancer.rb +7 -9
  93. data/lib/azure_mgmt_network/models/load_balancer_list_result.rb +4 -6
  94. data/lib/azure_mgmt_network/models/load_balancer_properties_format.rb +103 -35
  95. data/lib/azure_mgmt_network/models/load_balancing_rule.rb +1 -3
  96. data/lib/azure_mgmt_network/models/load_balancing_rule_properties_format.rb +30 -30
  97. data/lib/azure_mgmt_network/models/load_distribution.rb +1 -1
  98. data/lib/azure_mgmt_network/models/local_network_gateway.rb +7 -9
  99. data/lib/azure_mgmt_network/models/local_network_gateway_list_result.rb +4 -6
  100. data/lib/azure_mgmt_network/models/local_network_gateway_properties_format.rb +11 -3
  101. data/lib/azure_mgmt_network/models/network_interface.rb +7 -9
  102. data/lib/azure_mgmt_network/models/network_interface_dns_settings.rb +1 -3
  103. data/lib/azure_mgmt_network/models/{network_interface_ip_configuration.rb → network_interface_ipconfiguration.rb} +7 -9
  104. data/lib/azure_mgmt_network/models/{network_interface_ip_configuration_properties_format.rb → network_interface_ipconfiguration_properties_format.rb} +70 -76
  105. data/lib/azure_mgmt_network/models/network_interface_list_result.rb +4 -6
  106. data/lib/azure_mgmt_network/models/network_interface_properties_format.rb +32 -14
  107. data/lib/azure_mgmt_network/models/{operation_status.rb → network_operation_status.rb} +3 -3
  108. data/lib/azure_mgmt_network/models/network_security_group.rb +7 -9
  109. data/lib/azure_mgmt_network/models/network_security_group_list_result.rb +4 -6
  110. data/lib/azure_mgmt_network/models/network_security_group_properties_format.rb +30 -22
  111. data/lib/azure_mgmt_network/models/outbound_nat_rule.rb +88 -0
  112. data/lib/azure_mgmt_network/models/outbound_nat_rule_properties_format.rb +117 -0
  113. data/lib/azure_mgmt_network/models/probe.rb +1 -3
  114. data/lib/azure_mgmt_network/models/probe_properties_format.rb +25 -26
  115. data/lib/azure_mgmt_network/models/probe_protocol.rb +1 -1
  116. data/lib/azure_mgmt_network/models/processor_architecture.rb +16 -0
  117. data/lib/azure_mgmt_network/models/{public_ip_address.rb → public_ipaddress.rb} +13 -15
  118. data/lib/azure_mgmt_network/models/{public_ip_address_dns_settings.rb → public_ipaddress_dns_settings.rb} +4 -6
  119. data/lib/azure_mgmt_network/models/{public_ip_address_list_result.rb → public_ipaddress_list_result.rb} +10 -12
  120. data/lib/azure_mgmt_network/models/{public_ip_address_properties_format.rb → public_ipaddress_properties_format.rb} +25 -19
  121. data/lib/azure_mgmt_network/models/route.rb +88 -0
  122. data/lib/azure_mgmt_network/models/route_list_result.rb +85 -0
  123. data/lib/azure_mgmt_network/models/route_next_hop_type.rb +19 -0
  124. data/lib/azure_mgmt_network/models/route_properties_format.rb +94 -0
  125. data/lib/azure_mgmt_network/models/route_table.rb +102 -0
  126. data/lib/azure_mgmt_network/models/route_table_list_result.rb +86 -0
  127. data/lib/azure_mgmt_network/models/route_table_properties_format.rb +116 -0
  128. data/lib/azure_mgmt_network/models/security_rule.rb +1 -3
  129. data/lib/azure_mgmt_network/models/security_rule_access.rb +1 -1
  130. data/lib/azure_mgmt_network/models/security_rule_direction.rb +1 -1
  131. data/lib/azure_mgmt_network/models/security_rule_list_result.rb +4 -6
  132. data/lib/azure_mgmt_network/models/security_rule_properties_format.rb +50 -48
  133. data/lib/azure_mgmt_network/models/security_rule_protocol.rb +1 -1
  134. data/lib/azure_mgmt_network/models/service_provider_provisioning_state.rb +18 -0
  135. data/lib/azure_mgmt_network/models/subnet.rb +1 -3
  136. data/lib/azure_mgmt_network/models/subnet_list_result.rb +4 -6
  137. data/lib/azure_mgmt_network/models/subnet_properties_format.rb +28 -13
  138. data/lib/azure_mgmt_network/models/transport_protocol.rb +1 -1
  139. data/lib/azure_mgmt_network/models/usage.rb +7 -5
  140. data/lib/azure_mgmt_network/models/usage_name.rb +1 -3
  141. data/lib/azure_mgmt_network/models/usage_unit.rb +1 -1
  142. data/lib/azure_mgmt_network/models/usages_list_result.rb +4 -6
  143. data/lib/azure_mgmt_network/models/virtual_network.rb +7 -9
  144. data/lib/azure_mgmt_network/models/virtual_network_gateway.rb +7 -9
  145. data/lib/azure_mgmt_network/models/virtual_network_gateway_connection.rb +7 -9
  146. data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb +4 -6
  147. data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_properties_format.rb +74 -6
  148. data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_status.rb +18 -0
  149. data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_type.rb +1 -1
  150. data/lib/azure_mgmt_network/models/{virtual_network_gateway_ip_configuration.rb → virtual_network_gateway_ipconfiguration.rb} +7 -9
  151. data/lib/azure_mgmt_network/models/{virtual_network_gateway_ip_configuration_properties_format.rb → virtual_network_gateway_ipconfiguration_properties_format.rb} +14 -17
  152. data/lib/azure_mgmt_network/models/virtual_network_gateway_list_result.rb +4 -6
  153. data/lib/azure_mgmt_network/models/virtual_network_gateway_properties_format.rb +76 -13
  154. data/lib/azure_mgmt_network/models/virtual_network_gateway_sku.rb +86 -0
  155. data/lib/azure_mgmt_network/models/virtual_network_gateway_sku_name.rb +17 -0
  156. data/lib/azure_mgmt_network/models/virtual_network_gateway_sku_tier.rb +17 -0
  157. data/lib/azure_mgmt_network/models/virtual_network_gateway_type.rb +2 -1
  158. data/lib/azure_mgmt_network/models/virtual_network_list_result.rb +4 -6
  159. data/lib/azure_mgmt_network/models/virtual_network_properties_format.rb +14 -6
  160. data/lib/azure_mgmt_network/models/vpn_client_configuration.rb +125 -0
  161. data/lib/azure_mgmt_network/models/vpn_client_parameters.rb +60 -0
  162. data/lib/azure_mgmt_network/models/vpn_client_revoked_certificate.rb +88 -0
  163. data/lib/azure_mgmt_network/models/vpn_client_revoked_certificate_properties_format.rb +69 -0
  164. data/lib/azure_mgmt_network/models/vpn_client_root_certificate.rb +88 -0
  165. data/lib/azure_mgmt_network/models/vpn_client_root_certificate_properties_format.rb +66 -0
  166. data/lib/azure_mgmt_network/models/vpn_type.rb +1 -1
  167. data/lib/azure_mgmt_network/module_definition.rb +5 -3
  168. data/lib/azure_mgmt_network/network_interfaces.rb +451 -304
  169. data/lib/azure_mgmt_network/{network_resource_provider_client.rb → network_management_client.rb} +61 -57
  170. data/lib/azure_mgmt_network/network_security_groups.rb +139 -314
  171. data/lib/azure_mgmt_network/public_ipaddresses.rb +536 -0
  172. data/lib/azure_mgmt_network/route_tables.rb +532 -0
  173. data/lib/azure_mgmt_network/routes.rb +423 -0
  174. data/lib/azure_mgmt_network/security_rules.rb +102 -232
  175. data/lib/azure_mgmt_network/subnets.rb +104 -233
  176. data/lib/azure_mgmt_network/usages.rb +79 -43
  177. data/lib/azure_mgmt_network/version.rb +5 -3
  178. data/lib/azure_mgmt_network/virtual_network_gateway_connections.rb +262 -467
  179. data/lib/azure_mgmt_network/virtual_network_gateways.rb +204 -280
  180. data/lib/azure_mgmt_network/virtual_networks.rb +139 -314
  181. metadata +92 -106
  182. data/.gitignore +0 -10
  183. data/.travis.yml +0 -3
  184. data/Gemfile +0 -15
  185. data/lib/azure_mgmt_network/public_ip_addresses.rb +0 -711
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_network
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-07 00:00:00.000000000 Z
11
+ date: 2016-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,120 +72,45 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0.1'
75
+ version: '0.2'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0.1'
83
- - !ruby/object:Gem::Dependency
84
- name: json
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '1.8'
90
- type: :runtime
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '1.8'
97
- - !ruby/object:Gem::Dependency
98
- name: concurrent-ruby
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: 1.0.0.pre1
104
- - - "<"
105
- - !ruby/object:Gem::Version
106
- version: '2'
107
- type: :runtime
108
- prerelease: false
109
- version_requirements: !ruby/object:Gem::Requirement
110
- requirements:
111
- - - ">="
112
- - !ruby/object:Gem::Version
113
- version: 1.0.0.pre1
114
- - - "<"
115
- - !ruby/object:Gem::Version
116
- version: '2'
117
- - !ruby/object:Gem::Dependency
118
- name: faraday
119
- requirement: !ruby/object:Gem::Requirement
120
- requirements:
121
- - - "~>"
122
- - !ruby/object:Gem::Version
123
- version: '0.9'
124
- type: :runtime
125
- prerelease: false
126
- version_requirements: !ruby/object:Gem::Requirement
127
- requirements:
128
- - - "~>"
129
- - !ruby/object:Gem::Version
130
- version: '0.9'
131
- - !ruby/object:Gem::Dependency
132
- name: faraday-cookie_jar
133
- requirement: !ruby/object:Gem::Requirement
134
- requirements:
135
- - - "~>"
136
- - !ruby/object:Gem::Version
137
- version: 0.0.6
138
- type: :runtime
139
- prerelease: false
140
- version_requirements: !ruby/object:Gem::Requirement
141
- requirements:
142
- - - "~>"
143
- - !ruby/object:Gem::Version
144
- version: 0.0.6
82
+ version: '0.2'
145
83
  - !ruby/object:Gem::Dependency
146
84
  name: ms_rest_azure
147
85
  requirement: !ruby/object:Gem::Requirement
148
86
  requirements:
149
87
  - - "~>"
150
88
  - !ruby/object:Gem::Version
151
- version: 0.1.0
152
- type: :runtime
153
- prerelease: false
154
- version_requirements: !ruby/object:Gem::Requirement
155
- requirements:
156
- - - "~>"
157
- - !ruby/object:Gem::Version
158
- version: 0.1.0
159
- - !ruby/object:Gem::Dependency
160
- name: ms_rest
161
- requirement: !ruby/object:Gem::Requirement
162
- requirements:
163
- - - "~>"
164
- - !ruby/object:Gem::Version
165
- version: 0.1.0
89
+ version: 0.2.0
166
90
  type: :runtime
167
91
  prerelease: false
168
92
  version_requirements: !ruby/object:Gem::Requirement
169
93
  requirements:
170
94
  - - "~>"
171
95
  - !ruby/object:Gem::Version
172
- version: 0.1.0
96
+ version: 0.2.0
173
97
  description: Microsoft Azure Network Management Client Library for Ruby
174
- email: azsdkteam@microsoft.com
98
+ email: azrubyteam@microsoft.com
175
99
  executables: []
176
100
  extensions: []
177
101
  extra_rdoc_files: []
178
102
  files:
179
- - ".gitignore"
180
103
  - ".rspec"
181
- - ".travis.yml"
182
- - Gemfile
183
104
  - LICENSE.txt
184
105
  - README.md
185
106
  - Rakefile
186
107
  - azure_mgmt_network.gemspec
187
108
  - lib/azure_mgmt_network.rb
188
109
  - lib/azure_mgmt_network/application_gateways.rb
110
+ - lib/azure_mgmt_network/express_route_circuit_authorizations.rb
111
+ - lib/azure_mgmt_network/express_route_circuit_peerings.rb
112
+ - lib/azure_mgmt_network/express_route_circuits.rb
113
+ - lib/azure_mgmt_network/express_route_service_providers.rb
189
114
  - lib/azure_mgmt_network/load_balancers.rb
190
115
  - lib/azure_mgmt_network/local_network_gateways.rb
191
116
  - lib/azure_mgmt_network/models/address_space.rb
@@ -196,16 +121,20 @@ files:
196
121
  - lib/azure_mgmt_network/models/application_gateway_backend_http_settings.rb
197
122
  - lib/azure_mgmt_network/models/application_gateway_backend_http_settings_properties_format.rb
198
123
  - lib/azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb
199
- - lib/azure_mgmt_network/models/application_gateway_frontend_ip_configuration.rb
200
- - lib/azure_mgmt_network/models/application_gateway_frontend_ip_configuration_properties_format.rb
124
+ - lib/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb
125
+ - lib/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration_properties_format.rb
201
126
  - lib/azure_mgmt_network/models/application_gateway_frontend_port.rb
202
127
  - lib/azure_mgmt_network/models/application_gateway_frontend_port_properties_format.rb
203
128
  - lib/azure_mgmt_network/models/application_gateway_http_listener.rb
204
129
  - lib/azure_mgmt_network/models/application_gateway_http_listener_properties_format.rb
205
- - lib/azure_mgmt_network/models/application_gateway_ip_configuration.rb
206
- - lib/azure_mgmt_network/models/application_gateway_ip_configuration_properties_format.rb
130
+ - lib/azure_mgmt_network/models/application_gateway_ipconfiguration.rb
131
+ - lib/azure_mgmt_network/models/application_gateway_ipconfiguration_properties_format.rb
207
132
  - lib/azure_mgmt_network/models/application_gateway_list_result.rb
208
133
  - lib/azure_mgmt_network/models/application_gateway_operational_state.rb
134
+ - lib/azure_mgmt_network/models/application_gateway_path_rule.rb
135
+ - lib/azure_mgmt_network/models/application_gateway_path_rule_properties_format.rb
136
+ - lib/azure_mgmt_network/models/application_gateway_probe.rb
137
+ - lib/azure_mgmt_network/models/application_gateway_probe_properties_format.rb
209
138
  - lib/azure_mgmt_network/models/application_gateway_properties_format.rb
210
139
  - lib/azure_mgmt_network/models/application_gateway_protocol.rb
211
140
  - lib/azure_mgmt_network/models/application_gateway_request_routing_rule.rb
@@ -216,21 +145,55 @@ files:
216
145
  - lib/azure_mgmt_network/models/application_gateway_ssl_certificate.rb
217
146
  - lib/azure_mgmt_network/models/application_gateway_ssl_certificate_properties_format.rb
218
147
  - lib/azure_mgmt_network/models/application_gateway_tier.rb
148
+ - lib/azure_mgmt_network/models/application_gateway_url_path_map.rb
149
+ - lib/azure_mgmt_network/models/application_gateway_url_path_map_properties_format.rb
150
+ - lib/azure_mgmt_network/models/authorization_list_result.rb
151
+ - lib/azure_mgmt_network/models/authorization_properties_format.rb
152
+ - lib/azure_mgmt_network/models/authorization_use_status.rb
219
153
  - lib/azure_mgmt_network/models/azure_async_operation_result.rb
220
154
  - lib/azure_mgmt_network/models/backend_address_pool.rb
221
155
  - lib/azure_mgmt_network/models/backend_address_pool_properties_format.rb
222
156
  - lib/azure_mgmt_network/models/connection_reset_shared_key.rb
223
- - lib/azure_mgmt_network/models/connection_reset_shared_key_properties_format.rb
224
157
  - lib/azure_mgmt_network/models/connection_shared_key.rb
158
+ - lib/azure_mgmt_network/models/connection_shared_key_result.rb
225
159
  - lib/azure_mgmt_network/models/dhcp_options.rb
226
160
  - lib/azure_mgmt_network/models/dns_name_availability_result.rb
227
161
  - lib/azure_mgmt_network/models/error.rb
228
162
  - lib/azure_mgmt_network/models/error_details.rb
229
- - lib/azure_mgmt_network/models/frontend_ip_configuration.rb
230
- - lib/azure_mgmt_network/models/frontend_ip_configuration_properties_format.rb
163
+ - lib/azure_mgmt_network/models/express_route_circuit.rb
164
+ - lib/azure_mgmt_network/models/express_route_circuit_arp_table.rb
165
+ - lib/azure_mgmt_network/models/express_route_circuit_authorization.rb
166
+ - lib/azure_mgmt_network/models/express_route_circuit_list_result.rb
167
+ - lib/azure_mgmt_network/models/express_route_circuit_peering.rb
168
+ - lib/azure_mgmt_network/models/express_route_circuit_peering_advertised_public_prefix_state.rb
169
+ - lib/azure_mgmt_network/models/express_route_circuit_peering_config.rb
170
+ - lib/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb
171
+ - lib/azure_mgmt_network/models/express_route_circuit_peering_properties_format.rb
172
+ - lib/azure_mgmt_network/models/express_route_circuit_peering_state.rb
173
+ - lib/azure_mgmt_network/models/express_route_circuit_peering_type.rb
174
+ - lib/azure_mgmt_network/models/express_route_circuit_properties_format.rb
175
+ - lib/azure_mgmt_network/models/express_route_circuit_routes_table.rb
176
+ - lib/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb
177
+ - lib/azure_mgmt_network/models/express_route_circuit_sku.rb
178
+ - lib/azure_mgmt_network/models/express_route_circuit_sku_family.rb
179
+ - lib/azure_mgmt_network/models/express_route_circuit_sku_tier.rb
180
+ - lib/azure_mgmt_network/models/express_route_circuit_stats.rb
181
+ - lib/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb
182
+ - lib/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb
183
+ - lib/azure_mgmt_network/models/express_route_circuits_stats_list_result.rb
184
+ - lib/azure_mgmt_network/models/express_route_service_provider.rb
185
+ - lib/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb
186
+ - lib/azure_mgmt_network/models/express_route_service_provider_list_result.rb
187
+ - lib/azure_mgmt_network/models/express_route_service_provider_properties_format.rb
188
+ - lib/azure_mgmt_network/models/frontend_ipconfiguration.rb
189
+ - lib/azure_mgmt_network/models/frontend_ipconfiguration_properties_format.rb
190
+ - lib/azure_mgmt_network/models/inbound_nat_pool.rb
191
+ - lib/azure_mgmt_network/models/inbound_nat_pool_properties_format.rb
231
192
  - lib/azure_mgmt_network/models/inbound_nat_rule.rb
232
193
  - lib/azure_mgmt_network/models/inbound_nat_rule_properties_format.rb
233
- - lib/azure_mgmt_network/models/ip_allocation_method.rb
194
+ - lib/azure_mgmt_network/models/ipallocation_method.rb
195
+ - lib/azure_mgmt_network/models/ipconfiguration.rb
196
+ - lib/azure_mgmt_network/models/ipconfiguration_properties_format.rb
234
197
  - lib/azure_mgmt_network/models/load_balancer.rb
235
198
  - lib/azure_mgmt_network/models/load_balancer_list_result.rb
236
199
  - lib/azure_mgmt_network/models/load_balancer_properties_format.rb
@@ -242,27 +205,38 @@ files:
242
205
  - lib/azure_mgmt_network/models/local_network_gateway_properties_format.rb
243
206
  - lib/azure_mgmt_network/models/network_interface.rb
244
207
  - lib/azure_mgmt_network/models/network_interface_dns_settings.rb
245
- - lib/azure_mgmt_network/models/network_interface_ip_configuration.rb
246
- - lib/azure_mgmt_network/models/network_interface_ip_configuration_properties_format.rb
208
+ - lib/azure_mgmt_network/models/network_interface_ipconfiguration.rb
209
+ - lib/azure_mgmt_network/models/network_interface_ipconfiguration_properties_format.rb
247
210
  - lib/azure_mgmt_network/models/network_interface_list_result.rb
248
211
  - lib/azure_mgmt_network/models/network_interface_properties_format.rb
212
+ - lib/azure_mgmt_network/models/network_operation_status.rb
249
213
  - lib/azure_mgmt_network/models/network_security_group.rb
250
214
  - lib/azure_mgmt_network/models/network_security_group_list_result.rb
251
215
  - lib/azure_mgmt_network/models/network_security_group_properties_format.rb
252
- - lib/azure_mgmt_network/models/operation_status.rb
216
+ - lib/azure_mgmt_network/models/outbound_nat_rule.rb
217
+ - lib/azure_mgmt_network/models/outbound_nat_rule_properties_format.rb
253
218
  - lib/azure_mgmt_network/models/probe.rb
254
219
  - lib/azure_mgmt_network/models/probe_properties_format.rb
255
220
  - lib/azure_mgmt_network/models/probe_protocol.rb
256
- - lib/azure_mgmt_network/models/public_ip_address.rb
257
- - lib/azure_mgmt_network/models/public_ip_address_dns_settings.rb
258
- - lib/azure_mgmt_network/models/public_ip_address_list_result.rb
259
- - lib/azure_mgmt_network/models/public_ip_address_properties_format.rb
221
+ - lib/azure_mgmt_network/models/processor_architecture.rb
222
+ - lib/azure_mgmt_network/models/public_ipaddress.rb
223
+ - lib/azure_mgmt_network/models/public_ipaddress_dns_settings.rb
224
+ - lib/azure_mgmt_network/models/public_ipaddress_list_result.rb
225
+ - lib/azure_mgmt_network/models/public_ipaddress_properties_format.rb
226
+ - lib/azure_mgmt_network/models/route.rb
227
+ - lib/azure_mgmt_network/models/route_list_result.rb
228
+ - lib/azure_mgmt_network/models/route_next_hop_type.rb
229
+ - lib/azure_mgmt_network/models/route_properties_format.rb
230
+ - lib/azure_mgmt_network/models/route_table.rb
231
+ - lib/azure_mgmt_network/models/route_table_list_result.rb
232
+ - lib/azure_mgmt_network/models/route_table_properties_format.rb
260
233
  - lib/azure_mgmt_network/models/security_rule.rb
261
234
  - lib/azure_mgmt_network/models/security_rule_access.rb
262
235
  - lib/azure_mgmt_network/models/security_rule_direction.rb
263
236
  - lib/azure_mgmt_network/models/security_rule_list_result.rb
264
237
  - lib/azure_mgmt_network/models/security_rule_properties_format.rb
265
238
  - lib/azure_mgmt_network/models/security_rule_protocol.rb
239
+ - lib/azure_mgmt_network/models/service_provider_provisioning_state.rb
266
240
  - lib/azure_mgmt_network/models/subnet.rb
267
241
  - lib/azure_mgmt_network/models/subnet_list_result.rb
268
242
  - lib/azure_mgmt_network/models/subnet_properties_format.rb
@@ -276,20 +250,32 @@ files:
276
250
  - lib/azure_mgmt_network/models/virtual_network_gateway_connection.rb
277
251
  - lib/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb
278
252
  - lib/azure_mgmt_network/models/virtual_network_gateway_connection_properties_format.rb
253
+ - lib/azure_mgmt_network/models/virtual_network_gateway_connection_status.rb
279
254
  - lib/azure_mgmt_network/models/virtual_network_gateway_connection_type.rb
280
- - lib/azure_mgmt_network/models/virtual_network_gateway_ip_configuration.rb
281
- - lib/azure_mgmt_network/models/virtual_network_gateway_ip_configuration_properties_format.rb
255
+ - lib/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration.rb
256
+ - lib/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration_properties_format.rb
282
257
  - lib/azure_mgmt_network/models/virtual_network_gateway_list_result.rb
283
258
  - lib/azure_mgmt_network/models/virtual_network_gateway_properties_format.rb
259
+ - lib/azure_mgmt_network/models/virtual_network_gateway_sku.rb
260
+ - lib/azure_mgmt_network/models/virtual_network_gateway_sku_name.rb
261
+ - lib/azure_mgmt_network/models/virtual_network_gateway_sku_tier.rb
284
262
  - lib/azure_mgmt_network/models/virtual_network_gateway_type.rb
285
263
  - lib/azure_mgmt_network/models/virtual_network_list_result.rb
286
264
  - lib/azure_mgmt_network/models/virtual_network_properties_format.rb
265
+ - lib/azure_mgmt_network/models/vpn_client_configuration.rb
266
+ - lib/azure_mgmt_network/models/vpn_client_parameters.rb
267
+ - lib/azure_mgmt_network/models/vpn_client_revoked_certificate.rb
268
+ - lib/azure_mgmt_network/models/vpn_client_revoked_certificate_properties_format.rb
269
+ - lib/azure_mgmt_network/models/vpn_client_root_certificate.rb
270
+ - lib/azure_mgmt_network/models/vpn_client_root_certificate_properties_format.rb
287
271
  - lib/azure_mgmt_network/models/vpn_type.rb
288
272
  - lib/azure_mgmt_network/module_definition.rb
289
273
  - lib/azure_mgmt_network/network_interfaces.rb
290
- - lib/azure_mgmt_network/network_resource_provider_client.rb
274
+ - lib/azure_mgmt_network/network_management_client.rb
291
275
  - lib/azure_mgmt_network/network_security_groups.rb
292
- - lib/azure_mgmt_network/public_ip_addresses.rb
276
+ - lib/azure_mgmt_network/public_ipaddresses.rb
277
+ - lib/azure_mgmt_network/route_tables.rb
278
+ - lib/azure_mgmt_network/routes.rb
293
279
  - lib/azure_mgmt_network/security_rules.rb
294
280
  - lib/azure_mgmt_network/subnets.rb
295
281
  - lib/azure_mgmt_network/usages.rb
@@ -320,6 +306,6 @@ rubyforge_project:
320
306
  rubygems_version: 2.4.6
321
307
  signing_key:
322
308
  specification_version: 4
323
- summary: Official ruby client library to consume Microsoft Azure Network Management
309
+ summary: Official Ruby client library to consume Microsoft Azure Network Management
324
310
  services.
325
311
  test_files: []
data/.gitignore DELETED
@@ -1,10 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /resource_management/azure_mgmt_network/spec/reports/
9
- /tmp/
10
- /.idea/
data/.travis.yml DELETED
@@ -1,3 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.1.5
data/Gemfile DELETED
@@ -1,15 +0,0 @@
1
- # encoding: utf-8
2
- # Copyright (c) Microsoft Corporation. All rights reserved.
3
- # Licensed under the MIT License. See License.txt in the project root for license information.
4
-
5
- source 'https://rubygems.org'
6
-
7
- gemspec
8
-
9
- group :development do
10
- gem 'azure_mgmt_resources', path: '../azure_mgmt_resources'
11
- end
12
-
13
- group :test do
14
- gem 'rspec'
15
- end
@@ -1,711 +0,0 @@
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
- #
8
- # PublicIpAddresses
9
- #
10
- class PublicIpAddresses
11
- include Azure::ARM::Network::Models
12
- include MsRestAzure
13
-
14
- #
15
- # Creates and initializes a new instance of the PublicIpAddresses class.
16
- # @param client service class for accessing basic functionality.
17
- #
18
- def initialize(client)
19
- @client = client
20
- end
21
-
22
- # @return reference to the NetworkResourceProviderClient
23
- attr_reader :client
24
-
25
- #
26
- # The delete publicIpAddress operation deletes the specified publicIpAddress.
27
- # @param resource_group_name [String] The name of the resource group.
28
- # @param public_ip_address_name [String] The name of the subnet.
29
- # @return [Concurrent::Promise] promise which provides async access to http
30
- # response.
31
- #
32
- def delete(resource_group_name, public_ip_address_name, custom_headers = nil)
33
- # Send request
34
- promise = begin_delete(resource_group_name, public_ip_address_name, custom_headers)
35
-
36
- promise = promise.then do |response|
37
- # Defining deserialization method.
38
- deserialize_method = lambda do |parsed_response|
39
- end
40
-
41
- # Waiting for response.
42
- @client.get_post_or_delete_operation_result(response, nil, deserialize_method)
43
- end
44
-
45
- promise
46
- end
47
-
48
- #
49
- # The delete publicIpAddress operation deletes the specified publicIpAddress.
50
- # @param resource_group_name [String] The name of the resource group.
51
- # @param public_ip_address_name [String] The name of the subnet.
52
- # @param [Hash{String => String}] The hash of custom headers need to be
53
- # applied to HTTP request.
54
- #
55
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
56
- # response.
57
- #
58
- def begin_delete(resource_group_name, public_ip_address_name, custom_headers = nil)
59
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
60
- fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil?
61
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
62
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
63
- # Construct URL
64
- path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}/"
65
- path['{resourceGroupName}'] = ERB::Util.url_encode(resource_group_name) if path.include?('{resourceGroupName}')
66
- path['{publicIpAddressName}'] = ERB::Util.url_encode(public_ip_address_name) if path.include?('{publicIpAddressName}')
67
- path['{subscriptionId}'] = ERB::Util.url_encode(@client.subscription_id) if path.include?('{subscriptionId}')
68
- url = URI.join(@client.base_url, path)
69
- properties = {}
70
- properties['api-version'] = ERB::Util.url_encode(@client.api_version.to_s) unless @client.api_version.nil?
71
- unless url.query.nil?
72
- url.query.split('&').each do |url_item|
73
- url_items_parts = url_item.split('=')
74
- properties[url_items_parts[0]] = url_items_parts[1]
75
- end
76
- end
77
- properties.reject!{ |key, value| value.nil? }
78
- url.query = properties.map{ |key, value| "#{key}=#{value}" }.compact.join('&')
79
- fail URI::Error unless url.to_s =~ /\A#{URI::regexp}\z/
80
- corrected_url = url.to_s.gsub(/([^:])\/\//, '\1/')
81
- url = URI.parse(corrected_url)
82
-
83
- connection = Faraday.new(:url => url) do |faraday|
84
- faraday.use MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02
85
- faraday.use :cookie_jar
86
- faraday.adapter Faraday.default_adapter
87
- end
88
- request_headers = Hash.new
89
-
90
- # Set Headers
91
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
92
- request_headers["accept-language"] = @client.accept_language unless @client.accept_language.nil?
93
-
94
- unless custom_headers.nil?
95
- custom_headers.each do |key, value|
96
- request_headers[key] = value
97
- end
98
- end
99
-
100
- # Send Request
101
- promise = Concurrent::Promise.new do
102
- connection.delete do |request|
103
- request.headers = request_headers
104
- @client.credentials.sign_request(request) unless @client.credentials.nil?
105
- end
106
- end
107
-
108
- promise = promise.then do |http_response|
109
- status_code = http_response.status
110
- response_content = http_response.body
111
- unless (status_code == 202 || status_code == 204 || status_code == 200)
112
- fail MsRestAzure::AzureOperationError.new(connection, http_response)
113
- end
114
-
115
- # Create Result
116
- result = MsRestAzure::AzureOperationResponse.new(connection, http_response)
117
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
118
-
119
- result
120
- end
121
-
122
- promise.execute
123
- end
124
-
125
- #
126
- # The Get publicIpAddress operation retreives information about the specified
127
- # pubicIpAddress
128
- # @param resource_group_name [String] The name of the resource group.
129
- # @param public_ip_address_name [String] The name of the subnet.
130
- # @param [Hash{String => String}] The hash of custom headers need to be
131
- # applied to HTTP request.
132
- #
133
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
134
- # response.
135
- #
136
- def get(resource_group_name, public_ip_address_name, custom_headers = nil)
137
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
138
- fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil?
139
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
140
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
141
- # Construct URL
142
- path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}/"
143
- path['{resourceGroupName}'] = ERB::Util.url_encode(resource_group_name) if path.include?('{resourceGroupName}')
144
- path['{publicIpAddressName}'] = ERB::Util.url_encode(public_ip_address_name) if path.include?('{publicIpAddressName}')
145
- path['{subscriptionId}'] = ERB::Util.url_encode(@client.subscription_id) if path.include?('{subscriptionId}')
146
- url = URI.join(@client.base_url, path)
147
- properties = {}
148
- properties['api-version'] = ERB::Util.url_encode(@client.api_version.to_s) unless @client.api_version.nil?
149
- unless url.query.nil?
150
- url.query.split('&').each do |url_item|
151
- url_items_parts = url_item.split('=')
152
- properties[url_items_parts[0]] = url_items_parts[1]
153
- end
154
- end
155
- properties.reject!{ |key, value| value.nil? }
156
- url.query = properties.map{ |key, value| "#{key}=#{value}" }.compact.join('&')
157
- fail URI::Error unless url.to_s =~ /\A#{URI::regexp}\z/
158
- corrected_url = url.to_s.gsub(/([^:])\/\//, '\1/')
159
- url = URI.parse(corrected_url)
160
-
161
- connection = Faraday.new(:url => url) do |faraday|
162
- faraday.use MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02
163
- faraday.use :cookie_jar
164
- faraday.adapter Faraday.default_adapter
165
- end
166
- request_headers = Hash.new
167
-
168
- # Set Headers
169
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
170
- request_headers["accept-language"] = @client.accept_language unless @client.accept_language.nil?
171
-
172
- unless custom_headers.nil?
173
- custom_headers.each do |key, value|
174
- request_headers[key] = value
175
- end
176
- end
177
-
178
- # Send Request
179
- promise = Concurrent::Promise.new do
180
- connection.get do |request|
181
- request.headers = request_headers
182
- @client.credentials.sign_request(request) unless @client.credentials.nil?
183
- end
184
- end
185
-
186
- promise = promise.then do |http_response|
187
- status_code = http_response.status
188
- response_content = http_response.body
189
- unless (status_code == 200)
190
- error_model = JSON.load(response_content)
191
- fail MsRestAzure::AzureOperationError.new(connection, http_response, error_model)
192
- end
193
-
194
- # Create Result
195
- result = MsRestAzure::AzureOperationResponse.new(connection, http_response)
196
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
197
- # Deserialize Response
198
- if status_code == 200
199
- begin
200
- parsed_response = JSON.load(response_content) unless response_content.to_s.empty?
201
- unless parsed_response.nil?
202
- parsed_response = PublicIpAddress.deserialize_object(parsed_response)
203
- end
204
- result.body = parsed_response
205
- rescue Exception => e
206
- fail MsRest::DeserializationError.new("Error occured in deserializing the response", e.message, e.backtrace, response_content)
207
- end
208
- end
209
-
210
- result
211
- end
212
-
213
- promise.execute
214
- end
215
-
216
- #
217
- # The Put PublicIPAddress operation creates/updates a stable/dynamic PublicIP
218
- # address
219
- # @param resource_group_name [String] The name of the resource group.
220
- # @param public_ip_address_name [String] The name of the publicIpAddress.
221
- # @param parameters [PublicIpAddress] Parameters supplied to the create/update
222
- # PublicIPAddress operation
223
- # @param @client.api_version [String] Client Api Version.
224
- # @param @client.subscription_id [String] Gets subscription credentials which
225
- # uniquely identify Microsoft Azure subscription. The subscription ID forms
226
- # part of the URI for every service call.
227
- # @param @client.accept_language [String] Gets or sets the preferred language
228
- # for the response.
229
- #
230
- # @return [Concurrent::Promise] promise which provides async access to http
231
- # response.
232
- #
233
- def create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers = nil)
234
- # Send request
235
- promise = begin_create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers)
236
-
237
- promise = promise.then do |response|
238
- # Defining deserialization method.
239
- deserialize_method = lambda do |parsed_response|
240
- unless parsed_response.nil?
241
- parsed_response = PublicIpAddress.deserialize_object(parsed_response)
242
- end
243
- end
244
-
245
- # Waiting for response.
246
- @client.get_put_operation_result(response, custom_headers, deserialize_method)
247
- end
248
-
249
- promise
250
- end
251
-
252
- #
253
- # The Put PublicIPAddress operation creates/updates a stable/dynamic PublicIP
254
- # address
255
- # @param resource_group_name [String] The name of the resource group.
256
- # @param public_ip_address_name [String] The name of the publicIpAddress.
257
- # @param parameters [PublicIpAddress] Parameters supplied to the create/update
258
- # PublicIPAddress operation
259
- # @param [Hash{String => String}] The hash of custom headers need to be
260
- # applied to HTTP request.
261
- #
262
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
263
- # response.
264
- #
265
- def begin_create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers = nil)
266
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
267
- fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil?
268
- fail ArgumentError, 'parameters is nil' if parameters.nil?
269
- parameters.validate unless parameters.nil?
270
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
271
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
272
- # Construct URL
273
- path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}/"
274
- path['{resourceGroupName}'] = ERB::Util.url_encode(resource_group_name) if path.include?('{resourceGroupName}')
275
- path['{publicIpAddressName}'] = ERB::Util.url_encode(public_ip_address_name) if path.include?('{publicIpAddressName}')
276
- path['{subscriptionId}'] = ERB::Util.url_encode(@client.subscription_id) if path.include?('{subscriptionId}')
277
- url = URI.join(@client.base_url, path)
278
- properties = {}
279
- properties['api-version'] = ERB::Util.url_encode(@client.api_version.to_s) unless @client.api_version.nil?
280
- unless url.query.nil?
281
- url.query.split('&').each do |url_item|
282
- url_items_parts = url_item.split('=')
283
- properties[url_items_parts[0]] = url_items_parts[1]
284
- end
285
- end
286
- properties.reject!{ |key, value| value.nil? }
287
- url.query = properties.map{ |key, value| "#{key}=#{value}" }.compact.join('&')
288
- fail URI::Error unless url.to_s =~ /\A#{URI::regexp}\z/
289
- corrected_url = url.to_s.gsub(/([^:])\/\//, '\1/')
290
- url = URI.parse(corrected_url)
291
-
292
- connection = Faraday.new(:url => url) do |faraday|
293
- faraday.use MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02
294
- faraday.use :cookie_jar
295
- faraday.adapter Faraday.default_adapter
296
- end
297
- request_headers = Hash.new
298
-
299
- # Set Headers
300
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
301
- request_headers["accept-language"] = @client.accept_language unless @client.accept_language.nil?
302
-
303
- unless custom_headers.nil?
304
- custom_headers.each do |key, value|
305
- request_headers[key] = value
306
- end
307
- end
308
-
309
- # Serialize Request
310
- request_headers['Content-Type'] = 'application/json'
311
- unless parameters.nil?
312
- parameters = PublicIpAddress.serialize_object(parameters)
313
- end
314
- request_content = JSON.generate(parameters, quirks_mode: true)
315
-
316
- # Send Request
317
- promise = Concurrent::Promise.new do
318
- connection.put do |request|
319
- request.headers = request_headers
320
- request.body = request_content
321
- @client.credentials.sign_request(request) unless @client.credentials.nil?
322
- end
323
- end
324
-
325
- promise = promise.then do |http_response|
326
- status_code = http_response.status
327
- response_content = http_response.body
328
- unless (status_code == 200 || status_code == 201)
329
- error_model = JSON.load(response_content)
330
- fail MsRestAzure::AzureOperationError.new(connection, http_response, error_model)
331
- end
332
-
333
- # Create Result
334
- result = MsRestAzure::AzureOperationResponse.new(connection, http_response)
335
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
336
- # Deserialize Response
337
- if status_code == 200
338
- begin
339
- parsed_response = JSON.load(response_content) unless response_content.to_s.empty?
340
- unless parsed_response.nil?
341
- parsed_response = PublicIpAddress.deserialize_object(parsed_response)
342
- end
343
- result.body = parsed_response
344
- rescue Exception => e
345
- fail MsRest::DeserializationError.new("Error occured in deserializing the response", e.message, e.backtrace, response_content)
346
- end
347
- end
348
- # Deserialize Response
349
- if status_code == 201
350
- begin
351
- parsed_response = JSON.load(response_content) unless response_content.to_s.empty?
352
- unless parsed_response.nil?
353
- parsed_response = PublicIpAddress.deserialize_object(parsed_response)
354
- end
355
- result.body = parsed_response
356
- rescue Exception => e
357
- fail MsRest::DeserializationError.new("Error occured in deserializing the response", e.message, e.backtrace, response_content)
358
- end
359
- end
360
-
361
- result
362
- end
363
-
364
- promise.execute
365
- end
366
-
367
- #
368
- # The List publicIpAddress opertion retrieves all the publicIpAddresses in a
369
- # subscription.
370
- # @param [Hash{String => String}] The hash of custom headers need to be
371
- # applied to HTTP request.
372
- #
373
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
374
- # response.
375
- #
376
- def list_all(custom_headers = nil)
377
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
378
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
379
- # Construct URL
380
- path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/publicIPAddresses"
381
- path['{subscriptionId}'] = ERB::Util.url_encode(@client.subscription_id) if path.include?('{subscriptionId}')
382
- url = URI.join(@client.base_url, path)
383
- properties = {}
384
- properties['api-version'] = ERB::Util.url_encode(@client.api_version.to_s) unless @client.api_version.nil?
385
- unless url.query.nil?
386
- url.query.split('&').each do |url_item|
387
- url_items_parts = url_item.split('=')
388
- properties[url_items_parts[0]] = url_items_parts[1]
389
- end
390
- end
391
- properties.reject!{ |key, value| value.nil? }
392
- url.query = properties.map{ |key, value| "#{key}=#{value}" }.compact.join('&')
393
- fail URI::Error unless url.to_s =~ /\A#{URI::regexp}\z/
394
- corrected_url = url.to_s.gsub(/([^:])\/\//, '\1/')
395
- url = URI.parse(corrected_url)
396
-
397
- connection = Faraday.new(:url => url) do |faraday|
398
- faraday.use MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02
399
- faraday.use :cookie_jar
400
- faraday.adapter Faraday.default_adapter
401
- end
402
- request_headers = Hash.new
403
-
404
- # Set Headers
405
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
406
- request_headers["accept-language"] = @client.accept_language unless @client.accept_language.nil?
407
-
408
- unless custom_headers.nil?
409
- custom_headers.each do |key, value|
410
- request_headers[key] = value
411
- end
412
- end
413
-
414
- # Send Request
415
- promise = Concurrent::Promise.new do
416
- connection.get do |request|
417
- request.headers = request_headers
418
- @client.credentials.sign_request(request) unless @client.credentials.nil?
419
- end
420
- end
421
-
422
- promise = promise.then do |http_response|
423
- status_code = http_response.status
424
- response_content = http_response.body
425
- unless (status_code == 200)
426
- error_model = JSON.load(response_content)
427
- fail MsRestAzure::AzureOperationError.new(connection, http_response, error_model)
428
- end
429
-
430
- # Create Result
431
- result = MsRestAzure::AzureOperationResponse.new(connection, http_response)
432
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
433
- # Deserialize Response
434
- if status_code == 200
435
- begin
436
- parsed_response = JSON.load(response_content) unless response_content.to_s.empty?
437
- unless parsed_response.nil?
438
- parsed_response = PublicIpAddressListResult.deserialize_object(parsed_response)
439
- end
440
- result.body = parsed_response
441
- rescue Exception => e
442
- fail MsRest::DeserializationError.new("Error occured in deserializing the response", e.message, e.backtrace, response_content)
443
- end
444
- end
445
-
446
- result
447
- end
448
-
449
- promise.execute
450
- end
451
-
452
- #
453
- # The List publicIpAddress opertion retrieves all the publicIpAddresses in a
454
- # resource group.
455
- # @param resource_group_name [String] The name of the resource group.
456
- # @param [Hash{String => String}] The hash of custom headers need to be
457
- # applied to HTTP request.
458
- #
459
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
460
- # response.
461
- #
462
- def list(resource_group_name, custom_headers = nil)
463
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
464
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
465
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
466
- # Construct URL
467
- path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses"
468
- path['{resourceGroupName}'] = ERB::Util.url_encode(resource_group_name) if path.include?('{resourceGroupName}')
469
- path['{subscriptionId}'] = ERB::Util.url_encode(@client.subscription_id) if path.include?('{subscriptionId}')
470
- url = URI.join(@client.base_url, path)
471
- properties = {}
472
- properties['api-version'] = ERB::Util.url_encode(@client.api_version.to_s) unless @client.api_version.nil?
473
- unless url.query.nil?
474
- url.query.split('&').each do |url_item|
475
- url_items_parts = url_item.split('=')
476
- properties[url_items_parts[0]] = url_items_parts[1]
477
- end
478
- end
479
- properties.reject!{ |key, value| value.nil? }
480
- url.query = properties.map{ |key, value| "#{key}=#{value}" }.compact.join('&')
481
- fail URI::Error unless url.to_s =~ /\A#{URI::regexp}\z/
482
- corrected_url = url.to_s.gsub(/([^:])\/\//, '\1/')
483
- url = URI.parse(corrected_url)
484
-
485
- connection = Faraday.new(:url => url) do |faraday|
486
- faraday.use MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02
487
- faraday.use :cookie_jar
488
- faraday.adapter Faraday.default_adapter
489
- end
490
- request_headers = Hash.new
491
-
492
- # Set Headers
493
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
494
- request_headers["accept-language"] = @client.accept_language unless @client.accept_language.nil?
495
-
496
- unless custom_headers.nil?
497
- custom_headers.each do |key, value|
498
- request_headers[key] = value
499
- end
500
- end
501
-
502
- # Send Request
503
- promise = Concurrent::Promise.new do
504
- connection.get do |request|
505
- request.headers = request_headers
506
- @client.credentials.sign_request(request) unless @client.credentials.nil?
507
- end
508
- end
509
-
510
- promise = promise.then do |http_response|
511
- status_code = http_response.status
512
- response_content = http_response.body
513
- unless (status_code == 200)
514
- error_model = JSON.load(response_content)
515
- fail MsRestAzure::AzureOperationError.new(connection, http_response, error_model)
516
- end
517
-
518
- # Create Result
519
- result = MsRestAzure::AzureOperationResponse.new(connection, http_response)
520
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
521
- # Deserialize Response
522
- if status_code == 200
523
- begin
524
- parsed_response = JSON.load(response_content) unless response_content.to_s.empty?
525
- unless parsed_response.nil?
526
- parsed_response = PublicIpAddressListResult.deserialize_object(parsed_response)
527
- end
528
- result.body = parsed_response
529
- rescue Exception => e
530
- fail MsRest::DeserializationError.new("Error occured in deserializing the response", e.message, e.backtrace, response_content)
531
- end
532
- end
533
-
534
- result
535
- end
536
-
537
- promise.execute
538
- end
539
-
540
- #
541
- # The List publicIpAddress opertion retrieves all the publicIpAddresses in a
542
- # subscription.
543
- # @param next_page_link [String] The NextLink from the previous successful
544
- # call to List operation.
545
- # @param [Hash{String => String}] The hash of custom headers need to be
546
- # applied to HTTP request.
547
- #
548
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
549
- # response.
550
- #
551
- def list_all_next(next_page_link, custom_headers = nil)
552
- fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
553
- # Construct URL
554
- path = "{nextLink}"
555
- path['{nextLink}'] = next_page_link if path.include?('{nextLink}')
556
- url = URI.parse(path)
557
- properties = {}
558
- unless url.query.nil?
559
- url.query.split('&').each do |url_item|
560
- url_items_parts = url_item.split('=')
561
- properties[url_items_parts[0]] = url_items_parts[1]
562
- end
563
- end
564
- properties.reject!{ |key, value| value.nil? }
565
- url.query = properties.map{ |key, value| "#{key}=#{value}" }.compact.join('&')
566
- fail URI::Error unless url.to_s =~ /\A#{URI::regexp}\z/
567
- corrected_url = url.to_s.gsub(/([^:])\/\//, '\1/')
568
- url = URI.parse(corrected_url)
569
-
570
- connection = Faraday.new(:url => url) do |faraday|
571
- faraday.use MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02
572
- faraday.use :cookie_jar
573
- faraday.adapter Faraday.default_adapter
574
- end
575
- request_headers = Hash.new
576
-
577
- # Set Headers
578
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
579
- request_headers["accept-language"] = @client.accept_language unless @client.accept_language.nil?
580
-
581
- unless custom_headers.nil?
582
- custom_headers.each do |key, value|
583
- request_headers[key] = value
584
- end
585
- end
586
-
587
- # Send Request
588
- promise = Concurrent::Promise.new do
589
- connection.get do |request|
590
- request.headers = request_headers
591
- @client.credentials.sign_request(request) unless @client.credentials.nil?
592
- end
593
- end
594
-
595
- promise = promise.then do |http_response|
596
- status_code = http_response.status
597
- response_content = http_response.body
598
- unless (status_code == 200)
599
- error_model = JSON.load(response_content)
600
- fail MsRestAzure::AzureOperationError.new(connection, http_response, error_model)
601
- end
602
-
603
- # Create Result
604
- result = MsRestAzure::AzureOperationResponse.new(connection, http_response)
605
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
606
- # Deserialize Response
607
- if status_code == 200
608
- begin
609
- parsed_response = JSON.load(response_content) unless response_content.to_s.empty?
610
- unless parsed_response.nil?
611
- parsed_response = PublicIpAddressListResult.deserialize_object(parsed_response)
612
- end
613
- result.body = parsed_response
614
- rescue Exception => e
615
- fail MsRest::DeserializationError.new("Error occured in deserializing the response", e.message, e.backtrace, response_content)
616
- end
617
- end
618
-
619
- result
620
- end
621
-
622
- promise.execute
623
- end
624
-
625
- #
626
- # The List publicIpAddress opertion retrieves all the publicIpAddresses in a
627
- # resource group.
628
- # @param next_page_link [String] The NextLink from the previous successful
629
- # call to List operation.
630
- # @param [Hash{String => String}] The hash of custom headers need to be
631
- # applied to HTTP request.
632
- #
633
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
634
- # response.
635
- #
636
- def list_next(next_page_link, custom_headers = nil)
637
- fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
638
- # Construct URL
639
- path = "{nextLink}"
640
- path['{nextLink}'] = next_page_link if path.include?('{nextLink}')
641
- url = URI.parse(path)
642
- properties = {}
643
- unless url.query.nil?
644
- url.query.split('&').each do |url_item|
645
- url_items_parts = url_item.split('=')
646
- properties[url_items_parts[0]] = url_items_parts[1]
647
- end
648
- end
649
- properties.reject!{ |key, value| value.nil? }
650
- url.query = properties.map{ |key, value| "#{key}=#{value}" }.compact.join('&')
651
- fail URI::Error unless url.to_s =~ /\A#{URI::regexp}\z/
652
- corrected_url = url.to_s.gsub(/([^:])\/\//, '\1/')
653
- url = URI.parse(corrected_url)
654
-
655
- connection = Faraday.new(:url => url) do |faraday|
656
- faraday.use MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02
657
- faraday.use :cookie_jar
658
- faraday.adapter Faraday.default_adapter
659
- end
660
- request_headers = Hash.new
661
-
662
- # Set Headers
663
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
664
- request_headers["accept-language"] = @client.accept_language unless @client.accept_language.nil?
665
-
666
- unless custom_headers.nil?
667
- custom_headers.each do |key, value|
668
- request_headers[key] = value
669
- end
670
- end
671
-
672
- # Send Request
673
- promise = Concurrent::Promise.new do
674
- connection.get do |request|
675
- request.headers = request_headers
676
- @client.credentials.sign_request(request) unless @client.credentials.nil?
677
- end
678
- end
679
-
680
- promise = promise.then do |http_response|
681
- status_code = http_response.status
682
- response_content = http_response.body
683
- unless (status_code == 200)
684
- error_model = JSON.load(response_content)
685
- fail MsRestAzure::AzureOperationError.new(connection, http_response, error_model)
686
- end
687
-
688
- # Create Result
689
- result = MsRestAzure::AzureOperationResponse.new(connection, http_response)
690
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
691
- # Deserialize Response
692
- if status_code == 200
693
- begin
694
- parsed_response = JSON.load(response_content) unless response_content.to_s.empty?
695
- unless parsed_response.nil?
696
- parsed_response = PublicIpAddressListResult.deserialize_object(parsed_response)
697
- end
698
- result.body = parsed_response
699
- rescue Exception => e
700
- fail MsRest::DeserializationError.new("Error occured in deserializing the response", e.message, e.backtrace, response_content)
701
- end
702
- end
703
-
704
- result
705
- end
706
-
707
- promise.execute
708
- end
709
-
710
- end
711
- end