azure_mgmt_locks 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: ae082aedcd17c46d4002122d91c2936263dd262b
4
- data.tar.gz: a5421e6403c3ed0d348e829021982c51103f4981
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NmJlYmJlOTk2ZjRkZDVkYjI2ZThiMmVkMWNhYWEwN2QzZTgwYWIxMg==
5
+ data.tar.gz: !binary |-
6
+ NmVkNGZkOTgzNDVhYWFkZmRjN2U1MzlmYWU5ZWYwNjc0NjJmYTI2OQ==
5
7
  SHA512:
6
- metadata.gz: ee9fb49134baa27b707aa2395cc99e7d77874504fb405c5f1ad3a684ccb0e125acf4c5856d1d57104c3c17b047bad7b8b73d2c647414c47f5d41f6ca68013801
7
- data.tar.gz: 99b0d1497d17dad0a9372768c3421c8939f3b4a8694156c3b472d6af2f94888f541476de01869fab05d9c940e5dcc1bffb06ceafc23942ea649f8362471e2dfd
8
+ metadata.gz: !binary |-
9
+ OGIwZTA5NjY5MjMwNjAxNDJmOTZhODU1MDAwYmE4NTliZGM2MTU2OTI5YTc1
10
+ YTZiMmZkNjRkMWVhM2RiOTA1OTcwMjYzMTA0MzFkY2JlZDQ0MDQ5N2E2YjVj
11
+ NTJkNDJlMzA5MTljNzRjMTM0MDczZmM5NGEyYTE1MGFjN2NjM2U=
12
+ data.tar.gz: !binary |-
13
+ Y2ZhNTZjMWYzNDgwYzRhY2MzYmZmNjA1Zjg4OGRlODViMzRmNWUyNzQ3ZTVj
14
+ ZTE2OGIyZWMwODBkZDI4MmI5ZTRjODg2ZTU5YjU0YWExZjY1MThlZDk1NTEx
15
+ YzBiYWNhM2EwMWE3MTUwOTRmM2FlOGI0OTZjZmRjOTM4YmJjYzY=
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.add_development_dependency 'rake', '~> 10'
30
30
  spec.add_development_dependency 'rspec', '~> 3'
31
31
  spec.add_development_dependency 'dotenv', '~> 2'
32
- spec.add_development_dependency 'azure_mgmt_resources', '~> 0.2'
32
+ spec.add_development_dependency 'azure_mgmt_resources', '~> 0.3'
33
33
 
34
- spec.add_runtime_dependency 'ms_rest_azure', '~> 0.2.0'
34
+ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.2.3'
35
35
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -21,7 +21,7 @@ require 'ms_rest_azure'
21
21
 
22
22
  module Azure::ARM::Locks
23
23
  autoload :ManagementLocks, 'azure_mgmt_locks/management_locks.rb'
24
- autoload :LockManagementClient, 'azure_mgmt_locks/lock_management_client.rb'
24
+ autoload :ManagementLockClient, 'azure_mgmt_locks/management_lock_client.rb'
25
25
 
26
26
  module Models
27
27
  autoload :DeploymentExtendedFilter, 'azure_mgmt_locks/models/deployment_extended_filter.rb'
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -7,7 +7,7 @@ module Azure::ARM::Locks
7
7
  #
8
8
  # A service client - single point of access to the REST API.
9
9
  #
10
- class LockManagementClient < MsRestAzure::AzureServiceClient
10
+ class ManagementLockClient < MsRestAzure::AzureServiceClient
11
11
  include Azure::ARM::Locks::Models
12
12
  include MsRestAzure
13
13
 
@@ -44,7 +44,7 @@ module Azure::ARM::Locks
44
44
  attr_reader :management_locks
45
45
 
46
46
  #
47
- # Creates initializes a new instance of the LockManagementClient class.
47
+ # Creates initializes a new instance of the ManagementLockClient class.
48
48
  # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
49
49
  # @param base_url [String] the base URI of the service.
50
50
  # @param options [Array] filters to be applied to the HTTP requests.
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -19,7 +19,7 @@ module Azure::ARM::Locks
19
19
  @client = client
20
20
  end
21
21
 
22
- # @return reference to the LockManagementClient
22
+ # @return reference to the ManagementLockClient
23
23
  attr_reader :client
24
24
 
25
25
  #
@@ -28,13 +28,43 @@ module Azure::ARM::Locks
28
28
  # @param resource_group_name [String] The resource group name.
29
29
  # @param lock_name [String] The lock name.
30
30
  # @param parameters [ManagementLockObject] The management lock parameters.
31
- # @param [Hash{String => String}] The hash of custom headers need to be
32
- # applied to HTTP request.
31
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
32
+ # will be added to the HTTP request.
33
33
  #
34
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
35
- # response.
34
+ # @return [ManagementLockObject] operation results.
36
35
  #
37
36
  def create_or_update_at_resource_group_level(resource_group_name, lock_name, parameters, custom_headers = nil)
37
+ response = create_or_update_at_resource_group_level_async(resource_group_name, lock_name, parameters, custom_headers).value!
38
+ response.body unless response.nil?
39
+ end
40
+
41
+ #
42
+ # Create or update a management lock at the resource group level.
43
+ #
44
+ # @param resource_group_name [String] The resource group name.
45
+ # @param lock_name [String] The lock name.
46
+ # @param parameters [ManagementLockObject] The management lock parameters.
47
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
48
+ # will be added to the HTTP request.
49
+ #
50
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
51
+ #
52
+ def create_or_update_at_resource_group_level_with_http_info(resource_group_name, lock_name, parameters, custom_headers = nil)
53
+ create_or_update_at_resource_group_level_async(resource_group_name, lock_name, parameters, custom_headers).value!
54
+ end
55
+
56
+ #
57
+ # Create or update a management lock at the resource group level.
58
+ #
59
+ # @param resource_group_name [String] The resource group name.
60
+ # @param lock_name [String] The lock name.
61
+ # @param parameters [ManagementLockObject] The management lock parameters.
62
+ # @param [Hash{String => String}] A hash of custom headers that will be added
63
+ # to the HTTP request.
64
+ #
65
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
66
+ #
67
+ def create_or_update_at_resource_group_level_async(resource_group_name, lock_name, parameters, custom_headers = nil)
38
68
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
39
69
  fail ArgumentError, 'lock_name is nil' if lock_name.nil?
