azure_mgmt_authorization 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: 9af43300c9ff41fb308fe66458f7c9a47817236d
4
- data.tar.gz: 20c1a910de5d8bb3de58949ec84fb93294463f5b
3
+ metadata.gz: a86e3d23bc259980a7e27b83a811bf28f4cdac66
4
+ data.tar.gz: 26dfffa58de0a0d43ff9692e2cc8fe2bf602f15a
5
5
  SHA512:
6
- metadata.gz: ac615d4e132ac5563d3c33535c5e3e992f5f2950b6e69274b5b1bfee38856323510b3cf05deb98da30d2c70a8e1cf905cc25523cc8f111a59299f011dbfb5d79
7
- data.tar.gz: 10851e0c7ee68b811387a6144362a679b43c2ac8fe911ba0762eee40c28fa9784ff85aaf8f25eca1ca2173e29f67a6af497024987494ea0423ef9628eb20aad7
6
+ metadata.gz: ffdb714d83c22da849f0b817dfaf9e7a30b1af532bb7ff042cb4494d2473e41e3eb8fd2785ad43a2a959b162072e5ae61f3341b3bd606aaf321f7b7c48dd062f
7
+ data.tar.gz: fddb0af14dfb3242c5c357df173c3f17b794be15a54c717947ae2e0a238f759cc8db629d50f644f9ec7860d2904df699d4252f86e7f7160c9493279611453fed
@@ -121,6 +121,9 @@ module Azure::Authorization::Mgmt::V2015_07_01
121
121
  fail ArgumentError, 'path is nil' if path.nil?
122
122
 
123
123
  request_url = options[:base_url] || @base_url
124
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
125
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
126
+ end
124
127
 
125
128
  request_headers = @request_headers
126
129
  request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
@@ -137,7 +140,7 @@ module Azure::Authorization::Mgmt::V2015_07_01
137
140
  #
138
141
  def add_telemetry
139
142
  sdk_information = 'azure_mgmt_authorization'
140
- sdk_information = "#{sdk_information}/0.15.2"
143
+ sdk_information = "#{sdk_information}/0.16.0"
141
144
  add_user_agent_information(sdk_information)
142
145
  end
143
146
  end
@@ -35,8 +35,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
35
35
  #
36
36
  # @return [Array<ClassicAdministrator>] operation results.
37
37
  #
38
- def list(api_version, custom_headers = nil)
39
- first_page = list_as_lazy(api_version, custom_headers)
38
+ def list(api_version, custom_headers:nil)
39
+ first_page = list_as_lazy(api_version, custom_headers:custom_headers)
40
40
  first_page.get_all_items
41
41
  end
42
42
 
@@ -50,8 +50,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
50
50
  #
51
51
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
52
52
  #
53
- def list_with_http_info(api_version, custom_headers = nil)
54
- list_async(api_version, custom_headers).value!
53
+ def list_with_http_info(api_version, custom_headers:nil)
54
+ list_async(api_version, custom_headers:custom_headers).value!
55
55
  end
56
56
 
57
57
  #
@@ -64,12 +64,13 @@ module Azure::Authorization::Mgmt::V2015_07_01
64
64
  #
65
65
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
66
66
  #
67
- def list_async(api_version, custom_headers = nil)
67
+ def list_async(api_version, custom_headers:nil)
68
68
  fail ArgumentError, 'api_version is nil' if api_version.nil?
69
69
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
70
70
 
71
71
 
72
72
  request_headers = {}
73
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
73
74
 
74
75
  # Set Headers
75
76
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -125,8 +126,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
125
126
  #
126
127
  # @return [ClassicAdministratorListResult] operation results.
127
128
  #
128
- def list_next(next_page_link, custom_headers = nil)
129
- response = list_next_async(next_page_link, custom_headers).value!
129
+ def list_next(next_page_link, custom_headers:nil)
130
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
130
131
  response.body unless response.nil?
131
132
  end
