azure_mgmt_locks 0.17.2 → 0.17.3

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
  SHA256:
3
- metadata.gz: 2b5e817315cff20cffbf3b8e2401eef5b0cd1a42bbdfc6f2a9de24ba3b969c05
4
- data.tar.gz: fdcc20715a8bf980dd34ef650009b36c799eee1fd158905b870422230b8341fe
3
+ metadata.gz: 9137a92112fb474776d17cee7f2432bbab6bb39a4cecc9357bf15fba189cf1e6
4
+ data.tar.gz: 9d595788596d7eab5e637a55eaef9a7753787f6067b9c00b5b6ad69cf05311a8
5
5
  SHA512:
6
- metadata.gz: d2c09e9f6b22134649371ebf9552eb3291fa532493906fdc40f16148606d10a29bbcd9487086fb3bcadee25b7cceb5f7378d82ce4bebb878a046334ec5d66a3f
7
- data.tar.gz: bb6942e50b095d73c407ded491bebcfaa7e76012665410273d58939fa3712dbfa4a6979e3b2eb7c05070ad92440b529312721b7c03a43df73d288a358e67b874
6
+ metadata.gz: 5c1932fc47060f09478ef566ac9c80900a47f5a6edb12ba6a9f25dc95e3230594d7085f39738bbe33fa528a8aa91142f2847768cdc8482e64794276d533c6df1
7
+ data.tar.gz: 1319c5b0ce51730c440a88cdae0dff1499c1ca22c8d6d20d8905932d541a253d01abd9ade49c26e76e411d6a191f0a6fbf9a0cf7f48b4069d3f2e788427fd320
@@ -124,7 +124,7 @@ module Azure::Locks::Mgmt::V2015_01_01
124
124
  #
125
125
  def add_telemetry
126
126
  sdk_information = 'azure_mgmt_locks'
127
- sdk_information = "#{sdk_information}/0.17.2"
127
+ sdk_information = "#{sdk_information}/0.17.3"
128
128
  add_user_agent_information(sdk_information)
129
129
  end
130
130
  end
@@ -128,7 +128,7 @@ module Azure::Locks::Mgmt::V2016_09_01
128
128
  #
129
129
  def add_telemetry
130
130
  sdk_information = 'azure_mgmt_locks'
131
- sdk_information = "#{sdk_information}/0.17.2"
131
+ sdk_information = "#{sdk_information}/0.17.3"
132
132
  add_user_agent_information(sdk_information)
133
133
  end
134
134
  end
@@ -6,4 +6,5 @@ require '2015-01-01/generated/azure_mgmt_locks'
6
6
  require '2016-09-01/generated/azure_mgmt_locks'
7
7
  require 'profiles/v2017_03_09/locks_v2017_03_09_profile_client'
8
8
  require 'profiles/latest/locks_latest_profile_client'
9
+ require 'profiles/v2019_03_01_hybrid/locks_v2019_03_01_hybrid_profile_client'
9
10
  require 'profiles/v2018_03_01/locks_v2018_03_01_profile_client'