40
70
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -52,7 +82,7 @@ module Azure::ARM::Locks
52
82
  unless parameters.nil?
53
83
  parameters = ManagementLockObject.serialize_object(parameters)
54
84
  end
55
- request_content = JSON.generate(parameters, quirks_mode: true)
85
+ request_content = parameters != nil ? JSON.generate(parameters, quirks_mode: true) : nil
56
86
  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}'
57
87
  options = {
58
88
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -61,7 +91,10 @@ module Azure::ARM::Locks
61
91
  body: request_content,
62
92
  headers: request_headers.merge(custom_headers || {})
63
93
  }
64
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :put, options)
94
+
95
+ request_url = @base_url || @client.base_url
96
+
97
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
65
98
  promise = request.run_promise do |req|
66
99
  @client.credentials.sign_request(req) unless @client.credentials.nil?
67
100
  end
@@ -120,13 +153,55 @@ module Azure::ARM::Locks
120
153
  # @param lock_name [String] The name of lock.
121
154
  # @param parameters [ManagementLockObject] Create or update management lock
122
155
  # parameters.
123
- # @param [Hash{String => String}] The hash of custom headers need to be
124
- # applied to HTTP request.
156
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
157
+ # will be added to the HTTP request.
125
158
  #
126
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
127
- # response.
159
+ # @return [ManagementLockObject] operation results.
128
160
  #
129
161
  def create_or_update_at_resource_level(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, parameters, custom_headers = nil)
162
+ response = create_or_update_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, parameters, custom_headers).value!
163
+ response.body unless response.nil?
164
+ end
165
+
166
+ #
167
+ # Create or update a management lock at the resource level or any level below
168
+ # resource.
169
+ #
170
+ # @param resource_group_name [String] The name of the resource group.
171
+ # @param resource_provider_namespace [String] Resource identity.
172
+ # @param parent_resource_path [String] Resource identity.
173
+ # @param resource_type [String] Resource identity.
174
+ # @param resource_name [String] Resource identity.
175
+ # @param lock_name [String] The name of lock.
176
+ # @param parameters [ManagementLockObject] Create or update management lock
177
+ # parameters.
178
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
179
+ # will be added to the HTTP request.
180
+ #
181
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
182
+ #
183
+ def create_or_update_at_resource_level_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, parameters, custom_headers = nil)
184
+ create_or_update_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, parameters, custom_headers).value!
185
+ end
186
+
187
+ #
188
+ # Create or update a management lock at the resource level or any level below
189
+ # resource.
190
+ #
191
+ # @param resource_group_name [String] The name of the resource group.
192
+ # @param resource_provider_namespace [String] Resource identity.
193
+ # @param parent_resource_path [String] Resource identity.
194
+ # @param resource_type [String] Resource identity.
195
+ # @param resource_name [String] Resource identity.
196
+ # @param lock_name [String] The name of lock.
197
+ # @param parameters [ManagementLockObject] Create or update management lock
198
+ # parameters.
199
+ # @param [Hash{String => String}] A hash of custom headers that will be added
200
+ # to the HTTP request.
201
+ #
202
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
203
+ #
204
+ def create_or_update_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, parameters, custom_headers = nil)
130
205
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
131
206
  fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
132
207
  fail ArgumentError, 'parent_resource_path is nil' if parent_resource_path.nil?
@@ -148,7 +223,7 @@ module Azure::ARM::Locks
148
223
  unless parameters.nil?
149
224
  parameters = ManagementLockObject.serialize_object(parameters)
150
225
  end
151
- request_content = JSON.generate(parameters, quirks_mode: true)
226
+ request_content = parameters != nil ? JSON.generate(parameters, quirks_mode: true) : nil
152
227
  path_template = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}'
153
228
  options = {
154
229
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -158,7 +233,10 @@ module Azure::ARM::Locks
158
233
  body: request_content,
159
234
  headers: request_headers.merge(custom_headers || {})
160
235
  }
161
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :put, options)
236
+
237
+ request_url = @base_url || @client.base_url
238
+
239
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
162
240
  promise = request.run_promise do |req|
163
241
  @client.credentials.sign_request(req) unless @client.credentials.nil?
164
242
  end
@@ -214,13 +292,48 @@ module Azure::ARM::Locks
214
292
  # @param resource_type [String] Resource identity.
215
293
  # @param resource_name [String] Resource identity.
216
294
  # @param lock_name [String] The name of lock.
217
- # @param [Hash{String => String}] The hash of custom headers need to be
218
- # applied to HTTP request.
295
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
296
+ # will be added to the HTTP request.
219
297
  #
220
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
221
- # response.
222
298
  #
223
299
  def delete_at_resource_level(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers = nil)
