azure_mgmt_powerbi_embedded 0.15.2 → 0.16.0

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
  SHA1:
3
- metadata.gz: 2aad013fc2d4f2f76bb269f2e4d85b000ce311f9
4
- data.tar.gz: 0bb5e7f5582445154b978621bc9ffd43bf995007
3
+ metadata.gz: a28160fa781b6cab7577a538d5ac49c1564f6e4d
4
+ data.tar.gz: 32f7abbbedb6177cd603c8cdc3af96b549e31088
5
5
  SHA512:
6
- metadata.gz: 5bee41e053bd3c9f249cf232c5e09e70ff89e8bdaca8de21160f176ba92f5f0bac7195b5a3884ec9a7c43dae26ea032c0d061b8b1bc4236986834c96a259b5d2
7
- data.tar.gz: 9c28e6d5ee0858099361e37367028a5e0265e8634850236e1bf8a98dd074cc8524a57b98ffffd6b5279597aee5ec63867085c3a721aaa43a8550643f168bb464
6
+ metadata.gz: 9bc8cf8709d4d57d8e7446fcf9fe1de29c1fdba1f5089ba0c25c9ffe541fbf9b82062391f1d9dbbb0cb5588adffb3034742438511d5e09f3d8f77a0b4764bf10
7
+ data.tar.gz: 85db245166ea44c6ec7356786756d0fa852fc0245d595143a8ace32b50baaed772de1f93528d5f6da475002b4e9506b034b225ae629cb34e56603c56563af3a9
@@ -110,6 +110,9 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
110
110
  fail ArgumentError, 'path is nil' if path.nil?
111
111
 
112
112
  request_url = options[:base_url] || @base_url
113
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
114
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
115
+ end
113
116
 
114
117
  request_headers = @request_headers
115
118
  request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
@@ -128,8 +131,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
128
131
  #
129
132
  # @return [OperationList] operation results.
130
133
  #
131
- def get_available_operations(custom_headers = nil)
132
- response = get_available_operations_async(custom_headers).value!
134
+ def get_available_operations(custom_headers:nil)
135
+ response = get_available_operations_async(custom_headers:custom_headers).value!
133
136
  response.body unless response.nil?
134
137
  end
135
138
 
@@ -142,8 +145,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
142
145
  #
143
146
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
144
147
  #
145
- def get_available_operations_with_http_info(custom_headers = nil)
146
- get_available_operations_async(custom_headers).value!
148
+ def get_available_operations_with_http_info(custom_headers:nil)
149
+ get_available_operations_async(custom_headers:custom_headers).value!
147
150
  end
148
151
 
149
152
  #
@@ -155,11 +158,12 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
155
158
  #
156
159
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
157
160
  #
158
- def get_available_operations_async(custom_headers = nil)
161
+ def get_available_operations_async(custom_headers:nil)
159
162
  fail ArgumentError, 'api_version is nil' if api_version.nil?
160
163
 
161
164
 
162
165
  request_headers = {}
166
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
163
167
 
164
168
  # Set Headers
165
169
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -210,7 +214,7 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
210
214
  #
211
215
  def add_telemetry
212
216
  sdk_information = 'azure_mgmt_powerbi_embedded'
213
- sdk_information = "#{sdk_information}/0.15.2"
217
+ sdk_information = "#{sdk_information}/0.16.0"
214
218
  add_user_agent_information(sdk_information)
215
219
  end
216
220
  end
@@ -33,8 +33,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
33
33
  #
34
34
  # @return [WorkspaceCollection] operation results.
35
35
  #
36
- def get_by_name(resource_group_name, workspace_collection_name, custom_headers = nil)
37
- response = get_by_name_async(resource_group_name, workspace_collection_name, custom_headers).value!
36
+ def get_by_name(resource_group_name, workspace_collection_name, custom_headers:nil)
37
+ response = get_by_name_async(resource_group_name, workspace_collection_name, custom_headers:custom_headers).value!
38
38
  response.body unless response.nil?
39
39
  end
40
40
 
@@ -49,8 +49,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
49
49
  #
50
50
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
51
51
  #