132
133
 
@@ -141,8 +142,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
141
142
  #
142
143
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
143
144
  #
144
- def list_next_with_http_info(next_page_link, custom_headers = nil)
145
- list_next_async(next_page_link, custom_headers).value!
145
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
146
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
146
147
  end
147
148
 
148
149
  #
@@ -156,11 +157,12 @@ module Azure::Authorization::Mgmt::V2015_07_01
156
157
  #
157
158
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
158
159
  #
159
- def list_next_async(next_page_link, custom_headers = nil)
160
+ def list_next_async(next_page_link, custom_headers:nil)
160
161
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
161
162
 
162
163
 
163
164
  request_headers = {}
165
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
164
166
 
165
167
  # Set Headers
166
168
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -215,12 +217,12 @@ module Azure::Authorization::Mgmt::V2015_07_01
215
217
  # @return [ClassicAdministratorListResult] which provide lazy access to pages
216
218
  # of the response.
217
219
  #
218
- def list_as_lazy(api_version, custom_headers = nil)
219
- response = list_async(api_version, custom_headers).value!
220
+ def list_as_lazy(api_version, custom_headers:nil)
221
+ response = list_async(api_version, custom_headers:custom_headers).value!
220
222
  unless response.nil?
221
223
  page = response.body
222
224
  page.next_method = Proc.new do |next_page_link|
223
- list_next_async(next_page_link, custom_headers)
225
+ list_next_async(next_page_link, custom_headers:custom_headers)
224
226
  end
225
227
  page
226
228
  end