300
+ response = delete_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers).value!
301
+ nil
302
+ end
303
+
304
+ #
305
+ # Deletes the management lock of a resource or any level below resource.
306
+ #
307
+ # @param resource_group_name [String] The name of the resource group.
308
+ # @param resource_provider_namespace [String] Resource identity.
309
+ # @param parent_resource_path [String] Resource identity.
310
+ # @param resource_type [String] Resource identity.
311
+ # @param resource_name [String] Resource identity.
312
+ # @param lock_name [String] The name of lock.
313
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
314
+ # will be added to the HTTP request.
315
+ #
316
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
317
+ #
318
+ def delete_at_resource_level_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers = nil)
319
+ delete_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers).value!
320
+ end
321
+
322
+ #
323
+ # Deletes the management lock of a resource or any level below resource.
324
+ #
325
+ # @param resource_group_name [String] The name of the resource group.
326
+ # @param resource_provider_namespace [String] Resource identity.
327
+ # @param parent_resource_path [String] Resource identity.
328
+ # @param resource_type [String] Resource identity.
329
+ # @param resource_name [String] Resource identity.
330
+ # @param lock_name [String] The name of lock.
331
+ # @param [Hash{String => String}] A hash of custom headers that will be added
332
+ # to the HTTP request.
333
+ #
334
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
335
+ #
336
+ def delete_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers = nil)
224
337
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
225
338
  fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
226
339
  fail ArgumentError, 'parent_resource_path is nil' if parent_resource_path.nil?
@@ -242,7 +355,10 @@ module Azure::ARM::Locks
242
355
  query_params: {'api-version' => @client.api_version},
243
356
  headers: request_headers.merge(custom_headers || {})
244
357
  }
245
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :delete, options)
358
+
359
+ request_url = @base_url || @client.base_url
360
+
361
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
246
362
  promise = request.run_promise do |req|
247
363
  @client.credentials.sign_request(req) unless @client.credentials.nil?
248
364
  end
@@ -270,13 +386,41 @@ module Azure::ARM::Locks
270
386
  #
271
387
  # @param lock_name [String] The name of lock.
272
388
  # @param parameters [ManagementLockObject] The management lock parameters.
273
- # @param [Hash{String => String}] The hash of custom headers need to be
274
- # applied to HTTP request.
389
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
390
+ # will be added to the HTTP request.
275
391
  #
276
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
277
- # response.
392
+ # @return [ManagementLockObject] operation results.
278
393
  #
279
394
  def create_or_update_at_subscription_level(lock_name, parameters, custom_headers = nil)
395
+ response = create_or_update_at_subscription_level_async(lock_name, parameters, custom_headers).value!
396
+ response.body unless response.nil?
397
+ end
398
+
399
+ #
400
+ # Create or update a management lock at the subscription level.
401
+ #
402
+ # @param lock_name [String] The name of lock.
403
+ # @param parameters [ManagementLockObject] The management lock parameters.
404
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
405
+ # will be added to the HTTP request.
406
+ #
407
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
408
+ #
409
+ def create_or_update_at_subscription_level_with_http_info(lock_name, parameters, custom_headers = nil)
410
+ create_or_update_at_subscription_level_async(lock_name, parameters, custom_headers).value!
411
+ end
412
+
413
+ #
414
+ # Create or update a management lock at the subscription level.
415
+ #
416
+ # @param lock_name [String] The name of lock.
417
+ # @param parameters [ManagementLockObject] The management lock parameters.
418
+ # @param [Hash{String => String}] A hash of custom headers that will be added
419
+ # to the HTTP request.
420
+ #
421
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
422
+ #
423
+ def create_or_update_at_subscription_level_async(lock_name, parameters, custom_headers = nil)
280
424
  fail ArgumentError, 'lock_name is nil' if lock_name.nil?
281
425
  fail ArgumentError, 'parameters is nil' if parameters.nil?
282
426
  parameters.validate unless parameters.nil?
@@ -293,7 +437,7 @@ module Azure::ARM::Locks
293
437
  unless parameters.nil?
294
438
  parameters = ManagementLockObject.serialize_object(parameters)
295
439
  end
296
- request_content = JSON.generate(parameters, quirks_mode: true)
440
+ request_content = parameters != nil ? JSON.generate(parameters, quirks_mode: true) : nil
297
441
  path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}'
298
442
  options = {
299
443
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -302,7 +446,10 @@ module Azure::ARM::Locks
302
446
  body: request_content,
303
447
  headers: request_headers.merge(custom_headers || {})
304
448
  }
305
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :put, options)
449
+
450
+ request_url = @base_url || @client.base_url
451
+
452
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
306
453
  promise = request.run_promise do |req|
307
454
  @client.credentials.sign_request(req) unless @client.credentials.nil?
308
455
  end
@@ -353,13 +500,38 @@ module Azure::ARM::Locks
353
500
  # Deletes the management lock of a subscription.
354
501
  #
355
502
  # @param lock_name [String] The name of lock.
356
- # @param [Hash{String => String}] The hash of custom headers need to be
357
- # applied to HTTP request.
503
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
504
+ # will be added to the HTTP request.
358
505
  #
359
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
360
- # response.
361
506
  #
362
507
  def delete_at_subscription_level(lock_name, custom_headers = nil)
508
+ response = delete_at_subscription_level_async(lock_name, custom_headers).value!
509
+ nil
510
+ end
511
+
512
+ #
513
+ # Deletes the management lock of a subscription.
514
+ #
515
+ # @param lock_name [String] The name of lock.
516
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
517
+ # will be added to the HTTP request.
518
+ #
519
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
520
+ #
521
+ def delete_at_subscription_level_with_http_info(lock_name, custom_headers = nil)
522
+ delete_at_subscription_level_async(lock_name, custom_headers).value!
523
+ end
524
+
525
+ #
526
+ # Deletes the management lock of a subscription.
527
+ #
528
+ # @param lock_name [String] The name of lock.
529
+ # @param [Hash{String => String}] A hash of custom headers that will be added
530
+ # to the HTTP request.
531
+ #
532
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
533
+ #
534
+ def delete_at_subscription_level_async(lock_name, custom_headers = nil)
363
535
  fail ArgumentError, 'lock_name is nil' if lock_name.nil?
