azure_mgmt_msi 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 996516f838c1ea81d04d8346fcd4fe9978b6ceec
4
- data.tar.gz: 5fb820ec8898844f1ce6488241ee7ae82c817e4a
3
+ metadata.gz: 9ea0c8d056a84005a1ea8bbe6db7ceed3e52a23b
4
+ data.tar.gz: 2dca016d33ffb20cc2c79a4ceef1d8e249cfce46
5
5
  SHA512:
6
- metadata.gz: 23a87d563707a92e8450241f197407c5fbcbecb4d1b2671173cbc7ca135290f4dd78cd43c77b482171faa286c51799541b85467e1a8ec4b9367c8d36a0fcc7a8
7
- data.tar.gz: 72316444d8dd756da983185f7b950cd069f5f1a3ebf2ddec45fdb9f6bc8c8152eea1f1e12ba3e64a840146e9e9f3b656d15e25fde80026188ed69245f42251ee
6
+ metadata.gz: 1e03ef7b5308f21e42ca1ffcd8df91d287e600394e45b0d4d98ed107aa9be150f737a956a6afe7075fef0fbd5f34fc31fda52200cb1bf2f881c0005931e72faf
7
+ data.tar.gz: a702cd74c6cd35520b59d087774d8647b8303cb4a9e6c51246849e1300fb99d28c71a518adf3db32435b1afadb0ad6bc7c116f32b26e27d5645954b390210150
@@ -109,6 +109,9 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
109
109
  fail ArgumentError, 'path is nil' if path.nil?
110
110
 
111
111
  request_url = options[:base_url] || @base_url
112
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
113
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
114
+ end
112
115
 
113
116
  request_headers = @request_headers
114
117
  request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
@@ -125,7 +128,7 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
125
128
  #
126
129
  def add_telemetry
127
130
  sdk_information = 'azure_mgmt_msi'
128
- sdk_information = "#{sdk_information}/0.15.2"
131
+ sdk_information = "#{sdk_information}/0.16.0"
129
132
  add_user_agent_information(sdk_information)
130
133
  end
131
134
  end
@@ -29,8 +29,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
29
29
  #
30
30
  # @return [Array<Operation>] operation results.
31
31
  #
32
- def list(custom_headers = nil)
33
- first_page = list_as_lazy(custom_headers)
32
+ def list(custom_headers:nil)
33
+ first_page = list_as_lazy(custom_headers:custom_headers)
34
34
  first_page.get_all_items
35
35
  end
36
36
 
@@ -42,8 +42,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
42
42
  #
43
43
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
44
44
  #
45
- def list_with_http_info(custom_headers = nil)
46
- list_async(custom_headers).value!
45
+ def list_with_http_info(custom_headers:nil)
46
+ list_async(custom_headers:custom_headers).value!
47
47
  end
48
48
 
49
49
  #
@@ -54,11 +54,12 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
54
54
  #
55
55
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
56
56
  #
57
- def list_async(custom_headers = nil)
57
+ def list_async(custom_headers:nil)
58
58
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
59
59
 
60
60
 
61
61
  request_headers = {}
62
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
62
63
 
63
64
  # Set Headers
64
65
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -112,8 +113,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
112
113
  #
113
114
  # @return [OperationListResult] operation results.
114
115
  #
115
- def list_next(next_page_link, custom_headers = nil)
116
- response = list_next_async(next_page_link, custom_headers).value!
116
+ def list_next(next_page_link, custom_headers:nil)
117
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
117
118
  response.body unless response.nil?
118
119
  end
119
120
 
@@ -127,8 +128,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
127
128
  #
128
129
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
129
130
  #
130
- def list_next_with_http_info(next_page_link, custom_headers = nil)
131
- list_next_async(next_page_link, custom_headers).value!
131
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
132
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
132
133
  end
133
134
 
134
135
  #
@@ -141,11 +142,12 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
141
142
  #
142
143
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
143
144
  #
144
- def list_next_async(next_page_link, custom_headers = nil)
145
+ def list_next_async(next_page_link, custom_headers:nil)
145
146
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
146
147
 
147
148
 
148
149
  request_headers = {}
150
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
149
151
 
150
152
  # Set Headers
151
153
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -198,12 +200,12 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
198
200
  # @return [OperationListResult] which provide lazy access to pages of the
199
201
  # response.
200
202
  #