52
- def get_by_name_with_http_info(resource_group_name, workspace_collection_name, custom_headers = nil)
53
- get_by_name_async(resource_group_name, workspace_collection_name, custom_headers).value!
52
+ def get_by_name_with_http_info(resource_group_name, workspace_collection_name, custom_headers:nil)
53
+ get_by_name_async(resource_group_name, workspace_collection_name, custom_headers:custom_headers).value!
54
54
  end
55
55
 
56
56
  #
@@ -64,7 +64,7 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
64
64
  #
65
65
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
66
66
  #
67
- def get_by_name_async(resource_group_name, workspace_collection_name, custom_headers = nil)
67
+ def get_by_name_async(resource_group_name, workspace_collection_name, custom_headers:nil)
68
68
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
69
69
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
70
70
  fail ArgumentError, 'workspace_collection_name is nil' if workspace_collection_name.nil?
@@ -72,6 +72,7 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
72
72
 
73
73
 
74
74
  request_headers = {}
75
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
75
76
 
76
77
  # Set Headers
77
78
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -131,8 +132,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
131
132
  #
132
133
  # @return [WorkspaceCollection] operation results.
133
134
  #
134
- def create(resource_group_name, workspace_collection_name, body, custom_headers = nil)
135
- response = create_async(resource_group_name, workspace_collection_name, body, custom_headers).value!
135
+ def create(resource_group_name, workspace_collection_name, body, custom_headers:nil)
136
+ response = create_async(resource_group_name, workspace_collection_name, body, custom_headers:custom_headers).value!
136
137
  response.body unless response.nil?
137
138
  end
138
139
 
@@ -151,8 +152,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
151
152
  #
152
153
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
153
154
  #
154
- def create_with_http_info(resource_group_name, workspace_collection_name, body, custom_headers = nil)
155
- create_async(resource_group_name, workspace_collection_name, body, custom_headers).value!
155
+ def create_with_http_info(resource_group_name, workspace_collection_name, body, custom_headers:nil)
156
+ create_async(resource_group_name, workspace_collection_name, body, custom_headers:custom_headers).value!
156
157
  end
157
158
 
158
159
  #
@@ -170,7 +171,7 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
170
171
  #
171
172
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
172
173
  #
173
- def create_async(resource_group_name, workspace_collection_name, body, custom_headers = nil)
174
+ def create_async(resource_group_name, workspace_collection_name, body, custom_headers:nil)
174
175
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
175
176
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
176
177
  fail ArgumentError, 'workspace_collection_name is nil' if workspace_collection_name.nil?
@@ -179,13 +180,12 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
179
180
 
180
181
 
181
182
  request_headers = {}
183
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
182
184
 
183
185
  # Set Headers
184
186
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
185
187
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
186
188
 
187
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
188
-
189
189
  # Serialize Request
190
190
  request_mapper = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::CreateWorkspaceCollectionRequest.mapper()
191
191
  request_content = @client.serialize(request_mapper, body)
@@ -246,8 +246,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
246
246
  #
247
247
  # @return [WorkspaceCollection] operation results.
248
248
  #
249
- def update(resource_group_name, workspace_collection_name, body, custom_headers = nil)
250
- response = update_async(resource_group_name, workspace_collection_name, body, custom_headers).value!
249
+ def update(resource_group_name, workspace_collection_name, body, custom_headers:nil)
250
+ response = update_async(resource_group_name, workspace_collection_name, body, custom_headers:custom_headers).value!
251
251
  response.body unless response.nil?
252
252
  end
253
253
 
@@ -265,8 +265,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
265
265
  #
266
266
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
267
267
  #
268
- def update_with_http_info(resource_group_name, workspace_collection_name, body, custom_headers = nil)
269
- update_async(resource_group_name, workspace_collection_name, body, custom_headers).value!
268
+ def update_with_http_info(resource_group_name, workspace_collection_name, body, custom_headers:nil)
269
+ update_async(resource_group_name, workspace_collection_name, body, custom_headers:custom_headers).value!
270
270
  end
271
271
 
272
272
  #
@@ -283,7 +283,7 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
283
283
  #
284
284
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
285
285
  #
286
- def update_async(resource_group_name, workspace_collection_name, body, custom_headers = nil)
286
+ def update_async(resource_group_name, workspace_collection_name, body, custom_headers:nil)
287
287
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
288
288
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
289
289
  fail ArgumentError, 'workspace_collection_name is nil' if workspace_collection_name.nil?
