azure_mgmt_powerbi_embedded 0.15.1 → 0.17.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2016-01-29/generated/azure_mgmt_powerbi_embedded/models/azure_sku.rb +3 -0
  3. data/lib/2016-01-29/generated/azure_mgmt_powerbi_embedded/models/check_name_request.rb +3 -0
  4. data/lib/2016-01-29/generated/azure_mgmt_powerbi_embedded/models/check_name_response.rb +4 -0
  5. data/lib/2016-01-29/generated/azure_mgmt_powerbi_embedded/models/create_workspace_collection_request.rb +5 -0
  6. data/lib/2016-01-29/generated/azure_mgmt_powerbi_embedded/models/display.rb +8 -2
  7. data/lib/2016-01-29/generated/azure_mgmt_powerbi_embedded/models/error.rb +6 -0
  8. data/lib/2016-01-29/generated/azure_mgmt_powerbi_embedded/models/error_detail.rb +4 -0
  9. data/lib/2016-01-29/generated/azure_mgmt_powerbi_embedded/models/migrate_workspace_collection_request.rb +4 -0
  10. data/lib/2016-01-29/generated/azure_mgmt_powerbi_embedded/models/operation.rb +3 -0
  11. data/lib/2016-01-29/generated/azure_mgmt_powerbi_embedded/models/operation_list.rb +3 -0
  12. data/lib/2016-01-29/generated/azure_mgmt_powerbi_embedded/models/update_workspace_collection_request.rb +4 -0
  13. data/lib/2016-01-29/generated/azure_mgmt_powerbi_embedded/models/workspace.rb +5 -0
  14. data/lib/2016-01-29/generated/azure_mgmt_powerbi_embedded/models/workspace_collection.rb +9 -0
  15. data/lib/2016-01-29/generated/azure_mgmt_powerbi_embedded/models/workspace_collection_access_key.rb +2 -0
  16. data/lib/2016-01-29/generated/azure_mgmt_powerbi_embedded/models/workspace_collection_access_keys.rb +3 -0
  17. data/lib/2016-01-29/generated/azure_mgmt_powerbi_embedded/models/workspace_collection_list.rb +3 -0
  18. data/lib/2016-01-29/generated/azure_mgmt_powerbi_embedded/models/workspace_list.rb +3 -0
  19. data/lib/2016-01-29/generated/azure_mgmt_powerbi_embedded/power_biembedded_management_client.rb +16 -13
  20. data/lib/2016-01-29/generated/azure_mgmt_powerbi_embedded/workspace_collections.rb +64 -64
  21. data/lib/2016-01-29/generated/azure_mgmt_powerbi_embedded/workspaces.rb +6 -5
  22. data/lib/profiles/latest/modules/powerbiembedded_profile_module.rb +85 -66
  23. data/lib/profiles/latest/powerbiembedded_latest_profile_client.rb +28 -11
  24. data/lib/profiles/latest/powerbiembedded_module_definition.rb +0 -1
  25. data/lib/version.rb +1 -1
  26. metadata +11 -9
  27. data/lib/2016-01-29/generated/azure_mgmt_powerbi_embedded/version.rb +0 -8
  28. data/lib/profiles/common/configurable.rb +0 -86
  29. data/lib/profiles/common/default.rb +0 -57
@@ -24,6 +24,7 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
24
24
  #
25
25
  def self.mapper()