@@ -41,6 +41,7 @@ module Azure::Authorization::Mgmt::V2015_07_01
41
41
  id: {
42
42
  client_side_validation: true,
43
43
  required: false,
44
+ read_only: true,
44
45
  serialized_name: 'id',
45
46
  type: {
46
47
  name: 'String'
@@ -49,6 +50,7 @@ module Azure::Authorization::Mgmt::V2015_07_01
49
50
  name: {
50
51
  client_side_validation: true,
51
52
  required: false,
53
+ read_only: true,
52
54
  serialized_name: 'name',
53
55
  type: {
54
56
  name: 'String'
@@ -57,6 +59,7 @@ module Azure::Authorization::Mgmt::V2015_07_01
57
59
  type: {
58
60
  client_side_validation: true,
59
61
  required: false,
62
+ read_only: true,
60
63
  serialized_name: 'type',
61
64
  type: {
62
65
  name: 'String'
@@ -41,6 +41,7 @@ module Azure::Authorization::Mgmt::V2015_07_01
41
41
  id: {
42
42
  client_side_validation: true,
43
43
  required: false,
44
+ read_only: true,
44
45
  serialized_name: 'id',
45
46
  type: {
46
47
  name: 'String'
@@ -49,6 +50,7 @@ module Azure::Authorization::Mgmt::V2015_07_01
49
50
  name: {
50
51
  client_side_validation: true,
51
52
  required: false,
53
+ read_only: true,
52
54
  serialized_name: 'name',
53
55
  type: {
54
56
  name: 'String'
@@ -57,6 +59,7 @@ module Azure::Authorization::Mgmt::V2015_07_01
57
59
  type: {
58
60
  client_side_validation: true,
59
61
  required: false,
62
+ read_only: true,
60
63
  serialized_name: 'type',
61
64
  type: {
62
65
  name: 'String'
@@ -35,8 +35,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
35
35
  #
36
36
  # @return [Array<Permission>] operation results.
37
37
  #
38
- def list_for_resource_group(resource_group_name, custom_headers = nil)
39
- first_page = list_for_resource_group_as_lazy(resource_group_name, custom_headers)
38
+ def list_for_resource_group(resource_group_name, custom_headers:nil)
39
+ first_page = list_for_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers)
40
40
  first_page.get_all_items
41
41
  end
42
42
 
@@ -50,8 +50,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
50
50
  #
51
51
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
52
52
  #
53
- def list_for_resource_group_with_http_info(resource_group_name, custom_headers = nil)
54
- list_for_resource_group_async(resource_group_name, custom_headers).value!
53
+ def list_for_resource_group_with_http_info(resource_group_name, custom_headers:nil)
54
+ list_for_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
55
55
  end
56
56
 
57
57
  #
@@ -64,13 +64,14 @@ module Azure::Authorization::Mgmt::V2015_07_01
64
64
  #
65
65
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
66
66
  #
67
- def list_for_resource_group_async(resource_group_name, custom_headers = nil)
67
+ def list_for_resource_group_async(resource_group_name, custom_headers:nil)
68
68
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
69
69
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
70
70
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
71
71
 
72
72
 
73
73
  request_headers = {}
74
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
74
75
 
75
76
  # Set Headers
76
77
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -131,8 +132,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
131
132
  #
132
133
  # @return [Array<Permission>] operation results.
133
134
  #
134
- def list_for_resource(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers = nil)
135
- first_page = list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers)
135
+ def list_for_resource(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers:nil)
136
+ first_page = list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers:custom_headers)
136
137
  first_page.get_all_items
137
138
  end
138
139
 
@@ -152,8 +153,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
152
153
  #
153
154
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
154
155
  #
155
- def list_for_resource_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers = nil)
156
- list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers).value!
156
+ def list_for_resource_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers:nil)
157
+ list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers:custom_headers).value!
157
158
  end
158
159
 
159
160
  #
@@ -172,7 +173,7 @@ module Azure::Authorization::Mgmt::V2015_07_01
172
173
  #
173
174
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
174
175
  #
175
- def list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers = nil)
176
+ def list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers:nil)
176
177
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
177
178
  fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
178
179
  fail ArgumentError, 'parent_resource_path is nil' if parent_resource_path.nil?
@@ -183,6 +184,7 @@ module Azure::Authorization::Mgmt::V2015_07_01
183
184
 
184
185
 
185
186
  request_headers = {}
187
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
186
188
 
187
189
  # Set Headers
188
190
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -238,8 +240,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
238
240
  #
239
241
  # @return [PermissionGetResult] operation results.
240
242
  #
241
- def list_for_resource_group_next(next_page_link, custom_headers = nil)
242
- response = list_for_resource_group_next_async(next_page_link, custom_headers).value!
243
+ def list_for_resource_group_next(next_page_link, custom_headers:nil)
244
+ response = list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
243
245
  response.body unless response.nil?
244
246
  end
245
247
 
@@ -253,8 +255,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
253
255
  #
254
256
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
255
257
  #
256
- def list_for_resource_group_next_with_http_info(next_page_link, custom_headers = nil)
257
- list_for_resource_group_next_async(next_page_link, custom_headers).value!
258
+ def list_for_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
259
+ list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
258
260
  end
259
261
 
260
262
  #
@@ -267,11 +269,12 @@ module Azure::Authorization::Mgmt::V2015_07_01
267
269
  #
268
270
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
269
271
  #
270
- def list_for_resource_group_next_async(next_page_link, custom_headers = nil)
272
+ def list_for_resource_group_next_async(next_page_link, custom_headers:nil)
271
273
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
272
274
 
273
275
 
274
276
  request_headers = {}
277
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
275
278
 
276
279
  # Set Headers
277
280
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -325,8 +328,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
325
328
  #
326
329
  # @return [PermissionGetResult] operation results.
327
330
  #
328
- def list_for_resource_next(next_page_link, custom_headers = nil)
329
- response = list_for_resource_next_async(next_page_link, custom_headers).value!
331
+ def list_for_resource_next(next_page_link, custom_headers:nil)
332
+ response = list_for_resource_next_async(next_page_link, custom_headers:custom_headers).value!
330
333
  response.body unless response.nil?
331
334
  end
332
335
 
@@ -340,8 +343,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
340
343
  #
341
344
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
342
345
  #
343
- def list_for_resource_next_with_http_info(next_page_link, custom_headers = nil)
344
- list_for_resource_next_async(next_page_link, custom_headers).value!
346
+ def list_for_resource_next_with_http_info(next_page_link, custom_headers:nil)
347
+ list_for_resource_next_async(next_page_link, custom_headers:custom_headers).value!
345
348
  end
346
349
 
347
350
  #
@@ -354,11 +357,12 @@ module Azure::Authorization::Mgmt::V2015_07_01
354
357
  #
355
358
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
356
359
  #
357
- def list_for_resource_next_async(next_page_link, custom_headers = nil)
360
+ def list_for_resource_next_async(next_page_link, custom_headers:nil)
358
361
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
359
362
 
360
363
 
361
364
  request_headers = {}
365
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
362
366
 
363
367
  # Set Headers
364
368
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -413,12 +417,12 @@ module Azure::Authorization::Mgmt::V2015_07_01
413
417
  # @return [PermissionGetResult] which provide lazy access to pages of the
414
418
  # response.
415
419
  #
416
- def list_for_resource_group_as_lazy(resource_group_name, custom_headers = nil)
417
- response = list_for_resource_group_async(resource_group_name, custom_headers).value!
420
+ def list_for_resource_group_as_lazy(resource_group_name, custom_headers:nil)
421
+ response = list_for_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
418
422
  unless response.nil?
419
423
  page = response.body
420
424
  page.next_method = Proc.new do |next_page_link|
421
- list_for_resource_group_next_async(next_page_link, custom_headers)
425
+ list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers)
422
426
  end
423
427
  page
424
428
  end
@@ -441,12 +445,12 @@ module Azure::Authorization::Mgmt::V2015_07_01
441
445
  # @return [PermissionGetResult] which provide lazy access to pages of the
442
446
  # response.
443
447
  #
444
- def list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers = nil)
445
- response = list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers).value!
448
+ def list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers:nil)
449
+ response = list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers:custom_headers).value!
446
450
  unless response.nil?