@@ -0,0 +1,8 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure end
6
+ module Azure::Locks end
7
+ module Azure::Locks::Profiles end
8
+ module Azure::Locks::Profiles::V2019_03_01_Hybrid end
@@ -0,0 +1,40 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ require 'profiles/v2019_03_01_hybrid/locks_module_definition'
6
+ require 'profiles/v2019_03_01_hybrid/modules/locks_profile_module'
7
+
8
+ module Azure::Locks::Profiles::V2019_03_01_Hybrid
9
+ module Mgmt
10
+ #
11
+ # Client class for the V2019_03_01_Hybrid profile SDK.
12
+ #
13
+ class Client < LocksManagementClass
14
+ include MsRestAzure::Common::Configurable
15
+
16
+ #
17
+ # Initializes a new instance of the Client class.
18
+ # @param options [Hash] hash of client options.
19
+ # options = {
20
+ # tenant_id: 'YOUR TENANT ID',
21
+ # client_id: 'YOUR CLIENT ID',
22
+ # client_secret: 'YOUR CLIENT SECRET',
23
+ # subscription_id: 'YOUR SUBSCRIPTION ID',
24
+ # credentials: credentials,
25
+ # active_directory_settings: active_directory_settings,
26
+ # base_url: 'YOUR BASE URL',
27
+ # options: options
28
+ # }
29
+ # 'credentials' are optional and if not passed in the hash, will be obtained
30
+ # from MsRest::TokenCredentials using MsRestAzure::ApplicationTokenProvider.
31
+ #
32
+ # Also, base_url, active_directory_settings & options are optional.
33
+ #
34
+ def initialize(options = {})
35
+ super(options)
36
+ end
37
+
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,91 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ require 'azure_mgmt_locks'
6
+
7
+ module Azure::Locks::Profiles::V2019_03_01_Hybrid
8
+ module Mgmt
9
+ AuthorizationOperations = Azure::Locks::Mgmt::V2016_09_01::AuthorizationOperations
10
+ ManagementLocks = Azure::Locks::Mgmt::V2016_09_01::ManagementLocks
11
+
12
+ module Models
13
+ OperationDisplay = Azure::Locks::Mgmt::V2016_09_01::Models::OperationDisplay
14
+ ManagementLockOwner = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockOwner
15
+ Operation = Azure::Locks::Mgmt::V2016_09_01::Models::Operation
16
+ ManagementLockListResult = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockListResult
17
+ OperationListResult = Azure::Locks::Mgmt::V2016_09_01::Models::OperationListResult
18
+ ManagementLockObject = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject
19
+ LockLevel = Azure::Locks::Mgmt::V2016_09_01::Models::LockLevel
20
+ end
21
+
22
+ #
23
+ # LocksManagementClass
24
+ #
25
+ class LocksManagementClass
26
+ attr_reader :authorization_operations, :management_locks, :configurable, :base_url, :options, :model_classes
27
+
28
+ def initialize(options = {})
29
+ if options.is_a?(Hash) && options.length == 0
30
+ @options = setup_default_options
31
+ else
32
+ @options = options
33
+ end
34
+
35
+ reset!(options)
36
+
37
+ @configurable = self
38
+ @base_url = options[:base_url].nil? ? nil:options[:base_url]
39
+ @options = options[:options].nil? ? nil:options[:options]
40
+
41
+ @client_0 = Azure::Locks::Mgmt::V2016_09_01::ManagementLockClient.new(configurable.credentials, base_url, options)
42
+ if(@client_0.respond_to?(:subscription_id))
43
+ @client_0.subscription_id = configurable.subscription_id
44
+ end
45
+ add_telemetry(@client_0)
46
+ @authorization_operations = @client_0.authorization_operations
47
+ @management_locks = @client_0.management_locks
48
+
49
+ @model_classes = ModelClasses.new
50
+ end
51
+
52
+ def add_telemetry(client)
53
+ profile_information = 'Profiles/V2019_03_01_Hybrid/Locks/Mgmt'
54
+ client.add_user_agent_information(profile_information)
55
+ end
56
+
57
+ def method_missing(method, *args)
58
+ if @client_0.respond_to?method
59
+ @client_0.send(method, *args)
60
+ else
61
+ super
62
+ end
63
+ end
64
+
65
+ end
66
+
67
+ class ModelClasses
68
+ def operation_display
69
+ Azure::Locks::Mgmt::V2016_09_01::Models::OperationDisplay
70
+ end
71
+ def management_lock_owner
72
+ Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockOwner
73
+ end
74
+ def operation
75
+ Azure::Locks::Mgmt::V2016_09_01::Models::Operation
76
+ end
77
+ def management_lock_list_result
78
+ Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockListResult
79
+ end
80
+ def operation_list_result
81
+ Azure::Locks::Mgmt::V2016_09_01::Models::OperationListResult
82
+ end
83
+ def management_lock_object
84
+ Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject
85
+ end
86
+ def lock_level
87
+ Azure::Locks::Mgmt::V2016_09_01::Models::LockLevel
88
+ end
89
+ end
90
+ end
91
+ end
@@ -3,5 +3,5 @@
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
5
  module Azure::Locks::Mgmt
6
- VERSION = '0.17.2'
6
+ VERSION = '0.17.3'
7
7
  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.17.2
4
+ version: 0.17.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-13 00:00:00.000000000 Z
11
+ date: 2019-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -117,6 +117,9 @@ files:
117
117
  - lib/profiles/v2018_03_01/locks_module_definition.rb
118
118
  - lib/profiles/v2018_03_01/locks_v2018_03_01_profile_client.rb
119
119
  - lib/profiles/v2018_03_01/modules/locks_profile_module.rb
120
+ - lib/profiles/v2019_03_01_hybrid/locks_module_definition.rb
121
+ - lib/profiles/v2019_03_01_hybrid/locks_v2019_03_01_hybrid_profile_client.rb
122
+ - lib/profiles/v2019_03_01_hybrid/modules/locks_profile_module.rb
120
123
  - lib/version.rb
121
124
  homepage: https://aka.ms/azure-sdk-for-ruby
122
125
  licenses: