azure_mgmt_locks 0.8.0 → 0.9.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: 76ceb4041b73d99118226412142ff8b559a8c2c8
4
- data.tar.gz: 339d2425092bb14988a8e488405b246d00ed8bb7
3
+ metadata.gz: f59ce690a9bcf3b3a75514a6bbb8115a4a20ef57
4
+ data.tar.gz: 5276cc494a05e38a0bb1160e5289236e63146346
5
5
  SHA512:
6
- metadata.gz: 46c6eaf39fa2499cd31d96a5014909fbdf74acb659d08075169ec3a3be4a219bd1c57c4e53a61121526de13ae2afa71615a9d531c0dfdab0dc1bbd16c5f95495
7
- data.tar.gz: 3592a8896b45e06f3b5f4a05334476210ae3e4b7af172472476a1f5926f2faef1e0e69907afa1920deb444939395e2011603db2ba5e481cb564d1943aa8be72a
6
+ metadata.gz: d1e657037eaddc298bdc358a208945916b2e4b9221826bf07d4a4442fa6958844321d6217534b1722dc2a329339f59199c6c0bf3245bc5091039e8b310e9bd88
7
+ data.tar.gz: 3360159c0e47065e4fbf2625892508f7e53efe19d18fc0fb13fa42c86da37be556fe454ab330376bab30c117de50187405e3536710f88f61cce0cd197fdb72e5
@@ -43,12 +43,11 @@ module Azure::ARM::Locks
43
43
  # @param base_url [String] the base URI of the service.
44
44
  # @param options [Array] filters to be applied to the HTTP requests.
45
45
  #
46
- def initialize(credentials, base_url = nil, options = nil)
46
+ def initialize(credentials = nil, base_url = nil, options = nil)
47
47
  super(credentials, options)
48
48
  @base_url = base_url || 'https://management.azure.com'
49
49
 
50
- fail ArgumentError, 'credentials is nil' if credentials.nil?
51
- fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials)
50
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
52
51
  @credentials = credentials
53
52
 
54
53
  @management_locks = ManagementLocks.new(self)
@@ -61,7 +60,7 @@ module Azure::ARM::Locks
61
60
 
62
61
  #
63
62
  # Makes a request and returns the body of the response.
64
- # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
63
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
65
64
  # @param path [String] the path, relative to {base_url}.
66
65
  # @param options [Hash{String=>String}] specifying any request options like :body.
67
66
  # @return [Hash{String=>String}] containing the body of the response.
@@ -122,7 +121,7 @@ module Azure::ARM::Locks
122
121
  def add_telemetry
123
122
  sdk_information = 'azure_mgmt_locks'
124
123
  if defined? Azure::ARM::Locks::VERSION
125
- sdk_information = "#{sdk_information}/#{Azure::ARM::Locks::VERSION}"
124
+ sdk_information = "#{sdk_information}/#{Azure::ARM::Locks::VERSION}"
126
125
  end
127
126
  add_user_agent_information(sdk_information)
128
127
  end
@@ -347,6 +347,306 @@ module Azure::ARM::Locks
347
347
  promise.execute
348
348
  end
349
349
 