364
536
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
365
537
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -375,7 +547,10 @@ module Azure::ARM::Locks
375
547
  query_params: {'api-version' => @client.api_version},
376
548
  headers: request_headers.merge(custom_headers || {})
377
549
  }
378
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :delete, options)
550
+
551
+ request_url = @base_url || @client.base_url
552
+
553
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
379
554
  promise = request.run_promise do |req|
380
555
  @client.credentials.sign_request(req) unless @client.credentials.nil?
381
556
  end
@@ -402,13 +577,39 @@ module Azure::ARM::Locks
402
577
  # Gets the management lock of a scope.
403
578
  #
404
579
  # @param lock_name [String] Name of the management lock.
405
- # @param [Hash{String => String}] The hash of custom headers need to be
406
- # applied to HTTP request.
580
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
581
+ # will be added to the HTTP request.
407
582
  #
408
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
409
- # response.
583
+ # @return [ManagementLockObject] operation results.
410
584
  #
411
585
  def get(lock_name, custom_headers = nil)
586
+ response = get_async(lock_name, custom_headers).value!
587
+ response.body unless response.nil?
588
+ end
589
+
590
+ #
591
+ # Gets the management lock of a scope.
592
+ #
593
+ # @param lock_name [String] Name of the management lock.
594
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
595
+ # will be added to the HTTP request.
596
+ #
597
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
598
+ #
599
+ def get_with_http_info(lock_name, custom_headers = nil)
600
+ get_async(lock_name, custom_headers).value!
601
+ end
602
+
603
+ #
604
+ # Gets the management lock of a scope.
605
+ #
606
+ # @param lock_name [String] Name of the management lock.
607
+ # @param [Hash{String => String}] A hash of custom headers that will be added
608
+ # to the HTTP request.
609
+ #
610
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
611
+ #
612
+ def get_async(lock_name, custom_headers = nil)
412
613
  fail ArgumentError, 'lock_name is nil' if lock_name.nil?
413
614
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
414
615
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -424,7 +625,10 @@ module Azure::ARM::Locks
424
625
  query_params: {'api-version' => @client.api_version},
425
626
  headers: request_headers.merge(custom_headers || {})
426
627
  }
427
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
628
+
629
+ request_url = @base_url || @client.base_url
630
+
631
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
428
632
  promise = request.run_promise do |req|
429
633
  @client.credentials.sign_request(req) unless @client.credentials.nil?
430
634
  end
@@ -476,13 +680,40 @@ module Azure::ARM::Locks
476
680
  #
477
681
  # @param resource_group [String] The resource group names.
478
682
  # @param lock_name [String] The name of lock.
479
- # @param [Hash{String => String}] The hash of custom headers need to be
480
- # applied to HTTP request.
683
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
684
+ # will be added to the HTTP request.
481
685
  #
482
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
483
- # response.
484
686
  #
485
687
  def delete_at_resource_group_level(resource_group, lock_name, custom_headers = nil)
688
+ response = delete_at_resource_group_level_async(resource_group, lock_name, custom_headers).value!
689
+ nil
690
+ end
691
+
692
+ #
693
+ # Deletes the management lock of a resource group.
694
+ #
695
+ # @param resource_group [String] The resource group names.
696
+ # @param lock_name [String] The name of lock.
697
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
698
+ # will be added to the HTTP request.
699
+ #
700
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
701
+ #
702
+ def delete_at_resource_group_level_with_http_info(resource_group, lock_name, custom_headers = nil)
703
+ delete_at_resource_group_level_async(resource_group, lock_name, custom_headers).value!
704
+ end
705
+
706
+ #
707
+ # Deletes the management lock of a resource group.
708
+ #
709
+ # @param resource_group [String] The resource group names.
710
+ # @param lock_name [String] The name of lock.
711
+ # @param [Hash{String => String}] A hash of custom headers that will be added
712
+ # to the HTTP request.
713
+ #
714
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
715
+ #
716
+ def delete_at_resource_group_level_async(resource_group, lock_name, custom_headers = nil)
486
717
  fail ArgumentError, 'resource_group is nil' if resource_group.nil?
487
718
  fail ArgumentError, 'lock_name is nil' if lock_name.nil?
488
719
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -499,7 +730,10 @@ module Azure::ARM::Locks
499
730
  query_params: {'api-version' => @client.api_version},
500
731
  headers: request_headers.merge(custom_headers || {})
501
732
  }
502
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :delete, options)
733
+
734
+ request_url = @base_url || @client.base_url
735
+
736
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
503
737
  promise = request.run_promise do |req|
504
738
  @client.credentials.sign_request(req) unless @client.credentials.nil?
505
739
  end
@@ -527,13 +761,41 @@ module Azure::ARM::Locks
527
761
  #
528
762
  # @param resource_group_name [String] Resource group name.
529
763
  # @param filter [String] The filter to apply on the operation.
530
- # @param [Hash{String => String}] The hash of custom headers need to be
531
- # applied to HTTP request.
764
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
765
+ # will be added to the HTTP request.
532
766
  #
533
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
534
- # response.
767
+ # @return [ManagementLockListResult] operation results.
535
768
  #
536
769
  def list_at_resource_group_level(resource_group_name, filter = nil, custom_headers = nil)