26
26
  {
27
+ client_side_validation: true,
27
28
  required: false,
28
29
  serialized_name: 'WorkspaceCollectionAccessKey',
29
30
  type: {
@@ -31,6 +32,7 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
31
32
  class_name: 'WorkspaceCollectionAccessKey',
32
33
  model_properties: {
33
34
  key_name: {
35
+ client_side_validation: true,
34
36
  required: false,
35
37
  serialized_name: 'keyName',
36
38
  type: {
@@ -26,6 +26,7 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
26
26
  #
27
27
  def self.mapper()
28
28
  {
29
+ client_side_validation: true,
29
30
  required: false,
30
31
  serialized_name: 'WorkspaceCollectionAccessKeys',
31
32
  type: {
@@ -33,6 +34,7 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
33
34
  class_name: 'WorkspaceCollectionAccessKeys',
34
35
  model_properties: {
35
36
  key1: {
37
+ client_side_validation: true,
36
38
  required: false,
37
39
  serialized_name: 'key1',
38
40
  type: {
@@ -40,6 +42,7 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
40
42
  }
41
43
  },
42
44
  key2: {
45
+ client_side_validation: true,
43
46
  required: false,
44
47
  serialized_name: 'key2',
45
48
  type: {
@@ -23,6 +23,7 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
23
23
  #
24
24
  def self.mapper()
25
25
  {
26
+ client_side_validation: true,
26
27
  required: false,
27
28
  serialized_name: 'WorkspaceCollectionList',
28
29
  type: {
@@ -30,11 +31,13 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
30
31
  class_name: 'WorkspaceCollectionList',
31
32
  model_properties: {
32
33
  value: {
34
+ client_side_validation: true,
33
35
  required: false,
34
36
  serialized_name: 'value',
35
37
  type: {
36
38
  name: 'Sequence',
37
39
  element: {
40
+ client_side_validation: true,
38
41
  required: false,
39
42
  serialized_name: 'WorkspaceCollectionElementType',
40
43
  type: {
@@ -23,6 +23,7 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
23
23
  #
24
24
  def self.mapper()
25
25
  {
26
+ client_side_validation: true,
26
27
  required: false,
27
28
  serialized_name: 'WorkspaceList',
28
29
  type: {
@@ -30,11 +31,13 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
30
31
  class_name: 'WorkspaceList',
31
32
  model_properties: {
32
33
  value: {
34
+ client_side_validation: true,
33
35
  required: false,
34
36
  serialized_name: 'value',
35
37
  type: {
36
38
  name: 'Sequence',
37
39
  element: {
40
+ client_side_validation: true,
38
41
  required: false,
39
42
  serialized_name: 'WorkspaceElementType',
40
43
  type: {
@@ -25,15 +25,16 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
25
25
  # @return [String] Client Api Version.
26
26
  attr_reader :api_version
27
27
 
28
- # @return [String] Gets or sets the preferred language for the response.
28
+ # @return [String] The preferred language for the response.
29
29
  attr_accessor :accept_language
30
30
 
31
- # @return [Integer] Gets or sets the retry timeout in seconds for Long
32
- # Running Operations. Default value is 30.
31
+ # @return [Integer] The retry timeout in seconds for Long Running
32
+ # Operations. Default value is 30.
33
33
  attr_accessor :long_running_operation_retry_timeout
34
34
 
35
- # @return [Boolean] When set to true a unique x-ms-client-request-id value
36
- # is generated and included in each request. Default is true.
35
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
36
+ # generated. When set to true a unique x-ms-client-request-id value is
37
+ # generated and included in each request. Default is true.
37
38
  attr_accessor :generate_client_request_id
38
39
 
39
40
  # @return [WorkspaceCollections] workspace_collections
@@ -110,6 +111,9 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
110
111
  fail ArgumentError, 'path is nil' if path.nil?
111
112
 
112
113
  request_url = options[:base_url] || @base_url
114
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
115
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
116
+ end
113
117
 
114
118
  request_headers = @request_headers
115
119
  request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
@@ -128,8 +132,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
128
132
  #
129
133
  # @return [OperationList] operation results.
130
134
  #
131
- def get_available_operations(custom_headers = nil)
132
- response = get_available_operations_async(custom_headers).value!
135
+ def get_available_operations(custom_headers:nil)
136
+ response = get_available_operations_async(custom_headers:custom_headers).value!
133
137
  response.body unless response.nil?
134
138
  end
135
139
 
@@ -142,8 +146,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
142
146
  #
143
147
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
144
148
  #
145
- def get_available_operations_with_http_info(custom_headers = nil)
146
- get_available_operations_async(custom_headers).value!
149
+ def get_available_operations_with_http_info(custom_headers:nil)
150
+ get_available_operations_async(custom_headers:custom_headers).value!
147
151
  end
148
152
 
149
153
  #
@@ -155,11 +159,12 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
155
159
  #
156
160
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
157
161
  #
158
- def get_available_operations_async(custom_headers = nil)
162
+ def get_available_operations_async(custom_headers:nil)
159
163
  fail ArgumentError, 'api_version is nil' if api_version.nil?
160
164
 
161
165
 
162
166
  request_headers = {}
167
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
163
168
 
164
169
  # Set Headers
165
170
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -210,9 +215,7 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29
210
215
  #
211
216
  def add_telemetry
212
217
  sdk_information = 'azure_mgmt_powerbi_embedded'
213
- if defined? Azure::PowerBiEmbedded::Mgmt::V2016_01_29::VERSION
214
- sdk_information = "#{sdk_information}/#{Azure::PowerBiEmbedded::Mgmt::V2016_01_29::VERSION}"
215
- end
218
+ sdk_information = "#{sdk_information}/0.17.2"
216
219
  add_user_agent_information(sdk_information)
217
220
  end
218
221
  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