447
451
  page = response.body
448
452
  page.next_method = Proc.new do |next_page_link|
449
- list_for_resource_next_async(next_page_link, custom_headers)
453
+ list_for_resource_next_async(next_page_link, custom_headers:custom_headers)
450
454
  end
451
455
  page
452
456
  end
@@ -37,8 +37,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
37
37
  #
38
38
  # @return [ProviderOperationsMetadata] operation results.
39
39
  #
40
- def get(resource_provider_namespace, api_version, expand = 'resourceTypes', custom_headers = nil)
41
- response = get_async(resource_provider_namespace, api_version, expand, custom_headers).value!
40
+ def get(resource_provider_namespace, api_version, expand:'resourceTypes', custom_headers:nil)
41
+ response = get_async(resource_provider_namespace, api_version, expand:expand, custom_headers:custom_headers).value!
42
42
  response.body unless response.nil?
43
43
  end
44
44
 
@@ -54,8 +54,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
54
54
  #
55
55
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
56
56
  #
57
- def get_with_http_info(resource_provider_namespace, api_version, expand = 'resourceTypes', custom_headers = nil)
58
- get_async(resource_provider_namespace, api_version, expand, custom_headers).value!
57
+ def get_with_http_info(resource_provider_namespace, api_version, expand:'resourceTypes', custom_headers:nil)
58
+ get_async(resource_provider_namespace, api_version, expand:expand, custom_headers:custom_headers).value!
59
59
  end
60
60
 
61
61
  #
@@ -70,12 +70,13 @@ module Azure::Authorization::Mgmt::V2015_07_01
70
70
  #
71
71
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
72
72
  #
73
- def get_async(resource_provider_namespace, api_version, expand = 'resourceTypes', custom_headers = nil)
73
+ def get_async(resource_provider_namespace, api_version, expand:'resourceTypes', custom_headers:nil)
74
74
  fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