350
+ #
351
+ # Create or update a management lock by scope.
352
+ #
353
+ # @param scope [String] The scope for the lock. When providing a scope for the
354
+ # assignment, use '/subscriptions/{subscriptionId}' for subscriptions,
355
+ # '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for
356
+ # resource groups, and
357
+ # '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'
358
+ # for resources.
359
+ # @param lock_name [String] The name of lock.
360
+ # @param parameters [ManagementLockObject] Create or update management lock
361
+ # parameters.
362
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
363
+ # will be added to the HTTP request.
364
+ #
365
+ # @return [ManagementLockObject] operation results.
366
+ #
367
+ def create_or_update_by_scope(scope, lock_name, parameters, custom_headers = nil)
368
+ response = create_or_update_by_scope_async(scope, lock_name, parameters, custom_headers).value!
369
+ response.body unless response.nil?
370
+ end
371
+
372
+ #
373
+ # Create or update a management lock by scope.
374
+ #
375
+ # @param scope [String] The scope for the lock. When providing a scope for the
376
+ # assignment, use '/subscriptions/{subscriptionId}' for subscriptions,
377
+ # '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for
378
+ # resource groups, and
379
+ # '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'
380
+ # for resources.
381
+ # @param lock_name [String] The name of lock.
382
+ # @param parameters [ManagementLockObject] Create or update management lock
383
+ # parameters.
384
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
385
+ # will be added to the HTTP request.
386
+ #
387
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
388
+ #
389
+ def create_or_update_by_scope_with_http_info(scope, lock_name, parameters, custom_headers = nil)
390
+ create_or_update_by_scope_async(scope, lock_name, parameters, custom_headers).value!
391
+ end
392
+
393
+ #
394
+ # Create or update a management lock by scope.
395
+ #
396
+ # @param scope [String] The scope for the lock. When providing a scope for the
397
+ # assignment, use '/subscriptions/{subscriptionId}' for subscriptions,
398
+ # '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for
399
+ # resource groups, and
400
+ # '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'
401
+ # for resources.
402
+ # @param lock_name [String] The name of lock.
403
+ # @param parameters [ManagementLockObject] Create or update management lock
404
+ # parameters.
405
+ # @param [Hash{String => String}] A hash of custom headers that will be added
406
+ # to the HTTP request.
407
+ #
408
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
409
+ #
410
+ def create_or_update_by_scope_async(scope, lock_name, parameters, custom_headers = nil)
411
+ fail ArgumentError, 'scope is nil' if scope.nil?
412
+ fail ArgumentError, 'lock_name is nil' if lock_name.nil?
413
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
414
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
415
+
416
+
417
+ request_headers = {}
418
+
419
+ # Set Headers
420
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
421
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
422
+
423
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
424
+
425
+ # Serialize Request
426
+ request_mapper = ManagementLockObject.mapper()
427
+ request_content = @client.serialize(request_mapper, parameters, 'parameters')
428
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
429
+
430
+ path_template = '/{scope}/providers/Microsoft.Authorization/locks/{lockName}'
431
+
432
+ request_url = @base_url || @client.base_url
433
+
434
+ options = {
435
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
436
+ path_params: {'scope' => scope,'lockName' => lock_name},
437
+ query_params: {'api-version' => @client.api_version},
438
+ body: request_content,
439
+ headers: request_headers.merge(custom_headers || {}),
440
+ base_url: request_url
441
+ }
442
+ promise = @client.make_request_async(:put, path_template, options)
443
+
444
+ promise = promise.then do |result|
445
+ http_response = result.response
446
+ status_code = http_response.status
447
+ response_content = http_response.body
448
+ unless status_code == 200 || status_code == 201
449
+ error_model = JSON.load(response_content)
450
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
451
+ end
452
+
453
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
454
+ # Deserialize Response
455
+ if status_code == 200
456
+ begin
457
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
458
+ result_mapper = ManagementLockObject.mapper()
459
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
460
+ rescue Exception => e
461
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
462
+ end
463
+ end
464
+ # Deserialize Response
465
+ if status_code == 201
466
+ begin
467
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
468
+ result_mapper = ManagementLockObject.mapper()
469
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
470
+ rescue Exception => e
471
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
472
+ end
473
+ end
474
+
475
+ result
476
+ end
477
+
478
+ promise.execute
479
+ end
480
+
481
+ #
482
+ # Delete a management lock by scope.
483
+ #
484
+ # @param scope [String] The scope for the lock.
485
+ # @param lock_name [String] The name of lock.
486
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
487
+ # will be added to the HTTP request.
488
+ #
489
+ #
490
+ def delete_by_scope(scope, lock_name, custom_headers = nil)
491
+ response = delete_by_scope_async(scope, lock_name, custom_headers).value!
492
+ nil
493
+ end
494
+
495
+ #
496
+ # Delete a management lock by scope.
497
+ #
498
+ # @param scope [String] The scope for the lock.
499
+ # @param lock_name [String] The name of lock.
500
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
501
+ # will be added to the HTTP request.
502
+ #
503
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
504
+ #
505
+ def delete_by_scope_with_http_info(scope, lock_name, custom_headers = nil)
506
+ delete_by_scope_async(scope, lock_name, custom_headers).value!
507
+ end
508
+
509
+ #
510
+ # Delete a management lock by scope.
511
+ #
512
+ # @param scope [String] The scope for the lock.
513
+ # @param lock_name [String] The name of lock.
514
+ # @param [Hash{String => String}] A hash of custom headers that will be added
515
+ # to the HTTP request.
516
+ #
517
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
518
+ #
519
+ def delete_by_scope_async(scope, lock_name, custom_headers = nil)
520
+ fail ArgumentError, 'scope is nil' if scope.nil?
521
+ fail ArgumentError, 'lock_name is nil' if lock_name.nil?
522
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
523
+
524
+
525
+ request_headers = {}
526
+
527
+ # Set Headers
528
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
529
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
530
+ path_template = '/{scope}/providers/Microsoft.Authorization/locks/{lockName}'
531
+
532
+ request_url = @base_url || @client.base_url
533
+
534
+ options = {
535
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
536
+ path_params: {'scope' => scope,'lockName' => lock_name},
537
+ query_params: {'api-version' => @client.api_version},
538
+ headers: request_headers.merge(custom_headers || {}),
539
+ base_url: request_url
540
+ }
541
+ promise = @client.make_request_async(:delete, path_template, options)
542
+
543
+ promise = promise.then do |result|
544
+ http_response = result.response
545
+ status_code = http_response.status
546
+ response_content = http_response.body
547
+ unless status_code == 204 || status_code == 200
548
+ error_model = JSON.load(response_content)
549
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
550
+ end
551
+
552
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
553
+
554
+ result
555
+ end
556
+
557
+ promise.execute
558
+ end
559
+
560
+ #
561
+ # Get a management lock by scope.
562
+ #
563
+ # @param scope [String] The scope for the lock.
564
+ # @param lock_name [String] The name of lock.
565
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
566
+ # will be added to the HTTP request.
567
+ #
568
+ # @return [ManagementLockObject] operation results.
569
+ #
570
+ def get_by_scope(scope, lock_name, custom_headers = nil)
571
+ response = get_by_scope_async(scope, lock_name, custom_headers).value!
572
+ response.body unless response.nil?
573
+ end
574
+
575
+ #
576
+ # Get a management lock by scope.
577
+ #
578
+ # @param scope [String] The scope for the lock.
579
+ # @param lock_name [String] The name of lock.
580
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
581
+ # will be added to the HTTP request.
582
+ #
583
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
584
+ #
585
+ def get_by_scope_with_http_info(scope, lock_name, custom_headers = nil)
586
+ get_by_scope_async(scope, lock_name, custom_headers).value!
587
+ end
588
+
589
+ #
590
+ # Get a management lock by scope.
591
+ #
592
+ # @param scope [String] The scope for the lock.
593
+ # @param lock_name [String] The name of lock.
594
+ # @param [Hash{String => String}] A hash of custom headers that will be added
595
+ # to the HTTP request.
596
+ #
597
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
598
+ #
599
+ def get_by_scope_async(scope, lock_name, custom_headers = nil)
600
+ fail ArgumentError, 'scope is nil' if scope.nil?
601
+ fail ArgumentError, 'lock_name is nil' if lock_name.nil?
602
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
603
+
604
+
605
+ request_headers = {}
606
+
607
+ # Set Headers
608
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
609
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
610
+ path_template = '/{scope}/providers/Microsoft.Authorization/locks/{lockName}'
611
+
612
+ request_url = @base_url || @client.base_url
613
+
614
+ options = {
615
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
616
+ path_params: {'scope' => scope,'lockName' => lock_name},
617
+ query_params: {'api-version' => @client.api_version},
618
+ headers: request_headers.merge(custom_headers || {}),
619
+ base_url: request_url
620
+ }
621
+ promise = @client.make_request_async(:get, path_template, options)
622
+
623
+ promise = promise.then do |result|
624
+ http_response = result.response
625
+ status_code = http_response.status
626
+ response_content = http_response.body
627
+ unless status_code == 200
628
+ error_model = JSON.load(response_content)
629
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
630
+ end
631
+
632
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
633
+ # Deserialize Response
634
+ if status_code == 200
635
+ begin
636
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
637
+ result_mapper = ManagementLockObject.mapper()
638
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
639
+ rescue Exception => e
640
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
641
+ end
642
+ end
643
+
644
+ result
645
+ end
646
+
647
+ promise.execute
648
+ end
649
+
350
650
  #
