azure_mgmt_features 0.17.0 → 0.17.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 8391af85b3651956d3371bc7946348d3fc55551d
4
- data.tar.gz: 16cb4458eb890f0d04bc27ef34658b5940d2e175
2
+ SHA256:
3
+ metadata.gz: 54cc603799ed1a177f4a37cb2e554c7edfdf66e6f38f55ad0b54507ee79a773a
4
+ data.tar.gz: 500759acadaca7fc80c90305dda4267d6987a5acdb4c45c73a168eaa737fa56a
5
5
  SHA512:
6
- metadata.gz: 1db6bc6ecab9c1d6eca95c9c1a24d9c37c07137fe51ef9c05f5330943fd824d49309bd5bcc16fc1a842c0c72f7eee16f27df0a7b3e85179edadc67a3cecb6867
7
- data.tar.gz: 2ffd577e7d105cb804559c240cc135f651e46ddc0114c49d933de5232b60ad3594855ce91f7ad1a5d92ebae86ca504dd8deedaa643f362b5e5b1563f3cdf5a47
6
+ metadata.gz: 2da34f0088398c873f207dbb3ccd91dc6d34792fbb09390fe8bdd78a4905e5bd8487f58438ee5719be51faec86f0ac4523781f3c33d11a001e4467c0a470cac8
7
+ data.tar.gz: 00a202309c287741a3777fa2adb8f0901ee4660514b3a01cd022f31fc5e96380201ef330ef262ddbfea4cfd4c21976b249f13ebbb16d758d1e2e2d066928719b
@@ -24,8 +24,11 @@ module Azure::Features::Mgmt::V2015_12_01
24
24
  autoload :FeatureClient, '2015-12-01/generated/azure_mgmt_features/feature_client.rb'
25
25
 
26
26
  module Models
27
- autoload :FeatureResult, '2015-12-01/generated/azure_mgmt_features/models/feature_result.rb'
28
- autoload :FeatureOperationsListResult, '2015-12-01/generated/azure_mgmt_features/models/feature_operations_list_result.rb'
27
+ autoload :OperationDisplay, '2015-12-01/generated/azure_mgmt_features/models/operation_display.rb'
29
28
  autoload :FeatureProperties, '2015-12-01/generated/azure_mgmt_features/models/feature_properties.rb'
29
+ autoload :Operation, '2015-12-01/generated/azure_mgmt_features/models/operation.rb'
30
+ autoload :FeatureOperationsListResult, '2015-12-01/generated/azure_mgmt_features/models/feature_operations_list_result.rb'
31
+ autoload :OperationListResult, '2015-12-01/generated/azure_mgmt_features/models/operation_list_result.rb'
32
+ autoload :FeatureResult, '2015-12-01/generated/azure_mgmt_features/models/feature_result.rb'
30
33
  end
31
34
  end
@@ -117,6 +117,258 @@ module Azure::Features::Mgmt::V2015_12_01
117
117
  super(request_url, method, path, options)
118
118
  end
119
119
 
120
+ #
121
+ # Lists all of the available Microsoft.Features REST API operations.
122
+ #
123
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
124
+ # will be added to the HTTP request.
125
+ #
126
+ # @return [Array<Operation>] operation results.
127
+ #
128
+ def list_operations(custom_headers:nil)
129
+ first_page = list_operations_as_lazy(custom_headers:custom_headers)
130
+ first_page.get_all_items
131
+ end
132
+
133
+ #
134
+ # Lists all of the available Microsoft.Features REST API operations.
135
+ #
136
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
137
+ # will be added to the HTTP request.
138
+ #
139
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
140
+ #
141
+ def list_operations_with_http_info(custom_headers:nil)
142
+ list_operations_async(custom_headers:custom_headers).value!
143
+ end
144
+
145
+ #
146
+ # Lists all of the available Microsoft.Features REST API operations.
147
+ #
148
+ # @param [Hash{String => String}] A hash of custom headers that will be added
149
+ # to the HTTP request.
150
+ #
151
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
152
+ #
153
+ def list_operations_async(custom_headers:nil)
154
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
155
+
156
+
157
+ request_headers = {}
158
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
159
+
160
+ # Set Headers
161
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
162
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
163
+ path_template = 'providers/Microsoft.Features/operations'
164
+
165
+ request_url = @base_url || self.base_url
166
+
167
+ options = {
168
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
169
+ query_params: {'api-version' => api_version},
170
+ headers: request_headers.merge(custom_headers || {}),
171
+ base_url: request_url
172
+ }
173
+ promise = self.make_request_async(:get, path_template, options)
174
+
175
+ promise = promise.then do |result|
176
+ http_response = result.response
177
+ status_code = http_response.status
178
+ response_content = http_response.body
179
+ unless status_code == 200
180
+ error_model = JSON.load(response_content)
181
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
182
+ end
183
+
184
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
185
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
186
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
187
+ # Deserialize Response
188
+ if status_code == 200
189
+ begin
190
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
191
+ result_mapper = Azure::Features::Mgmt::V2015_12_01::Models::OperationListResult.mapper()
192
+ result.body = self.deserialize(result_mapper, parsed_response)
193
+ rescue Exception => e
194
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
195
+ end
196
+ end
197
+
198
+ result
199
+ end
200
+
201
+ promise.execute
202
+ end
203
+
204
+ #
205
+ # Lists all of the available Microsoft.Features REST API operations.
206
+ #
207
+ # @param next_page_link [String] The NextLink from the previous successful call
208
+ # to List operation.
209
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
210
+ # will be added to the HTTP request.
211
+ #
212
+ # @return [OperationListResult] operation results.
213
+ #
214
+ def list_operations_next(next_page_link, custom_headers:nil)
215
+ response = list_operations_next_async(next_page_link, custom_headers:custom_headers).value!
216
+ response.body unless response.nil?
217
+ end
218
+
219
+ #
220
+ # Lists all of the available Microsoft.Features REST API operations.
221
+ #
222
+ # @param next_page_link [String] The NextLink from the previous successful call
223
+ # to List operation.
224
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
225
+ # will be added to the HTTP request.
226
+ #
227
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
228
+ #
229
+ def list_operations_next_with_http_info(next_page_link, custom_headers:nil)
230
+ list_operations_next_async(next_page_link, custom_headers:custom_headers).value!
231
+ end
232
+
233
+ #
234
+ # Lists all of the available Microsoft.Features REST API operations.
235
+ #
236
+ # @param next_page_link [String] The NextLink from the previous successful call
237
+ # to List operation.
238
+ # @param [Hash{String => String}] A hash of custom headers that will be added
239
+ # to the HTTP request.
240
+ #
241
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
242
+ #
243
+ def list_operations_next_async(next_page_link, custom_headers:nil)
244
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
245
+
246
+
247
+ request_headers = {}
248
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
249
+
250
+ # Set Headers
251
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
252
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
253
+ path_template = '{nextLink}'
254
+
255
+ request_url = @base_url || self.base_url
256
+
257
+ options = {
258
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
259
+ skip_encoding_path_params: {'nextLink' => next_page_link},
260
+ headers: request_headers.merge(custom_headers || {}),
261
+ base_url: request_url
262
+ }
263
+ promise = self.make_request_async(:get, path_template, options)
264
+
265
+ promise = promise.then do |result|
266
+ http_response = result.response
267
+ status_code = http_response.status
268
+ response_content = http_response.body
269
+ unless status_code == 200
270
+ error_model = JSON.load(response_content)
271
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
272
+ end
273
+
274
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
275
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
276
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
277
+ # Deserialize Response
278
+ if status_code == 200
279
+ begin
280
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
281
+ result_mapper = Azure::Features::Mgmt::V2015_12_01::Models::OperationListResult.mapper()
282
+ result.body = self.deserialize(result_mapper, parsed_response)
283
+ rescue Exception => e
284
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
285
+ end
286
+ end
287
+
288
+ result
289
+ end
290
+
291
+ promise.execute
292
+ end
293
+
294
+ #
295
+ # Lists all of the available Microsoft.Features REST API operations.
296
+ #
297
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
298
+ # will be added to the HTTP request.
299
+ #
300
+ # @return [OperationListResult] operation results.
301
+ #
302
+ def list_operations_as_lazy(custom_headers:nil)
303
+ first_page = list_operations_as_lazy_async(custom_headers:custom_headers)
304
+ first_page.get_all_items
305
+ end
306
+
307
+ #
308
+ # Lists all of the available Microsoft.Features REST API operations.
309
+ #
310
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
311
+ # will be added to the HTTP request.
312
+ #
313
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
314
+ #
315
+ def list_operations_as_lazy_with_http_info(custom_headers:nil)
316
+ list_operations_as_lazy_async(custom_headers:custom_headers).value!
317
+ end
318
+
319
+ #
320
+ # Lists all of the available Microsoft.Features REST API operations.
321
+ #
322
+ # @param [Hash{String => String}] A hash of custom headers that will be added
323
+ # to the HTTP request.
324
+ #
325
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
326
+ #
327
+ def list_operations_as_lazy_async(custom_headers:nil)
328
+
329
+
330
+ request_headers = {}
331
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
332
+ path_template = 'providers/Microsoft.Features/operations'
333
+
334
+ request_url = @base_url || self.base_url
335
+
336
+ options = {
337
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
338
+ headers: request_headers.merge(custom_headers || {}),
339
+ base_url: request_url
340
+ }
341
+ promise = self.make_request_async(:get, path_template, options)
342
+
343
+ promise = promise.then do |result|
344
+ http_response = result.response
345
+ status_code = http_response.status
346
+ response_content = http_response.body
347
+ unless status_code == 200
348
+ error_model = JSON.load(response_content)
349
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
350
+ end
351
+
352
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
353
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
354
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
355
+ # Deserialize Response
356
+ if status_code == 200
357
+ begin
358
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
359
+ result_mapper = Azure::Features::Mgmt::V2015_12_01::Models::OperationListResult.mapper()
360
+ result.body = self.deserialize(result_mapper, parsed_response)
361
+ rescue Exception => e
362
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
363
+ end
364
+ end
365
+
366
+ result
367
+ end
368
+
369
+ promise.execute
370
+ end
371
+
120
372
 