770
+ response = list_at_resource_group_level_async(resource_group_name, filter, custom_headers).value!
771
+ response.body unless response.nil?
772
+ end
773
+
774
+ #
775
+ # Gets all the management locks of a resource group.
776
+ #
777
+ # @param resource_group_name [String] Resource group name.
778
+ # @param filter [String] The filter to apply on the operation.
779
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
780
+ # will be added to the HTTP request.
781
+ #
782
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
783
+ #
784
+ def list_at_resource_group_level_with_http_info(resource_group_name, filter = nil, custom_headers = nil)
785
+ list_at_resource_group_level_async(resource_group_name, filter, custom_headers).value!
786
+ end
787
+
788
+ #
789
+ # Gets all the management locks of a resource group.
790
+ #
791
+ # @param resource_group_name [String] Resource group name.
792
+ # @param filter [String] The filter to apply on the operation.
793
+ # @param [Hash{String => String}] A hash of custom headers that will be added
794
+ # to the HTTP request.
795
+ #
796
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
797
+ #
798
+ def list_at_resource_group_level_async(resource_group_name, filter = nil, custom_headers = nil)
537
799
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
538
800
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
539
801
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -549,7 +811,10 @@ module Azure::ARM::Locks
549
811
  query_params: {'$filter' => filter,'api-version' => @client.api_version},
550
812
  headers: request_headers.merge(custom_headers || {})
551
813
  }
552
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
814
+
815
+ request_url = @base_url || @client.base_url
816
+
817
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
553
818
  promise = request.run_promise do |req|
554
819
  @client.credentials.sign_request(req) unless @client.credentials.nil?
555
820
  end
@@ -594,13 +859,51 @@ module Azure::ARM::Locks
594
859
  # @param resource_type [String] Resource identity.
595
860
  # @param resource_name [String] Resource identity.
596
861
  # @param filter [String] The filter to apply on the operation.
597
- # @param [Hash{String => String}] The hash of custom headers need to be
598
- # applied to HTTP request.
862
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
863
+ # will be added to the HTTP request.
599
864
  #
600
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
601
- # response.
865
+ # @return [ManagementLockListResult] operation results.
602
866
  #
603
867
  def list_at_resource_level(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil)
868
+ response = list_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter, custom_headers).value!
869
+ response.body unless response.nil?
870
+ end
871
+
872
+ #
873
+ # Gets all the management locks of a resource or any level below resource.
874
+ #
875
+ # @param resource_group_name [String] The name of the resource group. The name
876
+ # is case insensitive.
877
+ # @param resource_provider_namespace [String] Resource identity.
878
+ # @param parent_resource_path [String] Resource identity.
879
+ # @param resource_type [String] Resource identity.
880
+ # @param resource_name [String] Resource identity.
881
+ # @param filter [String] The filter to apply on the operation.
882
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
883
+ # will be added to the HTTP request.
884
+ #
885
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
886
+ #
887
+ def list_at_resource_level_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil)
888
+ list_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter, custom_headers).value!
889
+ end
890
+
891
+ #
892
+ # Gets all the management locks of a resource or any level below resource.
893
+ #
894
+ # @param resource_group_name [String] The name of the resource group. The name
895
+ # is case insensitive.
896
+ # @param resource_provider_namespace [String] Resource identity.
897
+ # @param parent_resource_path [String] Resource identity.
898
+ # @param resource_type [String] Resource identity.
899
+ # @param resource_name [String] Resource identity.
900
+ # @param filter [String] The filter to apply on the operation.
901
+ # @param [Hash{String => String}] A hash of custom headers that will be added
902
+ # to the HTTP request.
903
+ #
904
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
905
+ #
906
+ def list_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil)
604
907
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
605
908
  fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
606
909
  fail ArgumentError, 'parent_resource_path is nil' if parent_resource_path.nil?
@@ -621,7 +924,10 @@ module Azure::ARM::Locks
621
924
  query_params: {'$filter' => filter,'api-version' => @client.api_version},
622
925
  headers: request_headers.merge(custom_headers || {})
623
926
  }
624
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
927
+
928
+ request_url = @base_url || @client.base_url
929
+
930
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
625
931
  promise = request.run_promise do |req|
626
932
  @client.credentials.sign_request(req) unless @client.credentials.nil?
627
933
  end
@@ -661,13 +967,41 @@ module Azure::ARM::Locks
661
967
  #
662
968
  # @param next_link [String] NextLink from the previous successful call to List
663
969
  # operation.
664
- # @param [Hash{String => String}] The hash of custom headers need to be
665
- # applied to HTTP request.
970
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
971
+ # will be added to the HTTP request.
666
972
  #
667
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
668
- # response.
973
+ # @return [ManagementLockListResult] operation results.
669
974
  #
670
975
  def list_next(next_link, custom_headers = nil)
976
+ response = list_next_async(next_link, custom_headers).value!
977
+ response.body unless response.nil?
978
+ end
979
+
980
+ #
981
+ # Get a list of management locks at resource level or below.
982
+ #
983
+ # @param next_link [String] NextLink from the previous successful call to List
984
+ # operation.
985
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
986
+ # will be added to the HTTP request.
987
+ #
988
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
989
+ #
990
+ def list_next_with_http_info(next_link, custom_headers = nil)
991
+ list_next_async(next_link, custom_headers).value!
992
+ end
993
+
994
+ #
995
+ # Get a list of management locks at resource level or below.
996
+ #
997
+ # @param next_link [String] NextLink from the previous successful call to List
998
+ # operation.
999
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1000
+ # to the HTTP request.
1001
+ #
1002
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1003
+ #
1004
+ def list_next_async(next_link, custom_headers = nil)
671
1005
  fail ArgumentError, 'next_link is nil' if next_link.nil?
672
1006
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
673
1007
  request_headers = {}
