azure_mgmt_key_vault 0.15.2 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-06-01/generated/azure_mgmt_key_vault/key_vault_management_client.rb +4 -1
  3. data/lib/2015-06-01/generated/azure_mgmt_key_vault/vaults.rb +48 -43
  4. data/lib/2016-10-01/generated/azure_mgmt_key_vault.rb +20 -6
  5. data/lib/2016-10-01/generated/azure_mgmt_key_vault/key_vault_management_client.rb +9 -2
  6. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/access_policy_update_kind.rb +17 -0
  7. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/check_name_availability_result.rb +77 -0
  8. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/log_specification.rb +68 -0
  9. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/operation.rb +83 -0
  10. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/operation_display.rb +79 -0
  11. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/operation_list_result.rb +100 -0
  12. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/reason.rb +16 -0
  13. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/resource.rb +2 -1
  14. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/resource_list_result.rb +2 -2
  15. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/service_specification.rb +55 -0
  16. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/vault.rb +2 -1
  17. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/vault_access_policy_parameters.rb +95 -0
  18. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/vault_access_policy_properties.rb +57 -0
  19. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/vault_check_name_availability_parameters.rb +60 -0
  20. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/vault_list_result.rb +2 -2
  21. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/vault_patch_parameters.rb +67 -0
  22. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/vault_patch_properties.rb +145 -0
  23. data/lib/2016-10-01/generated/azure_mgmt_key_vault/models/vault_properties.rb +1 -3
  24. data/lib/2016-10-01/generated/azure_mgmt_key_vault/operations.rb +216 -0
  25. data/lib/2016-10-01/generated/azure_mgmt_key_vault/vaults.rb +692 -91
  26. data/lib/profiles/latest/keyvault_latest_profile_client.rb +28 -9
  27. data/lib/profiles/latest/keyvault_module_definition.rb +0 -1
  28. data/lib/profiles/latest/modules/keyvault_profile_module.rb +142 -69
  29. data/lib/version.rb +1 -1
  30. metadata +17 -3
@@ -5,17 +5,36 @@
5
5
  require 'profiles/latest/keyvault_module_definition'
6
6
  require 'profiles/latest/modules/keyvault_profile_module'
7
7
 
8
- module Azure::KeyVault::Profiles::Latest::Mgmt
9
- #
10
- # Client class for the Latest profile SDK.
11
- #
12
- class Client < KeyVaultClass
13
- include MsRestAzure::Common::Configurable
8
+ module Azure::KeyVault::Profiles::Latest
9
+ module Mgmt
10
+ #
11
+ # Client class for the Latest profile SDK.
12
+ #
13
+ class Client < KeyVaultManagementClass
14
+ include MsRestAzure::Common::Configurable
14
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
15
37
 
16
- def initialize(options = {})
17
- super(options)
18
38
  end
19
-
20
39
  end
21
40
  end
@@ -6,4 +6,3 @@ module Azure end
6
6
  module Azure::KeyVault end
7
7
  module Azure::KeyVault::Profiles end
8
8
  module Azure::KeyVault::Profiles::Latest end
9
- module Azure::KeyVault::Profiles::Latest::Mgmt end
@@ -4,21 +4,34 @@
4
4
 
5
5
  require 'azure_mgmt_key_vault'
6
6
 
7
- module Azure::KeyVault::Profiles::Latest::Mgmt
7
+ module Azure::KeyVault::Profiles::Latest
8
+ module Mgmt
8
9
  Vaults = Azure::KeyVault::Mgmt::V2016_10_01::Vaults
10
+ Operations = Azure::KeyVault::Mgmt::V2016_10_01::Operations
9
11
 
10
12
  module Models
11
- VaultCreateOrUpdateParameters = Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultCreateOrUpdateParameters
12
- Permissions = Azure::KeyVault::Mgmt::V2016_10_01::Models::Permissions
13
13
  DeletedVault = Azure::KeyVault::Mgmt::V2016_10_01::Models::DeletedVault
14
- VaultProperties = Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultProperties
15
14
  VaultListResult = Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultListResult
16
- Sku = Azure::KeyVault::Mgmt::V2016_10_01::Models::Sku
15
+ Permissions = Azure::KeyVault::Mgmt::V2016_10_01::Models::Permissions
17
16
  DeletedVaultListResult = Azure::KeyVault::Mgmt::V2016_10_01::Models::DeletedVaultListResult
18
- DeletedVaultProperties = Azure::KeyVault::Mgmt::V2016_10_01::Models::DeletedVaultProperties
17
+ VaultProperties = Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultProperties
19
18
  Resource = Azure::KeyVault::Mgmt::V2016_10_01::Models::Resource
20
- AccessPolicyEntry = Azure::KeyVault::Mgmt::V2016_10_01::Models::AccessPolicyEntry
19
+ VaultAccessPolicyProperties = Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultAccessPolicyProperties
21
20
  ResourceListResult = Azure::KeyVault::Mgmt::V2016_10_01::Models::ResourceListResult
21
+ VaultCreateOrUpdateParameters = Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultCreateOrUpdateParameters
22
+ VaultCheckNameAvailabilityParameters = Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultCheckNameAvailabilityParameters
23
+ VaultAccessPolicyParameters = Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultAccessPolicyParameters
24
+ CheckNameAvailabilityResult = Azure::KeyVault::Mgmt::V2016_10_01::Models::CheckNameAvailabilityResult
25
+ Sku = Azure::KeyVault::Mgmt::V2016_10_01::Models::Sku
26
+ OperationDisplay = Azure::KeyVault::Mgmt::V2016_10_01::Models::OperationDisplay
27
+ VaultPatchProperties = Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultPatchProperties
28
+ LogSpecification = Azure::KeyVault::Mgmt::V2016_10_01::Models::LogSpecification
29
+ VaultPatchParameters = Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultPatchParameters
30
+ ServiceSpecification = Azure::KeyVault::Mgmt::V2016_10_01::Models::ServiceSpecification
31
+ AccessPolicyEntry = Azure::KeyVault::Mgmt::V2016_10_01::Models::AccessPolicyEntry
32
+ Operation = Azure::KeyVault::Mgmt::V2016_10_01::Models::Operation
33
+ DeletedVaultProperties = Azure::KeyVault::Mgmt::V2016_10_01::Models::DeletedVaultProperties
34
+ OperationListResult = Azure::KeyVault::Mgmt::V2016_10_01::Models::OperationListResult
22
35
  Vault = Azure::KeyVault::Mgmt::V2016_10_01::Models::Vault
23
36
  SkuName = Azure::KeyVault::Mgmt::V2016_10_01::Models::SkuName
24
37
  KeyPermissions = Azure::KeyVault::Mgmt::V2016_10_01::Models::KeyPermissions
@@ -26,13 +39,15 @@ module Azure::KeyVault::Profiles::Latest::Mgmt
26
39
  CertificatePermissions = Azure::KeyVault::Mgmt::V2016_10_01::Models::CertificatePermissions
27
40
  StoragePermissions = Azure::KeyVault::Mgmt::V2016_10_01::Models::StoragePermissions
28
41
  CreateMode = Azure::KeyVault::Mgmt::V2016_10_01::Models::CreateMode
42
+ Reason = Azure::KeyVault::Mgmt::V2016_10_01::Models::Reason
43
+ AccessPolicyUpdateKind = Azure::KeyVault::Mgmt::V2016_10_01::Models::AccessPolicyUpdateKind
29
44
  end
30
45
 
31
46
  #
32
- # KeyVault
47
+ # KeyVaultManagementClass
33
48
  #
34
- class KeyVaultClass
35
- attr_reader :vaults, :configurable, :base_url, :options, :model_classes
49
+ class KeyVaultManagementClass
50
+ attr_reader :vaults, :operations, :configurable, :base_url, :options, :model_classes
36
51
 
37
52
  def initialize(options = {})
38
53
  if options.is_a?(Hash) && options.length == 0
@@ -43,72 +58,130 @@ module Azure::KeyVault::Profiles::Latest::Mgmt
43
58
 
44
59
  reset!(options)
45
60
 