201
- def list_as_lazy(custom_headers = nil)
202
- response = list_async(custom_headers).value!
203
+ def list_as_lazy(custom_headers:nil)
204
+ response = list_async(custom_headers:custom_headers).value!
203
205
  unless response.nil?
204
206
  page = response.body
205
207
  page.next_method = Proc.new do |next_page_link|
206
- list_next_async(next_page_link, custom_headers)
208
+ list_next_async(next_page_link, custom_headers:custom_headers)
207
209
  end
208
210
  page
209
211
  end
@@ -30,8 +30,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
30
30
  #
31
31
  # @return [Array<Identity>] operation results.
32
32
  #
33
- def list_by_subscription(custom_headers = nil)
34
- first_page = list_by_subscription_as_lazy(custom_headers)
33
+ def list_by_subscription(custom_headers:nil)
34
+ first_page = list_by_subscription_as_lazy(custom_headers:custom_headers)
35
35
  first_page.get_all_items
36
36
  end
37
37
 
@@ -44,8 +44,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
44
44
  #
45
45
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
46
46
  #
47
- def list_by_subscription_with_http_info(custom_headers = nil)
48
- list_by_subscription_async(custom_headers).value!
47
+ def list_by_subscription_with_http_info(custom_headers:nil)
48
+ list_by_subscription_async(custom_headers:custom_headers).value!
49
49
  end
50
50
 
51
51
  #
@@ -57,12 +57,13 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
57
57
  #
58
58
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
59
59
  #
60
- def list_by_subscription_async(custom_headers = nil)
60
+ def list_by_subscription_async(custom_headers:nil)
61
61
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
62
62
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
63
63
 
64
64
 
65
65
  request_headers = {}
66
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
66
67
 
67
68
  # Set Headers
68
69
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -118,8 +119,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
118
119
  #
119
120
  # @return [Array<Identity>] operation results.
120
121
  #
121
- def list_by_resource_group(resource_group_name, custom_headers = nil)
122
- first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers)
122
+ def list_by_resource_group(resource_group_name, custom_headers:nil)
123
+ first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers)
123
124
  first_page.get_all_items
124
125
  end
125
126
 
@@ -134,8 +135,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
134
135
  #
135
136
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
136
137
  #
137
- def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil)
138
- list_by_resource_group_async(resource_group_name, custom_headers).value!
138
+ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
139
+ list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
139
140
  end
140
141
 
141
142
  #
@@ -149,13 +150,14 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
149
150
  #
150
151
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
151
152
  #
152
- def list_by_resource_group_async(resource_group_name, custom_headers = nil)
153
+ def list_by_resource_group_async(resource_group_name, custom_headers:nil)
153
154
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
154
155
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
155
156
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
156
157
 
157
158
 
158
159
  request_headers = {}
160
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
159
161
 
160
162
  # Set Headers
161
163
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -213,8 +215,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
213
215
  #
214
216
  # @return [Identity] operation results.
215
217
  #
216
- def create_or_update(resource_group_name, resource_name, parameters, custom_headers = nil)
217
- response = create_or_update_async(resource_group_name, resource_name, parameters, custom_headers).value!
218
+ def create_or_update(resource_group_name, resource_name, parameters, custom_headers:nil)
219
+ response = create_or_update_async(resource_group_name, resource_name, parameters, custom_headers:custom_headers).value!
218
220
  response.body unless response.nil?
219
221
  end
220
222
 
@@ -231,8 +233,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
231
233
  #
232
234
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
233
235
  #
234
- def create_or_update_with_http_info(resource_group_name, resource_name, parameters, custom_headers = nil)
235
- create_or_update_async(resource_group_name, resource_name, parameters, custom_headers).value!
236
+ def create_or_update_with_http_info(resource_group_name, resource_name, parameters, custom_headers:nil)
237
+ create_or_update_async(resource_group_name, resource_name, parameters, custom_headers:custom_headers).value!
236
238
  end
237
239
 
238
240
  #
@@ -248,7 +250,7 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
248
250
  #
249
251
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
250
252
  #
251
- def create_or_update_async(resource_group_name, resource_name, parameters, custom_headers = nil)
253
+ def create_or_update_async(resource_group_name, resource_name, parameters, custom_headers:nil)
252
254
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
253
255
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
254
256
  fail ArgumentError, 'resource_name is nil' if resource_name.nil?
@@ -257,13 +259,12 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
257
259
 
258
260
 
259
261
  request_headers = {}
262
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
260
263
 
261
264
  # Set Headers