@@ -292,13 +292,12 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
292
292
 
293
293
 
294
294
  request_headers = {}
295
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
295
296
 
296
297
  # Set Headers
297
298
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
298
299
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
299
300
 
300
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
301
-
302
301
  # Serialize Request
303
302
  request_mapper = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::UpdateWorkspaceCollectionRequest.mapper()
304
303
  request_content = @client.serialize(request_mapper, body)
@@ -354,8 +353,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
354
353
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
355
354
  # will be added to the HTTP request.
356
355
  #
357
- def delete(resource_group_name, workspace_collection_name, custom_headers = nil)
358
- response = delete_async(resource_group_name, workspace_collection_name, custom_headers).value!
356
+ def delete(resource_group_name, workspace_collection_name, custom_headers:nil)
357
+ response = delete_async(resource_group_name, workspace_collection_name, custom_headers:custom_headers).value!
359
358
  nil
360
359
  end
361
360
 
@@ -369,9 +368,9 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
369
368
  # @return [Concurrent::Promise] promise which provides async access to http
370
369
  # response.
371
370
  #
372
- def delete_async(resource_group_name, workspace_collection_name, custom_headers = nil)
371
+ def delete_async(resource_group_name, workspace_collection_name, custom_headers:nil)
373
372
  # Send request
374
- promise = begin_delete_async(resource_group_name, workspace_collection_name, custom_headers)
373
+ promise = begin_delete_async(resource_group_name, workspace_collection_name, custom_headers:custom_headers)
375
374
 
376
375
  promise = promise.then do |response|
377
376
  # Defining deserialization method.
@@ -396,8 +395,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
396
395
  #
397
396
  # @return [CheckNameResponse] operation results.
398
397
  #
399
- def check_name_availability(location, body, custom_headers = nil)
400
- response = check_name_availability_async(location, body, custom_headers).value!
398
+ def check_name_availability(location, body, custom_headers:nil)
399
+ response = check_name_availability_async(location, body, custom_headers:custom_headers).value!
401
400
  response.body unless response.nil?
402
401
  end
403
402
 
@@ -412,8 +411,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
412
411
  #
413
412
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
414
413
  #
415
- def check_name_availability_with_http_info(location, body, custom_headers = nil)
416
- check_name_availability_async(location, body, custom_headers).value!
414
+ def check_name_availability_with_http_info(location, body, custom_headers:nil)
415
+ check_name_availability_async(location, body, custom_headers:custom_headers).value!
417
416
  end
418
417
 
419
418
  #
@@ -427,7 +426,7 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
427
426
  #
428
427
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
429
428
  #
430
- def check_name_availability_async(location, body, custom_headers = nil)
429
+ def check_name_availability_async(location, body, custom_headers:nil)
431
430
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
432
431
  fail ArgumentError, 'location is nil' if location.nil?
433
432
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -435,13 +434,12 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
435
434
 
436
435
 
437
436
  request_headers = {}
437
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
438
438
 
439
439
  # Set Headers
440
440
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
441
441
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
442
442
 
443
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
444
-
445
443
  # Serialize Request
446
444
  request_mapper = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::CheckNameRequest.mapper()
447
445
  request_content = @client.serialize(request_mapper, body)
@@ -498,8 +496,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
498
496
  #
499
497
  # @return [WorkspaceCollectionList] operation results.
500
498
  #
501
- def list_by_resource_group(resource_group_name, custom_headers = nil)
502
- response = list_by_resource_group_async(resource_group_name, custom_headers).value!
499
+ def list_by_resource_group(resource_group_name, custom_headers:nil)
500
+ response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
503
501
  response.body unless response.nil?
504
502
  end
505
503
 
@@ -513,8 +511,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
513
511
  #
514
512
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
515
513
  #
516
- def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil)
517
- list_by_resource_group_async(resource_group_name, custom_headers).value!
514
+ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
515
+ list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
518
516
  end
519
517
 
520
518
  #
@@ -527,13 +525,14 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
527
525
  #
528
526
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
529
527
  #
530
- def list_by_resource_group_async(resource_group_name, custom_headers = nil)
528
+ def list_by_resource_group_async(resource_group_name, custom_headers:nil)
531
529
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
532
530
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
533
531
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
534
532
 
535
533
 
536
534
  request_headers = {}