46
- @configurable, @base_url, @options = self, nil, nil
61
+ @configurable = self
62
+ @base_url = options[:base_url].nil? ? nil:options[:base_url]
63
+ @options = options[:options].nil? ? nil:options[:options]
47
64
 
48
- client_0 = Azure::KeyVault::Mgmt::V2016_10_01::KeyVaultManagementClient.new(configurable.credentials, base_url, options)
49
- if(client_0.respond_to?(:subscription_id))
50
- client_0.subscription_id = configurable.subscription_id
65
+ @client_0 = Azure::KeyVault::Mgmt::V2016_10_01::KeyVaultManagementClient.new(configurable.credentials, base_url, options)
66
+ if(@client_0.respond_to?(:subscription_id))
67
+ @client_0.subscription_id = configurable.subscription_id
51
68
  end
52
- @vaults = client_0.vaults
69
+ add_telemetry(@client_0)
70
+ @vaults = @client_0.vaults
71
+ @operations = @client_0.operations
53
72
 
54
73
  @model_classes = ModelClasses.new
55
74
  end
56
75
 
57
- class ModelClasses
58
- def vault_create_or_update_parameters
59
- Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultCreateOrUpdateParameters
60
- end
61
- def permissions
62
- Azure::KeyVault::Mgmt::V2016_10_01::Models::Permissions
63
- end
64
- def deleted_vault
65
- Azure::KeyVault::Mgmt::V2016_10_01::Models::DeletedVault
66
- end
67
- def vault_properties
68
- Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultProperties
69
- end
70
- def vault_list_result
71
- Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultListResult
72
- end
73
- def sku
74
- Azure::KeyVault::Mgmt::V2016_10_01::Models::Sku
75
- end
76
- def deleted_vault_list_result
77
- Azure::KeyVault::Mgmt::V2016_10_01::Models::DeletedVaultListResult
78
- end
79
- def deleted_vault_properties
80
- Azure::KeyVault::Mgmt::V2016_10_01::Models::DeletedVaultProperties
81
- end
82
- def resource
83
- Azure::KeyVault::Mgmt::V2016_10_01::Models::Resource
84
- end
85
- def access_policy_entry
86
- Azure::KeyVault::Mgmt::V2016_10_01::Models::AccessPolicyEntry
87
- end
88
- def resource_list_result
89
- Azure::KeyVault::Mgmt::V2016_10_01::Models::ResourceListResult
90
- end
91
- def vault
92
- Azure::KeyVault::Mgmt::V2016_10_01::Models::Vault
93
- end
94
- def sku_name
95
- Azure::KeyVault::Mgmt::V2016_10_01::Models::SkuName
96
- end
97
- def key_permissions
98
- Azure::KeyVault::Mgmt::V2016_10_01::Models::KeyPermissions
99
- end
100
- def secret_permissions
101
- Azure::KeyVault::Mgmt::V2016_10_01::Models::SecretPermissions
102
- end
103
- def certificate_permissions
104
- Azure::KeyVault::Mgmt::V2016_10_01::Models::CertificatePermissions
105
- end
106
- def storage_permissions
107
- Azure::KeyVault::Mgmt::V2016_10_01::Models::StoragePermissions
108
- end
109
- def create_mode
110
- Azure::KeyVault::Mgmt::V2016_10_01::Models::CreateMode
76
+ def add_telemetry(client)
77
+ profile_information = 'Profiles/Latest/KeyVault/Mgmt'
78
+ client.add_user_agent_information(profile_information)
79
+ end
80
+
81
+ def method_missing(method, *args)
82
+ if @client_0.respond_to?method
83
+ @client_0.send(method, *args)
84
+ else
85
+ super
111
86
  end
112
87
  end