121
373
  private
122
374
  #
@@ -124,7 +376,7 @@ module Azure::Features::Mgmt::V2015_12_01
124
376
  #
125
377
  def add_telemetry
126
378
  sdk_information = 'azure_mgmt_features'
127
- sdk_information = "#{sdk_information}/0.17.0"
379
+ sdk_information = "#{sdk_information}/0.17.5"
128
380
  add_user_agent_information(sdk_information)
129
381
  end
130
382
  end
@@ -95,6 +95,8 @@ module Azure::Features::Mgmt::V2015_12_01
95
95
  end
96
96
 
97
97
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
98
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
99
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
98
100
  # Deserialize Response
99
101
  if status_code == 200
100
102
  begin
@@ -189,6 +191,8 @@ module Azure::Features::Mgmt::V2015_12_01
189
191
  end
190
192
 
191
193
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
194
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
195
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
192
196
  # Deserialize Response
193
197
  if status_code == 200
194
198
  begin
@@ -284,6 +288,8 @@ module Azure::Features::Mgmt::V2015_12_01
284
288
  end
285
289
 
286
290
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
291
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
292
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
287
293
  # Deserialize Response
288
294
  if status_code == 200
289
295
  begin
@@ -379,6 +385,105 @@ module Azure::Features::Mgmt::V2015_12_01
379
385
  end
