azure_mgmt_features 0.15.2 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-12-01/generated/azure_mgmt_features/feature_client.rb +4 -1
- data/lib/2015-12-01/generated/azure_mgmt_features/features.rb +42 -36
- data/lib/profiles/latest/features_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/features_module_definition.rb +0 -1
- data/lib/profiles/latest/modules/features_profile_module.rb +36 -17
- data/lib/profiles/v2017_03_09/features_module_definition.rb +0 -1
- data/lib/profiles/v2017_03_09/features_v2017_03_09_profile_client.rb +28 -9
- data/lib/profiles/v2017_03_09/modules/features_profile_module.rb +36 -17
- data/lib/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85bf87ef2a1640382280b30f676ce3c284d3ffcb
|
4
|
+
data.tar.gz: 2b8550024ff25d39b23488dc7112c5b9f3e68cb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed791da0ca0805e7f4d2479e734e8a494aa9b46c315e16036ac3b9ba2b32ec6b8ededd5c05080eea42ff4fe1ecb8f16d82fe1bbf7cf7c8687cec73636ca8a272
|
7
|
+
data.tar.gz: 2ab9d34c060cb28c4d2e0321b6a0aa0e7623df720001783e7660fde23b669c34b8834b5c5367986dc15648f91d55a207dd97ca281e23e63882df4b0697fa6f0e
|
@@ -104,6 +104,9 @@ module Azure::Features::Mgmt::V2015_12_01
|
|
104
104
|
fail ArgumentError, 'path is nil' if path.nil?
|
105
105
|
|
106
106
|
request_url = options[:base_url] || @base_url
|
107
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
108
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
109
|
+
end
|
107
110
|
|
108
111
|
request_headers = @request_headers
|
109
112
|
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
@@ -120,7 +123,7 @@ module Azure::Features::Mgmt::V2015_12_01
|
|
120
123
|
#
|
121
124
|
def add_telemetry
|
122
125
|
sdk_information = 'azure_mgmt_features'
|
123
|
-
sdk_information = "#{sdk_information}/0.
|
126
|
+
sdk_information = "#{sdk_information}/0.16.0"
|
124
127
|
add_user_agent_information(sdk_information)
|
125
128
|
end
|
126
129
|
end
|
@@ -34,8 +34,8 @@ module Azure::Features::Mgmt::V2015_12_01
|
|
34
34
|
#
|
35
35
|
# @return [Array<FeatureResult>] operation results.
|
36
36
|
#
|
37
|
-
def list_all(custom_headers
|
38
|
-
first_page = list_all_as_lazy(custom_headers)
|
37
|
+
def list_all(custom_headers:nil)
|
38
|
+
first_page = list_all_as_lazy(custom_headers:custom_headers)
|
39
39
|
first_page.get_all_items
|
40
40
|
end
|
41
41
|
|
@@ -48,8 +48,8 @@ module Azure::Features::Mgmt::V2015_12_01
|
|
48
48
|
#
|
49
49
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
50
50
|
#
|
51
|
-
def list_all_with_http_info(custom_headers
|
52
|
-
list_all_async(custom_headers).value!
|
51
|
+
def list_all_with_http_info(custom_headers:nil)
|
52
|
+
list_all_async(custom_headers:custom_headers).value!
|
53
53
|
end
|
54
54
|
|
55
55
|
#
|
@@ -61,12 +61,13 @@ module Azure::Features::Mgmt::V2015_12_01
|
|
61
61
|
#
|
62
62
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
63
63
|
#
|
64
|
-
def list_all_async(custom_headers
|
64
|
+
def list_all_async(custom_headers:nil)
|
65
65
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
66
66
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
67
67
|
|
68
68
|
|
69
69
|
request_headers = {}
|
70
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
70
71
|
|
71
72
|
# Set Headers
|
72
73
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -122,8 +123,8 @@ module Azure::Features::Mgmt::V2015_12_01
|
|
122
123
|
#
|
123
124
|
# @return [Array<FeatureResult>] operation results.
|
124
125
|
#
|
125
|
-
def list(resource_provider_namespace, custom_headers
|
126
|
-
first_page = list_as_lazy(resource_provider_namespace, custom_headers)
|
126
|
+
def list(resource_provider_namespace, custom_headers:nil)
|
127
|
+
first_page = list_as_lazy(resource_provider_namespace, custom_headers:custom_headers)
|
127
128
|
first_page.get_all_items
|
128
129
|
end
|
129
130
|
|
@@ -138,8 +139,8 @@ module Azure::Features::Mgmt::V2015_12_01
|
|
138
139
|
#
|
139
140
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
140
141
|
#
|
141
|
-
def list_with_http_info(resource_provider_namespace, custom_headers
|
142
|
-
list_async(resource_provider_namespace, custom_headers).value!
|
142
|
+
def list_with_http_info(resource_provider_namespace, custom_headers:nil)
|
143
|
+
list_async(resource_provider_namespace, custom_headers:custom_headers).value!
|
143
144
|
end
|
144
145
|
|
145
146
|
#
|
@@ -153,13 +154,14 @@ module Azure::Features::Mgmt::V2015_12_01
|
|
153
154
|
#
|
154
155
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
155
156
|
#
|
156
|
-
def list_async(resource_provider_namespace, custom_headers
|
157
|
+
def list_async(resource_provider_namespace, custom_headers:nil)
|
157
158
|
fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
|
158
159
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
159
160
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
160
161
|
|
161
162
|
|
162
163
|
request_headers = {}
|
164
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
163
165
|
|
164
166
|
# Set Headers
|
165
167
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -215,8 +217,8 @@ module Azure::Features::Mgmt::V2015_12_01
|
|
215
217
|
#
|
216
218
|
# @return [FeatureResult] operation results.
|
217
219
|
#
|
218
|
-
def get(resource_provider_namespace, feature_name, custom_headers
|
219
|
-
response = get_async(resource_provider_namespace, feature_name, custom_headers).value!
|
220
|
+
def get(resource_provider_namespace, feature_name, custom_headers:nil)
|
221
|
+
response = get_async(resource_provider_namespace, feature_name, custom_headers:custom_headers).value!
|
220
222
|
response.body unless response.nil?
|
221
223
|
end
|
222
224
|
|
@@ -231,8 +233,8 @@ module Azure::Features::Mgmt::V2015_12_01
|
|
231
233
|
#
|
232
234
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
233
235
|
#
|
234
|
-
def get_with_http_info(resource_provider_namespace, feature_name, custom_headers
|
235
|
-
get_async(resource_provider_namespace, feature_name, custom_headers).value!
|
236
|
+
def get_with_http_info(resource_provider_namespace, feature_name, custom_headers:nil)
|
237
|
+
get_async(resource_provider_namespace, feature_name, custom_headers:custom_headers).value!
|
236
238
|
end
|
237
239
|
|
238
240
|
#
|
@@ -246,7 +248,7 @@ module Azure::Features::Mgmt::V2015_12_01
|
|
246
248
|
#
|
247
249
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
248
250
|
#
|
249
|
-
def get_async(resource_provider_namespace, feature_name, custom_headers
|
251
|
+
def get_async(resource_provider_namespace, feature_name, custom_headers:nil)
|
250
252
|
fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
|
251
253
|
fail ArgumentError, 'feature_name is nil' if feature_name.nil?
|
252
254
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -254,6 +256,7 @@ module Azure::Features::Mgmt::V2015_12_01
|
|
254
256
|
|
255
257
|
|
256
258
|
request_headers = {}
|
259
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
257
260
|
|
258
261
|
# Set Headers
|
259
262
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -309,8 +312,8 @@ module Azure::Features::Mgmt::V2015_12_01
|
|
309
312
|
#
|
310
313
|
# @return [FeatureResult] operation results.
|
311
314
|
#
|
312
|
-
def register(resource_provider_namespace, feature_name, custom_headers
|
313
|
-
response = register_async(resource_provider_namespace, feature_name, custom_headers).value!
|
315
|
+
def register(resource_provider_namespace, feature_name, custom_headers:nil)
|
316
|
+
response = register_async(resource_provider_namespace, feature_name, custom_headers:custom_headers).value!
|
314
317
|
response.body unless response.nil?
|
315
318
|
end
|
316
319
|
|
@@ -325,8 +328,8 @@ module Azure::Features::Mgmt::V2015_12_01
|
|
325
328
|
#
|
326
329
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
327
330
|
#
|
328
|
-
def register_with_http_info(resource_provider_namespace, feature_name, custom_headers
|
329
|
-
register_async(resource_provider_namespace, feature_name, custom_headers).value!
|
331
|
+
def register_with_http_info(resource_provider_namespace, feature_name, custom_headers:nil)
|
332
|
+
register_async(resource_provider_namespace, feature_name, custom_headers:custom_headers).value!
|
330
333
|
end
|
331
334
|
|
332
335
|
#
|
@@ -340,7 +343,7 @@ module Azure::Features::Mgmt::V2015_12_01
|
|
340
343
|
#
|
341
344
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
342
345
|
#
|
343
|
-
def register_async(resource_provider_namespace, feature_name, custom_headers
|
346
|
+
def register_async(resource_provider_namespace, feature_name, custom_headers:nil)
|
344
347
|
fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
|
345
348
|
fail ArgumentError, 'feature_name is nil' if feature_name.nil?
|
346
349
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -348,6 +351,7 @@ module Azure::Features::Mgmt::V2015_12_01
|
|
348
351
|
|
349
352
|
|
350
353
|
request_headers = {}
|
354
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
351
355
|
|
352
356
|
# Set Headers
|
353
357
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -403,8 +407,8 @@ module Azure::Features::Mgmt::V2015_12_01
|
|
403
407
|
#
|
404
408
|
# @return [FeatureOperationsListResult] operation results.
|
405
409
|
#
|
406
|
-
def list_all_next(next_page_link, custom_headers
|
407
|
-
response = list_all_next_async(next_page_link, custom_headers).value!
|
410
|
+
def list_all_next(next_page_link, custom_headers:nil)
|
411
|
+
response = list_all_next_async(next_page_link, custom_headers:custom_headers).value!
|
408
412
|
response.body unless response.nil?
|
409
413
|
end
|
410
414
|
|
@@ -419,8 +423,8 @@ module Azure::Features::Mgmt::V2015_12_01
|
|
419
423
|
#
|
420
424
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
421
425
|
#
|
422
|
-
def list_all_next_with_http_info(next_page_link, custom_headers
|
423
|
-
list_all_next_async(next_page_link, custom_headers).value!
|
426
|
+
def list_all_next_with_http_info(next_page_link, custom_headers:nil)
|
427
|
+
list_all_next_async(next_page_link, custom_headers:custom_headers).value!
|
424
428
|
end
|
425
429
|
|
426
430
|
#
|
@@ -434,11 +438,12 @@ module Azure::Features::Mgmt::V2015_12_01
|
|
434
438
|
#
|
435
439
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
436
440
|
#
|
437
|
-
def list_all_next_async(next_page_link, custom_headers
|
441
|
+
def list_all_next_async(next_page_link, custom_headers:nil)
|
438
442
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
439
443
|
|
440
444
|
|
441
445
|
request_headers = {}
|
446
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
442
447
|
|
443
448
|
# Set Headers
|
444
449
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -493,8 +498,8 @@ module Azure::Features::Mgmt::V2015_12_01
|
|
493
498
|
#
|
494
499
|
# @return [FeatureOperationsListResult] operation results.
|
495
500
|
#
|
496
|
-
def list_next(next_page_link, custom_headers
|
497
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
501
|
+
def list_next(next_page_link, custom_headers:nil)
|
502
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
498
503
|
response.body unless response.nil?
|
499
504
|
end
|
500
505
|
|
@@ -509,8 +514,8 @@ module Azure::Features::Mgmt::V2015_12_01
|
|
509
514
|
#
|
510
515
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
511
516
|
#
|
512
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
513
|
-
list_next_async(next_page_link, custom_headers).value!
|
517
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
518
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
514
519
|
end
|
515
520
|
|
516
521
|
#
|
@@ -524,11 +529,12 @@ module Azure::Features::Mgmt::V2015_12_01
|
|
524
529
|
#
|
525
530
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
526
531
|
#
|
527
|
-
def list_next_async(next_page_link, custom_headers
|
532
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
528
533
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
529
534
|
|
530
535
|
|
531
536
|
request_headers = {}
|
537
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
532
538
|
|
533
539
|
# Set Headers
|
534
540
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -582,12 +588,12 @@ module Azure::Features::Mgmt::V2015_12_01
|
|
582
588
|
# @return [FeatureOperationsListResult] which provide lazy access to pages of
|
583
589
|
# the response.
|
584
590
|
#
|
585
|
-
def list_all_as_lazy(custom_headers
|
586
|
-
response = list_all_async(custom_headers).value!
|
591
|
+
def list_all_as_lazy(custom_headers:nil)
|
592
|
+
response = list_all_async(custom_headers:custom_headers).value!
|
587
593
|
unless response.nil?
|
588
594
|
page = response.body
|
589
595
|
page.next_method = Proc.new do |next_page_link|
|
590
|
-
list_all_next_async(next_page_link, custom_headers)
|
596
|
+
list_all_next_async(next_page_link, custom_headers:custom_headers)
|
591
597
|
end
|
592
598
|
page
|
593
599
|
end
|
@@ -605,12 +611,12 @@ module Azure::Features::Mgmt::V2015_12_01
|
|
605
611
|
# @return [FeatureOperationsListResult] which provide lazy access to pages of
|
606
612
|
# the response.
|
607
613
|
#
|
608
|
-
def list_as_lazy(resource_provider_namespace, custom_headers
|
609
|
-
response = list_async(resource_provider_namespace, custom_headers).value!
|
614
|
+
def list_as_lazy(resource_provider_namespace, custom_headers:nil)
|
615
|
+
response = list_async(resource_provider_namespace, custom_headers:custom_headers).value!
|
610
616
|
unless response.nil?
|
611
617
|
page = response.body
|
612
618
|
page.next_method = Proc.new do |next_page_link|
|
613
|
-
list_next_async(next_page_link, custom_headers)
|
619
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
614
620
|
end
|
615
621
|
page
|
616
622
|
end
|
@@ -5,17 +5,36 @@
|
|
5
5
|
require 'profiles/latest/features_module_definition'
|
6
6
|
require 'profiles/latest/modules/features_profile_module'
|
7
7
|
|
8
|
-
module Azure::Features::Profiles::Latest
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
8
|
+
module Azure::Features::Profiles::Latest
|
9
|
+
module Mgmt
|
10
|
+
#
|
11
|
+
# Client class for the Latest profile SDK.
|
12
|
+
#
|
13
|
+
class Client < FeaturesManagementClass
|
14
|
+
include MsRestAzure::Common::Configurable
|
14
15
|
|
16
|
+
#
|
17
|
+
# Initializes a new instance of the Client class.
|
18
|
+
# @param options [Hash] hash of client options.
|
19
|
+
# options = {
|
20
|
+
# tenant_id: 'YOUR TENANT ID',
|
21
|
+
# client_id: 'YOUR CLIENT ID',
|
22
|
+
# client_secret: 'YOUR CLIENT SECRET',
|
23
|
+
# subscription_id: 'YOUR SUBSCRIPTION ID',
|
24
|
+
# credentials: credentials,
|
25
|
+
# active_directory_settings: active_directory_settings,
|
26
|
+
# base_url: 'YOUR BASE URL',
|
27
|
+
# options: options
|
28
|
+
# }
|
29
|
+
# 'credentials' are optional and if not passed in the hash, will be obtained
|
30
|
+
# from MsRest::TokenCredentials using MsRestAzure::ApplicationTokenProvider.
|
31
|
+
#
|
32
|
+
# Also, base_url, active_directory_settings & options are optional.
|
33
|
+
#
|
34
|
+
def initialize(options = {})
|
35
|
+
super(options)
|
36
|
+
end
|
15
37
|
|
16
|
-
def initialize(options = {})
|
17
|
-
super(options)
|
18
38
|
end
|
19
|
-
|
20
39
|
end
|
21
40
|
end
|
@@ -4,7 +4,8 @@
|
|
4
4
|
|
5
5
|
require 'azure_mgmt_features'
|
6
6
|
|
7
|
-
module Azure::Features::Profiles::Latest
|
7
|
+
module Azure::Features::Profiles::Latest
|
8
|
+
module Mgmt
|
8
9
|
Features = Azure::Features::Mgmt::V2015_12_01::Features
|
9
10
|
|
10
11
|
module Models
|
@@ -14,9 +15,9 @@ module Azure::Features::Profiles::Latest::Mgmt
|
|
14
15
|
end
|
15
16
|
|
16
17
|
#
|
17
|
-
#
|
18
|
+
# FeaturesManagementClass
|
18
19
|
#
|
19
|
-
class
|
20
|
+
class FeaturesManagementClass
|
20
21
|
attr_reader :features, :configurable, :base_url, :options, :model_classes
|
21
22
|
|
22
23
|
def initialize(options = {})
|
@@ -28,27 +29,45 @@ module Azure::Features::Profiles::Latest::Mgmt
|
|
28
29
|
|
29
30
|
reset!(options)
|
30
31
|
|
31
|
-
@configurable
|
32
|
+
@configurable = self
|
33
|
+
@base_url = options[:base_url].nil? ? nil:options[:base_url]
|
34
|
+
@options = options[:options].nil? ? nil:options[:options]
|
32
35
|
|
33
|
-
client_0 = Azure::Features::Mgmt::V2015_12_01::FeatureClient.new(configurable.credentials, base_url, options)
|
34
|
-
if(client_0.respond_to?(:subscription_id))
|
35
|
-
client_0.subscription_id = configurable.subscription_id
|
36
|
+
@client_0 = Azure::Features::Mgmt::V2015_12_01::FeatureClient.new(configurable.credentials, base_url, options)
|
37
|
+
if(@client_0.respond_to?(:subscription_id))
|
38
|
+
@client_0.subscription_id = configurable.subscription_id
|
36
39
|
end
|
37
|
-
@
|
40
|
+
add_telemetry(@client_0)
|
41
|
+
@features = @client_0.features
|
38
42
|
|
39
43
|
@model_classes = ModelClasses.new
|
40
44
|
end
|
41
45
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
46
|
+
def add_telemetry(client)
|
47
|
+
profile_information = 'Profiles/Latest/Features/Mgmt'
|
48
|
+
client.add_user_agent_information(profile_information)
|
49
|
+
end
|
50
|
+
|
51
|
+
def method_missing(method, *args)
|
52
|
+
if @client_0.respond_to?method
|
53
|
+
@client_0.send(method, *args)
|
54
|
+
else
|
55
|
+
super
|
51
56
|
end
|
52
57
|
end
|
58
|
+
|
59
|
+
end
|
60
|
+
|
61
|
+
class ModelClasses
|
62
|
+
def feature_result
|
63
|
+
Azure::Features::Mgmt::V2015_12_01::Models::FeatureResult
|
64
|
+
end
|
65
|
+
def feature_operations_list_result
|
66
|
+
Azure::Features::Mgmt::V2015_12_01::Models::FeatureOperationsListResult
|
67
|
+
end
|
68
|
+
def feature_properties
|
69
|
+
Azure::Features::Mgmt::V2015_12_01::Models::FeatureProperties
|
70
|
+
end
|
53
71
|
end
|
72
|
+
end
|
54
73
|
end
|
@@ -5,17 +5,36 @@
|
|
5
5
|
require 'profiles/v2017_03_09/features_module_definition'
|
6
6
|
require 'profiles/v2017_03_09/modules/features_profile_module'
|
7
7
|
|
8
|
-
module Azure::Features::Profiles::V2017_03_09
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
8
|
+
module Azure::Features::Profiles::V2017_03_09
|
9
|
+
module Mgmt
|
10
|
+
#
|
11
|
+
# Client class for the V2017_03_09 profile SDK.
|
12
|
+
#
|
13
|
+
class Client < FeaturesManagementClass
|
14
|
+
include MsRestAzure::Common::Configurable
|
14
15
|
|
16
|
+
#
|
17
|
+
# Initializes a new instance of the Client class.
|
18
|
+
# @param options [Hash] hash of client options.
|
19
|
+
# options = {
|
20
|
+
# tenant_id: 'YOUR TENANT ID',
|
21
|
+
# client_id: 'YOUR CLIENT ID',
|
22
|
+
# client_secret: 'YOUR CLIENT SECRET',
|
23
|
+
# subscription_id: 'YOUR SUBSCRIPTION ID',
|
24
|
+
# credentials: credentials,
|
25
|
+
# active_directory_settings: active_directory_settings,
|
26
|
+
# base_url: 'YOUR BASE URL',
|
27
|
+
# options: options
|
28
|
+
# }
|
29
|
+
# 'credentials' are optional and if not passed in the hash, will be obtained
|
30
|
+
# from MsRest::TokenCredentials using MsRestAzure::ApplicationTokenProvider.
|
31
|
+
#
|
32
|
+
# Also, base_url, active_directory_settings & options are optional.
|
33
|
+
#
|
34
|
+
def initialize(options = {})
|
35
|
+
super(options)
|
36
|
+
end
|
15
37
|
|
16
|
-
def initialize(options = {})
|
17
|
-
super(options)
|
18
38
|
end
|
19
|
-
|
20
39
|
end
|
21
40
|
end
|
@@ -4,7 +4,8 @@
|
|
4
4
|
|
5
5
|
require 'azure_mgmt_features'
|
6
6
|
|
7
|
-
module Azure::Features::Profiles::V2017_03_09
|
7
|
+
module Azure::Features::Profiles::V2017_03_09
|
8
|
+
module Mgmt
|
8
9
|
Features = Azure::Features::Mgmt::V2015_12_01::Features
|
9
10
|
|
10
11
|
module Models
|
@@ -14,9 +15,9 @@ module Azure::Features::Profiles::V2017_03_09::Mgmt
|
|
14
15
|
end
|
15
16
|
|
16
17
|
#
|
17
|
-
#
|
18
|
+
# FeaturesManagementClass
|
18
19
|
#
|
19
|
-
class
|
20
|
+
class FeaturesManagementClass
|
20
21
|
attr_reader :features, :configurable, :base_url, :options, :model_classes
|
21
22
|
|
22
23
|
def initialize(options = {})
|
@@ -28,27 +29,45 @@ module Azure::Features::Profiles::V2017_03_09::Mgmt
|
|
28
29
|
|
29
30
|
reset!(options)
|
30
31
|
|
31
|
-
@configurable
|
32
|
+
@configurable = self
|
33
|
+
@base_url = options[:base_url].nil? ? nil:options[:base_url]
|
34
|
+
@options = options[:options].nil? ? nil:options[:options]
|
32
35
|
|
33
|
-
client_0 = Azure::Features::Mgmt::V2015_12_01::FeatureClient.new(configurable.credentials, base_url, options)
|
34
|
-
if(client_0.respond_to?(:subscription_id))
|
35
|
-
client_0.subscription_id = configurable.subscription_id
|
36
|
+
@client_0 = Azure::Features::Mgmt::V2015_12_01::FeatureClient.new(configurable.credentials, base_url, options)
|
37
|
+
if(@client_0.respond_to?(:subscription_id))
|
38
|
+
@client_0.subscription_id = configurable.subscription_id
|
36
39
|
end
|
37
|
-
@
|
40
|
+
add_telemetry(@client_0)
|
41
|
+
@features = @client_0.features
|
38
42
|
|
39
43
|
@model_classes = ModelClasses.new
|
40
44
|
end
|
41
45
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
46
|
+
def add_telemetry(client)
|
47
|
+
profile_information = 'Profiles/V2017_03_09/Features/Mgmt'
|
48
|
+
client.add_user_agent_information(profile_information)
|
49
|
+
end
|
50
|
+
|
51
|
+
def method_missing(method, *args)
|
52
|
+
if @client_0.respond_to?method
|
53
|
+
@client_0.send(method, *args)
|
54
|
+
else
|
55
|
+
super
|
51
56
|
end
|
52
57
|
end
|
58
|
+
|
59
|
+
end
|
60
|
+
|
61
|
+
class ModelClasses
|
62
|
+
def feature_result
|
63
|
+
Azure::Features::Mgmt::V2015_12_01::Models::FeatureResult
|
64
|
+
end
|
65
|
+
def feature_operations_list_result
|
66
|
+
Azure::Features::Mgmt::V2015_12_01::Models::FeatureOperationsListResult
|
67
|
+
end
|
68
|
+
def feature_properties
|
69
|
+
Azure::Features::Mgmt::V2015_12_01::Models::FeatureProperties
|
70
|
+
end
|
53
71
|
end
|
72
|
+
end
|
54
73
|
end
|
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.
|
4
|
+
version: 0.16.0
|
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: 2018-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
129
|
version: '0'
|
130
130
|
requirements: []
|
131
131
|
rubyforge_project:
|
132
|
-
rubygems_version: 2.
|
132
|
+
rubygems_version: 2.6.10
|
133
133
|
signing_key:
|
134
134
|
specification_version: 4
|
135
135
|
summary: Official Ruby client library to consume Microsoft Azure Resource Provider
|