88
+
89
+ end
90
+
91
+ class ModelClasses
92
+ def deleted_vault
93
+ Azure::KeyVault::Mgmt::V2016_10_01::Models::DeletedVault
94
+ end
95
+ def vault_list_result
96
+ Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultListResult
97
+ end
98
+ def permissions
99
+ Azure::KeyVault::Mgmt::V2016_10_01::Models::Permissions
100
+ end
101
+ def deleted_vault_list_result
102
+ Azure::KeyVault::Mgmt::V2016_10_01::Models::DeletedVaultListResult
103
+ end
104
+ def vault_properties
105
+ Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultProperties
106
+ end
107
+ def resource
108
+ Azure::KeyVault::Mgmt::V2016_10_01::Models::Resource
109
+ end
110
+ def vault_access_policy_properties
111
+ Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultAccessPolicyProperties
112
+ end
113
+ def resource_list_result
114
+ Azure::KeyVault::Mgmt::V2016_10_01::Models::ResourceListResult
115
+ end
116
+ def vault_create_or_update_parameters
117
+ Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultCreateOrUpdateParameters
118
+ end
119
+ def vault_check_name_availability_parameters
120
+ Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultCheckNameAvailabilityParameters
121
+ end
122
+ def vault_access_policy_parameters
123
+ Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultAccessPolicyParameters
124
+ end
125
+ def check_name_availability_result
126
+ Azure::KeyVault::Mgmt::V2016_10_01::Models::CheckNameAvailabilityResult
127
+ end
128
+ def sku
129
+ Azure::KeyVault::Mgmt::V2016_10_01::Models::Sku
130
+ end
131
+ def operation_display
132
+ Azure::KeyVault::Mgmt::V2016_10_01::Models::OperationDisplay
133
+ end
134
+ def vault_patch_properties
135
+ Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultPatchProperties
136
+ end
137
+ def log_specification
138
+ Azure::KeyVault::Mgmt::V2016_10_01::Models::LogSpecification
139
+ end
140
+ def vault_patch_parameters
141
+ Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultPatchParameters
142
+ end
143
+ def service_specification
144
+ Azure::KeyVault::Mgmt::V2016_10_01::Models::ServiceSpecification
145
+ end
146
+ def access_policy_entry
147
+ Azure::KeyVault::Mgmt::V2016_10_01::Models::AccessPolicyEntry
148
+ end
149
+ def operation
150
+ Azure::KeyVault::Mgmt::V2016_10_01::Models::Operation
151
+ end
152
+ def deleted_vault_properties
153
+ Azure::KeyVault::Mgmt::V2016_10_01::Models::DeletedVaultProperties
154
+ end
155
+ def operation_list_result
156
+ Azure::KeyVault::Mgmt::V2016_10_01::Models::OperationListResult
157
+ end
158
+ def vault
159
+ Azure::KeyVault::Mgmt::V2016_10_01::Models::Vault
160
+ end
161
+ def sku_name
162
+ Azure::KeyVault::Mgmt::V2016_10_01::Models::SkuName
163
+ end
164
+ def key_permissions
165
+ Azure::KeyVault::Mgmt::V2016_10_01::Models::KeyPermissions
166
+ end
167
+ def secret_permissions
168
+ Azure::KeyVault::Mgmt::V2016_10_01::Models::SecretPermissions
169
+ end
170
+ def certificate_permissions
171
+ Azure::KeyVault::Mgmt::V2016_10_01::Models::CertificatePermissions
172
+ end
173
+ def storage_permissions
174
+ Azure::KeyVault::Mgmt::V2016_10_01::Models::StoragePermissions
175
+ end
176
+ def create_mode
177
+ Azure::KeyVault::Mgmt::V2016_10_01::Models::CreateMode
178
+ end
179
+ def reason
180
+ Azure::KeyVault::Mgmt::V2016_10_01::Models::Reason
181
+ end
182
+ def access_policy_update_kind
183
+ Azure::KeyVault::Mgmt::V2016_10_01::Models::AccessPolicyUpdateKind
184
+ end
113
185
  end
186
+ end
114
187
  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::KeyVault::Mgmt
6
- VERSION = '0.15.2'
6
+ VERSION = '0.16.0'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_key_vault
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.2
4
+ version: 0.16.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: 2017-12-19 00:00:00.000000000 Z
11
+ date: 2018-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -107,24 +107,38 @@ files:
107
107
  - lib/2016-10-01/generated/azure_mgmt_key_vault.rb
108
108
  - lib/2016-10-01/generated/azure_mgmt_key_vault/key_vault_management_client.rb
