azure_mgmt_resources 0.17.9 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2016-02-01/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
- data/lib/2016-06-01/generated/azure_mgmt_resources/subscription_client.rb +1 -1
- data/lib/2016-07-01/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
- data/lib/2017-05-10/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
- data/lib/2018-05-01/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
- data/lib/2018-06-01/generated/azure_mgmt_resources/application_client.rb +1 -1
- data/lib/2019-03-01/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
- data/lib/2019-05-01/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
- data/lib/2019-05-10/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
- data/lib/2019-07-01/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
- data/lib/2020-06-01/generated/azure_mgmt_resources.rb +117 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/deployment_operations.rb +1590 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/deployments.rb +6276 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/alias_model.rb +116 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/alias_path.rb +91 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/alias_path_attributes.rb +16 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/alias_path_metadata.rb +64 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/alias_path_token_type.rb +22 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/alias_pattern.rb +70 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/alias_pattern_type.rb +16 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/alias_type.rb +17 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/api_profile.rb +60 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/basic_dependency.rb +68 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/change_type.rb +20 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/debug_setting.rb +53 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/dependency.rb +88 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment.rb +77 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_export_result.rb +46 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_extended.rb +113 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +46 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_list_result.rb +99 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_mode.rb +16 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_operation.rb +71 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +166 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +99 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_properties.rb +136 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +287 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_validate_result.rb +61 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_what_if.rb +58 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_what_if_properties.rb +108 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_what_if_settings.rb +48 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/error_additional_info.rb +59 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/error_response.rb +113 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/export_template_request.rb +69 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/generic_resource.rb +158 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/generic_resource_expanded.rb +179 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/generic_resource_filter.rb +68 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/http_message.rb +46 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/identity.rb +96 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/identity_user_assigned_identities_value.rb +60 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/on_error_deployment.rb +60 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/on_error_deployment_extended.rb +73 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/on_error_deployment_type.rb +16 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/operation.rb +58 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/operation_display.rb +80 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/operation_list_result.rb +100 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/parameters_link.rb +58 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/plan.rb +90 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/property_change_type.rb +18 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/provider.rb +104 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/provider_list_result.rb +99 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/provider_resource_type.rb +170 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/provisioning_operation.rb +24 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/provisioning_state.rb +26 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/resource.rb +110 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/resource_group.rb +128 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/resource_group_export_result.rb +58 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/resource_group_filter.rb +57 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/resource_group_list_result.rb +99 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/resource_group_patchable.rb +90 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/resource_group_properties.rb +47 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/resource_identity_type.rb +18 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/resource_list_result.rb +99 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +91 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/resource_reference.rb +47 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/resources_move_info.rb +65 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/scoped_deployment.rb +77 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/scoped_deployment_what_if.rb +58 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/sku.rb +101 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/status_message.rb +58 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/sub_resource.rb +46 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/tag_count.rb +57 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/tag_details.rb +92 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/tag_value.rb +70 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/tags.rb +54 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/tags_list_result.rb +99 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/tags_patch_operation.rb +17 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/tags_patch_resource.rb +59 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/tags_resource.rb +83 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/target_resource.rb +68 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/template_hash_result.rb +58 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/template_link.rb +84 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/what_if_change.rb +105 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/what_if_operation_result.rb +80 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/what_if_property_change.rb +101 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/models/what_if_result_format.rb +16 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/module_definition.rb +9 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/operations.rb +219 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/providers.rb +846 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/resource_groups.rb +964 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/resource_management_client.rb +155 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/resources.rb +2354 -0
- data/lib/2020-06-01/generated/azure_mgmt_resources/tags_operations.rb +1078 -0
- data/lib/azure_mgmt_resources.rb +8 -7
- data/lib/version.rb +1 -1
- metadata +95 -2
@@ -0,0 +1,58 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Resources::Mgmt::V2020_06_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Resource group export result.
|
10
|
+
#
|
11
|
+
class ResourceGroupExportResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return The template content.
|
16
|
+
attr_accessor :template
|
17
|
+
|
18
|
+
# @return [ErrorResponse] The template export error.
|
19
|
+
attr_accessor :error
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for ResourceGroupExportResult class as Ruby Hash.
|
24
|
+
# This will be used for serialization/deserialization.
|
25
|
+
#
|
26
|
+
def self.mapper()
|
27
|
+
{
|
28
|
+
client_side_validation: true,
|
29
|
+
required: false,
|
30
|
+
serialized_name: 'ResourceGroupExportResult',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'ResourceGroupExportResult',
|
34
|
+
model_properties: {
|
35
|
+
template: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'template',
|
39
|
+
type: {
|
40
|
+
name: 'Object'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
error: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'error',
|
47
|
+
type: {
|
48
|
+
name: 'Composite',
|
49
|
+
class_name: 'ErrorResponse'
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Resources::Mgmt::V2020_06_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Resource group filter.
|
10
|
+
#
|
11
|
+
class ResourceGroupFilter
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The tag name.
|
16
|
+
attr_accessor :tag_name
|
17
|
+
|
18
|
+
# @return [String] The tag value.
|
19
|
+
attr_accessor :tag_value
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for ResourceGroupFilter class as Ruby Hash.
|
24
|
+
# This will be used for serialization/deserialization.
|
25
|
+
#
|
26
|
+
def self.mapper()
|
27
|
+
{
|
28
|
+
client_side_validation: true,
|
29
|
+
required: false,
|
30
|
+
serialized_name: 'ResourceGroupFilter',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'ResourceGroupFilter',
|
34
|
+
model_properties: {
|
35
|
+
tag_name: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'tagName',
|
39
|
+
type: {
|
40
|
+
name: 'String'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
tag_value: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'tagValue',
|
47
|
+
type: {
|
48
|
+
name: 'String'
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,99 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Resources::Mgmt::V2020_06_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# List of resource groups.
|
10
|
+
#
|
11
|
+
class ResourceGroupListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<ResourceGroup>] An array of resource groups.
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
# @return [String] The URL to use for getting the next set of results.
|
20
|
+
attr_accessor :next_link
|
21
|
+
|
22
|
+
# return [Proc] with next page method call.
|
23
|
+
attr_accessor :next_method
|
24
|
+
|
25
|
+
#
|
26
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
27
|
+
#
|
28
|
+
# @return [Array<ResourceGroup>] operation results.
|
29
|
+
#
|
30
|
+
def get_all_items
|
31
|
+
items = @value
|
32
|
+
page = self
|
33
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
34
|
+
page = page.get_next_page
|
35
|
+
items.concat(page.value)
|
36
|
+
end
|
37
|
+
items
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Gets the next page of results.
|
42
|
+
#
|
43
|
+
# @return [ResourceGroupListResult] with next page content.
|
44
|
+
#
|
45
|
+
def get_next_page
|
46
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
47
|
+
unless response.nil?
|
48
|
+
@next_link = response.body.next_link
|
49
|
+
@value = response.body.value
|
50
|
+
self
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
#
|
55
|
+
# Mapper for ResourceGroupListResult class as Ruby Hash.
|
56
|
+
# This will be used for serialization/deserialization.
|
57
|
+
#
|
58
|
+
def self.mapper()
|
59
|
+
{
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'ResourceGroupListResult',
|
63
|
+
type: {
|
64
|
+
name: 'Composite',
|
65
|
+
class_name: 'ResourceGroupListResult',
|
66
|
+
model_properties: {
|
67
|
+
value: {
|
68
|
+
client_side_validation: true,
|
69
|
+
required: false,
|
70
|
+
serialized_name: 'value',
|
71
|
+
type: {
|
72
|
+
name: 'Sequence',
|
73
|
+
element: {
|
74
|
+
client_side_validation: true,
|
75
|
+
required: false,
|
76
|
+
serialized_name: 'ResourceGroupElementType',
|
77
|
+
type: {
|
78
|
+
name: 'Composite',
|
79
|
+
class_name: 'ResourceGroup'
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
},
|
84
|
+
next_link: {
|
85
|
+
client_side_validation: true,
|
86
|
+
required: false,
|
87
|
+
read_only: true,
|
88
|
+
serialized_name: 'nextLink',
|
89
|
+
type: {
|
90
|
+
name: 'String'
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
@@ -0,0 +1,90 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Resources::Mgmt::V2020_06_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Resource group information.
|
10
|
+
#
|
11
|
+
class ResourceGroupPatchable
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The name of the resource group.
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [ResourceGroupProperties] The resource group properties.
|
19
|
+
attr_accessor :properties
|
20
|
+
|
21
|
+
# @return [String] The ID of the resource that manages this resource
|
22
|
+
# group.
|
23
|
+
attr_accessor :managed_by
|
24
|
+
|
25
|
+
# @return [Hash{String => String}] The tags attached to the resource
|
26
|
+
# group.
|
27
|
+
attr_accessor :tags
|
28
|
+
|
29
|
+
|
30
|
+
#
|
31
|
+
# Mapper for ResourceGroupPatchable class as Ruby Hash.
|
32
|
+
# This will be used for serialization/deserialization.
|
33
|
+
#
|
34
|
+
def self.mapper()
|
35
|
+
{
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'ResourceGroupPatchable',
|
39
|
+
type: {
|
40
|
+
name: 'Composite',
|
41
|
+
class_name: 'ResourceGroupPatchable',
|
42
|
+
model_properties: {
|
43
|
+
name: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'name',
|
47
|
+
type: {
|
48
|
+
name: 'String'
|
49
|
+
}
|
50
|
+
},
|
51
|
+
properties: {
|
52
|
+
client_side_validation: true,
|
53
|
+
required: false,
|
54
|
+
serialized_name: 'properties',
|
55
|
+
type: {
|
56
|
+
name: 'Composite',
|
57
|
+
class_name: 'ResourceGroupProperties'
|
58
|
+
}
|
59
|
+
},
|
60
|
+
managed_by: {
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
serialized_name: 'managedBy',
|
64
|
+
type: {
|
65
|
+
name: 'String'
|
66
|
+
}
|
67
|
+
},
|
68
|
+
tags: {
|
69
|
+
client_side_validation: true,
|
70
|
+
required: false,
|
71
|
+
serialized_name: 'tags',
|
72
|
+
type: {
|
73
|
+
name: 'Dictionary',
|
74
|
+
value: {
|
75
|
+
client_side_validation: true,
|
76
|
+
required: false,
|
77
|
+
serialized_name: 'StringElementType',
|
78
|
+
type: {
|
79
|
+
name: 'String'
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Resources::Mgmt::V2020_06_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The resource group properties.
|
10
|
+
#
|
11
|
+
class ResourceGroupProperties
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The provisioning state.
|
16
|
+
attr_accessor :provisioning_state
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for ResourceGroupProperties class as Ruby Hash.
|
21
|
+
# This will be used for serialization/deserialization.
|
22
|
+
#
|
23
|
+
def self.mapper()
|
24
|
+
{
|
25
|
+
client_side_validation: true,
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'ResourceGroupProperties',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'ResourceGroupProperties',
|
31
|
+
model_properties: {
|
32
|
+
provisioning_state: {
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
read_only: true,
|
36
|
+
serialized_name: 'provisioningState',
|
37
|
+
type: {
|
38
|
+
name: 'String'
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Resources::Mgmt::V2020_06_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for ResourceIdentityType
|
10
|
+
#
|
11
|
+
module ResourceIdentityType
|
12
|
+
SystemAssigned = "SystemAssigned"
|
13
|
+
UserAssigned = "UserAssigned"
|
14
|
+
SystemAssignedUserAssigned = "SystemAssigned, UserAssigned"
|
15
|
+
None = "None"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,99 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Resources::Mgmt::V2020_06_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# List of resource groups.
|
10
|
+
#
|
11
|
+
class ResourceListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<GenericResourceExpanded>] An array of resources.
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
# @return [String] The URL to use for getting the next set of results.
|
20
|
+
attr_accessor :next_link
|
21
|
+
|
22
|
+
# return [Proc] with next page method call.
|
23
|
+
attr_accessor :next_method
|
24
|
+
|
25
|
+
#
|
26
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
27
|
+
#
|
28
|
+
# @return [Array<GenericResourceExpanded>] operation results.
|
29
|
+
#
|
30
|
+
def get_all_items
|
31
|
+
items = @value
|
32
|
+
page = self
|
33
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
34
|
+
page = page.get_next_page
|
35
|
+
items.concat(page.value)
|
36
|
+
end
|
37
|
+
items
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Gets the next page of results.
|
42
|
+
#
|
43
|
+
# @return [ResourceListResult] with next page content.
|
44
|
+
#
|
45
|
+
def get_next_page
|
46
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
47
|
+
unless response.nil?
|
48
|
+
@next_link = response.body.next_link
|
49
|
+
@value = response.body.value
|
50
|
+
self
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
#
|
55
|
+
# Mapper for ResourceListResult class as Ruby Hash.
|
56
|
+
# This will be used for serialization/deserialization.
|
57
|
+
#
|
58
|
+
def self.mapper()
|
59
|
+
{
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'ResourceListResult',
|
63
|
+
type: {
|
64
|
+
name: 'Composite',
|
65
|
+
class_name: 'ResourceListResult',
|
66
|
+
model_properties: {
|
67
|
+
value: {
|
68
|
+
client_side_validation: true,
|
69
|
+
required: false,
|
70
|
+
serialized_name: 'value',
|
71
|
+
type: {
|
72
|
+
name: 'Sequence',
|
73
|
+
element: {
|
74
|
+
client_side_validation: true,
|
75
|
+
required: false,
|
76
|
+
serialized_name: 'GenericResourceExpandedElementType',
|
77
|
+
type: {
|
78
|
+
name: 'Composite',
|
79
|
+
class_name: 'GenericResourceExpanded'
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
},
|
84
|
+
next_link: {
|
85
|
+
client_side_validation: true,
|
86
|
+
required: false,
|
87
|
+
read_only: true,
|
88
|
+
serialized_name: 'nextLink',
|
89
|
+
type: {
|
90
|
+
name: 'String'
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|