azure_mgmt_resources 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_resources.rb +22 -22
- data/lib/generated/azure_mgmt_resources/deployment_operations.rb +54 -50
- data/lib/generated/azure_mgmt_resources/deployments.rb +401 -315
- data/lib/generated/azure_mgmt_resources/models/alias_path_type.rb +3 -3
- data/lib/generated/azure_mgmt_resources/models/alias_type.rb +2 -2
- data/lib/generated/azure_mgmt_resources/models/basic_dependency.rb +1 -1
- data/lib/generated/azure_mgmt_resources/models/debug_setting.rb +10 -2
- data/lib/generated/azure_mgmt_resources/models/dependency.rb +1 -1
- data/lib/generated/azure_mgmt_resources/models/deployment.rb +1 -1
- data/lib/generated/azure_mgmt_resources/models/deployment_export_result.rb +2 -2
- data/lib/generated/azure_mgmt_resources/models/deployment_extended.rb +1 -1
- data/lib/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +1 -1
- data/lib/generated/azure_mgmt_resources/models/deployment_list_result.rb +4 -3
- data/lib/generated/azure_mgmt_resources/models/deployment_mode.rb +1 -1
- data/lib/generated/azure_mgmt_resources/models/deployment_operation.rb +5 -3
- data/lib/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +9 -1
- data/lib/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +4 -3
- data/lib/generated/azure_mgmt_resources/models/deployment_properties.rb +24 -10
- data/lib/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +9 -5
- data/lib/generated/azure_mgmt_resources/models/deployment_validate_result.rb +1 -1
- data/lib/generated/azure_mgmt_resources/models/export_template_request.rb +4 -4
- data/lib/generated/azure_mgmt_resources/models/generic_resource.rb +7 -4
- data/lib/generated/azure_mgmt_resources/models/generic_resource_filter.rb +1 -1
- data/lib/generated/azure_mgmt_resources/models/http_message.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/identity.rb +3 -3
- data/lib/generated/azure_mgmt_resources/models/parameters_link.rb +3 -3
- data/lib/generated/azure_mgmt_resources/models/plan.rb +1 -1
- data/lib/generated/azure_mgmt_resources/models/provider.rb +6 -3
- data/lib/generated/azure_mgmt_resources/models/provider_list_result.rb +4 -3
- data/lib/generated/azure_mgmt_resources/models/provider_resource_type.rb +4 -4
- data/lib/generated/azure_mgmt_resources/models/resource_group.rb +15 -5
- data/lib/generated/azure_mgmt_resources/models/resource_group_export_result.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/resource_group_filter.rb +1 -1
- data/lib/generated/azure_mgmt_resources/models/resource_group_list_result.rb +5 -4
- data/lib/generated/azure_mgmt_resources/models/resource_group_properties.rb +1 -1
- data/lib/generated/azure_mgmt_resources/models/resource_identity_type.rb +1 -1
- data/lib/generated/azure_mgmt_resources/models/resource_list_result.rb +5 -4
- data/lib/generated/azure_mgmt_resources/models/resource_management_error_with_details.rb +10 -5
- data/lib/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +1 -1
- data/lib/generated/azure_mgmt_resources/models/resources_move_info.rb +2 -2
- data/lib/generated/azure_mgmt_resources/models/sku.rb +8 -8
- data/lib/generated/azure_mgmt_resources/models/tag_count.rb +1 -1
- data/lib/generated/azure_mgmt_resources/models/tag_details.rb +4 -2
- data/lib/generated/azure_mgmt_resources/models/tag_value.rb +1 -1
- data/lib/generated/azure_mgmt_resources/models/tags_list_result.rb +5 -4
- data/lib/generated/azure_mgmt_resources/models/target_resource.rb +1 -1
- data/lib/generated/azure_mgmt_resources/models/template_link.rb +3 -3
- data/lib/generated/azure_mgmt_resources/module_definition.rb +1 -1
- data/lib/generated/azure_mgmt_resources/providers.rb +88 -80
- data/lib/generated/azure_mgmt_resources/resource_groups.rb +247 -228
- data/lib/generated/azure_mgmt_resources/resource_management_client.rb +17 -6
- data/lib/generated/azure_mgmt_resources/resources.rb +869 -245
- data/lib/generated/azure_mgmt_resources/tags.rb +79 -54
- data/lib/generated/azure_mgmt_resources/version.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e22f2e3725a8eb0fdbfb41aca6c8abc1ef480ff
|
4
|
+
data.tar.gz: fb328c7fb24640519ef50c7278e9b4d9bd948a6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4edb03bd6f8384d680bf740bcbcdd677a977806ccd771f8cbac07b18c6d77007cc9573ea5527d2af343dd488a40184ae7eb69d6621f982189330c215c4680b51
|
7
|
+
data.tar.gz: b3ee2b4e33fdfc0a179716b9f9da22099342ae9f7d3ba105ce2fe093d50c60d2b9a7c3a63444b69d7bb1fe523e7c7e826646d3f6272c4f717ed1c821c662457b
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -29,46 +29,46 @@ module Azure::ARM::Resources
|
|
29
29
|
autoload :ResourceManagementClient, 'generated/azure_mgmt_resources/resource_management_client.rb'
|
30
30
|
|
31
31
|
module Models
|
32
|
-
autoload :DeploymentExtendedFilter, 'generated/azure_mgmt_resources/models/deployment_extended_filter.rb'
|
33
|
-
autoload :GenericResourceFilter, 'generated/azure_mgmt_resources/models/generic_resource_filter.rb'
|
34
|
-
autoload :ResourceGroupFilter, 'generated/azure_mgmt_resources/models/resource_group_filter.rb'
|
35
|
-
autoload :TemplateLink, 'generated/azure_mgmt_resources/models/template_link.rb'
|
36
|
-
autoload :ParametersLink, 'generated/azure_mgmt_resources/models/parameters_link.rb'
|
37
|
-
autoload :DeploymentProperties, 'generated/azure_mgmt_resources/models/deployment_properties.rb'
|
38
|
-
autoload :DebugSetting, 'generated/azure_mgmt_resources/models/debug_setting.rb'
|
39
|
-
autoload :Deployment, 'generated/azure_mgmt_resources/models/deployment.rb'
|
40
|
-
autoload :DeploymentExportResult, 'generated/azure_mgmt_resources/models/deployment_export_result.rb'
|
41
|
-
autoload :ResourceManagementErrorWithDetails, 'generated/azure_mgmt_resources/models/resource_management_error_with_details.rb'
|
42
|
-
autoload :AliasPathType, 'generated/azure_mgmt_resources/models/alias_path_type.rb'
|
43
|
-
autoload :AliasType, 'generated/azure_mgmt_resources/models/alias_type.rb'
|
44
|
-
autoload :ProviderResourceType, 'generated/azure_mgmt_resources/models/provider_resource_type.rb'
|
45
|
-
autoload :Provider, 'generated/azure_mgmt_resources/models/provider.rb'
|
46
|
-
autoload :BasicDependency, 'generated/azure_mgmt_resources/models/basic_dependency.rb'
|
47
|
-
autoload :Dependency, 'generated/azure_mgmt_resources/models/dependency.rb'
|
48
|
-
autoload :DeploymentPropertiesExtended, 'generated/azure_mgmt_resources/models/deployment_properties_extended.rb'
|
49
|
-
autoload :DeploymentValidateResult, 'generated/azure_mgmt_resources/models/deployment_validate_result.rb'
|
50
|
-
autoload :DeploymentExtended, 'generated/azure_mgmt_resources/models/deployment_extended.rb'
|
51
|
-
autoload :DeploymentListResult, 'generated/azure_mgmt_resources/models/deployment_list_result.rb'
|
52
|
-
autoload :ProviderListResult, 'generated/azure_mgmt_resources/models/provider_list_result.rb'
|
53
32
|
autoload :Plan, 'generated/azure_mgmt_resources/models/plan.rb'
|
33
|
+
autoload :DeploymentExtendedFilter, 'generated/azure_mgmt_resources/models/deployment_extended_filter.rb'
|
54
34
|
autoload :Sku, 'generated/azure_mgmt_resources/models/sku.rb'
|
35
|
+
autoload :ResourceGroupFilter, 'generated/azure_mgmt_resources/models/resource_group_filter.rb'
|
55
36
|
autoload :Identity, 'generated/azure_mgmt_resources/models/identity.rb'
|
37
|
+
autoload :ParametersLink, 'generated/azure_mgmt_resources/models/parameters_link.rb'
|
56
38
|
autoload :ResourceListResult, 'generated/azure_mgmt_resources/models/resource_list_result.rb'
|
39
|
+
autoload :DebugSetting, 'generated/azure_mgmt_resources/models/debug_setting.rb'
|
57
40
|
autoload :ResourceGroup, 'generated/azure_mgmt_resources/models/resource_group.rb'
|
41
|
+
autoload :DeploymentExportResult, 'generated/azure_mgmt_resources/models/deployment_export_result.rb'
|
58
42
|
autoload :ResourceGroupProperties, 'generated/azure_mgmt_resources/models/resource_group_properties.rb'
|
43
|
+
autoload :AliasPathType, 'generated/azure_mgmt_resources/models/alias_path_type.rb'
|
59
44
|
autoload :ResourceGroupListResult, 'generated/azure_mgmt_resources/models/resource_group_list_result.rb'
|
45
|
+
autoload :ProviderResourceType, 'generated/azure_mgmt_resources/models/provider_resource_type.rb'
|
60
46
|
autoload :ResourcesMoveInfo, 'generated/azure_mgmt_resources/models/resources_move_info.rb'
|
47
|
+
autoload :BasicDependency, 'generated/azure_mgmt_resources/models/basic_dependency.rb'
|
61
48
|
autoload :ExportTemplateRequest, 'generated/azure_mgmt_resources/models/export_template_request.rb'
|
49
|
+
autoload :DeploymentPropertiesExtended, 'generated/azure_mgmt_resources/models/deployment_properties_extended.rb'
|
62
50
|
autoload :TagCount, 'generated/azure_mgmt_resources/models/tag_count.rb'
|
51
|
+
autoload :DeploymentExtended, 'generated/azure_mgmt_resources/models/deployment_extended.rb'
|
63
52
|
autoload :TagValue, 'generated/azure_mgmt_resources/models/tag_value.rb'
|
53
|
+
autoload :ProviderListResult, 'generated/azure_mgmt_resources/models/provider_list_result.rb'
|
64
54
|
autoload :TagDetails, 'generated/azure_mgmt_resources/models/tag_details.rb'
|
55
|
+
autoload :GenericResourceFilter, 'generated/azure_mgmt_resources/models/generic_resource_filter.rb'
|
65
56
|
autoload :TagsListResult, 'generated/azure_mgmt_resources/models/tags_list_result.rb'
|
57
|
+
autoload :DeploymentProperties, 'generated/azure_mgmt_resources/models/deployment_properties.rb'
|
66
58
|
autoload :TargetResource, 'generated/azure_mgmt_resources/models/target_resource.rb'
|
59
|
+
autoload :ResourceManagementErrorWithDetails, 'generated/azure_mgmt_resources/models/resource_management_error_with_details.rb'
|
67
60
|
autoload :HttpMessage, 'generated/azure_mgmt_resources/models/http_message.rb'
|
61
|
+
autoload :Provider, 'generated/azure_mgmt_resources/models/provider.rb'
|
68
62
|
autoload :DeploymentOperationProperties, 'generated/azure_mgmt_resources/models/deployment_operation_properties.rb'
|
63
|
+
autoload :DeploymentValidateResult, 'generated/azure_mgmt_resources/models/deployment_validate_result.rb'
|
69
64
|
autoload :DeploymentOperation, 'generated/azure_mgmt_resources/models/deployment_operation.rb'
|
65
|
+
autoload :TemplateLink, 'generated/azure_mgmt_resources/models/template_link.rb'
|
70
66
|
autoload :DeploymentOperationsListResult, 'generated/azure_mgmt_resources/models/deployment_operations_list_result.rb'
|
67
|
+
autoload :AliasType, 'generated/azure_mgmt_resources/models/alias_type.rb'
|
71
68
|
autoload :ResourceProviderOperationDisplayProperties, 'generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb'
|
69
|
+
autoload :DeploymentListResult, 'generated/azure_mgmt_resources/models/deployment_list_result.rb'
|
70
|
+
autoload :Dependency, 'generated/azure_mgmt_resources/models/dependency.rb'
|
71
|
+
autoload :Deployment, 'generated/azure_mgmt_resources/models/deployment.rb'
|
72
72
|
autoload :ResourceGroupExportResult, 'generated/azure_mgmt_resources/models/resource_group_export_result.rb'
|
73
73
|
autoload :GenericResource, 'generated/azure_mgmt_resources/models/generic_resource.rb'
|
74
74
|
autoload :DeploymentMode, 'generated/azure_mgmt_resources/models/deployment_mode.rb'
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
6
|
module Azure::ARM::Resources
|
7
7
|
#
|
8
|
-
#
|
8
|
+
# Provides operations for working with resources and resource groups.
|
9
9
|
#
|
10
10
|
class DeploymentOperations
|
11
11
|
include Azure::ARM::Resources::Models
|
@@ -23,12 +23,12 @@ module Azure::ARM::Resources
|
|
23
23
|
attr_reader :client
|
24
24
|
|
25
25
|
#
|
26
|
-
#
|
26
|
+
# Gets a deployments operation.
|
27
27
|
#
|
28
28
|
# @param resource_group_name [String] The name of the resource group. The name
|
29
29
|
# is case insensitive.
|
30
30
|
# @param deployment_name [String] The name of the deployment.
|
31
|
-
# @param operation_id [String]
|
31
|
+
# @param operation_id [String] The ID of the operation to get.
|
32
32
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
33
33
|
# will be added to the HTTP request.
|
34
34
|
#
|
@@ -40,12 +40,12 @@ module Azure::ARM::Resources
|
|
40
40
|
end
|
41
41
|
|
42
42
|
#
|
43
|
-
#
|
43
|
+
# Gets a deployments operation.
|
44
44
|
#
|
45
45
|
# @param resource_group_name [String] The name of the resource group. The name
|
46
46
|
# is case insensitive.
|
47
47
|
# @param deployment_name [String] The name of the deployment.
|
48
|
-
# @param operation_id [String]
|
48
|
+
# @param operation_id [String] The ID of the operation to get.
|
49
49
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
50
50
|
# will be added to the HTTP request.
|
51
51
|
#
|
@@ -56,12 +56,12 @@ module Azure::ARM::Resources
|
|
56
56
|
end
|
57
57
|
|
58
58
|
#
|
59
|
-
#
|
59
|
+
# Gets a deployments operation.
|
60
60
|
#
|
61
61
|
# @param resource_group_name [String] The name of the resource group. The name
|
62
62
|
# is case insensitive.
|
63
63
|
# @param deployment_name [String] The name of the deployment.
|
64
|
-
# @param operation_id [String]
|
64
|
+
# @param operation_id [String] The ID of the operation to get.
|
65
65
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
66
66
|
# to the HTTP request.
|
67
67
|
#
|
@@ -121,36 +121,13 @@ module Azure::ARM::Resources
|
|
121
121
|
end
|
122
122
|
|
123
123
|
#
|
124
|
-
# Gets
|
124
|
+
# Gets all deployments operations for a deployment.
|
125
125
|
#
|
126
126
|
# @param resource_group_name [String] The name of the resource group. The name
|
127
127
|
# is case insensitive.
|
128
|
-
# @param deployment_name [String] The name of the deployment
|
129
|
-
#
|
130
|
-
# @param
|
131
|
-
# will be added to the HTTP request.
|
132
|
-
#
|
133
|
-
# @return [DeploymentOperationsListResult] which provide lazy access to pages
|
134
|
-
# of the response.
|
135
|
-
#
|
136
|
-
def list_as_lazy(resource_group_name, deployment_name, top = nil, custom_headers = nil)
|
137
|
-
response = list_async(resource_group_name, deployment_name, top, custom_headers).value!
|
138
|
-
unless response.nil?
|
139
|
-
page = response.body
|
140
|
-
page.next_method = Proc.new do |next_page_link|
|
141
|
-
list_next_async(next_page_link, custom_headers)
|
142
|
-
end
|
143
|
-
page
|
144
|
-
end
|
145
|
-
end
|
146
|
-
|
147
|
-
#
|
148
|
-
# Gets a list of deployments operations.
|
149
|
-
#
|
150
|
-
# @param resource_group_name [String] The name of the resource group. The name
|
151
|
-
# is case insensitive.
|
152
|
-
# @param deployment_name [String] The name of the deployment.
|
153
|
-
# @param top [Integer] Query parameters.
|
128
|
+
# @param deployment_name [String] The name of the deployment with the operation
|
129
|
+
# to get.
|
130
|
+
# @param top [Integer] The number of results to return.
|
154
131
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
155
132
|
# will be added to the HTTP request.
|
156
133
|
#
|
@@ -162,12 +139,13 @@ module Azure::ARM::Resources
|
|
162
139
|
end
|
163
140
|
|
164
141
|
#
|
165
|
-
# Gets
|
142
|
+
# Gets all deployments operations for a deployment.
|
166
143
|
#
|
167
144
|
# @param resource_group_name [String] The name of the resource group. The name
|
168
145
|
# is case insensitive.
|
169
|
-
# @param deployment_name [String] The name of the deployment
|
170
|
-
#
|
146
|
+
# @param deployment_name [String] The name of the deployment with the operation
|
147
|
+
# to get.
|
148
|
+
# @param top [Integer] The number of results to return.
|
171
149
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
172
150
|
# will be added to the HTTP request.
|
173
151
|
#
|
@@ -178,12 +156,13 @@ module Azure::ARM::Resources
|
|
178
156
|
end
|
179
157
|
|
180
158
|
#
|
181
|
-
# Gets
|
159
|
+
# Gets all deployments operations for a deployment.
|
182
160
|
#
|
183
161
|
# @param resource_group_name [String] The name of the resource group. The name
|
184
162
|
# is case insensitive.
|
185
|
-
# @param deployment_name [String] The name of the deployment
|
186
|
-
#
|
163
|
+
# @param deployment_name [String] The name of the deployment with the operation
|
164
|
+
# to get.
|
165
|
+
# @param top [Integer] The number of results to return.
|
187
166
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
188
167
|
# to the HTTP request.
|
189
168
|
#
|
@@ -242,10 +221,10 @@ module Azure::ARM::Resources
|
|
242
221
|
end
|
243
222
|
|
244
223
|
#
|
245
|
-
# Gets
|
224
|
+
# Gets all deployments operations for a deployment.
|
246
225
|
#
|
247
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
248
|
-
#
|
226
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
227
|
+
# to List operation.
|
249
228
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
250
229
|
# will be added to the HTTP request.
|
251
230
|
#
|
@@ -257,10 +236,10 @@ module Azure::ARM::Resources
|
|
257
236
|
end
|
258
237
|
|
259
238
|
#
|
260
|
-
# Gets
|
239
|
+
# Gets all deployments operations for a deployment.
|
261
240
|
#
|
262
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
263
|
-
#
|
241
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
242
|
+
# to List operation.
|
264
243
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
265
244
|
# will be added to the HTTP request.
|
266
245
|
#
|
@@ -271,10 +250,10 @@ module Azure::ARM::Resources
|
|
271
250
|
end
|
272
251
|
|
273
252
|
#
|
274
|
-
# Gets
|
253
|
+
# Gets all deployments operations for a deployment.
|
275
254
|
#
|
276
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
277
|
-
#
|
255
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
256
|
+
# to List operation.
|
278
257
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
279
258
|
# to the HTTP request.
|
280
259
|
#
|
@@ -328,5 +307,30 @@ module Azure::ARM::Resources
|
|
328
307
|
promise.execute
|
329
308
|
end
|
330
309
|
|
310
|
+
#
|
311
|
+
# Gets all deployments operations for a deployment.
|
312
|
+
#
|
313
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
314
|
+
# is case insensitive.
|
315
|
+
# @param deployment_name [String] The name of the deployment with the operation
|
316
|
+
# to get.
|
317
|
+
# @param top [Integer] The number of results to return.
|
318
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
319
|
+
# will be added to the HTTP request.
|
320
|
+
#
|
321
|
+
# @return [DeploymentOperationsListResult] which provide lazy access to pages
|
322
|
+
# of the response.
|
323
|
+
#
|
324
|
+
def list_as_lazy(resource_group_name, deployment_name, top = nil, custom_headers = nil)
|
325
|
+
response = list_async(resource_group_name, deployment_name, top, custom_headers).value!
|
326
|
+
unless response.nil?
|
327
|
+
page = response.body
|
328
|
+
page.next_method = Proc.new do |next_page_link|
|
329
|
+
list_next_async(next_page_link, custom_headers)
|
330
|
+
end
|
331
|
+
page
|
332
|
+
end
|
333
|
+
end
|
334
|
+
|
331
335
|
end
|
332
336
|
end
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
6
|
module Azure::ARM::Resources
|
7
7
|
#
|
8
|
-
#
|
8
|
+
# Provides operations for working with resources and resource groups.
|
9
9
|
#
|
10
10
|
class Deployments
|
11
11
|
include Azure::ARM::Resources::Models
|
@@ -23,11 +23,22 @@ module Azure::ARM::Resources
|
|
23
23
|
attr_reader :client
|
24
24
|
|
25
25
|
#
|
26
|
-
#
|
26
|
+
# Deletes a deployment from the deployment history.
|
27
27
|
#
|
28
|
-
#
|
29
|
-
#
|
30
|
-
#
|
28
|
+
# A template deployment that is currently running cannot be deleted. Deleting a
|
29
|
+
# template deployment removes the associated deployment operations. Deleting a
|
30
|
+
# template deployment does not affect the state of the resource group. This is
|
31
|
+
# an asynchronous operation that returns a status of 202 until the template
|
32
|
+
# deployment is successfully deleted. The Location response header contains the
|
33
|
+
# URI that is used to obtain the status of the process. While the process is
|
34
|
+
# running, a call to the URI in the Location header returns a status of 202.
|
35
|
+
# When the process finishes, the URI in the Location header returns a status of
|
36
|
+
# 204 on success. If the asynchronous request failed, the URI in the Location
|
37
|
+
# header returns an error-level status code.
|
38
|
+
#
|
39
|
+
# @param resource_group_name [String] The name of the resource group with the
|
40
|
+
# deployment to delete. The name is case insensitive.
|
41
|
+
# @param deployment_name [String] The name of the deployment to delete.
|
31
42
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
32
43
|
# will be added to the HTTP request.
|
33
44
|
#
|
@@ -37,9 +48,9 @@ module Azure::ARM::Resources
|
|
37
48
|
end
|
38
49
|
|
39
50
|
#
|
40
|
-
# @param resource_group_name [String] The name of the resource group
|
41
|
-
# is case insensitive.
|
42
|
-
# @param deployment_name [String] The name of the deployment to
|
51
|
+
# @param resource_group_name [String] The name of the resource group with the
|
52
|
+
# deployment to delete. The name is case insensitive.
|
53
|
+
# @param deployment_name [String] The name of the deployment to delete.
|
43
54
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
44
55
|
# will be added to the HTTP request.
|
45
56
|
#
|
@@ -63,94 +74,11 @@ module Azure::ARM::Resources
|
|
63
74
|
end
|
64
75
|
|
65
76
|
#
|
66
|
-
#
|
67
|
-
#
|
68
|
-
# @param resource_group_name [String] The name of the resource group. The name
|
69
|
-
# is case insensitive.
|
70
|
-
# @param deployment_name [String] The name of the deployment to be deleted.
|
71
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
72
|
-
# will be added to the HTTP request.
|
73
|
-
#
|
74
|
-
#
|
75
|
-
def begin_delete(resource_group_name, deployment_name, custom_headers = nil)
|
76
|
-
response = begin_delete_async(resource_group_name, deployment_name, custom_headers).value!
|
77
|
-
nil
|
78
|
-
end
|
79
|
-
|
80
|
-
#
|
81
|
-
# Delete deployment.
|
82
|
-
#
|
83
|
-
# @param resource_group_name [String] The name of the resource group. The name
|
84
|
-
# is case insensitive.
|
85
|
-
# @param deployment_name [String] The name of the deployment to be deleted.
|
86
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
87
|
-
# will be added to the HTTP request.
|
88
|
-
#
|
89
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
90
|
-
#
|
91
|
-
def begin_delete_with_http_info(resource_group_name, deployment_name, custom_headers = nil)
|
92
|
-
begin_delete_async(resource_group_name, deployment_name, custom_headers).value!
|
93
|
-
end
|
94
|
-
|
95
|
-
#
|
96
|
-
# Delete deployment.
|
97
|
-
#
|
98
|
-
# @param resource_group_name [String] The name of the resource group. The name
|
99
|
-
# is case insensitive.
|
100
|
-
# @param deployment_name [String] The name of the deployment to be deleted.
|
101
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
102
|
-
# to the HTTP request.
|
103
|
-
#
|
104
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
105
|
-
#
|
106
|
-
def begin_delete_async(resource_group_name, deployment_name, custom_headers = nil)
|
107
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
108
|
-
fail ArgumentError, 'deployment_name is nil' if deployment_name.nil?
|
109
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
110
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
111
|
-
|
112
|
-
|
113
|
-
request_headers = {}
|
114
|
-
|
115
|
-
# Set Headers
|
116
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
117
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
118
|
-
path_template = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}'
|
119
|
-
|
120
|
-
request_url = @base_url || @client.base_url
|
121
|
-
|
122
|
-
options = {
|
123
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
124
|
-
path_params: {'resourceGroupName' => resource_group_name,'deploymentName' => deployment_name,'subscriptionId' => @client.subscription_id},
|
125
|
-
query_params: {'api-version' => @client.api_version},
|
126
|
-
headers: request_headers.merge(custom_headers || {}),
|
127
|
-
base_url: request_url
|
128
|
-
}
|
129
|
-
promise = @client.make_request_async(:delete, path_template, options)
|
130
|
-
|
131
|
-
promise = promise.then do |result|
|
132
|
-
http_response = result.response
|
133
|
-
status_code = http_response.status
|
134
|
-
response_content = http_response.body
|
135
|
-
unless status_code == 202 || status_code == 204
|
136
|
-
error_model = JSON.load(response_content)
|
137
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
138
|
-
end
|
139
|
-
|
140
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
141
|
-
|
142
|
-
result
|
143
|
-
end
|
144
|
-
|
145
|
-
promise.execute
|
146
|
-
end
|
147
|
-
|
148
|
-
#
|
149
|
-
# Checks whether deployment exists.
|
77
|
+
# Checks whether the deployment exists.
|
150
78
|
#
|
151
|
-
# @param resource_group_name [String] The name of the resource group
|
152
|
-
# The name is case insensitive.
|
153
|
-
# @param deployment_name [String] The name of the deployment.
|
79
|
+
# @param resource_group_name [String] The name of the resource group with the
|
80
|
+
# deployment to check. The name is case insensitive.
|
81
|
+
# @param deployment_name [String] The name of the deployment to check.
|
154
82
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
155
83
|
# will be added to the HTTP request.
|
156
84
|
#
|
@@ -162,11 +90,11 @@ module Azure::ARM::Resources
|
|
162
90
|
end
|
163
91
|
|
164
92
|
#
|
165
|
-
# Checks whether deployment exists.
|
93
|
+
# Checks whether the deployment exists.
|
166
94
|
#
|
167
|
-
# @param resource_group_name [String] The name of the resource group
|
168
|
-
# The name is case insensitive.
|
169
|
-
# @param deployment_name [String] The name of the deployment.
|
95
|
+
# @param resource_group_name [String] The name of the resource group with the
|
96
|
+
# deployment to check. The name is case insensitive.
|
97
|
+
# @param deployment_name [String] The name of the deployment to check.
|
170
98
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
171
99
|
# will be added to the HTTP request.
|
172
100
|
#
|
@@ -177,11 +105,11 @@ module Azure::ARM::Resources
|
|
177
105
|
end
|
178
106
|
|
179
107
|
#
|
180
|
-
# Checks whether deployment exists.
|
108
|
+
# Checks whether the deployment exists.
|
181
109
|
#
|
182
|
-
# @param resource_group_name [String] The name of the resource group
|
183
|
-
# The name is case insensitive.
|
184
|
-
# @param deployment_name [String] The name of the deployment.
|
110
|
+
# @param resource_group_name [String] The name of the resource group with the
|
111
|
+
# deployment to check. The name is case insensitive.
|
112
|
+
# @param deployment_name [String] The name of the deployment to check.
|
185
113
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
186
114
|
# to the HTTP request.
|
187
115
|
#
|
@@ -231,10 +159,14 @@ module Azure::ARM::Resources
|
|
231
159
|
end
|
232
160
|
|
233
161
|
#
|
234
|
-
#
|
162
|
+
# Deploys resources to a resource group.
|
235
163
|
#
|
236
|
-
#
|
237
|
-
#
|
164
|
+
# You can provide the template and parameters directly in the request or link
|
165
|
+
# to JSON files.
|
166
|
+
#
|
167
|
+
# @param resource_group_name [String] The name of the resource group to deploy
|
168
|
+
# the resources to. The name is case insensitive. The resource group must
|
169
|
+
# already exist.
|
238
170
|
# @param deployment_name [String] The name of the deployment.
|
239
171
|
# @param parameters [Deployment] Additional parameters supplied to the
|
240
172
|
# operation.
|
@@ -249,8 +181,9 @@ module Azure::ARM::Resources
|
|
249
181
|
end
|
250
182
|
|
251
183
|
#
|
252
|
-
# @param resource_group_name [String] The name of the resource group
|
253
|
-
# is case insensitive.
|
184
|
+
# @param resource_group_name [String] The name of the resource group to deploy
|
185
|
+
# the resources to. The name is case insensitive. The resource group must
|
186
|
+
# already exist.
|
254
187
|
# @param deployment_name [String] The name of the deployment.
|
255
188
|
# @param parameters [Deployment] Additional parameters supplied to the
|
256
189
|
# operation.
|
@@ -279,131 +212,11 @@ module Azure::ARM::Resources
|
|
279
212
|
end
|
280
213
|
|
281
214
|
#
|
282
|
-
#
|
215
|
+
# Gets a deployment.
|
283
216
|
#
|
284
217
|
# @param resource_group_name [String] The name of the resource group. The name
|
285
218
|
# is case insensitive.
|
286
|
-
# @param deployment_name [String] The name of the deployment.
|
287
|
-
# @param parameters [Deployment] Additional parameters supplied to the
|
288
|
-
# operation.
|
289
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
290
|
-
# will be added to the HTTP request.
|
291
|
-
#
|
292
|
-
# @return [DeploymentExtended] operation results.
|
293
|
-
#
|
294
|
-
def begin_create_or_update(resource_group_name, deployment_name, parameters, custom_headers = nil)
|
295
|
-
response = begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers).value!
|
296
|
-
response.body unless response.nil?
|
297
|
-
end
|
298
|
-
|
299
|
-
#
|
300
|
-
# Create a named template deployment using a template.
|
301
|
-
#
|
302
|
-
# @param resource_group_name [String] The name of the resource group. The name
|
303
|
-
# is case insensitive.
|
304
|
-
# @param deployment_name [String] The name of the deployment.
|
305
|
-
# @param parameters [Deployment] Additional parameters supplied to the
|
306
|
-
# operation.
|
307
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
308
|
-
# will be added to the HTTP request.
|
309
|
-
#
|
310
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
311
|
-
#
|
312
|
-
def begin_create_or_update_with_http_info(resource_group_name, deployment_name, parameters, custom_headers = nil)
|
313
|
-
begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers).value!
|
314
|
-
end
|
315
|
-
|
316
|
-
#
|
317
|
-
# Create a named template deployment using a template.
|
318
|
-
#
|
319
|
-
# @param resource_group_name [String] The name of the resource group. The name
|
320
|
-
# is case insensitive.
|
321
|
-
# @param deployment_name [String] The name of the deployment.
|
322
|
-
# @param parameters [Deployment] Additional parameters supplied to the
|
323
|
-
# operation.
|
324
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
325
|
-
# to the HTTP request.
|
326
|
-
#
|
327
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
328
|
-
#
|
329
|
-
def begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers = nil)
|
330
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
331
|
-
fail ArgumentError, 'deployment_name is nil' if deployment_name.nil?
|
332
|
-
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
333
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
334
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
335
|
-
|
336
|
-
|
337
|
-
request_headers = {}
|
338
|
-
|
339
|
-
# Set Headers
|
340
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
341
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
342
|
-
|
343
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
344
|
-
|
345
|
-
# Serialize Request
|
346
|
-
request_mapper = Deployment.mapper()
|
347
|
-
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
348
|
-
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
349
|
-
|
350
|
-
path_template = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}'
|
351
|
-
|
352
|
-
request_url = @base_url || @client.base_url
|
353
|
-
|
354
|
-
options = {
|
355
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
356
|
-
path_params: {'resourceGroupName' => resource_group_name,'deploymentName' => deployment_name,'subscriptionId' => @client.subscription_id},
|
357
|
-
query_params: {'api-version' => @client.api_version},
|
358
|
-
body: request_content,
|
359
|
-
headers: request_headers.merge(custom_headers || {}),
|
360
|
-
base_url: request_url
|
361
|
-
}
|
362
|
-
promise = @client.make_request_async(:put, path_template, options)
|
363
|
-
|
364
|
-
promise = promise.then do |result|
|
365
|
-
http_response = result.response
|
366
|
-
status_code = http_response.status
|
367
|
-
response_content = http_response.body
|
368
|
-
unless status_code == 200 || status_code == 201
|
369
|
-
error_model = JSON.load(response_content)
|
370
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
371
|
-
end
|
372
|
-
|
373
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
374
|
-
# Deserialize Response
|
375
|
-
if status_code == 200
|
376
|
-
begin
|
377
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
378
|
-
result_mapper = DeploymentExtended.mapper()
|
379
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
380
|
-
rescue Exception => e
|
381
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
382
|
-
end
|
383
|
-
end
|
384
|
-
# Deserialize Response
|
385
|
-
if status_code == 201
|
386
|
-
begin
|
387
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
388
|
-
result_mapper = DeploymentExtended.mapper()
|
389
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
390
|
-
rescue Exception => e
|
391
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
392
|
-
end
|
393
|
-
end
|
394
|
-
|
395
|
-
result
|
396
|
-
end
|
397
|
-
|
398
|
-
promise.execute
|
399
|
-
end
|
400
|
-
|
401
|
-
#
|
402
|
-
# Get a deployment.
|
403
|
-
#
|
404
|
-
# @param resource_group_name [String] The name of the resource group to get.
|
405
|
-
# The name is case insensitive.
|
406
|
-
# @param deployment_name [String] The name of the deployment.
|
219
|
+
# @param deployment_name [String] The name of the deployment to get.
|
407
220
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
408
221
|
# will be added to the HTTP request.
|
409
222
|
#
|
@@ -415,11 +228,11 @@ module Azure::ARM::Resources
|
|
415
228
|
end
|
416
229
|
|
417
230
|
#
|
418
|
-
#
|
231
|
+
# Gets a deployment.
|
419
232
|
#
|
420
|
-
# @param resource_group_name [String] The name of the resource group
|
421
|
-
#
|
422
|
-
# @param deployment_name [String] The name of the deployment.
|
233
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
234
|
+
# is case insensitive.
|
235
|
+
# @param deployment_name [String] The name of the deployment to get.
|
423
236
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
424
237
|
# will be added to the HTTP request.
|
425
238
|
#
|
@@ -430,11 +243,11 @@ module Azure::ARM::Resources
|
|
430
243
|
end
|
431
244
|
|
432
245
|
#
|
433
|
-
#
|
246
|
+
# Gets a deployment.
|
434
247
|
#
|
435
|
-
# @param resource_group_name [String] The name of the resource group
|
436
|
-
#
|
437
|
-
# @param deployment_name [String] The name of the deployment.
|
248
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
249
|
+
# is case insensitive.
|
250
|
+
# @param deployment_name [String] The name of the deployment to get.
|
438
251
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
439
252
|
# to the HTTP request.
|
440
253
|
#
|
@@ -493,11 +306,16 @@ module Azure::ARM::Resources
|
|
493
306
|
end
|
494
307
|
|
495
308
|
#
|
496
|
-
#
|
309
|
+
# Cancels a currently running template deployment.
|
310
|
+
#
|
311
|
+
# You can cancel a deployment only if the provisioningState is Accepted or
|
312
|
+
# Running. After the deployment is canceled, the provisioningState is set to
|
313
|
+
# Canceled. Canceling a template deployment stops the currently running
|
314
|
+
# template deployment and leaves the resource group partially deployed.
|
497
315
|
#
|
498
316
|
# @param resource_group_name [String] The name of the resource group. The name
|
499
317
|
# is case insensitive.
|
500
|
-
# @param deployment_name [String] The name of the deployment.
|
318
|
+
# @param deployment_name [String] The name of the deployment to cancel.
|
501
319
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
502
320
|
# will be added to the HTTP request.
|
503
321
|
#
|
@@ -508,11 +326,16 @@ module Azure::ARM::Resources
|
|
508
326
|
end
|
509
327
|
|
510
328
|
#
|
511
|
-
#
|
329
|
+
# Cancels a currently running template deployment.
|
330
|
+
#
|
331
|
+
# You can cancel a deployment only if the provisioningState is Accepted or
|
332
|
+
# Running. After the deployment is canceled, the provisioningState is set to
|
333
|
+
# Canceled. Canceling a template deployment stops the currently running
|
334
|
+
# template deployment and leaves the resource group partially deployed.
|
512
335
|
#
|
513
336
|
# @param resource_group_name [String] The name of the resource group. The name
|
514
337
|
# is case insensitive.
|
515
|
-
# @param deployment_name [String] The name of the deployment.
|
338
|
+
# @param deployment_name [String] The name of the deployment to cancel.
|
516
339
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
517
340
|
# will be added to the HTTP request.
|
518
341
|
#
|
@@ -523,11 +346,16 @@ module Azure::ARM::Resources
|
|
523
346
|
end
|
524
347
|
|
525
348
|
#
|
526
|
-
#
|
349
|
+
# Cancels a currently running template deployment.
|
350
|
+
#
|
351
|
+
# You can cancel a deployment only if the provisioningState is Accepted or
|
352
|
+
# Running. After the deployment is canceled, the provisioningState is set to
|
353
|
+
# Canceled. Canceling a template deployment stops the currently running
|
354
|
+
# template deployment and leaves the resource group partially deployed.
|
527
355
|
#
|
528
356
|
# @param resource_group_name [String] The name of the resource group. The name
|
529
357
|
# is case insensitive.
|
530
|
-
# @param deployment_name [String] The name of the deployment.
|
358
|
+
# @param deployment_name [String] The name of the deployment to cancel.
|
531
359
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
532
360
|
# to the HTTP request.
|
533
361
|
#
|
@@ -576,12 +404,13 @@ module Azure::ARM::Resources
|
|
576
404
|
end
|
577
405
|
|
578
406
|
#
|
579
|
-
#
|
407
|
+
# Validates whether the specified template is syntactically correct and will be
|
408
|
+
# accepted by Azure Resource Manager..
|
580
409
|
#
|
581
|
-
# @param resource_group_name [String] The name of the resource group
|
582
|
-
# is case insensitive.
|
410
|
+
# @param resource_group_name [String] The name of the resource group the
|
411
|
+
# template will be deployed to. The name is case insensitive.
|
583
412
|
# @param deployment_name [String] The name of the deployment.
|
584
|
-
# @param parameters [Deployment]
|
413
|
+
# @param parameters [Deployment] Parameters to validate.
|
585
414
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
586
415
|
# will be added to the HTTP request.
|
587
416
|
#
|
@@ -593,12 +422,13 @@ module Azure::ARM::Resources
|
|
593
422
|
end
|
594
423
|
|
595
424
|
#
|
596
|
-
#
|
425
|
+
# Validates whether the specified template is syntactically correct and will be
|
426
|
+
# accepted by Azure Resource Manager..
|
597
427
|
#
|
598
|
-
# @param resource_group_name [String] The name of the resource group
|
599
|
-
# is case insensitive.
|
428
|
+
# @param resource_group_name [String] The name of the resource group the
|
429
|
+
# template will be deployed to. The name is case insensitive.
|
600
430
|
# @param deployment_name [String] The name of the deployment.
|
601
|
-
# @param parameters [Deployment]
|
431
|
+
# @param parameters [Deployment] Parameters to validate.
|
602
432
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
603
433
|
# will be added to the HTTP request.
|
604
434
|
#
|
@@ -609,12 +439,13 @@ module Azure::ARM::Resources
|
|
609
439
|
end
|
610
440
|
|
611
441
|
#
|
612
|
-
#
|
442
|
+
# Validates whether the specified template is syntactically correct and will be
|
443
|
+
# accepted by Azure Resource Manager..
|
613
444
|
#
|
614
|
-
# @param resource_group_name [String] The name of the resource group
|
615
|
-
# is case insensitive.
|
445
|
+
# @param resource_group_name [String] The name of the resource group the
|
446
|
+
# template will be deployed to. The name is case insensitive.
|
616
447
|
# @param deployment_name [String] The name of the deployment.
|
617
|
-
# @param parameters [Deployment]
|
448
|
+
# @param parameters [Deployment] Parameters to validate.
|
618
449
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
619
450
|
# to the HTTP request.
|
620
451
|
#
|
@@ -693,11 +524,12 @@ module Azure::ARM::Resources
|
|
693
524
|
end
|
694
525
|
|
695
526
|
#
|
696
|
-
# Exports
|
527
|
+
# Exports the template used for specified deployment.
|
697
528
|
#
|
698
529
|
# @param resource_group_name [String] The name of the resource group. The name
|
699
530
|
# is case insensitive.
|
700
|
-
# @param deployment_name [String] The name of the deployment
|
531
|
+
# @param deployment_name [String] The name of the deployment from which to get
|
532
|
+
# the template.
|
701
533
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
702
534
|
# will be added to the HTTP request.
|
703
535
|
#
|
@@ -709,11 +541,12 @@ module Azure::ARM::Resources
|
|
709
541
|
end
|
710
542
|
|
711
543
|
#
|
712
|
-
# Exports
|
544
|
+
# Exports the template used for specified deployment.
|
713
545
|
#
|
714
546
|
# @param resource_group_name [String] The name of the resource group. The name
|
715
547
|
# is case insensitive.
|
716
|
-
# @param deployment_name [String] The name of the deployment
|
548
|
+
# @param deployment_name [String] The name of the deployment from which to get
|
549
|
+
# the template.
|
717
550
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
718
551
|
# will be added to the HTTP request.
|
719
552
|
#
|
@@ -724,11 +557,12 @@ module Azure::ARM::Resources
|
|
724
557
|
end
|
725
558
|
|
726
559
|
#
|
727
|
-
# Exports
|
560
|
+
# Exports the template used for specified deployment.
|
728
561
|
#
|
729
562
|
# @param resource_group_name [String] The name of the resource group. The name
|
730
563
|
# is case insensitive.
|
731
|
-
# @param deployment_name [String] The name of the deployment
|
564
|
+
# @param deployment_name [String] The name of the deployment from which to get
|
565
|
+
# the template.
|
732
566
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
733
567
|
# to the HTTP request.
|
734
568
|
#
|
@@ -787,38 +621,14 @@ module Azure::ARM::Resources
|
|
787
621
|
end
|
788
622
|
|
789
623
|
#
|
790
|
-
# Get a
|
624
|
+
# Get all the deployments for a resource group.
|
791
625
|
#
|
792
|
-
# @param resource_group_name [String] The name of the resource group
|
793
|
-
#
|
794
|
-
# @param filter [String] The filter to apply on the operation.
|
795
|
-
#
|
796
|
-
#
|
797
|
-
#
|
798
|
-
# will be added to the HTTP request.
|
799
|
-
#
|
800
|
-
# @return [DeploymentListResult] which provide lazy access to pages of the
|
801
|
-
# response.
|
802
|
-
#
|
803
|
-
def list_as_lazy(resource_group_name, filter = nil, top = nil, custom_headers = nil)
|
804
|
-
response = list_async(resource_group_name, filter, top, custom_headers).value!
|
805
|
-
unless response.nil?
|
806
|
-
page = response.body
|
807
|
-
page.next_method = Proc.new do |next_page_link|
|
808
|
-
list_next_async(next_page_link, custom_headers)
|
809
|
-
end
|
810
|
-
page
|
811
|
-
end
|
812
|
-
end
|
813
|
-
|
814
|
-
#
|
815
|
-
# Get a list of deployments.
|
816
|
-
#
|
817
|
-
# @param resource_group_name [String] The name of the resource group to filter
|
818
|
-
# by. The name is case insensitive.
|
819
|
-
# @param filter [String] The filter to apply on the operation.
|
820
|
-
# @param top [Integer] Query parameters. If null is passed returns all
|
821
|
-
# deployments.
|
626
|
+
# @param resource_group_name [String] The name of the resource group with the
|
627
|
+
# deployments to get. The name is case insensitive.
|
628
|
+
# @param filter [String] The filter to apply on the operation. For example, you
|
629
|
+
# can use $filter=provisioningState eq '{state}'.
|
630
|
+
# @param top [Integer] The number of results to get. If null is passed, returns
|
631
|
+
# all deployments.
|
822
632
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
823
633
|
# will be added to the HTTP request.
|
824
634
|
#
|
@@ -830,13 +640,14 @@ module Azure::ARM::Resources
|
|
830
640
|
end
|
831
641
|
|
832
642
|
#
|
833
|
-
# Get a
|
643
|
+
# Get all the deployments for a resource group.
|
834
644
|
#
|
835
|
-
# @param resource_group_name [String] The name of the resource group
|
836
|
-
#
|
837
|
-
# @param filter [String] The filter to apply on the operation.
|
838
|
-
#
|
839
|
-
#
|
645
|
+
# @param resource_group_name [String] The name of the resource group with the
|
646
|
+
# deployments to get. The name is case insensitive.
|
647
|
+
# @param filter [String] The filter to apply on the operation. For example, you
|
648
|
+
# can use $filter=provisioningState eq '{state}'.
|
649
|
+
# @param top [Integer] The number of results to get. If null is passed, returns
|
650
|
+
# all deployments.
|
840
651
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
841
652
|
# will be added to the HTTP request.
|
842
653
|
#
|
@@ -847,13 +658,14 @@ module Azure::ARM::Resources
|
|
847
658
|
end
|
848
659
|
|
849
660
|
#
|
850
|
-
# Get a
|
661
|
+
# Get all the deployments for a resource group.
|
851
662
|
#
|
852
|
-
# @param resource_group_name [String] The name of the resource group
|
853
|
-
#
|
854
|
-
# @param filter [String] The filter to apply on the operation.
|
855
|
-
#
|
856
|
-
#
|
663
|
+
# @param resource_group_name [String] The name of the resource group with the
|
664
|
+
# deployments to get. The name is case insensitive.
|
665
|
+
# @param filter [String] The filter to apply on the operation. For example, you
|
666
|
+
# can use $filter=provisioningState eq '{state}'.
|
667
|
+
# @param top [Integer] The number of results to get. If null is passed, returns
|
668
|
+
# all deployments.
|
857
669
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
858
670
|
# to the HTTP request.
|
859
671
|
#
|
@@ -911,10 +723,258 @@ module Azure::ARM::Resources
|
|
911
723
|
end
|
912
724
|
|
913
725
|
#
|
914
|
-
#
|
726
|
+
# Deletes a deployment from the deployment history.
|
727
|
+
#
|
728
|
+
# A template deployment that is currently running cannot be deleted. Deleting a
|
729
|
+
# template deployment removes the associated deployment operations. Deleting a
|
730
|
+
# template deployment does not affect the state of the resource group. This is
|
731
|
+
# an asynchronous operation that returns a status of 202 until the template
|
732
|
+
# deployment is successfully deleted. The Location response header contains the
|
733
|
+
# URI that is used to obtain the status of the process. While the process is
|
734
|
+
# running, a call to the URI in the Location header returns a status of 202.
|
735
|
+
# When the process finishes, the URI in the Location header returns a status of
|
736
|
+
# 204 on success. If the asynchronous request failed, the URI in the Location
|
737
|
+
# header returns an error-level status code.
|
738
|
+
#
|
739
|
+
# @param resource_group_name [String] The name of the resource group with the
|
740
|
+
# deployment to delete. The name is case insensitive.
|
741
|
+
# @param deployment_name [String] The name of the deployment to delete.
|
742
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
743
|
+
# will be added to the HTTP request.
|
744
|
+
#
|
745
|
+
#
|
746
|
+
def begin_delete(resource_group_name, deployment_name, custom_headers = nil)
|
747
|
+
response = begin_delete_async(resource_group_name, deployment_name, custom_headers).value!
|
748
|
+
nil
|
749
|
+
end
|
750
|
+
|
751
|
+
#
|
752
|
+
# Deletes a deployment from the deployment history.
|
753
|
+
#
|
754
|
+
# A template deployment that is currently running cannot be deleted. Deleting a
|
755
|
+
# template deployment removes the associated deployment operations. Deleting a
|
756
|
+
# template deployment does not affect the state of the resource group. This is
|
757
|
+
# an asynchronous operation that returns a status of 202 until the template
|
758
|
+
# deployment is successfully deleted. The Location response header contains the
|
759
|
+
# URI that is used to obtain the status of the process. While the process is
|
760
|
+
# running, a call to the URI in the Location header returns a status of 202.
|
761
|
+
# When the process finishes, the URI in the Location header returns a status of
|
762
|
+
# 204 on success. If the asynchronous request failed, the URI in the Location
|
763
|
+
# header returns an error-level status code.
|
764
|
+
#
|
765
|
+
# @param resource_group_name [String] The name of the resource group with the
|
766
|
+
# deployment to delete. The name is case insensitive.
|
767
|
+
# @param deployment_name [String] The name of the deployment to delete.
|
768
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
769
|
+
# will be added to the HTTP request.
|
770
|
+
#
|
771
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
772
|
+
#
|
773
|
+
def begin_delete_with_http_info(resource_group_name, deployment_name, custom_headers = nil)
|
774
|
+
begin_delete_async(resource_group_name, deployment_name, custom_headers).value!
|
775
|
+
end
|
776
|
+
|
777
|
+
#
|
778
|
+
# Deletes a deployment from the deployment history.
|
779
|
+
#
|
780
|
+
# A template deployment that is currently running cannot be deleted. Deleting a
|
781
|
+
# template deployment removes the associated deployment operations. Deleting a
|
782
|
+
# template deployment does not affect the state of the resource group. This is
|
783
|
+
# an asynchronous operation that returns a status of 202 until the template
|
784
|
+
# deployment is successfully deleted. The Location response header contains the
|
785
|
+
# URI that is used to obtain the status of the process. While the process is
|
786
|
+
# running, a call to the URI in the Location header returns a status of 202.
|
787
|
+
# When the process finishes, the URI in the Location header returns a status of
|
788
|
+
# 204 on success. If the asynchronous request failed, the URI in the Location
|
789
|
+
# header returns an error-level status code.
|
790
|
+
#
|
791
|
+
# @param resource_group_name [String] The name of the resource group with the
|
792
|
+
# deployment to delete. The name is case insensitive.
|
793
|
+
# @param deployment_name [String] The name of the deployment to delete.
|
794
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
795
|
+
# to the HTTP request.
|
796
|
+
#
|
797
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
798
|
+
#
|
799
|
+
def begin_delete_async(resource_group_name, deployment_name, custom_headers = nil)
|
800
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
801
|
+
fail ArgumentError, 'deployment_name is nil' if deployment_name.nil?
|
802
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
803
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
804
|
+
|
805
|
+
|
806
|
+
request_headers = {}
|
807
|
+
|
808
|
+
# Set Headers
|
809
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
810
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
811
|
+
path_template = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}'
|
812
|
+
|
813
|
+
request_url = @base_url || @client.base_url
|
814
|
+
|
815
|
+
options = {
|
816
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
817
|
+
path_params: {'resourceGroupName' => resource_group_name,'deploymentName' => deployment_name,'subscriptionId' => @client.subscription_id},
|
818
|
+
query_params: {'api-version' => @client.api_version},
|
819
|
+
headers: request_headers.merge(custom_headers || {}),
|
820
|
+
base_url: request_url
|
821
|
+
}
|
822
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
823
|
+
|
824
|
+
promise = promise.then do |result|
|
825
|
+
http_response = result.response
|
826
|
+
status_code = http_response.status
|
827
|
+
response_content = http_response.body
|
828
|
+
unless status_code == 202 || status_code == 204
|
829
|
+
error_model = JSON.load(response_content)
|
830
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
831
|
+
end
|
832
|
+
|
833
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
834
|
+
|
835
|
+
result
|
836
|
+
end
|
837
|
+
|
838
|
+
promise.execute
|
839
|
+
end
|
840
|
+
|
841
|
+
#
|
842
|
+
# Deploys resources to a resource group.
|
843
|
+
#
|
844
|
+
# You can provide the template and parameters directly in the request or link
|
845
|
+
# to JSON files.
|
846
|
+
#
|
847
|
+
# @param resource_group_name [String] The name of the resource group to deploy
|
848
|
+
# the resources to. The name is case insensitive. The resource group must
|
849
|
+
# already exist.
|
850
|
+
# @param deployment_name [String] The name of the deployment.
|
851
|
+
# @param parameters [Deployment] Additional parameters supplied to the
|
852
|
+
# operation.
|
853
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
854
|
+
# will be added to the HTTP request.
|
855
|
+
#
|
856
|
+
# @return [DeploymentExtended] operation results.
|
857
|
+
#
|
858
|
+
def begin_create_or_update(resource_group_name, deployment_name, parameters, custom_headers = nil)
|
859
|
+
response = begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers).value!
|
860
|
+
response.body unless response.nil?
|
861
|
+
end
|
862
|
+
|
863
|
+
#
|
864
|
+
# Deploys resources to a resource group.
|
865
|
+
#
|
866
|
+
# You can provide the template and parameters directly in the request or link
|
867
|
+
# to JSON files.
|
868
|
+
#
|
869
|
+
# @param resource_group_name [String] The name of the resource group to deploy
|
870
|
+
# the resources to. The name is case insensitive. The resource group must
|
871
|
+
# already exist.
|
872
|
+
# @param deployment_name [String] The name of the deployment.
|
873
|
+
# @param parameters [Deployment] Additional parameters supplied to the
|
874
|
+
# operation.
|
875
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
876
|
+
# will be added to the HTTP request.
|
877
|
+
#
|
878
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
879
|
+
#
|
880
|
+
def begin_create_or_update_with_http_info(resource_group_name, deployment_name, parameters, custom_headers = nil)
|
881
|
+
begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers).value!
|
882
|
+
end
|
883
|
+
|
884
|
+
#
|
885
|
+
# Deploys resources to a resource group.
|
886
|
+
#
|
887
|
+
# You can provide the template and parameters directly in the request or link
|
888
|
+
# to JSON files.
|
889
|
+
#
|
890
|
+
# @param resource_group_name [String] The name of the resource group to deploy
|
891
|
+
# the resources to. The name is case insensitive. The resource group must
|
892
|
+
# already exist.
|
893
|
+
# @param deployment_name [String] The name of the deployment.
|
894
|
+
# @param parameters [Deployment] Additional parameters supplied to the
|
895
|
+
# operation.
|
896
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
897
|
+
# to the HTTP request.
|
898
|
+
#
|
899
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
900
|
+
#
|
901
|
+
def begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers = nil)
|
902
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
903
|
+
fail ArgumentError, 'deployment_name is nil' if deployment_name.nil?
|
904
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
905
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
906
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
907
|
+
|
908
|
+
|
909
|
+
request_headers = {}
|
910
|
+
|
911
|
+
# Set Headers
|
912
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
913
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
914
|
+
|
915
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
916
|
+
|
917
|
+
# Serialize Request
|
918
|
+
request_mapper = Deployment.mapper()
|
919
|
+
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
920
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
921
|
+
|
922
|
+
path_template = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}'
|
923
|
+
|
924
|
+
request_url = @base_url || @client.base_url
|
925
|
+
|
926
|
+
options = {
|
927
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
928
|
+
path_params: {'resourceGroupName' => resource_group_name,'deploymentName' => deployment_name,'subscriptionId' => @client.subscription_id},
|
929
|
+
query_params: {'api-version' => @client.api_version},
|
930
|
+
body: request_content,
|
931
|
+
headers: request_headers.merge(custom_headers || {}),
|
932
|
+
base_url: request_url
|
933
|
+
}
|
934
|
+
promise = @client.make_request_async(:put, path_template, options)
|
935
|
+
|
936
|
+
promise = promise.then do |result|
|
937
|
+
http_response = result.response
|
938
|
+
status_code = http_response.status
|
939
|
+
response_content = http_response.body
|
940
|
+
unless status_code == 200 || status_code == 201
|
941
|
+
error_model = JSON.load(response_content)
|
942
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
943
|
+
end
|
944
|
+
|
945
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
946
|
+
# Deserialize Response
|
947
|
+
if status_code == 200
|
948
|
+
begin
|
949
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
950
|
+
result_mapper = DeploymentExtended.mapper()
|
951
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
952
|
+
rescue Exception => e
|
953
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
954
|
+
end
|
955
|
+
end
|
956
|
+
# Deserialize Response
|
957
|
+
if status_code == 201
|
958
|
+
begin
|
959
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
960
|
+
result_mapper = DeploymentExtended.mapper()
|
961
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
962
|
+
rescue Exception => e
|
963
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
964
|
+
end
|
965
|
+
end
|
966
|
+
|
967
|
+
result
|
968
|
+
end
|
969
|
+
|
970
|
+
promise.execute
|
971
|
+
end
|
972
|
+
|
973
|
+
#
|
974
|
+
# Get all the deployments for a resource group.
|
915
975
|
#
|
916
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
917
|
-
#
|
976
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
977
|
+
# to List operation.
|
918
978
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
919
979
|
# will be added to the HTTP request.
|
920
980
|
#
|
@@ -926,10 +986,10 @@ module Azure::ARM::Resources
|
|
926
986
|
end
|
927
987
|
|
928
988
|
#
|
929
|
-
# Get a
|
989
|
+
# Get all the deployments for a resource group.
|
930
990
|
#
|
931
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
932
|
-
#
|
991
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
992
|
+
# to List operation.
|
933
993
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
934
994
|
# will be added to the HTTP request.
|
935
995
|
#
|
@@ -940,10 +1000,10 @@ module Azure::ARM::Resources
|
|
940
1000
|
end
|
941
1001
|
|
942
1002
|
#
|
943
|
-
# Get a
|
1003
|
+
# Get all the deployments for a resource group.
|
944
1004
|
#
|
945
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
946
|
-
#
|
1005
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1006
|
+
# to List operation.
|
947
1007
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
948
1008
|
# to the HTTP request.
|
949
1009
|
#
|
@@ -997,5 +1057,31 @@ module Azure::ARM::Resources
|
|
997
1057
|
promise.execute
|
998
1058
|
end
|
999
1059
|
|
1060
|
+
#
|
1061
|
+
# Get all the deployments for a resource group.
|
1062
|
+
#
|
1063
|
+
# @param resource_group_name [String] The name of the resource group with the
|
1064
|
+
# deployments to get. The name is case insensitive.
|
1065
|
+
# @param filter [String] The filter to apply on the operation. For example, you
|
1066
|
+
# can use $filter=provisioningState eq '{state}'.
|
1067
|
+
# @param top [Integer] The number of results to get. If null is passed, returns
|
1068
|
+
# all deployments.
|
1069
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1070
|
+
# will be added to the HTTP request.
|
1071
|
+
#
|
1072
|
+
# @return [DeploymentListResult] which provide lazy access to pages of the
|
1073
|
+
# response.
|
1074
|
+
#
|
1075
|
+
def list_as_lazy(resource_group_name, filter = nil, top = nil, custom_headers = nil)
|
1076
|
+
response = list_async(resource_group_name, filter, top, custom_headers).value!
|
1077
|
+
unless response.nil?
|
1078
|
+
page = response.body
|
1079
|
+
page.next_method = Proc.new do |next_page_link|
|
1080
|
+
list_next_async(next_page_link, custom_headers)
|
1081
|
+
end
|
1082
|
+
page
|
1083
|
+
end
|
1084
|
+
end
|
1085
|
+
|
1000
1086
|
end
|
1001
1087
|
end
|