@@ -682,7 +1016,10 @@ module Azure::ARM::Locks
682
1016
  skip_encoding_path_params: {'nextLink' => next_link},
683
1017
  headers: request_headers.merge(custom_headers || {})
684
1018
  }
685
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
1019
+
1020
+ request_url = @base_url || @client.base_url
1021
+
1022
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
686
1023
  promise = request.run_promise do |req|
687
1024
  @client.credentials.sign_request(req) unless @client.credentials.nil?
688
1025
  end
@@ -721,13 +1058,39 @@ module Azure::ARM::Locks
721
1058
  # Gets all the management locks of a subscription.
722
1059
  #
723
1060
  # @param filter [String] The filter to apply on the operation.
724
- # @param [Hash{String => String}] The hash of custom headers need to be
725
- # applied to HTTP request.
1061
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1062
+ # will be added to the HTTP request.
726
1063
  #
727
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
728
- # response.
1064
+ # @return [ManagementLockListResult] operation results.
729
1065
  #
730
1066
  def list_at_subscription_level(filter = nil, custom_headers = nil)
1067
+ response = list_at_subscription_level_async(filter, custom_headers).value!
1068
+ response.body unless response.nil?
1069
+ end
1070
+
1071
+ #
1072
+ # Gets all the management locks of a subscription.
1073
+ #
1074
+ # @param filter [String] The filter to apply on the operation.
1075
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1076
+ # will be added to the HTTP request.
1077
+ #
1078
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1079
+ #
1080
+ def list_at_subscription_level_with_http_info(filter = nil, custom_headers = nil)
1081
+ list_at_subscription_level_async(filter, custom_headers).value!
1082
+ end
1083
+
1084
+ #
1085
+ # Gets all the management locks of a subscription.
1086
+ #
1087
+ # @param filter [String] The filter to apply on the operation.
1088
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1089
+ # to the HTTP request.
1090
+ #
1091
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1092
+ #
1093
+ def list_at_subscription_level_async(filter = nil, custom_headers = nil)
731
1094
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
732
1095
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
733
1096
  request_headers = {}
@@ -742,7 +1105,10 @@ module Azure::ARM::Locks
742
1105
  query_params: {'$filter' => filter,'api-version' => @client.api_version},
743
1106
  headers: request_headers.merge(custom_headers || {})
744
1107
  }
745
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
1108
+
1109
+ request_url = @base_url || @client.base_url
1110
+
1111
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
746
1112
  promise = request.run_promise do |req|
747
1113
  @client.credentials.sign_request(req) unless @client.credentials.nil?
748
1114
  end
@@ -782,13 +1148,41 @@ module Azure::ARM::Locks
782
1148
  #
783
1149
  # @param next_page_link [String] The NextLink from the previous successful
784
1150
  # call to List operation.
785
- # @param [Hash{String => String}] The hash of custom headers need to be
786
- # applied to HTTP request.
1151
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1152
+ # will be added to the HTTP request.
787
1153
  #
788
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
789
- # response.
1154
+ # @return [ManagementLockListResult] operation results.
790
1155
  #
791
1156
  def list_at_resource_group_level_next(next_page_link, custom_headers = nil)
1157
+ response = list_at_resource_group_level_next_async(next_page_link, custom_headers).value!
1158
+ response.body unless response.nil?
1159
+ end
1160
+
1161
+ #
1162
+ # Gets all the management locks of a resource group.
1163
+ #
1164
+ # @param next_page_link [String] The NextLink from the previous successful
1165
+ # call to List operation.
1166
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1167
+ # will be added to the HTTP request.
1168
+ #
1169
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1170
+ #
1171
+ def list_at_resource_group_level_next_with_http_info(next_page_link, custom_headers = nil)
1172
+ list_at_resource_group_level_next_async(next_page_link, custom_headers).value!
1173
+ end
1174
+
1175
+ #
1176
+ # Gets all the management locks of a resource group.
1177
+ #
1178
+ # @param next_page_link [String] The NextLink from the previous successful
1179
+ # call to List operation.
1180
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1181
+ # to the HTTP request.
1182
+ #
1183
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1184
+ #
1185
+ def list_at_resource_group_level_next_async(next_page_link, custom_headers = nil)
792
1186
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
793
1187
  request_headers = {}
794
1188
 
@@ -801,7 +1195,10 @@ module Azure::ARM::Locks
801
1195
  skip_encoding_path_params: {'nextLink' => next_page_link},
802
1196
  headers: request_headers.merge(custom_headers || {})
803
1197
  }
804
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
1198
+
1199
+ request_url = @base_url || @client.base_url
1200
+
1201
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
805
1202
  promise = request.run_promise do |req|
806
1203
  @client.credentials.sign_request(req) unless @client.credentials.nil?
807
1204
  end
@@ -841,13 +1238,41 @@ module Azure::ARM::Locks
841
1238
  #
842
1239
  # @param next_page_link [String] The NextLink from the previous successful
843
1240
  # call to List operation.
844
- # @param [Hash{String => String}] The hash of custom headers need to be
845
- # applied to HTTP request.
1241
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1242
+ # will be added to the HTTP request.
846
1243
  #
847
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
848
- # response.
1244
+ # @return [ManagementLockListResult] operation results.
849
1245
  #
850
1246
  def list_at_resource_level_next(next_page_link, custom_headers = nil)