351
651
  # Creates or updates a management lock at the resource level or any level below
352
652
  # the resource.
@@ -635,6 +935,120 @@ module Azure::ARM::Locks
635
935
  promise.execute
636
936
  end
637
937
 
938
+ #
939
+ # Get the management lock of a resource or any level below resource.
940
+ #
941
+ # @param resource_group_name [String] The name of the resource group.
942
+ # @param resource_provider_namespace [String] The namespace of the resource
943
+ # provider.
944
+ # @param parent_resource_path [String] An extra path parameter needed in some
945
+ # services, like SQL Databases.
946
+ # @param resource_type [String] The type of the resource.
947
+ # @param resource_name [String] The name of the resource.
948
+ # @param lock_name [String] The name of lock.
949
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
950
+ # will be added to the HTTP request.
951
+ #
952
+ # @return [ManagementLockObject] operation results.
953
+ #
954
+ def get_at_resource_level(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers = nil)
955
+ response = get_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers).value!
956
+ response.body unless response.nil?
957
+ end
958
+
959
+ #
960
+ # Get the management lock of a resource or any level below resource.
961
+ #
962
+ # @param resource_group_name [String] The name of the resource group.
963
+ # @param resource_provider_namespace [String] The namespace of the resource
964
+ # provider.
965
+ # @param parent_resource_path [String] An extra path parameter needed in some
966
+ # services, like SQL Databases.
967
+ # @param resource_type [String] The type of the resource.
968
+ # @param resource_name [String] The name of the resource.
969
+ # @param lock_name [String] The name of lock.
970
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
971
+ # will be added to the HTTP request.
972
+ #
973
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
974
+ #
975
+ def get_at_resource_level_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers = nil)
976
+ get_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers).value!
977
+ end
978
+
979
+ #
980
+ # Get the management lock of a resource or any level below resource.
981
+ #
982
+ # @param resource_group_name [String] The name of the resource group.
983
+ # @param resource_provider_namespace [String] The namespace of the resource
984
+ # provider.
985
+ # @param parent_resource_path [String] An extra path parameter needed in some
986
+ # services, like SQL Databases.
987
+ # @param resource_type [String] The type of the resource.
988
+ # @param resource_name [String] The name of the resource.
989
+ # @param lock_name [String] The name of lock.
990
+ # @param [Hash{String => String}] A hash of custom headers that will be added
991
+ # to the HTTP request.
992
+ #
993
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
994
+ #
995
+ def get_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers = nil)
996
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
997
+ fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
998
+ fail ArgumentError, 'parent_resource_path is nil' if parent_resource_path.nil?
999
+ fail ArgumentError, 'resource_type is nil' if resource_type.nil?
1000
+ fail ArgumentError, 'resource_name is nil' if resource_name.nil?
1001
+ fail ArgumentError, 'lock_name is nil' if lock_name.nil?
1002
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1003
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1004
+
1005
+
1006
+ request_headers = {}
1007
+
1008
+ # Set Headers
1009
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1010
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1011
+ path_template = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}'
1012
+
1013
+ request_url = @base_url || @client.base_url
1014
+
1015
+ options = {
1016
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1017
+ path_params: {'resourceGroupName' => resource_group_name,'resourceProviderNamespace' => resource_provider_namespace,'resourceName' => resource_name,'lockName' => lock_name,'subscriptionId' => @client.subscription_id},
1018
+ skip_encoding_path_params: {'parentResourcePath' => parent_resource_path,'resourceType' => resource_type},
1019
+ query_params: {'api-version' => @client.api_version},
1020
+ headers: request_headers.merge(custom_headers || {}),
1021
+ base_url: request_url
1022
+ }
1023
+ promise = @client.make_request_async(:get, path_template, options)
1024
+
1025
+ promise = promise.then do |result|
1026
+ http_response = result.response
1027
+ status_code = http_response.status
1028
+ response_content = http_response.body
1029
+ unless status_code == 200
1030
+ error_model = JSON.load(response_content)
1031
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1032
+ end
1033
+
1034
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1035
+ # Deserialize Response
1036
+ if status_code == 200
1037
+ begin
1038
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1039
+ result_mapper = ManagementLockObject.mapper()
1040
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
1041
+ rescue Exception => e
1042
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1043
+ end
1044
+ end
1045
+
1046
+ result
1047
+ end
1048
+
1049
+ promise.execute
1050
+ end
1051
+
638
1052
  #
