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,46 @@
|
|
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
|
+
# Deployment filter.
|
10
|
+
#
|
11
|
+
class DeploymentExtendedFilter
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The provisioning state.
|
16
|
+
attr_accessor :provisioning_state
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for DeploymentExtendedFilter 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: 'DeploymentExtendedFilter',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'DeploymentExtendedFilter',
|
31
|
+
model_properties: {
|
32
|
+
provisioning_state: {
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'provisioningState',
|
36
|
+
type: {
|
37
|
+
name: 'String'
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
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 deployments.
|
10
|
+
#
|
11
|
+
class DeploymentListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<DeploymentExtended>] An array of deployments.
|
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<DeploymentExtended>] 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 [DeploymentListResult] 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 DeploymentListResult 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: 'DeploymentListResult',
|
63
|
+
type: {
|
64
|
+
name: 'Composite',
|
65
|
+
class_name: 'DeploymentListResult',
|
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: 'DeploymentExtendedElementType',
|
77
|
+
type: {
|
78
|
+
name: 'Composite',
|
79
|
+
class_name: 'DeploymentExtended'
|
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,16 @@
|
|
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 DeploymentMode
|
10
|
+
#
|
11
|
+
module DeploymentMode
|
12
|
+
Incremental = "Incremental"
|
13
|
+
Complete = "Complete"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,71 @@
|
|
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
|
+
# Deployment operation information.
|
10
|
+
#
|
11
|
+
class DeploymentOperation
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Full deployment operation ID.
|
16
|
+
attr_accessor :id
|
17
|
+
|
18
|
+
# @return [String] Deployment operation ID.
|
19
|
+
attr_accessor :operation_id
|
20
|
+
|
21
|
+
# @return [DeploymentOperationProperties] Deployment properties.
|
22
|
+
attr_accessor :properties
|
23
|
+
|
24
|
+
|
25
|
+
#
|
26
|
+
# Mapper for DeploymentOperation class as Ruby Hash.
|
27
|
+
# This will be used for serialization/deserialization.
|
28
|
+
#
|
29
|
+
def self.mapper()
|
30
|
+
{
|
31
|
+
client_side_validation: true,
|
32
|
+
required: false,
|
33
|
+
serialized_name: 'DeploymentOperation',
|
34
|
+
type: {
|
35
|
+
name: 'Composite',
|
36
|
+
class_name: 'DeploymentOperation',
|
37
|
+
model_properties: {
|
38
|
+
id: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
read_only: true,
|
42
|
+
serialized_name: 'id',
|
43
|
+
type: {
|
44
|
+
name: 'String'
|
45
|
+
}
|
46
|
+
},
|
47
|
+
operation_id: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: false,
|
50
|
+
read_only: true,
|
51
|
+
serialized_name: 'operationId',
|
52
|
+
type: {
|
53
|
+
name: 'String'
|
54
|
+
}
|
55
|
+
},
|
56
|
+
properties: {
|
57
|
+
client_side_validation: true,
|
58
|
+
required: false,
|
59
|
+
serialized_name: 'properties',
|
60
|
+
type: {
|
61
|
+
name: 'Composite',
|
62
|
+
class_name: 'DeploymentOperationProperties'
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,166 @@
|
|
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
|
+
# Deployment operation properties.
|
10
|
+
#
|
11
|
+
class DeploymentOperationProperties
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [ProvisioningOperation] The name of the current provisioning
|
16
|
+
# operation. Possible values include: 'NotSpecified', 'Create', 'Delete',
|
17
|
+
# 'Waiting', 'AzureAsyncOperationWaiting', 'ResourceCacheWaiting',
|
18
|
+
# 'Action', 'Read', 'EvaluateDeploymentOutput', 'DeploymentCleanup'
|
19
|
+
attr_accessor :provisioning_operation
|
20
|
+
|
21
|
+
# @return [String] The state of the provisioning.
|
22
|
+
attr_accessor :provisioning_state
|
23
|
+
|
24
|
+
# @return [DateTime] The date and time of the operation.
|
25
|
+
attr_accessor :timestamp
|
26
|
+
|
27
|
+
# @return [String] The duration of the operation.
|
28
|
+
attr_accessor :duration
|
29
|
+
|
30
|
+
# @return [String] Deployment operation service request id.
|
31
|
+
attr_accessor :service_request_id
|
32
|
+
|
33
|
+
# @return [String] Operation status code from the resource provider. This
|
34
|
+
# property may not be set if a response has not yet been received.
|
35
|
+
attr_accessor :status_code
|
36
|
+
|
37
|
+
# @return [StatusMessage] Operation status message from the resource
|
38
|
+
# provider. This property is optional. It will only be provided if an
|
39
|
+
# error was received from the resource provider.
|
40
|
+
attr_accessor :status_message
|
41
|
+
|
42
|
+
# @return [TargetResource] The target resource.
|
43
|
+
attr_accessor :target_resource
|
44
|
+
|
45
|
+
# @return [HttpMessage] The HTTP request message.
|
46
|
+
attr_accessor :request
|
47
|
+
|
48
|
+
# @return [HttpMessage] The HTTP response message.
|
49
|
+
attr_accessor :response
|
50
|
+
|
51
|
+
|
52
|
+
#
|
53
|
+
# Mapper for DeploymentOperationProperties class as Ruby Hash.
|
54
|
+
# This will be used for serialization/deserialization.
|
55
|
+
#
|
56
|
+
def self.mapper()
|
57
|
+
{
|
58
|
+
client_side_validation: true,
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'DeploymentOperationProperties',
|
61
|
+
type: {
|
62
|
+
name: 'Composite',
|
63
|
+
class_name: 'DeploymentOperationProperties',
|
64
|
+
model_properties: {
|
65
|
+
provisioning_operation: {
|
66
|
+
client_side_validation: true,
|
67
|
+
required: false,
|
68
|
+
read_only: true,
|
69
|
+
serialized_name: 'provisioningOperation',
|
70
|
+
type: {
|
71
|
+
name: 'Enum',
|
72
|
+
module: 'ProvisioningOperation'
|
73
|
+
}
|
74
|
+
},
|
75
|
+
provisioning_state: {
|
76
|
+
client_side_validation: true,
|
77
|
+
required: false,
|
78
|
+
read_only: true,
|
79
|
+
serialized_name: 'provisioningState',
|
80
|
+
type: {
|
81
|
+
name: 'String'
|
82
|
+
}
|
83
|
+
},
|
84
|
+
timestamp: {
|
85
|
+
client_side_validation: true,
|
86
|
+
required: false,
|
87
|
+
read_only: true,
|
88
|
+
serialized_name: 'timestamp',
|
89
|
+
type: {
|
90
|
+
name: 'DateTime'
|
91
|
+
}
|
92
|
+
},
|
93
|
+
duration: {
|
94
|
+
client_side_validation: true,
|
95
|
+
required: false,
|
96
|
+
read_only: true,
|
97
|
+
serialized_name: 'duration',
|
98
|
+
type: {
|
99
|
+
name: 'String'
|
100
|
+
}
|
101
|
+
},
|
102
|
+
service_request_id: {
|
103
|
+
client_side_validation: true,
|
104
|
+
required: false,
|
105
|
+
read_only: true,
|
106
|
+
serialized_name: 'serviceRequestId',
|
107
|
+
type: {
|
108
|
+
name: 'String'
|
109
|
+
}
|
110
|
+
},
|
111
|
+
status_code: {
|
112
|
+
client_side_validation: true,
|
113
|
+
required: false,
|
114
|
+
read_only: true,
|
115
|
+
serialized_name: 'statusCode',
|
116
|
+
type: {
|
117
|
+
name: 'String'
|
118
|
+
}
|
119
|
+
},
|
120
|
+
status_message: {
|
121
|
+
client_side_validation: true,
|
122
|
+
required: false,
|
123
|
+
read_only: true,
|
124
|
+
serialized_name: 'statusMessage',
|
125
|
+
type: {
|
126
|
+
name: 'Composite',
|
127
|
+
class_name: 'StatusMessage'
|
128
|
+
}
|
129
|
+
},
|
130
|
+
target_resource: {
|
131
|
+
client_side_validation: true,
|
132
|
+
required: false,
|
133
|
+
read_only: true,
|
134
|
+
serialized_name: 'targetResource',
|
135
|
+
type: {
|
136
|
+
name: 'Composite',
|
137
|
+
class_name: 'TargetResource'
|
138
|
+
}
|
139
|
+
},
|
140
|
+
request: {
|
141
|
+
client_side_validation: true,
|
142
|
+
required: false,
|
143
|
+
read_only: true,
|
144
|
+
serialized_name: 'request',
|
145
|
+
type: {
|
146
|
+
name: 'Composite',
|
147
|
+
class_name: 'HttpMessage'
|
148
|
+
}
|
149
|
+
},
|
150
|
+
response: {
|
151
|
+
client_side_validation: true,
|
152
|
+
required: false,
|
153
|
+
read_only: true,
|
154
|
+
serialized_name: 'response',
|
155
|
+
type: {
|
156
|
+
name: 'Composite',
|
157
|
+
class_name: 'HttpMessage'
|
158
|
+
}
|
159
|
+
}
|
160
|
+
}
|
161
|
+
}
|
162
|
+
}
|
163
|
+
end
|
164
|
+
end
|
165
|
+
end
|
166
|
+
end
|
data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb
ADDED
@@ -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 deployment operations.
|
10
|
+
#
|
11
|
+
class DeploymentOperationsListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<DeploymentOperation>] An array of deployment operations.
|
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<DeploymentOperation>] 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 [DeploymentOperationsListResult] 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 DeploymentOperationsListResult 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: 'DeploymentOperationsListResult',
|
63
|
+
type: {
|
64
|
+
name: 'Composite',
|
65
|
+
class_name: 'DeploymentOperationsListResult',
|
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: 'DeploymentOperationElementType',
|
77
|
+
type: {
|
78
|
+
name: 'Composite',
|
79
|
+
class_name: 'DeploymentOperation'
|
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
|