azure_mgmt_resources 0.10.0 → 0.11.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 +24 -23
- data/lib/generated/azure_mgmt_resources/deployment_operations.rb +9 -10
- data/lib/generated/azure_mgmt_resources/deployments.rb +44 -45
- data/lib/generated/azure_mgmt_resources/models/alias_path_type.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/alias_type.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/basic_dependency.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/debug_setting.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/dependency.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/deployment.rb +3 -2
- data/lib/generated/azure_mgmt_resources/models/deployment_export_result.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/deployment_extended.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/deployment_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/deployment_mode.rb +1 -1
- data/lib/generated/azure_mgmt_resources/models/deployment_operation.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/deployment_properties.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/deployment_validate_result.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/export_template_request.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/generic_resource.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/generic_resource_filter.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/http_message.rb +3 -3
- data/lib/generated/azure_mgmt_resources/models/identity.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/parameters_link.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/plan.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/provider.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/provider_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/provider_resource_type.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/resource_group.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/resource_group_export_result.rb +3 -3
- data/lib/generated/azure_mgmt_resources/models/resource_group_filter.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/resource_group_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/resource_group_patchable.rb +85 -0
- data/lib/generated/azure_mgmt_resources/models/resource_group_properties.rb +2 -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 +2 -1
- data/lib/generated/azure_mgmt_resources/models/resource_management_error_with_details.rb +3 -3
- data/lib/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/resources_move_info.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/sku.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/tag_count.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/tag_details.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/tag_value.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/tags_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/target_resource.rb +2 -1
- data/lib/generated/azure_mgmt_resources/models/template_link.rb +2 -1
- data/lib/generated/azure_mgmt_resources/module_definition.rb +1 -1
- data/lib/generated/azure_mgmt_resources/providers.rb +15 -16
- data/lib/generated/azure_mgmt_resources/resource_groups.rb +42 -258
- data/lib/generated/azure_mgmt_resources/resource_management_client.rb +6 -6
- data/lib/generated/azure_mgmt_resources/resources.rb +252 -38
- data/lib/generated/azure_mgmt_resources/tags.rb +18 -19
- data/lib/generated/azure_mgmt_resources/version.rb +2 -2
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b40f98a213a07268fe6ff733c2a6e2d9a4fbf5be
|
4
|
+
data.tar.gz: 1ac9d7b7b2f75f522e4356e41671bedb81429fec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 203c9ae5f1a1be27220db3d0e4fed0f5327a4c9c563d093a69c6c9942370e6260c98ff4b8785de4a581f3dc2872a2f17b2f1d721a9acd7c73454f3b2a5d4c0ac
|
7
|
+
data.tar.gz: aef592fd3ff372a3cb9c11c31ce209eae0b2c0e3dcfe28b2e7e46539c7bb99c02bab41b49c74cd9a99bbee9cfc152406394d70ea1cfcf88662fa30b3b9ba8319
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -22,53 +22,54 @@ require 'ms_rest_azure'
|
|
22
22
|
module Azure::ARM::Resources
|
23
23
|
autoload :Deployments, 'generated/azure_mgmt_resources/deployments.rb'
|
24
24
|
autoload :Providers, 'generated/azure_mgmt_resources/providers.rb'
|
25
|
-
autoload :ResourceGroups, 'generated/azure_mgmt_resources/resource_groups.rb'
|
26
25
|
autoload :Resources, 'generated/azure_mgmt_resources/resources.rb'
|
26
|
+
autoload :ResourceGroups, 'generated/azure_mgmt_resources/resource_groups.rb'
|
27
27
|
autoload :Tags, 'generated/azure_mgmt_resources/tags.rb'
|
28
28
|
autoload :DeploymentOperations, 'generated/azure_mgmt_resources/deployment_operations.rb'
|
29
29
|
autoload :ResourceManagementClient, 'generated/azure_mgmt_resources/resource_management_client.rb'
|
30
30
|
|
31
31
|
module Models
|
32
32
|
autoload :Sku, 'generated/azure_mgmt_resources/models/sku.rb'
|
33
|
-
autoload :DeploymentExtendedFilter, 'generated/azure_mgmt_resources/models/deployment_extended_filter.rb'
|
34
33
|
autoload :Identity, 'generated/azure_mgmt_resources/models/identity.rb'
|
34
|
+
autoload :GenericResourceFilter, 'generated/azure_mgmt_resources/models/generic_resource_filter.rb'
|
35
35
|
autoload :ResourceGroupFilter, 'generated/azure_mgmt_resources/models/resource_group_filter.rb'
|
36
|
-
autoload :
|
37
|
-
autoload :DebugSetting, 'generated/azure_mgmt_resources/models/debug_setting.rb'
|
36
|
+
autoload :ParametersLink, 'generated/azure_mgmt_resources/models/parameters_link.rb'
|
38
37
|
autoload :ResourceListResult, 'generated/azure_mgmt_resources/models/resource_list_result.rb'
|
39
|
-
autoload :
|
38
|
+
autoload :DeploymentProperties, 'generated/azure_mgmt_resources/models/deployment_properties.rb'
|
40
39
|
autoload :ResourceGroupProperties, 'generated/azure_mgmt_resources/models/resource_group_properties.rb'
|
41
|
-
autoload :
|
40
|
+
autoload :DeploymentExportResult, 'generated/azure_mgmt_resources/models/deployment_export_result.rb'
|
42
41
|
autoload :ResourceGroup, 'generated/azure_mgmt_resources/models/resource_group.rb'
|
43
|
-
autoload :
|
42
|
+
autoload :AliasPathType, 'generated/azure_mgmt_resources/models/alias_path_type.rb'
|
43
|
+
autoload :ResourceGroupPatchable, 'generated/azure_mgmt_resources/models/resource_group_patchable.rb'
|
44
|
+
autoload :ProviderResourceType, 'generated/azure_mgmt_resources/models/provider_resource_type.rb'
|
44
45
|
autoload :ResourceGroupListResult, 'generated/azure_mgmt_resources/models/resource_group_list_result.rb'
|
45
|
-
autoload :
|
46
|
+
autoload :BasicDependency, 'generated/azure_mgmt_resources/models/basic_dependency.rb'
|
46
47
|
autoload :ResourcesMoveInfo, 'generated/azure_mgmt_resources/models/resources_move_info.rb'
|
47
|
-
autoload :
|
48
|
+
autoload :DeploymentPropertiesExtended, 'generated/azure_mgmt_resources/models/deployment_properties_extended.rb'
|
48
49
|
autoload :ExportTemplateRequest, 'generated/azure_mgmt_resources/models/export_template_request.rb'
|
49
|
-
autoload :
|
50
|
+
autoload :DeploymentExtended, 'generated/azure_mgmt_resources/models/deployment_extended.rb'
|
50
51
|
autoload :TagCount, 'generated/azure_mgmt_resources/models/tag_count.rb'
|
51
|
-
autoload :
|
52
|
+
autoload :ProviderListResult, 'generated/azure_mgmt_resources/models/provider_list_result.rb'
|
52
53
|
autoload :TagValue, 'generated/azure_mgmt_resources/models/tag_value.rb'
|
53
|
-
autoload :
|
54
|
+
autoload :DeploymentExtendedFilter, 'generated/azure_mgmt_resources/models/deployment_extended_filter.rb'
|
54
55
|
autoload :TagDetails, 'generated/azure_mgmt_resources/models/tag_details.rb'
|
55
|
-
autoload :
|
56
|
+
autoload :DebugSetting, 'generated/azure_mgmt_resources/models/debug_setting.rb'
|
56
57
|
autoload :TagsListResult, 'generated/azure_mgmt_resources/models/tags_list_result.rb'
|
57
|
-
autoload :
|
58
|
+
autoload :ResourceManagementErrorWithDetails, 'generated/azure_mgmt_resources/models/resource_management_error_with_details.rb'
|
58
59
|
autoload :TargetResource, 'generated/azure_mgmt_resources/models/target_resource.rb'
|
59
|
-
autoload :
|
60
|
+
autoload :Provider, 'generated/azure_mgmt_resources/models/provider.rb'
|
60
61
|
autoload :HttpMessage, 'generated/azure_mgmt_resources/models/http_message.rb'
|
61
|
-
autoload :
|
62
|
+
autoload :DeploymentValidateResult, 'generated/azure_mgmt_resources/models/deployment_validate_result.rb'
|
62
63
|
autoload :DeploymentOperationProperties, 'generated/azure_mgmt_resources/models/deployment_operation_properties.rb'
|
63
|
-
autoload :
|
64
|
+
autoload :Plan, 'generated/azure_mgmt_resources/models/plan.rb'
|
64
65
|
autoload :DeploymentOperation, 'generated/azure_mgmt_resources/models/deployment_operation.rb'
|
65
|
-
autoload :
|
66
|
+
autoload :Deployment, 'generated/azure_mgmt_resources/models/deployment.rb'
|
66
67
|
autoload :DeploymentOperationsListResult, 'generated/azure_mgmt_resources/models/deployment_operations_list_result.rb'
|
67
|
-
autoload :
|
68
|
+
autoload :Dependency, 'generated/azure_mgmt_resources/models/dependency.rb'
|
68
69
|
autoload :ResourceProviderOperationDisplayProperties, 'generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb'
|
69
|
-
autoload :
|
70
|
-
autoload :
|
71
|
-
autoload :
|
70
|
+
autoload :TemplateLink, 'generated/azure_mgmt_resources/models/template_link.rb'
|
71
|
+
autoload :DeploymentListResult, 'generated/azure_mgmt_resources/models/deployment_list_result.rb'
|
72
|
+
autoload :AliasType, 'generated/azure_mgmt_resources/models/alias_type.rb'
|
72
73
|
autoload :ResourceGroupExportResult, 'generated/azure_mgmt_resources/models/resource_group_export_result.rb'
|
73
74
|
autoload :GenericResource, 'generated/azure_mgmt_resources/models/generic_resource.rb'
|
74
75
|
autoload :DeploymentMode, 'generated/azure_mgmt_resources/models/deployment_mode.rb'
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -8,7 +8,6 @@ module Azure::ARM::Resources
|
|
8
8
|
# Provides operations for working with resources and resource groups.
|
9
9
|
#
|
10
10
|
class DeploymentOperations
|
11
|
-
include Azure::ARM::Resources::Models
|
12
11
|
include MsRestAzure
|
13
12
|
|
14
13
|
#
|
@@ -80,7 +79,7 @@ module Azure::ARM::Resources
|
|
80
79
|
# Set Headers
|
81
80
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
82
81
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
83
|
-
path_template = '
|
82
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations/{operationId}'
|
84
83
|
|
85
84
|
request_url = @base_url || @client.base_url
|
86
85
|
|
@@ -107,8 +106,8 @@ module Azure::ARM::Resources
|
|
107
106
|
if status_code == 200
|
108
107
|
begin
|
109
108
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
110
|
-
result_mapper = DeploymentOperation.mapper()
|
111
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
109
|
+
result_mapper = Azure::ARM::Resources::Models::DeploymentOperation.mapper()
|
110
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
112
111
|
rescue Exception => e
|
113
112
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
114
113
|
end
|
@@ -180,7 +179,7 @@ module Azure::ARM::Resources
|
|
180
179
|
# Set Headers
|
181
180
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
182
181
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
183
|
-
path_template = '
|
182
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations'
|
184
183
|
|
185
184
|
request_url = @base_url || @client.base_url
|
186
185
|
|
@@ -207,8 +206,8 @@ module Azure::ARM::Resources
|
|
207
206
|
if status_code == 200
|
208
207
|
begin
|
209
208
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
210
|
-
result_mapper = DeploymentOperationsListResult.mapper()
|
211
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
209
|
+
result_mapper = Azure::ARM::Resources::Models::DeploymentOperationsListResult.mapper()
|
210
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
212
211
|
rescue Exception => e
|
213
212
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
214
213
|
end
|
@@ -294,8 +293,8 @@ module Azure::ARM::Resources
|
|
294
293
|
if status_code == 200
|
295
294
|
begin
|
296
295
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
297
|
-
result_mapper = DeploymentOperationsListResult.mapper()
|
298
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
296
|
+
result_mapper = Azure::ARM::Resources::Models::DeploymentOperationsListResult.mapper()
|
297
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
299
298
|
rescue Exception => e
|
300
299
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
301
300
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -8,7 +8,6 @@ module Azure::ARM::Resources
|
|
8
8
|
# Provides operations for working with resources and resource groups.
|
9
9
|
#
|
10
10
|
class Deployments
|
11
|
-
include Azure::ARM::Resources::Models
|
12
11
|
include MsRestAzure
|
13
12
|
|
14
13
|
#
|
@@ -127,7 +126,7 @@ module Azure::ARM::Resources
|
|
127
126
|
# Set Headers
|
128
127
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
129
128
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
130
|
-
path_template = '
|
129
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}'
|
131
130
|
|
132
131
|
request_url = @base_url || @client.base_url
|
133
132
|
|
@@ -200,8 +199,8 @@ module Azure::ARM::Resources
|
|
200
199
|
promise = promise.then do |response|
|
201
200
|
# Defining deserialization method.
|
202
201
|
deserialize_method = lambda do |parsed_response|
|
203
|
-
result_mapper = DeploymentExtended.mapper()
|
204
|
-
parsed_response = @client.deserialize(result_mapper, parsed_response
|
202
|
+
result_mapper = Azure::ARM::Resources::Models::DeploymentExtended.mapper()
|
203
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
205
204
|
end
|
206
205
|
|
207
206
|
# Waiting for response.
|
@@ -265,7 +264,7 @@ module Azure::ARM::Resources
|
|
265
264
|
# Set Headers
|
266
265
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
267
266
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
268
|
-
path_template = '
|
267
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}'
|
269
268
|
|
270
269
|
request_url = @base_url || @client.base_url
|
271
270
|
|
@@ -292,8 +291,8 @@ module Azure::ARM::Resources
|
|
292
291
|
if status_code == 200
|
293
292
|
begin
|
294
293
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
295
|
-
result_mapper = DeploymentExtended.mapper()
|
296
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
294
|
+
result_mapper = Azure::ARM::Resources::Models::DeploymentExtended.mapper()
|
295
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
297
296
|
rescue Exception => e
|
298
297
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
299
298
|
end
|
@@ -373,7 +372,7 @@ module Azure::ARM::Resources
|
|
373
372
|
# Set Headers
|
374
373
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
375
374
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
376
|
-
path_template = '
|
375
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel'
|
377
376
|
|
378
377
|
request_url = @base_url || @client.base_url
|
379
378
|
|
@@ -468,11 +467,11 @@ module Azure::ARM::Resources
|
|
468
467
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
469
468
|
|
470
469
|
# Serialize Request
|
471
|
-
request_mapper = Deployment.mapper()
|
472
|
-
request_content = @client.serialize(request_mapper, parameters
|
470
|
+
request_mapper = Azure::ARM::Resources::Models::Deployment.mapper()
|
471
|
+
request_content = @client.serialize(request_mapper, parameters)
|
473
472
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
474
473
|
|
475
|
-
path_template = '
|
474
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/validate'
|
476
475
|
|
477
476
|
request_url = @base_url || @client.base_url
|
478
477
|
|
@@ -500,8 +499,8 @@ module Azure::ARM::Resources
|
|
500
499
|
if status_code == 200
|
501
500
|
begin
|
502
501
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
503
|
-
result_mapper = DeploymentValidateResult.mapper()
|
504
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
502
|
+
result_mapper = Azure::ARM::Resources::Models::DeploymentValidateResult.mapper()
|
503
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
505
504
|
rescue Exception => e
|
506
505
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
507
506
|
end
|
@@ -510,8 +509,8 @@ module Azure::ARM::Resources
|
|
510
509
|
if status_code == 400
|
511
510
|
begin
|
512
511
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
513
|
-
result_mapper = DeploymentValidateResult.mapper()
|
514
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
512
|
+
result_mapper = Azure::ARM::Resources::Models::DeploymentValidateResult.mapper()
|
513
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
515
514
|
rescue Exception => e
|
516
515
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
517
516
|
end
|
@@ -580,7 +579,7 @@ module Azure::ARM::Resources
|
|
580
579
|
# Set Headers
|
581
580
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
582
581
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
583
|
-
path_template = '
|
582
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate'
|
584
583
|
|
585
584
|
request_url = @base_url || @client.base_url
|
586
585
|
|
@@ -607,8 +606,8 @@ module Azure::ARM::Resources
|
|
607
606
|
if status_code == 200
|
608
607
|
begin
|
609
608
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
610
|
-
result_mapper = DeploymentExportResult.mapper()
|
611
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
609
|
+
result_mapper = Azure::ARM::Resources::Models::DeploymentExportResult.mapper()
|
610
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
612
611
|
rescue Exception => e
|
613
612
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
614
613
|
end
|
@@ -634,8 +633,8 @@ module Azure::ARM::Resources
|
|
634
633
|
#
|
635
634
|
# @return [Array<DeploymentExtended>] operation results.
|
636
635
|
#
|
637
|
-
def
|
638
|
-
first_page =
|
636
|
+
def list_by_resource_group(resource_group_name, filter = nil, top = nil, custom_headers = nil)
|
637
|
+
first_page = list_by_resource_group_as_lazy(resource_group_name, filter, top, custom_headers)
|
639
638
|
first_page.get_all_items
|
640
639
|
end
|
641
640
|
|
@@ -653,8 +652,8 @@ module Azure::ARM::Resources
|
|
653
652
|
#
|
654
653
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
655
654
|
#
|
656
|
-
def
|
657
|
-
|
655
|
+
def list_by_resource_group_with_http_info(resource_group_name, filter = nil, top = nil, custom_headers = nil)
|
656
|
+
list_by_resource_group_async(resource_group_name, filter, top, custom_headers).value!
|
658
657
|
end
|
659
658
|
|
660
659
|
#
|
@@ -671,7 +670,7 @@ module Azure::ARM::Resources
|
|
671
670
|
#
|
672
671
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
673
672
|
#
|
674
|
-
def
|
673
|
+
def list_by_resource_group_async(resource_group_name, filter = nil, top = nil, custom_headers = nil)
|
675
674
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
676
675
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
677
676
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -682,7 +681,7 @@ module Azure::ARM::Resources
|
|
682
681
|
# Set Headers
|
683
682
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
684
683
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
685
|
-
path_template = '
|
684
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/'
|
686
685
|
|
687
686
|
request_url = @base_url || @client.base_url
|
688
687
|
|
@@ -709,8 +708,8 @@ module Azure::ARM::Resources
|
|
709
708
|
if status_code == 200
|
710
709
|
begin
|
711
710
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
712
|
-
result_mapper = DeploymentListResult.mapper()
|
713
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
711
|
+
result_mapper = Azure::ARM::Resources::Models::DeploymentListResult.mapper()
|
712
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
714
713
|
rescue Exception => e
|
715
714
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
716
715
|
end
|
@@ -808,7 +807,7 @@ module Azure::ARM::Resources
|
|
808
807
|
# Set Headers
|
809
808
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
810
809
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
811
|
-
path_template = '
|
810
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}'
|
812
811
|
|
813
812
|
request_url = @base_url || @client.base_url
|
814
813
|
|
@@ -915,11 +914,11 @@ module Azure::ARM::Resources
|
|
915
914
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
916
915
|
|
917
916
|
# Serialize Request
|
918
|
-
request_mapper = Deployment.mapper()
|
919
|
-
request_content = @client.serialize(request_mapper, parameters
|
917
|
+
request_mapper = Azure::ARM::Resources::Models::Deployment.mapper()
|
918
|
+
request_content = @client.serialize(request_mapper, parameters)
|
920
919
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
921
920
|
|
922
|
-
path_template = '
|
921
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}'
|
923
922
|
|
924
923
|
request_url = @base_url || @client.base_url
|
925
924
|
|
@@ -947,8 +946,8 @@ module Azure::ARM::Resources
|
|
947
946
|
if status_code == 200
|
948
947
|
begin
|
949
948
|
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
|
949
|
+
result_mapper = Azure::ARM::Resources::Models::DeploymentExtended.mapper()
|
950
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
952
951
|
rescue Exception => e
|
953
952
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
954
953
|
end
|
@@ -957,8 +956,8 @@ module Azure::ARM::Resources
|
|
957
956
|
if status_code == 201
|
958
957
|
begin
|
959
958
|
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
|
959
|
+
result_mapper = Azure::ARM::Resources::Models::DeploymentExtended.mapper()
|
960
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
962
961
|
rescue Exception => e
|
963
962
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
964
963
|
end
|
@@ -980,8 +979,8 @@ module Azure::ARM::Resources
|
|
980
979
|
#
|
981
980
|
# @return [DeploymentListResult] operation results.
|
982
981
|
#
|
983
|
-
def
|
984
|
-
response =
|
982
|
+
def list_by_resource_group_next(next_page_link, custom_headers = nil)
|
983
|
+
response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
|
985
984
|
response.body unless response.nil?
|
986
985
|
end
|
987
986
|
|
@@ -995,8 +994,8 @@ module Azure::ARM::Resources
|
|
995
994
|
#
|
996
995
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
997
996
|
#
|
998
|
-
def
|
999
|
-
|
997
|
+
def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil)
|
998
|
+
list_by_resource_group_next_async(next_page_link, custom_headers).value!
|
1000
999
|
end
|
1001
1000
|
|
1002
1001
|
#
|
@@ -1009,7 +1008,7 @@ module Azure::ARM::Resources
|
|
1009
1008
|
#
|
1010
1009
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1011
1010
|
#
|
1012
|
-
def
|
1011
|
+
def list_by_resource_group_next_async(next_page_link, custom_headers = nil)
|
1013
1012
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1014
1013
|
|
1015
1014
|
|
@@ -1044,8 +1043,8 @@ module Azure::ARM::Resources
|
|
1044
1043
|
if status_code == 200
|
1045
1044
|
begin
|
1046
1045
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1047
|
-
result_mapper = DeploymentListResult.mapper()
|
1048
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
1046
|
+
result_mapper = Azure::ARM::Resources::Models::DeploymentListResult.mapper()
|
1047
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1049
1048
|
rescue Exception => e
|
1050
1049
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1051
1050
|
end
|
@@ -1072,12 +1071,12 @@ module Azure::ARM::Resources
|
|
1072
1071
|
# @return [DeploymentListResult] which provide lazy access to pages of the
|
1073
1072
|
# response.
|
1074
1073
|
#
|
1075
|
-
def
|
1076
|
-
response =
|
1074
|
+
def list_by_resource_group_as_lazy(resource_group_name, filter = nil, top = nil, custom_headers = nil)
|
1075
|
+
response = list_by_resource_group_async(resource_group_name, filter, top, custom_headers).value!
|
1077
1076
|
unless response.nil?
|
1078
1077
|
page = response.body
|
1079
1078
|
page.next_method = Proc.new do |next_page_link|
|
1080
|
-
|
1079
|
+
list_by_resource_group_next_async(next_page_link, custom_headers)
|
1081
1080
|
end
|
1082
1081
|
page
|
1083
1082
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,6 +12,7 @@ module Azure::ARM::Resources
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [String] The path of an alias.
|
16
17
|
attr_accessor :path
|
17
18
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,6 +12,7 @@ module Azure::ARM::Resources
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [String] The alias name.
|
16
17
|
attr_accessor :name
|
17
18
|
|