1247
+ response = list_at_resource_level_next_async(next_page_link, custom_headers).value!
1248
+ response.body unless response.nil?
1249
+ end
1250
+
1251
+ #
1252
+ # Gets all the management locks of a resource or any level below resource.
1253
+ #
1254
+ # @param next_page_link [String] The NextLink from the previous successful
1255
+ # call to List operation.
1256
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1257
+ # will be added to the HTTP request.
1258
+ #
1259
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1260
+ #
1261
+ def list_at_resource_level_next_with_http_info(next_page_link, custom_headers = nil)
1262
+ list_at_resource_level_next_async(next_page_link, custom_headers).value!
1263
+ end
1264
+
1265
+ #
1266
+ # Gets all the management locks of a resource or any level below resource.
1267
+ #
1268
+ # @param next_page_link [String] The NextLink from the previous successful
1269
+ # call to List operation.
1270
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1271
+ # to the HTTP request.
1272
+ #
1273
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1274
+ #
1275
+ def list_at_resource_level_next_async(next_page_link, custom_headers = nil)
851
1276
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
852
1277
  request_headers = {}
853
1278
 
@@ -860,7 +1285,10 @@ module Azure::ARM::Locks
860
1285
  skip_encoding_path_params: {'nextLink' => next_page_link},
861
1286
  headers: request_headers.merge(custom_headers || {})
862
1287
  }
863
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
1288
+
1289
+ request_url = @base_url || @client.base_url
1290
+
1291
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
864
1292
  promise = request.run_promise do |req|
865
1293
  @client.credentials.sign_request(req) unless @client.credentials.nil?
866
1294
  end
@@ -900,13 +1328,41 @@ module Azure::ARM::Locks
900
1328
  #
901
1329
  # @param next_page_link [String] The NextLink from the previous successful
902
1330
  # call to List operation.
903
- # @param [Hash{String => String}] The hash of custom headers need to be
904
- # applied to HTTP request.
1331
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1332
+ # will be added to the HTTP request.
905
1333
  #
906
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
907
- # response.
1334
+ # @return [ManagementLockListResult] operation results.
908
1335
  #
909
1336
  def list_next_next(next_page_link, custom_headers = nil)
1337
+ response = list_next_next_async(next_page_link, custom_headers).value!
1338
+ response.body unless response.nil?
1339
+ end
1340
+
1341
+ #
1342
+ # Get a list of management locks at resource level or below.
1343
+ #
1344
+ # @param next_page_link [String] The NextLink from the previous successful
1345
+ # call to List operation.
1346
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1347
+ # will be added to the HTTP request.
1348
+ #
1349
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1350
+ #
1351
+ def list_next_next_with_http_info(next_page_link, custom_headers = nil)
1352
+ list_next_next_async(next_page_link, custom_headers).value!
1353
+ end
1354
+
1355
+ #
1356
+ # Get a list of management locks at resource level or below.
1357
+ #
1358
+ # @param next_page_link [String] The NextLink from the previous successful
1359
+ # call to List operation.
1360
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1361
+ # to the HTTP request.
1362
+ #
1363
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1364
+ #
1365
+ def list_next_next_async(next_page_link, custom_headers = nil)
910
1366
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
911
1367
  request_headers = {}
912
1368
 
@@ -919,7 +1375,10 @@ module Azure::ARM::Locks
919
1375
  skip_encoding_path_params: {'nextLink' => next_page_link},
920
1376
  headers: request_headers.merge(custom_headers || {})
921
1377
  }
922
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
1378
+
1379
+ request_url = @base_url || @client.base_url
1380
+
1381
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
923
1382
  promise = request.run_promise do |req|
924
1383
  @client.credentials.sign_request(req) unless @client.credentials.nil?
925
1384
  end
@@ -959,13 +1418,41 @@ module Azure::ARM::Locks
959
1418
  #
960
1419
  # @param next_page_link [String] The NextLink from the previous successful
961
1420
  # call to List operation.
962
- # @param [Hash{String => String}] The hash of custom headers need to be
963
- # applied to HTTP request.
1421
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1422
+ # will be added to the HTTP request.
964
1423
  #
965
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
966
- # response.
1424
+ # @return [ManagementLockListResult] operation results.
967
1425
  #
968
1426
  def list_at_subscription_level_next(next_page_link, custom_headers = nil)
1427
+ response = list_at_subscription_level_next_async(next_page_link, custom_headers).value!
1428
+ response.body unless response.nil?
1429
+ end
1430
+
1431
+ #
1432
+ # Gets all the management locks of a subscription.
1433
+ #
1434
+ # @param next_page_link [String] The NextLink from the previous successful
1435
+ # call to List operation.
1436
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1437
+ # will be added to the HTTP request.
1438
+ #
1439
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1440
+ #
1441
+ def list_at_subscription_level_next_with_http_info(next_page_link, custom_headers = nil)
1442
+ list_at_subscription_level_next_async(next_page_link, custom_headers).value!
1443
+ end
1444
+
1445
+ #
1446
+ # Gets all the management locks of a subscription.
1447
+ #
1448
+ # @param next_page_link [String] The NextLink from the previous successful
1449
+ # call to List operation.
1450
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1451
+ # to the HTTP request.
1452
+ #
1453
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1454
+ #
1455
+ def list_at_subscription_level_next_async(next_page_link, custom_headers = nil)
969
1456
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
970
1457
  request_headers = {}
971
1458
 
@@ -978,7 +1465,10 @@ module Azure::ARM::Locks
978
1465
  skip_encoding_path_params: {'nextLink' => next_page_link},
979
1466
  headers: request_headers.merge(custom_headers || {})
980
1467
  }
981
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
1468
+
1469
+ request_url = @base_url || @client.base_url
1470
+
1471
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
982
1472
  promise = request.run_promise do |req|
983
1473
  @client.credentials.sign_request(req) unless @client.credentials.nil?
984
1474
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,8 +1,8 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::Locks
7
- VERSION = '0.2.1'
7
+ VERSION = '0.3.0'
8
8
  end