75
75
  fail ArgumentError, 'api_version is nil' if api_version.nil?
76
76
 
77
77
 
78
78
  request_headers = {}
79
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
79
80
 
80
81
  # Set Headers
81
82
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -130,8 +131,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
130
131
  #
131
132
  # @return [Array<ProviderOperationsMetadata>] operation results.
132
133
  #
133
- def list(api_version, expand = 'resourceTypes', custom_headers = nil)
134
- first_page = list_as_lazy(api_version, expand, custom_headers)
134
+ def list(api_version, expand:'resourceTypes', custom_headers:nil)
135
+ first_page = list_as_lazy(api_version, expand:expand, custom_headers:custom_headers)
135
136
  first_page.get_all_items
136
137
  end
137
138
 
@@ -145,8 +146,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
145
146
  #
146
147
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
147
148
  #
148
- def list_with_http_info(api_version, expand = 'resourceTypes', custom_headers = nil)
149
- list_async(api_version, expand, custom_headers).value!
149
+ def list_with_http_info(api_version, expand:'resourceTypes', custom_headers:nil)
150
+ list_async(api_version, expand:expand, custom_headers:custom_headers).value!
150
151
  end
151
152
 
152
153
  #
@@ -159,11 +160,12 @@ module Azure::Authorization::Mgmt::V2015_07_01
159
160
  #
160
161
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
161
162
  #
162
- def list_async(api_version, expand = 'resourceTypes', custom_headers = nil)
163
+ def list_async(api_version, expand:'resourceTypes', custom_headers:nil)
163
164
  fail ArgumentError, 'api_version is nil' if api_version.nil?
164
165
 
165
166
 
166
167
  request_headers = {}
168
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
167
169
 
168
170
  # Set Headers
169
171
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -217,8 +219,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
217
219
  #
218
220
  # @return [ProviderOperationsMetadataListResult] operation results.
219
221
  #
220
- def list_next(next_page_link, custom_headers = nil)
221
- response = list_next_async(next_page_link, custom_headers).value!
222
+ def list_next(next_page_link, custom_headers:nil)
223
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
222
224
  response.body unless response.nil?
223
225
  end
224
226
 
@@ -232,8 +234,8 @@ module Azure::Authorization::Mgmt::V2015_07_01
232
234
  #
233
235
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
234
236
  #
235
- def list_next_with_http_info(next_page_link, custom_headers = nil)
236
- list_next_async(next_page_link, custom_headers).value!
237
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
238
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
237
239
  end
238
240
 
239
241
  #
@@ -246,11 +248,12 @@ module Azure::Authorization::Mgmt::V2015_07_01
246
248
  #
247
249
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
248
250
  #
249
- def list_next_async(next_page_link, custom_headers = nil)
251
+ def list_next_async(next_page_link, custom_headers:nil)
250
252
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
251
253
 
252
254
 
253
255
  request_headers = {}
256
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
254
257
 
255
258
  # Set Headers
256
259
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -305,12 +308,12 @@ module Azure::Authorization::Mgmt::V2015_07_01
305
308
  # @return [ProviderOperationsMetadataListResult] which provide lazy access to
306
309
  # pages of the response.
307
310
  #
308
- def list_as_lazy(api_version, expand = 'resourceTypes', custom_headers = nil)
309
- response = list_async(api_version, expand, custom_headers).value!
311
+ def list_as_lazy(api_version, expand:'resourceTypes', custom_headers:nil)
312
+ response = list_async(api_version, expand:expand, custom_headers:custom_headers).value!
310
313
  unless response.nil?
311
314
  page = response.body
312
315
  page.next_method = Proc.new do |next_page_link|
313
- list_next_async(next_page_link, custom_headers)
316
+ list_next_async(next_page_link, custom_headers:custom_headers)
314
317
  end
315
318
  page
316
319
  end