380
386
 
381
387
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
388
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
389
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
390
+ # Deserialize Response
391
+ if status_code == 200
392
+ begin
393
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
394
+ result_mapper = Azure::Features::Mgmt::V2015_12_01::Models::FeatureResult.mapper()
395
+ result.body = @client.deserialize(result_mapper, parsed_response)
396
+ rescue Exception => e
397
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
398
+ end
399
+ end
400
+
401
+ result
402
+ end
403
+
404
+ promise.execute
405
+ end
406
+
407
+ #
408
+ # Unregisters the preview feature for the subscription.
409
+ #
410
+ # @param resource_provider_namespace [String] The namespace of the resource
411
+ # provider.
412
+ # @param feature_name [String] The name of the feature to unregister.
413
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
414
+ # will be added to the HTTP request.
415
+ #
416
+ # @return [FeatureResult] operation results.
417
+ #
418
+ def unregister(resource_provider_namespace, feature_name, custom_headers:nil)
419
+ response = unregister_async(resource_provider_namespace, feature_name, custom_headers:custom_headers).value!
420
+ response.body unless response.nil?
421
+ end
422
+
423
+ #
424
+ # Unregisters the preview feature for the subscription.
425
+ #
426
+ # @param resource_provider_namespace [String] The namespace of the resource
427
+ # provider.
428
+ # @param feature_name [String] The name of the feature to unregister.
429
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
430
+ # will be added to the HTTP request.
431
+ #
432
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
433
+ #
434
+ def unregister_with_http_info(resource_provider_namespace, feature_name, custom_headers:nil)
435
+ unregister_async(resource_provider_namespace, feature_name, custom_headers:custom_headers).value!
436
+ end
437
+
438
+ #
439
+ # Unregisters the preview feature for the subscription.
440
+ #
441
+ # @param resource_provider_namespace [String] The namespace of the resource
442
+ # provider.
443
+ # @param feature_name [String] The name of the feature to unregister.
444
+ # @param [Hash{String => String}] A hash of custom headers that will be added
445
+ # to the HTTP request.
446
+ #
447
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
448
+ #
449
+ def unregister_async(resource_provider_namespace, feature_name, custom_headers:nil)
450
+ fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
451
+ fail ArgumentError, 'feature_name is nil' if feature_name.nil?
452
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
453
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
454
+
455
+
456
+ request_headers = {}
457
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
458
+
459
+ # Set Headers
460
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
461
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
462
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}/unregister'
463
+
464
+ request_url = @base_url || @client.base_url
465
+
466
+ options = {
467
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
468
+ path_params: {'resourceProviderNamespace' => resource_provider_namespace,'featureName' => feature_name,'subscriptionId' => @client.subscription_id},
469
+ query_params: {'api-version' => @client.api_version},
470
+ headers: request_headers.merge(custom_headers || {}),
471
+ base_url: request_url
472
+ }
473
+ promise = @client.make_request_async(:post, path_template, options)
474
+
475
+ promise = promise.then do |result|
476
+ http_response = result.response
477
+ status_code = http_response.status
478
+ response_content = http_response.body
479
+ unless status_code == 200
480
+ error_model = JSON.load(response_content)
481
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
482
+ end
483
+
484
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
485
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
486
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
382
487
  # Deserialize Response
383
488
  if status_code == 200
384
489
  begin
@@ -470,6 +575,8 @@ module Azure::Features::Mgmt::V2015_12_01
470
575
  end
471
576
 
472
577
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
578
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
579
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
473
580
  # Deserialize Response
474
581
  if status_code == 200
475
582
  begin
@@ -561,6 +668,8 @@ module Azure::Features::Mgmt::V2015_12_01
561
668
  end
562
669
 
563
670
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
671
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
672
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
564
673
  # Deserialize Response
565
674
  if status_code == 200
566
675
  begin