535
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
537
536
 
538
537
  # Set Headers
539
538
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -587,8 +586,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
587
586
  #
588
587
  # @return [WorkspaceCollectionList] operation results.
589
588
  #
590
- def list_by_subscription(custom_headers = nil)
591
- response = list_by_subscription_async(custom_headers).value!
589
+ def list_by_subscription(custom_headers:nil)
590
+ response = list_by_subscription_async(custom_headers:custom_headers).value!
592
591
  response.body unless response.nil?
593
592
  end
594
593
 
@@ -601,8 +600,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
601
600
  #
602
601
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
603
602
  #
604
- def list_by_subscription_with_http_info(custom_headers = nil)
605
- list_by_subscription_async(custom_headers).value!
603
+ def list_by_subscription_with_http_info(custom_headers:nil)
604
+ list_by_subscription_async(custom_headers:custom_headers).value!
606
605
  end
607
606
 
608
607
  #
@@ -614,12 +613,13 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
614
613
  #
615
614
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
616
615
  #
617
- def list_by_subscription_async(custom_headers = nil)
616
+ def list_by_subscription_async(custom_headers:nil)
618
617
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
619
618
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
620
619
 
621
620
 
622
621
  request_headers = {}
622
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
623
623
 
624
624
  # Set Headers
625
625
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -676,8 +676,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
676
676
  #
677
677
  # @return [WorkspaceCollectionAccessKeys] operation results.
678
678
  #
679
- def get_access_keys(resource_group_name, workspace_collection_name, custom_headers = nil)
680
- response = get_access_keys_async(resource_group_name, workspace_collection_name, custom_headers).value!
679
+ def get_access_keys(resource_group_name, workspace_collection_name, custom_headers:nil)
680
+ response = get_access_keys_async(resource_group_name, workspace_collection_name, custom_headers:custom_headers).value!
681
681
  response.body unless response.nil?
682
682
  end
683
683
 
@@ -693,8 +693,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
693
693
  #
694
694
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
695
695
  #
696
- def get_access_keys_with_http_info(resource_group_name, workspace_collection_name, custom_headers = nil)
697
- get_access_keys_async(resource_group_name, workspace_collection_name, custom_headers).value!
696
+ def get_access_keys_with_http_info(resource_group_name, workspace_collection_name, custom_headers:nil)
697
+ get_access_keys_async(resource_group_name, workspace_collection_name, custom_headers:custom_headers).value!
698
698
  end
699
699
 
700
700
  #
@@ -709,7 +709,7 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
709
709
  #
710
710
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
711
711
  #
712
- def get_access_keys_async(resource_group_name, workspace_collection_name, custom_headers = nil)
712
+ def get_access_keys_async(resource_group_name, workspace_collection_name, custom_headers:nil)
713
713
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
714
714
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
715
715
  fail ArgumentError, 'workspace_collection_name is nil' if workspace_collection_name.nil?
@@ -717,6 +717,7 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
717
717
 
718
718
 
719
719
  request_headers = {}
720
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
720
721
 
721
722
  # Set Headers
722
723
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -774,8 +775,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
774
775
  #
775
776
  # @return [WorkspaceCollectionAccessKeys] operation results.
776
777
  #
777
- def regenerate_key(resource_group_name, workspace_collection_name, body, custom_headers = nil)
778
- response = regenerate_key_async(resource_group_name, workspace_collection_name, body, custom_headers).value!
778
+ def regenerate_key(resource_group_name, workspace_collection_name, body, custom_headers:nil)
779
+ response = regenerate_key_async(resource_group_name, workspace_collection_name, body, custom_headers:custom_headers).value!
779
780
  response.body unless response.nil?
780
781
  end
781
782
 
@@ -792,8 +793,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
792
793
  #
793
794
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
794
795
  #
795
- def regenerate_key_with_http_info(resource_group_name, workspace_collection_name, body, custom_headers = nil)
796
- regenerate_key_async(resource_group_name, workspace_collection_name, body, custom_headers).value!
796
+ def regenerate_key_with_http_info(resource_group_name, workspace_collection_name, body, custom_headers:nil)
797
+ regenerate_key_async(resource_group_name, workspace_collection_name, body, custom_headers:custom_headers).value!
797
798
  end
798
799
 
799
800
  #
