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
@@ -0,0 +1,85 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Resources
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Resource group information.
|
10
|
+
#
|
11
|
+
class ResourceGroupPatchable
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [String] The name of the resource group.
|
17
|
+
attr_accessor :name
|
18
|
+
|
19
|
+
# @return [ResourceGroupProperties]
|
20
|
+
attr_accessor :properties
|
21
|
+
|
22
|
+
# @return [String] The ID of the resource that manages this resource
|
23
|
+
# group.
|
24
|
+
attr_accessor :managed_by
|
25
|
+
|
26
|
+
# @return [Hash{String => String}] The tags attached to the resource
|
27
|
+
# group.
|
28
|
+
attr_accessor :tags
|
29
|
+
|
30
|
+
|
31
|
+
#
|
32
|
+
# Mapper for ResourceGroupPatchable class as Ruby Hash.
|
33
|
+
# This will be used for serialization/deserialization.
|
34
|
+
#
|
35
|
+
def self.mapper()
|
36
|
+
{
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'ResourceGroupPatchable',
|
39
|
+
type: {
|
40
|
+
name: 'Composite',
|
41
|
+
class_name: 'ResourceGroupPatchable',
|
42
|
+
model_properties: {
|
43
|
+
name: {
|
44
|
+
required: false,
|
45
|
+
serialized_name: 'name',
|
46
|
+
type: {
|
47
|
+
name: 'String'
|
48
|
+
}
|
49
|
+
},
|
50
|
+
properties: {
|
51
|
+
required: false,
|
52
|
+
serialized_name: 'properties',
|
53
|
+
type: {
|
54
|
+
name: 'Composite',
|
55
|
+
class_name: 'ResourceGroupProperties'
|
56
|
+
}
|
57
|
+
},
|
58
|
+
managed_by: {
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'managedBy',
|
61
|
+
type: {
|
62
|
+
name: 'String'
|
63
|
+
}
|
64
|
+
},
|
65
|
+
tags: {
|
66
|
+
required: false,
|
67
|
+
serialized_name: 'tags',
|
68
|
+
type: {
|
69
|
+
name: 'Dictionary',
|
70
|
+
value: {
|
71
|
+
required: false,
|
72
|
+
serialized_name: 'StringElementType',
|
73
|
+
type: {
|
74
|
+
name: 'String'
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
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 provisioning state.
|
16
17
|
attr_accessor :provisioning_state
|
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 [Array<GenericResource>] An array of resources.
|
16
17
|
attr_accessor :value
|
17
18
|
|
@@ -1,18 +1,18 @@
|
|
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
|
|
6
6
|
module Azure::ARM::Resources
|
7
7
|
module Models
|
8
8
|
#
|
9
|
-
#
|
10
|
-
#
|
9
|
+
# The detailed error message of resource management.
|
11
10
|
#
|
12
11
|
class ResourceManagementErrorWithDetails
|
13
12
|
|
14
13
|
include MsRestAzure
|
15
14
|
|
15
|
+
include MsRest::JSONable
|
16
16
|
# @return [String] The error code returned when exporting the template.
|
17
17
|
attr_accessor :code
|
18
18
|
|
data/lib/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb
CHANGED
@@ -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] Operation description.
|
16
17
|
attr_accessor :publisher
|
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 [Array<String>] The IDs of the resources.
|
16
17
|
attr_accessor :resources
|
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 SKU name.
|
16
17
|
attr_accessor :name
|
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] Type of count.
|
16
17
|
attr_accessor :type
|
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 tag ID.
|
16
17
|
attr_accessor :id
|
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 tag ID.
|
16
17
|
attr_accessor :id
|
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 [Array<TagDetails>] An array of tags.
|
16
17
|
attr_accessor :value
|
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 ID of the resource.
|
16
17
|
attr_accessor :id
|
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 URI of the template to deploy.
|
16
17
|
attr_accessor :uri
|
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
|
|
@@ -8,7 +8,6 @@ module Azure::ARM::Resources
|
|
8
8
|
# Provides operations for working with resources and resource groups.
|
9
9
|
#
|
10
10
|
class Providers
|
11
|
-
include Azure::ARM::Resources::Models
|
12
11
|
include MsRestAzure
|
13
12
|
|
14
13
|
#
|
@@ -72,7 +71,7 @@ module Azure::ARM::Resources
|
|
72
71
|
# Set Headers
|
73
72
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
74
73
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
75
|
-
path_template = '
|
74
|
+
path_template = 'subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/unregister'
|
76
75
|
|
77
76
|
request_url = @base_url || @client.base_url
|
78
77
|
|
@@ -99,8 +98,8 @@ module Azure::ARM::Resources
|
|
99
98
|
if status_code == 200
|
100
99
|
begin
|
101
100
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
102
|
-
result_mapper = Provider.mapper()
|
103
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
101
|
+
result_mapper = Azure::ARM::Resources::Models::Provider.mapper()
|
102
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
104
103
|
rescue Exception => e
|
105
104
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
106
105
|
end
|
@@ -162,7 +161,7 @@ module Azure::ARM::Resources
|
|
162
161
|
# Set Headers
|
163
162
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
164
163
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
165
|
-
path_template = '
|
164
|
+
path_template = 'subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/register'
|
166
165
|
|
167
166
|
request_url = @base_url || @client.base_url
|
168
167
|
|
@@ -189,8 +188,8 @@ module Azure::ARM::Resources
|
|
189
188
|
if status_code == 200
|
190
189
|
begin
|
191
190
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
192
|
-
result_mapper = Provider.mapper()
|
193
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
191
|
+
result_mapper = Azure::ARM::Resources::Models::Provider.mapper()
|
192
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
194
193
|
rescue Exception => e
|
195
194
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
196
195
|
end
|
@@ -263,7 +262,7 @@ module Azure::ARM::Resources
|
|
263
262
|
# Set Headers
|
264
263
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
265
264
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
266
|
-
path_template = '
|
265
|
+
path_template = 'subscriptions/{subscriptionId}/providers'
|
267
266
|
|
268
267
|
request_url = @base_url || @client.base_url
|
269
268
|
|
@@ -290,8 +289,8 @@ module Azure::ARM::Resources
|
|
290
289
|
if status_code == 200
|
291
290
|
begin
|
292
291
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
293
|
-
result_mapper = ProviderListResult.mapper()
|
294
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
292
|
+
result_mapper = Azure::ARM::Resources::Models::ProviderListResult.mapper()
|
293
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
295
294
|
rescue Exception => e
|
296
295
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
297
296
|
end
|
@@ -359,7 +358,7 @@ module Azure::ARM::Resources
|
|
359
358
|
# Set Headers
|
360
359
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
361
360
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
362
|
-
path_template = '
|
361
|
+
path_template = 'subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}'
|
363
362
|
|
364
363
|
request_url = @base_url || @client.base_url
|
365
364
|
|
@@ -386,8 +385,8 @@ module Azure::ARM::Resources
|
|
386
385
|
if status_code == 200
|
387
386
|
begin
|
388
387
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
389
|
-
result_mapper = Provider.mapper()
|
390
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
388
|
+
result_mapper = Azure::ARM::Resources::Models::Provider.mapper()
|
389
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
391
390
|
rescue Exception => e
|
392
391
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
393
392
|
end
|
@@ -473,8 +472,8 @@ module Azure::ARM::Resources
|
|
473
472
|
if status_code == 200
|
474
473
|
begin
|
475
474
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
476
|
-
result_mapper = ProviderListResult.mapper()
|
477
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
475
|
+
result_mapper = Azure::ARM::Resources::Models::ProviderListResult.mapper()
|
476
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
478
477
|
rescue Exception => e
|
479
478
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
480
479
|
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 ResourceGroups
|
11
|
-
include Azure::ARM::Resources::Models
|
12
11
|
include MsRestAzure
|
13
12
|
|
14
13
|
#
|
@@ -22,108 +21,6 @@ module Azure::ARM::Resources
|
|
22
21
|
# @return [ResourceManagementClient] reference to the ResourceManagementClient
|
23
22
|
attr_reader :client
|
24
23
|
|
25
|
-
#
|
26
|
-
# Get all the resources for a resource group.
|
27
|
-
#
|
28
|
-
# @param resource_group_name [String] The resource group with the resources to
|
29
|
-
# get.
|
30
|
-
# @param filter [String] The filter to apply on the operation.
|
31
|
-
# @param expand [String] The $expand query parameter
|
32
|
-
# @param top [Integer] The number of results to return. If null is passed,
|
33
|
-
# returns all resources.
|
34
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
35
|
-
# will be added to the HTTP request.
|
36
|
-
#
|
37
|
-
# @return [Array<GenericResource>] operation results.
|
38
|
-
#
|
39
|
-
def list_resources(resource_group_name, filter = nil, expand = nil, top = nil, custom_headers = nil)
|
40
|
-
first_page = list_resources_as_lazy(resource_group_name, filter, expand, top, custom_headers)
|
41
|
-
first_page.get_all_items
|
42
|
-
end
|
43
|
-
|
44
|
-
#
|
45
|
-
# Get all the resources for a resource group.
|
46
|
-
#
|
47
|
-
# @param resource_group_name [String] The resource group with the resources to
|
48
|
-
# get.
|
49
|
-
# @param filter [String] The filter to apply on the operation.
|
50
|
-
# @param expand [String] The $expand query parameter
|
51
|
-
# @param top [Integer] The number of results to return. If null is passed,
|
52
|
-
# returns all resources.
|
53
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
54
|
-
# will be added to the HTTP request.
|
55
|
-
#
|
56
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
57
|
-
#
|
58
|
-
def list_resources_with_http_info(resource_group_name, filter = nil, expand = nil, top = nil, custom_headers = nil)
|
59
|
-
list_resources_async(resource_group_name, filter, expand, top, custom_headers).value!
|
60
|
-
end
|
61
|
-
|
62
|
-
#
|
63
|
-
# Get all the resources for a resource group.
|
64
|
-
#
|
65
|
-
# @param resource_group_name [String] The resource group with the resources to
|
66
|
-
# get.
|
67
|
-
# @param filter [String] The filter to apply on the operation.
|
68
|
-
# @param expand [String] The $expand query parameter
|
69
|
-
# @param top [Integer] The number of results to return. If null is passed,
|
70
|
-
# returns all resources.
|
71
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
72
|
-
# to the HTTP request.
|
73
|
-
#
|
74
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
75
|
-
#
|
76
|
-
def list_resources_async(resource_group_name, filter = nil, expand = nil, top = nil, custom_headers = nil)
|
77
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
78
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
79
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
80
|
-
|
81
|
-
|
82
|
-
request_headers = {}
|
83
|
-
|
84
|
-
# Set Headers
|
85
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
86
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
87
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/resources'
|
88
|
-
|
89
|
-
request_url = @base_url || @client.base_url
|
90
|
-
|
91
|
-
options = {
|
92
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
93
|
-
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
94
|
-
query_params: {'$filter' => filter,'$expand' => expand,'$top' => top,'api-version' => @client.api_version},
|
95
|
-
headers: request_headers.merge(custom_headers || {}),
|
96
|
-
base_url: request_url
|
97
|
-
}
|
98
|
-
promise = @client.make_request_async(:get, path_template, options)
|
99
|
-
|
100
|
-
promise = promise.then do |result|
|
101
|
-
http_response = result.response
|
102
|
-
status_code = http_response.status
|
103
|
-
response_content = http_response.body
|
104
|
-
unless status_code == 200
|
105
|
-
error_model = JSON.load(response_content)
|
106
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
107
|
-
end
|
108
|
-
|
109
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
110
|
-
# Deserialize Response
|
111
|
-
if status_code == 200
|
112
|
-
begin
|
113
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
114
|
-
result_mapper = ResourceListResult.mapper()
|
115
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
116
|
-
rescue Exception => e
|
117
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
118
|
-
end
|
119
|
-
end
|
120
|
-
|
121
|
-
result
|
122
|
-
end
|
123
|
-
|
124
|
-
promise.execute
|
125
|
-
end
|
126
|
-
|
127
24
|
#
|
128
25
|
# Checks whether a resource group exists.
|
129
26
|
#
|
@@ -174,7 +71,7 @@ module Azure::ARM::Resources
|
|
174
71
|
# Set Headers
|
175
72
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
176
73
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
177
|
-
path_template = '
|
74
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}'
|
178
75
|
|
179
76
|
request_url = @base_url || @client.base_url
|
180
77
|
|
@@ -206,7 +103,7 @@ module Azure::ARM::Resources
|
|
206
103
|
end
|
207
104
|
|
208
105
|
#
|
209
|
-
# Creates a resource group.
|
106
|
+
# Creates or updates a resource group.
|
210
107
|
#
|
211
108
|
# @param resource_group_name [String] The name of the resource group to create
|
212
109
|
# or update.
|
@@ -223,7 +120,7 @@ module Azure::ARM::Resources
|
|
223
120
|
end
|
224
121
|
|
225
122
|
#
|
226
|
-
# Creates a resource group.
|
123
|
+
# Creates or updates a resource group.
|
227
124
|
#
|
228
125
|
# @param resource_group_name [String] The name of the resource group to create
|
229
126
|
# or update.
|
@@ -239,7 +136,7 @@ module Azure::ARM::Resources
|
|
239
136
|
end
|
240
137
|
|
241
138
|
#
|
242
|
-
# Creates a resource group.
|
139
|
+
# Creates or updates a resource group.
|
243
140
|
#
|
244
141
|
# @param resource_group_name [String] The name of the resource group to create
|
245
142
|
# or update.
|
@@ -266,11 +163,11 @@ module Azure::ARM::Resources
|
|
266
163
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
267
164
|
|
268
165
|
# Serialize Request
|
269
|
-
request_mapper = ResourceGroup.mapper()
|
270
|
-
request_content = @client.serialize(request_mapper, parameters
|
166
|
+
request_mapper = Azure::ARM::Resources::Models::ResourceGroup.mapper()
|
167
|
+
request_content = @client.serialize(request_mapper, parameters)
|
271
168
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
272
169
|
|
273
|
-
path_template = '
|
170
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}'
|
274
171
|
|
275
172
|
request_url = @base_url || @client.base_url
|
276
173
|
|
@@ -298,8 +195,8 @@ module Azure::ARM::Resources
|
|
298
195
|
if status_code == 201
|
299
196
|
begin
|
300
197
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
301
|
-
result_mapper = ResourceGroup.mapper()
|
302
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
198
|
+
result_mapper = Azure::ARM::Resources::Models::ResourceGroup.mapper()
|
199
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
303
200
|
rescue Exception => e
|
304
201
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
305
202
|
end
|
@@ -308,8 +205,8 @@ module Azure::ARM::Resources
|
|
308
205
|
if status_code == 200
|
309
206
|
begin
|
310
207
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
311
|
-
result_mapper = ResourceGroup.mapper()
|
312
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
208
|
+
result_mapper = Azure::ARM::Resources::Models::ResourceGroup.mapper()
|
209
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
313
210
|
rescue Exception => e
|
314
211
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
315
212
|
end
|
@@ -413,7 +310,7 @@ module Azure::ARM::Resources
|
|
413
310
|
# Set Headers
|
414
311
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
415
312
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
416
|
-
path_template = '
|
313
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}'
|
417
314
|
|
418
315
|
request_url = @base_url || @client.base_url
|
419
316
|
|
@@ -440,8 +337,8 @@ module Azure::ARM::Resources
|
|
440
337
|
if status_code == 200
|
441
338
|
begin
|
442
339
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
443
|
-
result_mapper = ResourceGroup.mapper()
|
444
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
340
|
+
result_mapper = Azure::ARM::Resources::Models::ResourceGroup.mapper()
|
341
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
445
342
|
rescue Exception => e
|
446
343
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
447
344
|
end
|
@@ -462,15 +359,15 @@ module Azure::ARM::Resources
|
|
462
359
|
#
|
463
360
|
# @param resource_group_name [String] The name of the resource group to update.
|
464
361
|
# The name is case insensitive.
|
465
|
-
# @param parameters [
|
466
|
-
# group.
|
362
|
+
# @param parameters [ResourceGroupPatchable] Parameters supplied to update a
|
363
|
+
# resource group.
|
467
364
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
468
365
|
# will be added to the HTTP request.
|
469
366
|
#
|
470
367
|
# @return [ResourceGroup] operation results.
|
471
368
|
#
|
472
|
-
def
|
473
|
-
response =
|
369
|
+
def update(resource_group_name, parameters, custom_headers = nil)
|
370
|
+
response = update_async(resource_group_name, parameters, custom_headers).value!
|
474
371
|
response.body unless response.nil?
|
475
372
|
end
|
476
373
|
|
@@ -483,15 +380,15 @@ module Azure::ARM::Resources
|
|
483
380
|
#
|
484
381
|
# @param resource_group_name [String] The name of the resource group to update.
|
485
382
|
# The name is case insensitive.
|
486
|
-
# @param parameters [
|
487
|
-
# group.
|
383
|
+
# @param parameters [ResourceGroupPatchable] Parameters supplied to update a
|
384
|
+
# resource group.
|
488
385
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
489
386
|
# will be added to the HTTP request.
|
490
387
|
#
|
491
388
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
492
389
|
#
|
493
|
-
def
|
494
|
-
|
390
|
+
def update_with_http_info(resource_group_name, parameters, custom_headers = nil)
|
391
|
+
update_async(resource_group_name, parameters, custom_headers).value!
|
495
392
|
end
|
496
393
|
|
497
394
|
#
|
@@ -503,14 +400,14 @@ module Azure::ARM::Resources
|
|
503
400
|
#
|
504
401
|
# @param resource_group_name [String] The name of the resource group to update.
|
505
402
|
# The name is case insensitive.
|
506
|
-
# @param parameters [
|
507
|
-
# group.
|
403
|
+
# @param parameters [ResourceGroupPatchable] Parameters supplied to update a
|
404
|
+
# resource group.
|
508
405
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
509
406
|
# to the HTTP request.
|
510
407
|
#
|
511
408
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
512
409
|
#
|
513
|
-
def
|
410
|
+
def update_async(resource_group_name, parameters, custom_headers = nil)
|
514
411
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
515
412
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
516
413
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -526,11 +423,11 @@ module Azure::ARM::Resources
|
|
526
423
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
527
424
|
|
528
425
|
# Serialize Request
|
529
|
-
request_mapper =
|
530
|
-
request_content = @client.serialize(request_mapper, parameters
|
426
|
+
request_mapper = Azure::ARM::Resources::Models::ResourceGroupPatchable.mapper()
|
427
|
+
request_content = @client.serialize(request_mapper, parameters)
|
531
428
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
532
429
|
|
533
|
-
path_template = '
|
430
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}'
|
534
431
|
|
535
432
|
request_url = @base_url || @client.base_url
|
536
433
|
|
@@ -558,8 +455,8 @@ module Azure::ARM::Resources
|
|
558
455
|
if status_code == 200
|
559
456
|
begin
|
560
457
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
561
|
-
result_mapper = ResourceGroup.mapper()
|
562
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
458
|
+
result_mapper = Azure::ARM::Resources::Models::ResourceGroup.mapper()
|
459
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
563
460
|
rescue Exception => e
|
564
461
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
565
462
|
end
|
@@ -632,11 +529,11 @@ module Azure::ARM::Resources
|
|
632
529
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
633
530
|
|
634
531
|
# Serialize Request
|
635
|
-
request_mapper = ExportTemplateRequest.mapper()
|
636
|
-
request_content = @client.serialize(request_mapper, parameters
|
532
|
+
request_mapper = Azure::ARM::Resources::Models::ExportTemplateRequest.mapper()
|
533
|
+
request_content = @client.serialize(request_mapper, parameters)
|
637
534
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
638
535
|
|
639
|
-
path_template = '
|
536
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/exportTemplate'
|
640
537
|
|
641
538
|
request_url = @base_url || @client.base_url
|
642
539
|
|
@@ -664,8 +561,8 @@ module Azure::ARM::Resources
|
|
664
561
|
if status_code == 200
|
665
562
|
begin
|
666
563
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
667
|
-
result_mapper = ResourceGroupExportResult.mapper()
|
668
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
564
|
+
result_mapper = Azure::ARM::Resources::Models::ResourceGroupExportResult.mapper()
|
565
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
669
566
|
rescue Exception => e
|
670
567
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
671
568
|
end
|
@@ -729,7 +626,7 @@ module Azure::ARM::Resources
|
|
729
626
|
# Set Headers
|
730
627
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
731
628
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
732
|
-
path_template = '
|
629
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups'
|
733
630
|
|
734
631
|
request_url = @base_url || @client.base_url
|
735
632
|
|
@@ -756,8 +653,8 @@ module Azure::ARM::Resources
|
|
756
653
|
if status_code == 200
|
757
654
|
begin
|
758
655
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
759
|
-
result_mapper = ResourceGroupListResult.mapper()
|
760
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
656
|
+
result_mapper = Azure::ARM::Resources::Models::ResourceGroupListResult.mapper()
|
657
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
761
658
|
rescue Exception => e
|
762
659
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
763
660
|
end
|
@@ -830,7 +727,7 @@ module Azure::ARM::Resources
|
|
830
727
|
# Set Headers
|
831
728
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
832
729
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
833
|
-
path_template = '
|
730
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}'
|
834
731
|
|
835
732
|
request_url = @base_url || @client.base_url
|
836
733
|
|
@@ -860,93 +757,6 @@ module Azure::ARM::Resources
|
|
860
757
|
promise.execute
|
861
758
|
end
|
862
759
|
|
863
|
-
#
|
864
|
-
# Get all the resources for a resource group.
|
865
|
-
#
|
866
|
-
# @param next_page_link [String] The NextLink from the previous successful call
|
867
|
-
# to List operation.
|
868
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
869
|
-
# will be added to the HTTP request.
|
870
|
-
#
|
871
|
-
# @return [ResourceListResult] operation results.
|
872
|
-
#
|
873
|
-
def list_resources_next(next_page_link, custom_headers = nil)
|
874
|
-
response = list_resources_next_async(next_page_link, custom_headers).value!
|
875
|
-
response.body unless response.nil?
|
876
|
-
end
|
877
|
-
|
878
|
-
#
|
879
|
-
# Get all the resources for a resource group.
|
880
|
-
#
|
881
|
-
# @param next_page_link [String] The NextLink from the previous successful call
|
882
|
-
# to List operation.
|
883
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
884
|
-
# will be added to the HTTP request.
|
885
|
-
#
|
886
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
887
|
-
#
|
888
|
-
def list_resources_next_with_http_info(next_page_link, custom_headers = nil)
|
889
|
-
list_resources_next_async(next_page_link, custom_headers).value!
|
890
|
-
end
|
891
|
-
|
892
|
-
#
|
893
|
-
# Get all the resources for a resource group.
|
894
|
-
#
|
895
|
-
# @param next_page_link [String] The NextLink from the previous successful call
|
896
|
-
# to List operation.
|
897
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
898
|
-
# to the HTTP request.
|
899
|
-
#
|
900
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
901
|
-
#
|
902
|
-
def list_resources_next_async(next_page_link, custom_headers = nil)
|
903
|
-
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
904
|
-
|
905
|
-
|
906
|
-
request_headers = {}
|
907
|
-
|
908
|
-
# Set Headers
|
909
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
910
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
911
|
-
path_template = '{nextLink}'
|
912
|
-
|
913
|
-
request_url = @base_url || @client.base_url
|
914
|
-
|
915
|
-
options = {
|
916
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
917
|
-
skip_encoding_path_params: {'nextLink' => next_page_link},
|
918
|
-
headers: request_headers.merge(custom_headers || {}),
|
919
|
-
base_url: request_url
|
920
|
-
}
|
921
|
-
promise = @client.make_request_async(:get, path_template, options)
|
922
|
-
|
923
|
-
promise = promise.then do |result|
|
924
|
-
http_response = result.response
|
925
|
-
status_code = http_response.status
|
926
|
-
response_content = http_response.body
|
927
|
-
unless status_code == 200
|
928
|
-
error_model = JSON.load(response_content)
|
929
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
930
|
-
end
|
931
|
-
|
932
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
933
|
-
# Deserialize Response
|
934
|
-
if status_code == 200
|
935
|
-
begin
|
936
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
937
|
-
result_mapper = ResourceListResult.mapper()
|
938
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
939
|
-
rescue Exception => e
|
940
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
941
|
-
end
|
942
|
-
end
|
943
|
-
|
944
|
-
result
|
945
|
-
end
|
946
|
-
|
947
|
-
promise.execute
|
948
|
-
end
|
949
|
-
|
950
760
|
#
|
951
761
|
# Gets all the resource groups for a subscription.
|
952
762
|
#
|
@@ -1021,8 +831,8 @@ module Azure::ARM::Resources
|
|
1021
831
|
if status_code == 200
|
1022
832
|
begin
|
1023
833
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1024
|
-
result_mapper = ResourceGroupListResult.mapper()
|
1025
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
834
|
+
result_mapper = Azure::ARM::Resources::Models::ResourceGroupListResult.mapper()
|
835
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1026
836
|
rescue Exception => e
|
1027
837
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1028
838
|
end
|
@@ -1034,32 +844,6 @@ module Azure::ARM::Resources
|
|
1034
844
|
promise.execute
|
1035
845
|
end
|
1036
846
|
|
1037
|
-
#
|
1038
|
-
# Get all the resources for a resource group.
|
1039
|
-
#
|
1040
|
-
# @param resource_group_name [String] The resource group with the resources to
|
1041
|
-
# get.
|
1042
|
-
# @param filter [String] The filter to apply on the operation.
|
1043
|
-
# @param expand [String] The $expand query parameter
|
1044
|
-
# @param top [Integer] The number of results to return. If null is passed,
|
1045
|
-
# returns all resources.
|
1046
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1047
|
-
# will be added to the HTTP request.
|
1048
|
-
#
|
1049
|
-
# @return [ResourceListResult] which provide lazy access to pages of the
|
1050
|
-
# response.
|
1051
|
-
#
|
1052
|
-
def list_resources_as_lazy(resource_group_name, filter = nil, expand = nil, top = nil, custom_headers = nil)
|
1053
|
-
response = list_resources_async(resource_group_name, filter, expand, top, custom_headers).value!
|
1054
|
-
unless response.nil?
|
1055
|
-
page = response.body
|
1056
|
-
page.next_method = Proc.new do |next_page_link|
|
1057
|
-
list_resources_next_async(next_page_link, custom_headers)
|
1058
|
-
end
|
1059
|
-
page
|
1060
|
-
end
|
1061
|
-
end
|
1062
|
-
|
1063
847
|
#
|
1064
848
|
# Gets all the resource groups for a subscription.
|
1065
849
|
#
|