262
265
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
263
266
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
264
267
 
265
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
266
-
267
268
  # Serialize Request
268
269
  request_mapper = Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::Identity.mapper()
269
270
  request_content = @client.serialize(request_mapper, parameters)
@@ -332,8 +333,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
332
333
  #
333
334
  # @return [Identity] operation results.
334
335
  #
335
- def update(resource_group_name, resource_name, parameters, custom_headers = nil)
336
- response = update_async(resource_group_name, resource_name, parameters, custom_headers).value!
336
+ def update(resource_group_name, resource_name, parameters, custom_headers:nil)
337
+ response = update_async(resource_group_name, resource_name, parameters, custom_headers:custom_headers).value!
337
338
  response.body unless response.nil?
338
339
  end
339
340
 
@@ -349,8 +350,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
349
350
  #
350
351
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
351
352
  #
352
- def update_with_http_info(resource_group_name, resource_name, parameters, custom_headers = nil)
353
- update_async(resource_group_name, resource_name, parameters, custom_headers).value!
353
+ def update_with_http_info(resource_group_name, resource_name, parameters, custom_headers:nil)
354
+ update_async(resource_group_name, resource_name, parameters, custom_headers:custom_headers).value!
354
355
  end
355
356
 
356
357
  #
@@ -365,7 +366,7 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
365
366
  #
366
367
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
367
368
  #
368
- def update_async(resource_group_name, resource_name, parameters, custom_headers = nil)
369
+ def update_async(resource_group_name, resource_name, parameters, custom_headers:nil)
369
370
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
370
371
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
371
372
  fail ArgumentError, 'resource_name is nil' if resource_name.nil?
@@ -374,13 +375,12 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
374
375
 
375
376
 
376
377
  request_headers = {}
378
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
377
379
 
378
380
  # Set Headers
379
381
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
380
382
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
381
383
 
382
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
383
-
384
384
  # Serialize Request
385
385
  request_mapper = Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::Identity.mapper()
386
386
  request_content = @client.serialize(request_mapper, parameters)
@@ -438,8 +438,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
438
438
  #
439
439
  # @return [Identity] operation results.
440
440
  #
441
- def get(resource_group_name, resource_name, custom_headers = nil)
442
- response = get_async(resource_group_name, resource_name, custom_headers).value!
441
+ def get(resource_group_name, resource_name, custom_headers:nil)
442
+ response = get_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
443
443
  response.body unless response.nil?
444
444
  end
445
445
 
@@ -454,8 +454,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
454
454
  #
455
455
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
456
456
  #
457
- def get_with_http_info(resource_group_name, resource_name, custom_headers = nil)
458
- get_async(resource_group_name, resource_name, custom_headers).value!
457
+ def get_with_http_info(resource_group_name, resource_name, custom_headers:nil)
458
+ get_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
459
459
  end
460
460
 
461
461
  #
@@ -469,7 +469,7 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
469
469
  #
470
470
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
471
471
  #
472
- def get_async(resource_group_name, resource_name, custom_headers = nil)
472
+ def get_async(resource_group_name, resource_name, custom_headers:nil)
473
473
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
474
474
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
475
475
  fail ArgumentError, 'resource_name is nil' if resource_name.nil?
@@ -477,6 +477,7 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
477
477
 
478
478
 
479
479
  request_headers = {}
480
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
480
481
 
481
482
  # Set Headers
482
483
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -531,8 +532,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
531
532
  # will be added to the HTTP request.
532
533
  #
533
534
  #
534
- def delete(resource_group_name, resource_name, custom_headers = nil)
535
- response = delete_async(resource_group_name, resource_name, custom_headers).value!
535
+ def delete(resource_group_name, resource_name, custom_headers:nil)
536
+ response = delete_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
536
537
  nil
537
538
  end
538
539
 
@@ -547,8 +548,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
547
548
  #
548
549
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
549
550
  #
550
- def delete_with_http_info(resource_group_name, resource_name, custom_headers = nil)
551
- delete_async(resource_group_name, resource_name, custom_headers).value!
551
+ def delete_with_http_info(resource_group_name, resource_name, custom_headers:nil)
552
+ delete_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
552
553
  end
553
554
 
554
555
  #
@@ -562,7 +563,7 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
562
563
  #
563
564
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
564
565
  #
565
- def delete_async(resource_group_name, resource_name, custom_headers = nil)
566
+ def delete_async(resource_group_name, resource_name, custom_headers:nil)
566
567
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
567
568
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
568
569
  fail ArgumentError, 'resource_name is nil' if resource_name.nil?