@@ -809,7 +810,7 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
809
810
  #
810
811
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
811
812
  #
812
- def regenerate_key_async(resource_group_name, workspace_collection_name, body, custom_headers = nil)
813
+ def regenerate_key_async(resource_group_name, workspace_collection_name, body, custom_headers:nil)
813
814
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
814
815
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
815
816
  fail ArgumentError, 'workspace_collection_name is nil' if workspace_collection_name.nil?
@@ -818,13 +819,12 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
818
819
 
819
820
 
820
821
  request_headers = {}
822
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
821
823
 
822
824
  # Set Headers
823
825
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
824
826
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
825
827
 
826
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
827
-
828
828
  # Serialize Request
829
829
  request_mapper = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceCollectionAccessKey.mapper()
830
830
  request_content = @client.serialize(request_mapper, body)
@@ -881,8 +881,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
881
881
  # will be added to the HTTP request.
882
882
  #
883
883
  #
884
- def migrate(resource_group_name, body, custom_headers = nil)
885
- response = migrate_async(resource_group_name, body, custom_headers).value!
884
+ def migrate(resource_group_name, body, custom_headers:nil)
885
+ response = migrate_async(resource_group_name, body, custom_headers:custom_headers).value!
886
886
  nil
887
887
  end
888
888
 
@@ -897,8 +897,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
897
897
  #
898
898
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
899
899
  #
900
- def migrate_with_http_info(resource_group_name, body, custom_headers = nil)
901
- migrate_async(resource_group_name, body, custom_headers).value!
900
+ def migrate_with_http_info(resource_group_name, body, custom_headers:nil)
901
+ migrate_async(resource_group_name, body, custom_headers:custom_headers).value!
902
902
  end
903
903
 
904
904
  #
@@ -912,7 +912,7 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
912
912
  #
913
913
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
914
914
  #
915
- def migrate_async(resource_group_name, body, custom_headers = nil)
915
+ def migrate_async(resource_group_name, body, custom_headers:nil)
916
916
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
917
917
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
918
918
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -920,13 +920,12 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
920
920
 
921
921
 
922
922
  request_headers = {}
923
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
923
924
 
924
925
  # Set Headers
925
926
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
926
927
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
927
928
 
928
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
929
-
930
929
  # Serialize Request
931
930
  request_mapper = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::MigrateWorkspaceCollectionRequest.mapper()
932
931
  request_content = @client.serialize(request_mapper, body)
@@ -973,8 +972,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
973
972
  # will be added to the HTTP request.
974
973
  #
975
974
  #
976
- def begin_delete(resource_group_name, workspace_collection_name, custom_headers = nil)
977
- response = begin_delete_async(resource_group_name, workspace_collection_name, custom_headers).value!
975
+ def begin_delete(resource_group_name, workspace_collection_name, custom_headers:nil)
976
+ response = begin_delete_async(resource_group_name, workspace_collection_name, custom_headers:custom_headers).value!
978
977
  nil
979
978
  end
980
979
 
@@ -989,8 +988,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
989
988
  #
990
989
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
991
990
  #
992
- def begin_delete_with_http_info(resource_group_name, workspace_collection_name, custom_headers = nil)
993
- begin_delete_async(resource_group_name, workspace_collection_name, custom_headers).value!
991
+ def begin_delete_with_http_info(resource_group_name, workspace_collection_name, custom_headers:nil)
992
+ begin_delete_async(resource_group_name, workspace_collection_name, custom_headers:custom_headers).value!
994
993
  end
995
994
 
996
995
  #
@@ -1004,7 +1003,7 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
1004
1003
  #
1005
1004
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1006
1005
  #
1007
- def begin_delete_async(resource_group_name, workspace_collection_name, custom_headers = nil)
1006
+ def begin_delete_async(resource_group_name, workspace_collection_name, custom_headers:nil)
1008
1007
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1009
1008
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1010
1009
  fail ArgumentError, 'workspace_collection_name is nil' if workspace_collection_name.nil?
@@ -1012,6 +1011,7 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
1012
1011
 
1013
1012
 
1014
1013
  request_headers = {}
1014
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1015
1015
 
1016
1016
  # Set Headers
1017
1017
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -34,8 +34,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
34
34
  #
35
35
  # @return [WorkspaceList] operation results.
36
36
  #