639
1053
  # Creates or updates a management lock at the subscription level.
640
1054
  #
@@ -866,8 +1280,8 @@ module Azure::ARM::Locks
866
1280
  #
867
1281
  # @return [ManagementLockObject] operation results.
868
1282
  #
869
- def get(lock_name, custom_headers = nil)
870
- response = get_async(lock_name, custom_headers).value!
1283
+ def get_at_subscription_level(lock_name, custom_headers = nil)
1284
+ response = get_at_subscription_level_async(lock_name, custom_headers).value!
871
1285
  response.body unless response.nil?
872
1286
  end
873
1287
 
@@ -880,8 +1294,8 @@ module Azure::ARM::Locks
880
1294
  #
881
1295
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
882
1296
  #
883
- def get_with_http_info(lock_name, custom_headers = nil)
884
- get_async(lock_name, custom_headers).value!
1297
+ def get_at_subscription_level_with_http_info(lock_name, custom_headers = nil)
1298
+ get_at_subscription_level_async(lock_name, custom_headers).value!
885
1299
  end
886
1300
 
887
1301
  #
@@ -893,7 +1307,7 @@ module Azure::ARM::Locks
893
1307
  #
894
1308
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
895
1309
  #
896
- def get_async(lock_name, custom_headers = nil)
1310
+ def get_at_subscription_level_async(lock_name, custom_headers = nil)
897
1311
  fail ArgumentError, 'lock_name is nil' if lock_name.nil?
898
1312
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
899
1313
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -4,5 +4,5 @@
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::Locks
7
- VERSION = '0.8.0'
7
+ VERSION = '0.9.0'
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_locks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-16 00:00:00.000000000 Z
11
+ date: 2017-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.6.2
75
+ version: 0.7.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.6.2
82
+ version: 0.7.0
83
83
  description: Microsoft Azure Resource Lock Management Client Library for Ruby
84
84
  email: azrubyteam@microsoft.com
85
85
  executables: []