109
109
  - lib/2016-10-01/generated/azure_mgmt_key_vault/models/access_policy_entry.rb
110
+ - lib/2016-10-01/generated/azure_mgmt_key_vault/models/access_policy_update_kind.rb
110
111
  - lib/2016-10-01/generated/azure_mgmt_key_vault/models/certificate_permissions.rb
112
+ - lib/2016-10-01/generated/azure_mgmt_key_vault/models/check_name_availability_result.rb
111
113
  - lib/2016-10-01/generated/azure_mgmt_key_vault/models/create_mode.rb
112
114
  - lib/2016-10-01/generated/azure_mgmt_key_vault/models/deleted_vault.rb
113
115
  - lib/2016-10-01/generated/azure_mgmt_key_vault/models/deleted_vault_list_result.rb
114
116
  - lib/2016-10-01/generated/azure_mgmt_key_vault/models/deleted_vault_properties.rb
115
117
  - lib/2016-10-01/generated/azure_mgmt_key_vault/models/key_permissions.rb
118
+ - lib/2016-10-01/generated/azure_mgmt_key_vault/models/log_specification.rb
119
+ - lib/2016-10-01/generated/azure_mgmt_key_vault/models/operation.rb
120
+ - lib/2016-10-01/generated/azure_mgmt_key_vault/models/operation_display.rb
121
+ - lib/2016-10-01/generated/azure_mgmt_key_vault/models/operation_list_result.rb
116
122
  - lib/2016-10-01/generated/azure_mgmt_key_vault/models/permissions.rb
123
+ - lib/2016-10-01/generated/azure_mgmt_key_vault/models/reason.rb
117
124
  - lib/2016-10-01/generated/azure_mgmt_key_vault/models/resource.rb
118
125
  - lib/2016-10-01/generated/azure_mgmt_key_vault/models/resource_list_result.rb
119
126
  - lib/2016-10-01/generated/azure_mgmt_key_vault/models/secret_permissions.rb
127
+ - lib/2016-10-01/generated/azure_mgmt_key_vault/models/service_specification.rb
120
128
  - lib/2016-10-01/generated/azure_mgmt_key_vault/models/sku.rb
121
129
  - lib/2016-10-01/generated/azure_mgmt_key_vault/models/sku_name.rb
122
130
  - lib/2016-10-01/generated/azure_mgmt_key_vault/models/storage_permissions.rb
123
131
  - lib/2016-10-01/generated/azure_mgmt_key_vault/models/vault.rb
132
+ - lib/2016-10-01/generated/azure_mgmt_key_vault/models/vault_access_policy_parameters.rb
133
+ - lib/2016-10-01/generated/azure_mgmt_key_vault/models/vault_access_policy_properties.rb
134
+ - lib/2016-10-01/generated/azure_mgmt_key_vault/models/vault_check_name_availability_parameters.rb
124
135
  - lib/2016-10-01/generated/azure_mgmt_key_vault/models/vault_create_or_update_parameters.rb
125
136
  - lib/2016-10-01/generated/azure_mgmt_key_vault/models/vault_list_result.rb
137
+ - lib/2016-10-01/generated/azure_mgmt_key_vault/models/vault_patch_parameters.rb
138
+ - lib/2016-10-01/generated/azure_mgmt_key_vault/models/vault_patch_properties.rb
126
139
  - lib/2016-10-01/generated/azure_mgmt_key_vault/models/vault_properties.rb
127
140
  - lib/2016-10-01/generated/azure_mgmt_key_vault/module_definition.rb
141
+ - lib/2016-10-01/generated/azure_mgmt_key_vault/operations.rb
128
142
  - lib/2016-10-01/generated/azure_mgmt_key_vault/vaults.rb
129
143
  - lib/azure_mgmt_key_vault.rb
130
144
  - lib/module_definition.rb
@@ -157,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
171
  version: '0'
158
172
  requirements: []
159
173
  rubyforge_project:
160
- rubygems_version: 2.5.1
174
+ rubygems_version: 2.6.10
161
175
  signing_key:
162
176
  specification_version: 4
163
177
  summary: Official Ruby client library to consume Microsoft Azure Resource Management