@@ -570,6 +571,7 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
570
571
 
571
572
 
572
573
  request_headers = {}
574
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
573
575
 
574
576
  # Set Headers
575
577
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -615,8 +617,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
615
617
  #
616
618
  # @return [UserAssignedIdentitiesListResult] operation results.
617
619
  #
618
- def list_by_subscription_next(next_page_link, custom_headers = nil)
619
- response = list_by_subscription_next_async(next_page_link, custom_headers).value!
620
+ def list_by_subscription_next(next_page_link, custom_headers:nil)
621
+ response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
620
622
  response.body unless response.nil?
621
623
  end
622
624
 
@@ -631,8 +633,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
631
633
  #
632
634
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
633
635
  #
634
- def list_by_subscription_next_with_http_info(next_page_link, custom_headers = nil)
635
- list_by_subscription_next_async(next_page_link, custom_headers).value!
636
+ def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil)
637
+ list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
636
638
  end
637
639
 
638
640
  #
@@ -646,11 +648,12 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
646
648
  #
647
649
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
648
650
  #
649
- def list_by_subscription_next_async(next_page_link, custom_headers = nil)
651
+ def list_by_subscription_next_async(next_page_link, custom_headers:nil)
650
652
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
651
653
 
652
654
 
653
655
  request_headers = {}
656
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
654
657
 
655
658
  # Set Headers
656
659
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -705,8 +708,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
705
708
  #
706
709
  # @return [UserAssignedIdentitiesListResult] operation results.
707
710
  #
708
- def list_by_resource_group_next(next_page_link, custom_headers = nil)
709
- response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
711
+ def list_by_resource_group_next(next_page_link, custom_headers:nil)
712
+ response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
710
713
  response.body unless response.nil?
711
714
  end
712
715
 
@@ -721,8 +724,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
721
724
  #
722
725
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
723
726
  #
724
- def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil)
725
- list_by_resource_group_next_async(next_page_link, custom_headers).value!
727
+ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
728
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
726
729
  end
727
730
 
728
731
  #
@@ -736,11 +739,12 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
736
739
  #
737
740
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
738
741
  #
739
- def list_by_resource_group_next_async(next_page_link, custom_headers = nil)
742
+ def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
740
743
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
741
744
 
742
745
 
743
746
  request_headers = {}
747
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
744
748
 
745
749
  # Set Headers
746
750
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -794,12 +798,12 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
794
798
  # @return [UserAssignedIdentitiesListResult] which provide lazy access to pages
795
799
  # of the response.
796
800
  #
797
- def list_by_subscription_as_lazy(custom_headers = nil)
798
- response = list_by_subscription_async(custom_headers).value!
801
+ def list_by_subscription_as_lazy(custom_headers:nil)
802
+ response = list_by_subscription_async(custom_headers:custom_headers).value!
799
803
  unless response.nil?
800
804
  page = response.body
801
805
  page.next_method = Proc.new do |next_page_link|
802
- list_by_subscription_next_async(next_page_link, custom_headers)
806
+ list_by_subscription_next_async(next_page_link, custom_headers:custom_headers)
803
807
  end
804
808
  page
805
809
  end
@@ -817,12 +821,12 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview
817
821
  # @return [UserAssignedIdentitiesListResult] which provide lazy access to pages
818
822
  # of the response.
819
823
  #
820
- def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil)
821
- response = list_by_resource_group_async(resource_group_name, custom_headers).value!
824
+ def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil)
825
+ response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
822
826
  unless response.nil?
823
827
  page = response.body
824
828
  page.next_method = Proc.new do |next_page_link|
825
- list_by_resource_group_next_async(next_page_link, custom_headers)
829
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
826
830
  end
827
831
  page
828
832
  end
@@ -5,17 +5,36 @@
5
5
  require 'profiles/latest/managedserviceidentity_module_definition'
6
6
  require 'profiles/latest/modules/managedserviceidentity_profile_module'
7
7
 
8
- module Azure::ManagedServiceIdentity::Profiles::Latest::Mgmt
9
- #
10
- # Client class for the Latest profile SDK.
11
- #
12
- class Client < ManagedServiceIdentityClass
13
- include MsRestAzure::Common::Configurable
8
+ module Azure::ManagedServiceIdentity::Profiles::Latest
9
+ module Mgmt
10
+ #
11
+ # Client class for the Latest profile SDK.
12
+ #
13
+ class Client < ManagedServiceIdentityManagementClass
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
@@ -6,4 +6,3 @@ module Azure end
6
6
  module Azure::ManagedServiceIdentity end