37
- def list(resource_group_name, workspace_collection_name, custom_headers = nil)
38
- response = list_async(resource_group_name, workspace_collection_name, custom_headers).value!
37
+ def list(resource_group_name, workspace_collection_name, custom_headers:nil)
38
+ response = list_async(resource_group_name, workspace_collection_name, custom_headers:custom_headers).value!
39
39
  response.body unless response.nil?
40
40
  end
41
41
 
@@ -51,8 +51,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
51
51
  #
52
52
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
53
53
  #
54
- def list_with_http_info(resource_group_name, workspace_collection_name, custom_headers = nil)
55
- list_async(resource_group_name, workspace_collection_name, custom_headers).value!
54
+ def list_with_http_info(resource_group_name, workspace_collection_name, custom_headers:nil)
55
+ list_async(resource_group_name, workspace_collection_name, custom_headers:custom_headers).value!
56
56
  end
57
57
 
58
58
  #
@@ -67,7 +67,7 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
67
67
  #
68
68
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
69
69
  #
70
- def list_async(resource_group_name, workspace_collection_name, custom_headers = nil)
70
+ def list_async(resource_group_name, workspace_collection_name, custom_headers:nil)
71
71
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
72
72
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
73
73
  fail ArgumentError, 'workspace_collection_name is nil' if workspace_collection_name.nil?
@@ -75,6 +75,7 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
75
75
 
76
76
 
77
77
  request_headers = {}
78
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
78
79
 
79
80
  # Set Headers
80
81
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -4,7 +4,8 @@
4
4
 
5
5
  require 'azure_mgmt_powerbi_embedded'
6
6
 
7
- module Azure::PowerBiEmbedded::Profiles::Latest::Mgmt
7
+ module Azure::PowerBiEmbedded::Profiles::Latest
8
+ module Mgmt
8
9
  WorkspaceCollections = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::WorkspaceCollections
9
10
  Workspaces = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Workspaces
10
11
 
@@ -31,9 +32,9 @@ module Azure::PowerBiEmbedded::Profiles::Latest::Mgmt
31
32
  end
32
33
 
33
34
  #
34
- # PowerBiEmbedded
35
+ # PowerBiEmbeddedManagementClass
35
36
  #
36
- class PowerBiEmbeddedClass
37
+ class PowerBiEmbeddedManagementClass
37
38
  attr_reader :workspace_collections, :workspaces, :configurable, :base_url, :options, :model_classes
38
39
 
39
40
  def initialize(options = {})
@@ -45,76 +46,94 @@ module Azure::PowerBiEmbedded::Profiles::Latest::Mgmt
45
46
 
46
47
  reset!(options)
47
48
 
48
- @configurable, @base_url, @options = self, nil, nil
49
+ @configurable = self
50
+ @base_url = options[:base_url].nil? ? nil:options[:base_url]
51
+ @options = options[:options].nil? ? nil:options[:options]
49
52
 
50
- client_0 = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::PowerBIEmbeddedManagementClient.new(configurable.credentials, base_url, options)
51
- if(client_0.respond_to?(:subscription_id))
52
- client_0.subscription_id = configurable.subscription_id
53
+ @client_0 = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::PowerBIEmbeddedManagementClient.new(configurable.credentials, base_url, options)
54
+ if(@client_0.respond_to?(:subscription_id))
55
+ @client_0.subscription_id = configurable.subscription_id
53
56
  end
54
- @workspace_collections = client_0.workspace_collections
55
- @workspaces = client_0.workspaces
57
+ add_telemetry(@client_0)
58
+ @workspace_collections = @client_0.workspace_collections
59
+ @workspaces = @client_0.workspaces
56
60
 
57
61
  @model_classes = ModelClasses.new
58
62
  end
59
63
 
