azure_mgmt_features 0.17.2 → 0.17.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52a470cda45ac93975eca2e25c9da9c23368634ff79ed7fd0aa569178b82574c
|
4
|
+
data.tar.gz: db6e6d6d9a188b30f0d3423ffc316619313caaa272bef2ec279cc0b0cce22812
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c428300ff97448e4de50fb29f8dbfe6c5294adf6e3e7262e93f2de72b274d42263971fe7a64d1528bfbb7186d5a2e7d31253c02e738a6ee83a092224d4e23efe
|
7
|
+
data.tar.gz: 4171e1a57ca22872d2cf3202160e376aabeb42ee6dce661ca0e4abd9e43cbb709094c2f320d51f3f24b5f6d07634c9b572a2acf126468e17b5ad15538bfcd267
|
@@ -182,6 +182,8 @@ module Azure::Features::Mgmt::V2015_12_01
|
|
182
182
|
end
|
183
183
|
|
184
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?
|
185
187
|
# Deserialize Response
|
186
188
|
if status_code == 200
|
187
189
|
begin
|
@@ -270,6 +272,8 @@ module Azure::Features::Mgmt::V2015_12_01
|
|
270
272
|
end
|
271
273
|
|
272
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?
|
273
277
|
# Deserialize Response
|
274
278
|
if status_code == 200
|
275
279
|
begin
|
@@ -346,6 +350,8 @@ module Azure::Features::Mgmt::V2015_12_01
|
|
346
350
|
end
|
347
351
|
|
348
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?
|
349
355
|
# Deserialize Response
|
350
356
|
if status_code == 200
|
351
357
|
begin
|
@@ -370,7 +376,7 @@ module Azure::Features::Mgmt::V2015_12_01
|
|
370
376
|
#
|
371
377
|
def add_telemetry
|
372
378
|
sdk_information = 'azure_mgmt_features'
|
373
|
-
sdk_information = "#{sdk_information}/0.17.
|
379
|
+
sdk_information = "#{sdk_information}/0.17.3"
|
374
380
|
add_user_agent_information(sdk_information)
|
375
381
|
end
|
376
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
|
data/lib/azure_mgmt_features.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
|
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'
|
data/lib/version.rb
CHANGED
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.
|
4
|
+
version: 0.17.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-05-18 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.
|
75
|
+
version: 0.11.1
|
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.
|
82
|
+
version: 0.11.1
|
83
83
|
description: Microsoft Azure Resource Provider Feature Management Client Library for
|
84
84
|
Ruby
|
85
85
|
email: azrubyteam@microsoft.com
|
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
132
|
version: '0'
|
133
133
|
requirements: []
|
134
134
|
rubyforge_project:
|
135
|
-
rubygems_version: 2.7.
|
135
|
+
rubygems_version: 2.7.8
|
136
136
|
signing_key:
|
137
137
|
specification_version: 4
|
138
138
|
summary: Official Ruby client library to consume Microsoft Azure Resource Provider
|