7
7
  module Azure::ManagedServiceIdentity::Profiles end
8
8
  module Azure::ManagedServiceIdentity::Profiles::Latest end
9
- module Azure::ManagedServiceIdentity::Profiles::Latest::Mgmt end
@@ -4,7 +4,8 @@
4
4
 
5
5
  require 'azure_mgmt_msi'
6
6
 
7
- module Azure::ManagedServiceIdentity::Profiles::Latest::Mgmt
7
+ module Azure::ManagedServiceIdentity::Profiles::Latest
8
+ module Mgmt
8
9
  Operations = Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Operations
9
10
  UserAssignedIdentities = Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::UserAssignedIdentities
10
11
 
@@ -18,9 +19,9 @@ module Azure::ManagedServiceIdentity::Profiles::Latest::Mgmt
18
19
  end
19
20
 
20
21
  #
21
- # ManagedServiceIdentity
22
+ # ManagedServiceIdentityManagementClass
22
23
  #
23
- class ManagedServiceIdentityClass
24
+ class ManagedServiceIdentityManagementClass
24
25
  attr_reader :operations, :user_assigned_identities, :configurable, :base_url, :options, :model_classes
25
26
 
26
27
  def initialize(options = {})
@@ -32,37 +33,55 @@ module Azure::ManagedServiceIdentity::Profiles::Latest::Mgmt
32
33
 
33
34
  reset!(options)
34
35
 
35
- @configurable, @base_url, @options = self, nil, nil
36
+ @configurable = self
37
+ @base_url = options[:base_url].nil? ? nil:options[:base_url]
38
+ @options = options[:options].nil? ? nil:options[:options]
36
39
 
37
- client_0 = Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::ManagedServiceIdentityClient.new(configurable.credentials, base_url, options)
38
- if(client_0.respond_to?(:subscription_id))
39
- client_0.subscription_id = configurable.subscription_id
40
+ @client_0 = Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::ManagedServiceIdentityClient.new(configurable.credentials, base_url, options)
41
+ if(@client_0.respond_to?(:subscription_id))
42
+ @client_0.subscription_id = configurable.subscription_id
40
43
  end
41
- @operations = client_0.operations
42
- @user_assigned_identities = client_0.user_assigned_identities
44
+ add_telemetry(@client_0)
45
+ @operations = @client_0.operations
46
+ @user_assigned_identities = @client_0.user_assigned_identities
43
47
 
44
48
  @model_classes = ModelClasses.new
45
49
  end
46
50
 
47
- class ModelClasses
48
- def identity
49
- Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::Identity
50
- end
51
- def operation_display
52
- Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::OperationDisplay
53
- end
54
- def operation
55
- Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::Operation
56
- end
57
- def user_assigned_identities_list_result
58
- Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::UserAssignedIdentitiesListResult
59
- end
60
- def operation_list_result
61
- Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::OperationListResult
62
- end
63
- def user_assigned_identities
64
- Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::UserAssignedIdentities
51
+ def add_telemetry(client)
52
+ profile_information = 'Profiles/Latest/ManagedServiceIdentity/Mgmt'
53
+ client.add_user_agent_information(profile_information)
54
+ end
55
+
56
+ def method_missing(method, *args)
57
+ if @client_0.respond_to?method
58
+ @client_0.send(method, *args)
59
+ else
60
+ super
65
61
  end
66
62
  end
63
+
64
+ end
65
+
66
+ class ModelClasses
67
+ def identity
68
+ Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::Identity
69
+ end
70
+ def operation_display
71
+ Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::OperationDisplay
72
+ end
73
+ def operation
74
+ Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::Operation
75
+ end
76
+ def user_assigned_identities_list_result
77
+ Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::UserAssignedIdentitiesListResult
78
+ end
79
+ def operation_list_result
80
+ Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::OperationListResult
81
+ end
82
+ def user_assigned_identities
83
+ Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::UserAssignedIdentities
84
+ end
67
85
  end
86
+ end
68
87
  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::ManagedServiceIdentity::Mgmt
6
- VERSION = '0.15.2'
6
+ VERSION = '0.16.0'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_msi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.2
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: 2017-12-14 00:00:00.000000000 Z
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.5.1
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 Managed Service Identity