60
- class ModelClasses
61
- def operation
62
- Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::Operation
63
- end
64
- def operation_list
65
- Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::OperationList
66
- end
67
- def error
68
- Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::Error
69
- end
70
- def workspace_collection_access_keys
71
- Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceCollectionAccessKeys
72
- end
73
- def workspace_collection
74
- Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceCollection
75
- end
76
- def workspace_collection_access_key
77
- Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceCollectionAccessKey
78
- end
79
- def workspace
80
- Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::Workspace
81
- end
82
- def create_workspace_collection_request
83
- Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::CreateWorkspaceCollectionRequest
84
- end
85
- def display
86
- Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::Display
87
- end
88
- def update_workspace_collection_request
89
- Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::UpdateWorkspaceCollectionRequest
90
- end
91
- def azure_sku
92
- Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::AzureSku
93
- end
94
- def check_name_request
95
- Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::CheckNameRequest
96
- end
97
- def workspace_list
98
- Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceList
99
- end
100
- def check_name_response
101
- Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::CheckNameResponse
102
- end
103
- def workspace_collection_list
104
- Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceCollectionList
105
- end
106
- def migrate_workspace_collection_request
107
- Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::MigrateWorkspaceCollectionRequest
108
- end
109
- def error_detail
110
- Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::ErrorDetail
111
- end
112
- def access_key_name
113
- Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::AccessKeyName
114
- end
115
- def check_name_reason
116
- Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::CheckNameReason
64
+ def add_telemetry(client)
65
+ profile_information = 'Profiles/Latest/PowerBiEmbedded/Mgmt'
66
+ client.add_user_agent_information(profile_information)
67
+ end
68
+
69
+ def method_missing(method, *args)
70
+ if @client_0.respond_to?method
71
+ @client_0.send(method, *args)
72
+ else
73
+ super
117
74
  end
118
75
  end
76
+
77
+ end
78
+
79
+ class ModelClasses
80
+ def operation
81
+ Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::Operation
82
+ end
83
+ def operation_list
84
+ Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::OperationList
85
+ end
86
+ def error
87
+ Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::Error
88
+ end
89
+ def workspace_collection_access_keys
90
+ Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceCollectionAccessKeys
91
+ end
92
+ def workspace_collection
93
+ Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceCollection
94
+ end
95
+ def workspace_collection_access_key
96
+ Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceCollectionAccessKey
97
+ end
98
+ def workspace
99
+ Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::Workspace
100
+ end
101
+ def create_workspace_collection_request
102
+ Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::CreateWorkspaceCollectionRequest
103
+ end
104
+ def display
105
+ Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::Display
106
+ end
107
+ def update_workspace_collection_request
108
+ Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::UpdateWorkspaceCollectionRequest
109
+ end
110
+ def azure_sku
111
+ Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::AzureSku
112
+ end
113
+ def check_name_request
114
+ Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::CheckNameRequest
115
+ end
116
+ def workspace_list
117
+ Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceList
118
+ end
119
+ def check_name_response
120
+ Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::CheckNameResponse
121
+ end
122
+ def workspace_collection_list
123
+ Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceCollectionList
124
+ end
125
+ def migrate_workspace_collection_request
126
+ Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::MigrateWorkspaceCollectionRequest
127
+ end
128
+ def error_detail
129
+ Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::ErrorDetail
130
+ end
131
+ def access_key_name
132
+ Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::AccessKeyName
133
+ end
134
+ def check_name_reason
135
+ Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::CheckNameReason
136
+ end
119
137
  end
138
+ end
120
139
  end
@@ -5,17 +5,36 @@
5
5
  require 'profiles/latest/powerbiembedded_module_definition'
6
6
  require 'profiles/latest/modules/powerbiembedded_profile_module'
7
7
 
8
- module Azure::PowerBiEmbedded::Profiles::Latest::Mgmt
9
- #
10
- # Client class for the Latest profile SDK.
11
- #
12
- class Client < PowerBiEmbeddedClass
13
- include MsRestAzure::Common::Configurable
8
+ module Azure::PowerBiEmbedded::Profiles::Latest
9
+ module Mgmt
10
+ #
11
+ # Client class for the Latest profile SDK.
12
+ #
13
+ class Client < PowerBiEmbeddedManagementClass
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::PowerBiEmbedded end
7
7
  module Azure::PowerBiEmbedded::Profiles end
8
8
  module Azure::PowerBiEmbedded::Profiles::Latest end
9
- module Azure::PowerBiEmbedded::Profiles::Latest::Mgmt 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
  module Azure::PowerBiEmbedded::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_powerbi_embedded
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-19 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
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  version: '0'
143
143
  requirements: []
144
144
  rubyforge_project:
145
- rubygems_version: 2.5.1
145
+ rubygems_version: 2.6.10
146
146
  signing_key:
147
147
  specification_version: 4
148
148
  summary: Official Ruby client library to consume Microsoft Azure Power BI Embedded