azure_mgmt_resources 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/azure_mgmt_resources.gemspec +4 -4
- data/lib/azure_mgmt_resources.rb +3 -73
- data/lib/generated/azure_mgmt_resources.rb +77 -0
- data/lib/{azure_mgmt_resources → generated/azure_mgmt_resources}/deployment_operations.rb +39 -15
- data/lib/{azure_mgmt_resources → generated/azure_mgmt_resources}/deployments.rb +113 -60
- data/lib/generated/azure_mgmt_resources/models/alias_path_type.rb +61 -0
- data/lib/generated/azure_mgmt_resources/models/alias_type.rb +62 -0
- data/lib/generated/azure_mgmt_resources/models/basic_dependency.rb +64 -0
- data/lib/generated/azure_mgmt_resources/models/debug_setting.rb +44 -0
- data/lib/generated/azure_mgmt_resources/models/dependency.rb +82 -0
- data/lib/generated/azure_mgmt_resources/models/deployment.rb +45 -0
- data/lib/generated/azure_mgmt_resources/models/deployment_export_result.rb +44 -0
- data/lib/generated/azure_mgmt_resources/models/deployment_extended.rb +65 -0
- data/lib/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +44 -0
- data/lib/generated/azure_mgmt_resources/models/deployment_list_result.rb +93 -0
- data/lib/{azure_mgmt_resources → generated/azure_mgmt_resources}/models/deployment_mode.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/deployment_operation.rb +65 -0
- data/lib/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +117 -0
- data/lib/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +93 -0
- data/lib/generated/azure_mgmt_resources/models/deployment_properties.rb +103 -0
- data/lib/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +179 -0
- data/lib/generated/azure_mgmt_resources/models/deployment_validate_result.rb +57 -0
- data/lib/generated/azure_mgmt_resources/models/export_template_request.rb +65 -0
- data/lib/generated/azure_mgmt_resources/models/generic_resource.rb +142 -0
- data/lib/generated/azure_mgmt_resources/models/generic_resource_filter.rb +64 -0
- data/lib/generated/azure_mgmt_resources/models/http_message.rb +44 -0
- data/lib/generated/azure_mgmt_resources/models/identity.rb +68 -0
- data/lib/generated/azure_mgmt_resources/models/parameters_link.rb +55 -0
- data/lib/generated/azure_mgmt_resources/models/plan.rb +74 -0
- data/lib/generated/azure_mgmt_resources/models/provider.rb +83 -0
- data/lib/generated/azure_mgmt_resources/models/provider_list_result.rb +93 -0
- data/lib/generated/azure_mgmt_resources/models/provider_resource_type.rb +115 -0
- data/lib/generated/azure_mgmt_resources/models/resource_group.rb +97 -0
- data/lib/generated/azure_mgmt_resources/models/resource_group_export_result.rb +55 -0
- data/lib/generated/azure_mgmt_resources/models/resource_group_filter.rb +54 -0
- data/lib/generated/azure_mgmt_resources/models/resource_group_list_result.rb +93 -0
- data/lib/generated/azure_mgmt_resources/models/resource_group_properties.rb +45 -0
- data/lib/generated/azure_mgmt_resources/models/resource_identity_type.rb +15 -0
- data/lib/generated/azure_mgmt_resources/models/resource_list_result.rb +93 -0
- data/lib/generated/azure_mgmt_resources/models/resource_management_error_with_details.rb +82 -0
- data/lib/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +85 -0
- data/lib/generated/azure_mgmt_resources/models/resources_move_info.rb +61 -0
- data/lib/generated/azure_mgmt_resources/models/sku.rb +94 -0
- data/lib/generated/azure_mgmt_resources/models/tag_count.rb +54 -0
- data/lib/generated/azure_mgmt_resources/models/tag_details.rb +83 -0
- data/lib/generated/azure_mgmt_resources/models/tag_value.rb +65 -0
- data/lib/generated/azure_mgmt_resources/models/tags_list_result.rb +93 -0
- data/lib/generated/azure_mgmt_resources/models/target_resource.rb +64 -0
- data/lib/generated/azure_mgmt_resources/models/template_link.rb +55 -0
- data/lib/{azure_mgmt_resources → generated/azure_mgmt_resources}/module_definition.rb +0 -0
- data/lib/{azure_mgmt_resources → generated/azure_mgmt_resources}/providers.rb +70 -34
- data/lib/{azure_mgmt_resources → generated/azure_mgmt_resources}/resource_groups.rb +136 -68
- data/lib/{azure_mgmt_resources → generated/azure_mgmt_resources}/resource_management_client.rb +8 -12
- data/lib/{azure_mgmt_resources → generated/azure_mgmt_resources}/resources.rb +88 -43
- data/lib/{azure_mgmt_resources → generated/azure_mgmt_resources}/tags.rb +46 -27
- data/lib/{azure_mgmt_resources → generated/azure_mgmt_resources}/version.rb +1 -1
- metadata +76 -78
- data/lib/azure_mgmt_resources/models/basic_dependency.rb +0 -74
- data/lib/azure_mgmt_resources/models/debug_setting.rb +0 -56
- data/lib/azure_mgmt_resources/models/dependency.rb +0 -103
- data/lib/azure_mgmt_resources/models/deployment.rb +0 -62
- data/lib/azure_mgmt_resources/models/deployment_export_result.rb +0 -56
- data/lib/azure_mgmt_resources/models/deployment_extended.rb +0 -82
- data/lib/azure_mgmt_resources/models/deployment_extended_filter.rb +0 -56
- data/lib/azure_mgmt_resources/models/deployment_list_result.rb +0 -86
- data/lib/azure_mgmt_resources/models/deployment_operation.rb +0 -81
- data/lib/azure_mgmt_resources/models/deployment_operation_properties.rb +0 -141
- data/lib/azure_mgmt_resources/models/deployment_operations_list_result.rb +0 -86
- data/lib/azure_mgmt_resources/models/deployment_properties.rb +0 -131
- data/lib/azure_mgmt_resources/models/deployment_properties_extended.rb +0 -231
- data/lib/azure_mgmt_resources/models/deployment_validate_result.rb +0 -80
- data/lib/azure_mgmt_resources/models/export_template_request.rb +0 -69
- data/lib/azure_mgmt_resources/models/generic_resource.rb +0 -101
- data/lib/azure_mgmt_resources/models/generic_resource_filter.rb +0 -74
- data/lib/azure_mgmt_resources/models/http_message.rb +0 -56
- data/lib/azure_mgmt_resources/models/parameters_link.rb +0 -66
- data/lib/azure_mgmt_resources/models/plan.rb +0 -83
- data/lib/azure_mgmt_resources/models/provider.rb +0 -104
- data/lib/azure_mgmt_resources/models/provider_list_result.rb +0 -85
- data/lib/azure_mgmt_resources/models/provider_resource_type.rb +0 -86
- data/lib/azure_mgmt_resources/models/resource_group.rb +0 -104
- data/lib/azure_mgmt_resources/models/resource_group_export_result.rb +0 -71
- data/lib/azure_mgmt_resources/models/resource_group_filter.rb +0 -65
- data/lib/azure_mgmt_resources/models/resource_group_list_result.rb +0 -87
- data/lib/azure_mgmt_resources/models/resource_group_properties.rb +0 -56
- data/lib/azure_mgmt_resources/models/resource_list_result.rb +0 -87
- data/lib/azure_mgmt_resources/models/resource_management_error_with_details.rb +0 -107
- data/lib/azure_mgmt_resources/models/resource_provider_operation_definition.rb +0 -72
- data/lib/azure_mgmt_resources/models/resource_provider_operation_detail_list_result.rb +0 -78
- data/lib/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +0 -93
- data/lib/azure_mgmt_resources/models/resources_move_info.rb +0 -65
- data/lib/azure_mgmt_resources/models/tag_count.rb +0 -65
- data/lib/azure_mgmt_resources/models/tag_details.rb +0 -110
- data/lib/azure_mgmt_resources/models/tag_value.rb +0 -80
- data/lib/azure_mgmt_resources/models/tags_list_result.rb +0 -86
- data/lib/azure_mgmt_resources/models/target_resource.rb +0 -74
- data/lib/azure_mgmt_resources/models/template_link.rb +0 -66
- data/lib/azure_mgmt_resources/resource_provider_operation_details.rb +0 -233
@@ -1,233 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Resources
|
7
|
-
#
|
8
|
-
# ResourceProviderOperationDetails
|
9
|
-
#
|
10
|
-
class ResourceProviderOperationDetails
|
11
|
-
include Azure::ARM::Resources::Models
|
12
|
-
include MsRestAzure
|
13
|
-
|
14
|
-
#
|
15
|
-
# Creates and initializes a new instance of the ResourceProviderOperationDetails class.
|
16
|
-
# @param client service class for accessing basic functionality.
|
17
|
-
#
|
18
|
-
def initialize(client)
|
19
|
-
@client = client
|
20
|
-
end
|
21
|
-
|
22
|
-
# @return reference to the ResourceManagementClient
|
23
|
-
attr_reader :client
|
24
|
-
|
25
|
-
#
|
26
|
-
# Gets a list of resource providers.
|
27
|
-
#
|
28
|
-
# @param resource_provider_namespace [String] Resource identity.
|
29
|
-
# @param api_version [String]
|
30
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
31
|
-
# will be added to the HTTP request.
|
32
|
-
#
|
33
|
-
# @return [ResourceProviderOperationDetailListResult] operation results.
|
34
|
-
#
|
35
|
-
def list(resource_provider_namespace, api_version, custom_headers = nil)
|
36
|
-
response = list_async(resource_provider_namespace, api_version, custom_headers).value!
|
37
|
-
response.body unless response.nil?
|
38
|
-
end
|
39
|
-
|
40
|
-
#
|
41
|
-
# Gets a list of resource providers.
|
42
|
-
#
|
43
|
-
# @param resource_provider_namespace [String] Resource identity.
|
44
|
-
# @param api_version [String]
|
45
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
46
|
-
# will be added to the HTTP request.
|
47
|
-
#
|
48
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
49
|
-
#
|
50
|
-
def list_with_http_info(resource_provider_namespace, api_version, custom_headers = nil)
|
51
|
-
list_async(resource_provider_namespace, api_version, custom_headers).value!
|
52
|
-
end
|
53
|
-
|
54
|
-
#
|
55
|
-
# Gets a list of resource providers.
|
56
|
-
#
|
57
|
-
# @param resource_provider_namespace [String] Resource identity.
|
58
|
-
# @param api_version [String]
|
59
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
60
|
-
# to the HTTP request.
|
61
|
-
#
|
62
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
63
|
-
#
|
64
|
-
def list_async(resource_provider_namespace, api_version, custom_headers = nil)
|
65
|
-
fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
|
66
|
-
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
67
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
68
|
-
request_headers = {}
|
69
|
-
|
70
|
-
# Set Headers
|
71
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
72
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
73
|
-
path_template = '/providers/{resourceProviderNamespace}/operations'
|
74
|
-
options = {
|
75
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
76
|
-
path_params: {'resourceProviderNamespace' => resource_provider_namespace,'subscriptionId' => @client.subscription_id},
|
77
|
-
query_params: {'api-version' => api_version},
|
78
|
-
headers: request_headers.merge(custom_headers || {})
|
79
|
-
}
|
80
|
-
|
81
|
-
request_url = @base_url || @client.base_url
|
82
|
-
|
83
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
84
|
-
promise = request.run_promise do |req|
|
85
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
86
|
-
end
|
87
|
-
|
88
|
-
promise = promise.then do |http_response|
|
89
|
-
status_code = http_response.status
|
90
|
-
response_content = http_response.body
|
91
|
-
unless status_code == 200 || status_code == 204
|
92
|
-
error_model = JSON.load(response_content)
|
93
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
94
|
-
end
|
95
|
-
|
96
|
-
# Create Result
|
97
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
98
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
99
|
-
# Deserialize Response
|
100
|
-
if status_code == 200
|
101
|
-
begin
|
102
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
103
|
-
unless parsed_response.nil?
|
104
|
-
parsed_response = ResourceProviderOperationDetailListResult.deserialize_object(parsed_response)
|
105
|
-
end
|
106
|
-
result.body = parsed_response
|
107
|
-
rescue Exception => e
|
108
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
109
|
-
end
|
110
|
-
end
|
111
|
-
# Deserialize Response
|
112
|
-
if status_code == 204
|
113
|
-
begin
|
114
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
115
|
-
unless parsed_response.nil?
|
116
|
-
parsed_response = ResourceProviderOperationDetailListResult.deserialize_object(parsed_response)
|
117
|
-
end
|
118
|
-
result.body = parsed_response
|
119
|
-
rescue Exception => e
|
120
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
121
|
-
end
|
122
|
-
end
|
123
|
-
|
124
|
-
result
|
125
|
-
end
|
126
|
-
|
127
|
-
promise.execute
|
128
|
-
end
|
129
|
-
|
130
|
-
#
|
131
|
-
# Gets a list of resource providers.
|
132
|
-
#
|
133
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
134
|
-
# call to List operation.
|
135
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
136
|
-
# will be added to the HTTP request.
|
137
|
-
#
|
138
|
-
# @return [ResourceProviderOperationDetailListResult] operation results.
|
139
|
-
#
|
140
|
-
def list_next(next_page_link, custom_headers = nil)
|
141
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
142
|
-
response.body unless response.nil?
|
143
|
-
end
|
144
|
-
|
145
|
-
#
|
146
|
-
# Gets a list of resource providers.
|
147
|
-
#
|
148
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
149
|
-
# call to List operation.
|
150
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
151
|
-
# will be added to the HTTP request.
|
152
|
-
#
|
153
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
154
|
-
#
|
155
|
-
def list_next_with_http_info(next_page_link, custom_headers = nil)
|
156
|
-
list_next_async(next_page_link, custom_headers).value!
|
157
|
-
end
|
158
|
-
|
159
|
-
#
|
160
|
-
# Gets a list of resource providers.
|
161
|
-
#
|
162
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
163
|
-
# call to List operation.
|
164
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
165
|
-
# to the HTTP request.
|
166
|
-
#
|
167
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
168
|
-
#
|
169
|
-
def list_next_async(next_page_link, custom_headers = nil)
|
170
|
-
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
171
|
-
request_headers = {}
|
172
|
-
|
173
|
-
# Set Headers
|
174
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
175
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
176
|
-
path_template = '{nextLink}'
|
177
|
-
options = {
|
178
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
179
|
-
skip_encoding_path_params: {'nextLink' => next_page_link},
|
180
|
-
headers: request_headers.merge(custom_headers || {})
|
181
|
-
}
|
182
|
-
|
183
|
-
request_url = @base_url || @client.base_url
|
184
|
-
|
185
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
186
|
-
promise = request.run_promise do |req|
|
187
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
188
|
-
end
|
189
|
-
|
190
|
-
promise = promise.then do |http_response|
|
191
|
-
status_code = http_response.status
|
192
|
-
response_content = http_response.body
|
193
|
-
unless status_code == 200 || status_code == 204
|
194
|
-
error_model = JSON.load(response_content)
|
195
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
196
|
-
end
|
197
|
-
|
198
|
-
# Create Result
|
199
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
200
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
201
|
-
# Deserialize Response
|
202
|
-
if status_code == 200
|
203
|
-
begin
|
204
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
205
|
-
unless parsed_response.nil?
|
206
|
-
parsed_response = ResourceProviderOperationDetailListResult.deserialize_object(parsed_response)
|
207
|
-
end
|
208
|
-
result.body = parsed_response
|
209
|
-
rescue Exception => e
|
210
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
211
|
-
end
|
212
|
-
end
|
213
|
-
# Deserialize Response
|
214
|
-
if status_code == 204
|
215
|
-
begin
|
216
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
217
|
-
unless parsed_response.nil?
|
218
|
-
parsed_response = ResourceProviderOperationDetailListResult.deserialize_object(parsed_response)
|
219
|
-
end
|
220
|
-
result.body = parsed_response
|
221
|
-
rescue Exception => e
|
222
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
223
|
-
end
|
224
|
-
end
|
225
|
-
|
226
|
-
result
|
227
|
-
end
|
228
|
-
|
229
|
-
promise.execute
|
230
|
-
end
|
231
|
-
|
232
|
-
end
|
233
|
-
end
|