@@ -30,7 +30,7 @@ module Azure::Features::Mgmt::V2015_12_01
30
30
  def get_all_items
31
31
  items = @value
32
32
  page = self
33
- while page.next_link != nil do
33
+ while page.next_link != nil && !page.next_link.strip.empty? do
34
34
  page = page.get_next_page
35
35
  items.concat(page.value)
36
36
  end
@@ -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::Features::Mgmt::V2015_12_01
7
+ module Models
8
+ #
9
+ # Microsoft.Features operation
10
+ #
11
+ class Operation
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Operation name: {provider}/{resource}/{operation}
16
+ attr_accessor :name
17
+
18
+ # @return [OperationDisplay] The object that represents the operation.
19
+ attr_accessor :display
20
+
21
+
22
+ #
23
+ # Mapper for Operation 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: 'Operation',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'Operation',
34
+ model_properties: {
35
+ name: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'name',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ display: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'display',
47
+ type: {
48
+ name: 'Composite',
49
+ class_name: 'OperationDisplay'
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,69 @@
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::Features::Mgmt::V2015_12_01
7
+ module Models
8
+ #
9
+ # The object that represents the operation.
10
+ #
11
+ class OperationDisplay
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Service provider: Microsoft.Features
16
+ attr_accessor :provider
17
+
18
+ # @return [String] Resource on which the operation is performed: Profile,
19
+ # endpoint, etc.
20
+ attr_accessor :resource
21
+
22
+ # @return [String] Operation type: Read, write, delete, etc.
23
+ attr_accessor :operation
24
+
25
+
26
+ #
27
+ # Mapper for OperationDisplay class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ client_side_validation: true,
33
+ required: false,
34
+ serialized_name: 'Operation_display',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'OperationDisplay',
38
+ model_properties: {
39
+ provider: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'provider',
43
+ type: {
44
+ name: 'String'
45
+ }
46
+ },
47
+ resource: {
48
+ client_side_validation: true,
49
+ required: false,
50
+ serialized_name: 'resource',
51
+ type: {
52
+ name: 'String'
53
+ }
54
+ },
55
+ operation: {
56
+ client_side_validation: true,
57
+ required: false,
58
+ serialized_name: 'operation',
59
+ type: {
60
+ name: 'String'
61
+ }
62
+ }
63
+ }
64
+ }
65
+ }
66
+ end
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,100 @@
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::Features::Mgmt::V2015_12_01
7
+ module Models
8
+ #
9
+ # Result of the request to list Microsoft.Features operations. It contains
10
+ # a list of operations and a URL link to get the next set of results.
11
+ #
12
+ class OperationListResult
13
+
14
+ include MsRestAzure
15
+
16
+ include MsRest::JSONable
17
+ # @return [Array<Operation>] List of Microsoft.Features operations.
18
+ attr_accessor :value
19
+
20
+ # @return [String] URL to get the next set of operation list results if
21
+ # there are any.
22
+ attr_accessor :next_link
23
+
24
+ # return [Proc] with next page method call.
25
+ attr_accessor :next_method
26
+
27
+ #
28
+ # Gets the rest of the items for the request, enabling auto-pagination.
29
+ #
30
+ # @return [Array<Operation>] operation results.
31
+ #
32
+ def get_all_items
33
+ items = @value
34
+ page = self
35
+ while page.next_link != nil && !page.next_link.strip.empty? do
36
+ page = page.get_next_page
37
+ items.concat(page.value)
38
+ end
39
+ items
40
+ end
41
+
42
+ #
43
+ # Gets the next page of results.
44
+ #
45
+ # @return [OperationListResult] with next page content.
46
+ #
47
+ def get_next_page
48
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
49
+ unless response.nil?
50
+ @next_link = response.body.next_link
51
+ @value = response.body.value
52
+ self
53
+ end
54
+ end
55
+
56
+ #
57
+ # Mapper for OperationListResult class as Ruby Hash.
58
+ # This will be used for serialization/deserialization.
59
+ #
60
+ def self.mapper()
61
+ {
62
+ client_side_validation: true,
63
+ required: false,
64
+ serialized_name: 'OperationListResult',
65
+ type: {
66
+ name: 'Composite',
67
+ class_name: 'OperationListResult',
68
+ model_properties: {
69
+ value: {
70
+ client_side_validation: true,
71
+ required: false,
72
+ serialized_name: 'value',
73
+ type: {
74
+ name: 'Sequence',
75
+ element: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ serialized_name: 'OperationElementType',
79
+ type: {
80
+ name: 'Composite',
81
+ class_name: 'Operation'
82
+ }
83
+ }
84
+ }
85
+ },
86
+ next_link: {
87
+ client_side_validation: true,
88
+ required: false,
89
+ serialized_name: 'nextLink',
90
+ type: {
91
+ name: 'String'
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+ end
98
+ end
99
+ end
100
+ end
@@ -3,5 +3,5 @@
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
5
  require '2015-12-01/generated/azure_mgmt_features'
6
- require 'profiles/v2017_03_09/features_v2017_03_09_profile_client'
7
6
  require 'profiles/latest/features_latest_profile_client'
7
+ require 'profiles/v2017_03_09/features_v2017_03_09_profile_client'
@@ -9,9 +9,12 @@ module Azure::Features::Profiles::Latest
9
9
  Features = Azure::Features::Mgmt::V2015_12_01::Features
10
10
 
11
11
  module Models
12
- FeatureResult = Azure::Features::Mgmt::V2015_12_01::Models::FeatureResult
13
- FeatureOperationsListResult = Azure::Features::Mgmt::V2015_12_01::Models::FeatureOperationsListResult
12
+ OperationDisplay = Azure::Features::Mgmt::V2015_12_01::Models::OperationDisplay
14
13
  FeatureProperties = Azure::Features::Mgmt::V2015_12_01::Models::FeatureProperties
14
+ Operation = Azure::Features::Mgmt::V2015_12_01::Models::Operation
15
+ FeatureOperationsListResult = Azure::Features::Mgmt::V2015_12_01::Models::FeatureOperationsListResult
16
+ OperationListResult = Azure::Features::Mgmt::V2015_12_01::Models::OperationListResult
17
+ FeatureResult = Azure::Features::Mgmt::V2015_12_01::Models::FeatureResult
15
18
  end
16
19
 
17
20
  #
@@ -59,14 +62,23 @@ module Azure::Features::Profiles::Latest
59
62
  end
60
63
 
61
64
  class ModelClasses
62
- def feature_result
63
- Azure::Features::Mgmt::V2015_12_01::Models::FeatureResult
65
+ def operation_display
66
+ Azure::Features::Mgmt::V2015_12_01::Models::OperationDisplay
67
+ end
68
+ def feature_properties
69
+ Azure::Features::Mgmt::V2015_12_01::Models::FeatureProperties
70
+ end
71
+ def operation
72
+ Azure::Features::Mgmt::V2015_12_01::Models::Operation
64
73
  end
65
74
  def feature_operations_list_result
66
75
  Azure::Features::Mgmt::V2015_12_01::Models::FeatureOperationsListResult
67
76
  end
68
- def feature_properties
69
- Azure::Features::Mgmt::V2015_12_01::Models::FeatureProperties
77
+ def operation_list_result
78
+ Azure::Features::Mgmt::V2015_12_01::Models::OperationListResult
79
+ end
80
+ def feature_result
81
+ Azure::Features::Mgmt::V2015_12_01::Models::FeatureResult
70
82
  end
71
83
  end
72
84
  end
@@ -9,9 +9,12 @@ module Azure::Features::Profiles::V2017_03_09
9
9
  Features = Azure::Features::Mgmt::V2015_12_01::Features
10
10
 
11
11
  module Models
12
- FeatureResult = Azure::Features::Mgmt::V2015_12_01::Models::FeatureResult
13
- FeatureOperationsListResult = Azure::Features::Mgmt::V2015_12_01::Models::FeatureOperationsListResult
12
+ OperationDisplay = Azure::Features::Mgmt::V2015_12_01::Models::OperationDisplay
14
13
  FeatureProperties = Azure::Features::Mgmt::V2015_12_01::Models::FeatureProperties
14
+ Operation = Azure::Features::Mgmt::V2015_12_01::Models::Operation
15
+ FeatureOperationsListResult = Azure::Features::Mgmt::V2015_12_01::Models::FeatureOperationsListResult
16
+ OperationListResult = Azure::Features::Mgmt::V2015_12_01::Models::OperationListResult
17
+ FeatureResult = Azure::Features::Mgmt::V2015_12_01::Models::FeatureResult
15
18
  end
16
19
 
17
20
  #
@@ -59,14 +62,23 @@ module Azure::Features::Profiles::V2017_03_09
59
62
  end
60
63
 
61
64
  class ModelClasses
62
- def feature_result
63
- Azure::Features::Mgmt::V2015_12_01::Models::FeatureResult
65
+ def operation_display
66
+ Azure::Features::Mgmt::V2015_12_01::Models::OperationDisplay
67
+ end
68
+ def feature_properties
69
+ Azure::Features::Mgmt::V2015_12_01::Models::FeatureProperties
70
+ end
71
+ def operation
72
+ Azure::Features::Mgmt::V2015_12_01::Models::Operation
64
73
  end
65
74
  def feature_operations_list_result
66
75
  Azure::Features::Mgmt::V2015_12_01::Models::FeatureOperationsListResult
67
76
  end
68
- def feature_properties
69
- Azure::Features::Mgmt::V2015_12_01::Models::FeatureProperties
77
+ def operation_list_result
78
+ Azure::Features::Mgmt::V2015_12_01::Models::OperationListResult
79
+ end
80
+ def feature_result
81
+ Azure::Features::Mgmt::V2015_12_01::Models::FeatureResult
70
82
  end
71
83
  end
72
84
  end
data/lib/version.rb CHANGED
@@ -3,5 +3,5 @@
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
5
  module Azure::Features::Mgmt
6
- VERSION = '0.17.0'
6
+ VERSION = '0.17.5'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_features
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.17.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-31 00:00:00.000000000 Z
11
+ date: 2021-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.11.0
75
+ version: 0.12.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.11.0
82
+ version: 0.12.0
83
83
  description: Microsoft Azure Resource Provider Feature Management Client Library for
84
84
  Ruby
85
85
  email: azrubyteam@microsoft.com
@@ -94,6 +94,9 @@ files:
94
94
  - lib/2015-12-01/generated/azure_mgmt_features/models/feature_operations_list_result.rb
95
95
  - lib/2015-12-01/generated/azure_mgmt_features/models/feature_properties.rb
96
96
  - lib/2015-12-01/generated/azure_mgmt_features/models/feature_result.rb
97
+ - lib/2015-12-01/generated/azure_mgmt_features/models/operation.rb
98
+ - lib/2015-12-01/generated/azure_mgmt_features/models/operation_display.rb
99
+ - lib/2015-12-01/generated/azure_mgmt_features/models/operation_list_result.rb
97
100
  - lib/2015-12-01/generated/azure_mgmt_features/module_definition.rb
98
101
  - lib/azure_mgmt_features.rb
99
102
  - lib/module_definition.rb
@@ -129,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
132
  version: '0'
130
133
  requirements: []
131
134
  rubyforge_project:
132
- rubygems_version: 2.5.1
135
+ rubygems_version: 2.7.10
133
136
  signing_key:
134
137
  specification_version: 4
135
138
  summary: Official Ruby client library to consume Microsoft Azure Resource Provider