metadata CHANGED
@@ -1,111 +1,118 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_locks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: !binary |-
5
+ MC4zLjA=
5
6
  platform: ruby
6
7
  authors:
7
8
  - Microsoft Corporation
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2016-03-11 00:00:00.000000000 Z
12
+ date: 2016-05-23 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: bundler
15
16
  requirement: !ruby/object:Gem::Requirement
16
17
  requirements:
17
- - - "~>"
18
+ - - ~>
18
19
  - !ruby/object:Gem::Version
19
20
  version: '1.9'
20
21
  type: :development
21
22
  prerelease: false
22
23
  version_requirements: !ruby/object:Gem::Requirement
23
24
  requirements:
24
- - - "~>"
25
+ - - ~>
25
26
  - !ruby/object:Gem::Version
26
27
  version: '1.9'
27
28
  - !ruby/object:Gem::Dependency
28
29
  name: rake
29
30
  requirement: !ruby/object:Gem::Requirement
30
31
  requirements:
31
- - - "~>"
32
+ - - ~>
32
33
  - !ruby/object:Gem::Version
33
34
  version: '10'
34
35
  type: :development
35
36
  prerelease: false
36
37
  version_requirements: !ruby/object:Gem::Requirement
37
38
  requirements:
38
- - - "~>"
39
+ - - ~>
39
40
  - !ruby/object:Gem::Version
40
41
  version: '10'
41
42
  - !ruby/object:Gem::Dependency
42
43
  name: rspec
43
44
  requirement: !ruby/object:Gem::Requirement
44
45
  requirements:
45
- - - "~>"
46
+ - - ~>
46
47
  - !ruby/object:Gem::Version
47
- version: '3'
48
+ version: !binary |-
49
+ Mw==
48
50
  type: :development
49
51
  prerelease: false
50
52
  version_requirements: !ruby/object:Gem::Requirement
51
53
  requirements:
52
- - - "~>"
54
+ - - ~>
53
55
  - !ruby/object:Gem::Version
54
- version: '3'
56
+ version: !binary |-
57
+ Mw==
55
58
  - !ruby/object:Gem::Dependency
56
59
  name: dotenv
57
60
  requirement: !ruby/object:Gem::Requirement
58
61
  requirements:
59
- - - "~>"
62
+ - - ~>
60
63
  - !ruby/object:Gem::Version
61
64
  version: '2'
62
65
  type: :development
63
66
  prerelease: false
64
67
  version_requirements: !ruby/object:Gem::Requirement
65
68
  requirements:
66
- - - "~>"
69
+ - - ~>
67
70
  - !ruby/object:Gem::Version
68
71
  version: '2'
69
72
  - !ruby/object:Gem::Dependency
70
73
  name: azure_mgmt_resources
71
74
  requirement: !ruby/object:Gem::Requirement
72
75
  requirements:
73
- - - "~>"
76
+ - - ~>
74
77
  - !ruby/object:Gem::Version
75
- version: '0.2'
78
+ version: !binary |-
79
+ MC4z
76
80
  type: :development
77
81
  prerelease: false
78
82
  version_requirements: !ruby/object:Gem::Requirement
79
83
  requirements:
80
- - - "~>"
84
+ - - ~>
81
85
  - !ruby/object:Gem::Version
82
- version: '0.2'
86
+ version: !binary |-
87
+ MC4z
83
88
  - !ruby/object:Gem::Dependency
84
89
  name: ms_rest_azure
85
90
  requirement: !ruby/object:Gem::Requirement
86
91
  requirements:
87
- - - "~>"
92
+ - - ~>
88
93
  - !ruby/object:Gem::Version
89
- version: 0.2.0
94
+ version: !binary |-
95
+ MC4yLjM=
90
96
  type: :runtime
91
97
  prerelease: false
92
98
  version_requirements: !ruby/object:Gem::Requirement
93
99
  requirements:
94
- - - "~>"
100
+ - - ~>
95
101
  - !ruby/object:Gem::Version
96
- version: 0.2.0
102
+ version: !binary |-
103
+ MC4yLjM=
97
104
  description: Microsoft Azure Resource Lock Management Client Library for Ruby
98
105
  email: azrubyteam@microsoft.com
99
106
  executables: []
100
107
  extensions: []
101
108
  extra_rdoc_files: []
102
109
  files:
103
- - ".rspec"
110
+ - .rspec
104
111
  - LICENSE.txt
105
112
  - Rakefile
106
113
  - azure_mgmt_locks.gemspec
107
114
  - lib/azure_mgmt_locks.rb
108
- - lib/azure_mgmt_locks/lock_management_client.rb
115
+ - lib/azure_mgmt_locks/management_lock_client.rb
109
116
  - lib/azure_mgmt_locks/management_locks.rb
110
117
  - lib/azure_mgmt_locks/models/deployment_extended_filter.rb
111
118
  - lib/azure_mgmt_locks/models/generic_resource_filter.rb
@@ -126,17 +133,17 @@ require_paths:
126
133
  - lib
127
134
  required_ruby_version: !ruby/object:Gem::Requirement
128
135
  requirements:
129
- - - ">="
136
+ - - ! '>='
130
137
  - !ruby/object:Gem::Version
131
138
  version: 1.9.3
132
139
  required_rubygems_version: !ruby/object:Gem::Requirement
133
140
  requirements:
134
- - - ">="
141
+ - - ! '>='
135
142
  - !ruby/object:Gem::Version
136
143
  version: '0'
137
144
  requirements: []
138
145
  rubyforge_project:
139
- rubygems_version: 2.4.6
146
+ rubygems_version: 2.4.5
140
147
  signing_key:
141
148
  specification_version: 4
142
149
  summary: Official Ruby client library to consume Microsoft Azure Resource Lock Management