azure_mgmt_key_vault 0.10.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (24) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_key_vault.rb +9 -4
  3. data/lib/generated/azure_mgmt_key_vault/key_vault_management_client.rb +2 -2
  4. data/lib/generated/azure_mgmt_key_vault/models/access_policy_entry.rb +2 -1
  5. data/lib/generated/azure_mgmt_key_vault/models/certificate_permissions.rb +3 -2
  6. data/lib/generated/azure_mgmt_key_vault/models/create_mode.rb +16 -0
  7. data/lib/generated/azure_mgmt_key_vault/models/deleted_vault.rb +79 -0
  8. data/lib/generated/azure_mgmt_key_vault/models/deleted_vault_list_result.rb +94 -0
  9. data/lib/generated/azure_mgmt_key_vault/models/deleted_vault_properties.rb +97 -0
  10. data/lib/generated/azure_mgmt_key_vault/models/key_permissions.rb +3 -2
  11. data/lib/generated/azure_mgmt_key_vault/models/permissions.rb +20 -2
  12. data/lib/generated/azure_mgmt_key_vault/models/resource_list_result.rb +2 -1
  13. data/lib/generated/azure_mgmt_key_vault/models/secret_permissions.rb +5 -2
  14. data/lib/generated/azure_mgmt_key_vault/models/sku.rb +2 -1
  15. data/lib/generated/azure_mgmt_key_vault/models/sku_name.rb +1 -1
  16. data/lib/generated/azure_mgmt_key_vault/models/storage_permissions.rb +24 -0
  17. data/lib/generated/azure_mgmt_key_vault/models/vault.rb +2 -1
  18. data/lib/generated/azure_mgmt_key_vault/models/vault_create_or_update_parameters.rb +2 -1
  19. data/lib/generated/azure_mgmt_key_vault/models/vault_list_result.rb +2 -1
  20. data/lib/generated/azure_mgmt_key_vault/models/vault_properties.rb +39 -13
  21. data/lib/generated/azure_mgmt_key_vault/module_definition.rb +1 -1
  22. data/lib/generated/azure_mgmt_key_vault/vaults.rb +425 -23
  23. data/lib/generated/azure_mgmt_key_vault/version.rb +2 -2
  24. metadata +9 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b018a42c50b4ab6854af98f0b99a6c3e737e30b3
4
- data.tar.gz: 194bd50bbce8c15978170faae2d0836b872abe65
3
+ metadata.gz: 24a4c58cbf399d5bb91bcc0061f138374f078534
4
+ data.tar.gz: df93a41244604094acbfe99f26e8ab6e32d90f04
5
5
  SHA512:
6
- metadata.gz: 954906d50bf5a3d7de23ae6c57188cddb9f06ae7fdec9fbe382a530f4f0687eb39bdb26e871782eb7cdfab4c5013fca4b71b731352cdd1cc706106358e4c34bc
7
- data.tar.gz: a9903a00012820dd6b1072d37a840a4b797fa34f2a2b2a1bff7e5026f1ae18cc4eae83bb4f5fec0af8601918c6285e59576b757a3385ce68206f9a3387dfe4d1
6
+ metadata.gz: af48d441e1ea9401d5e70626024e94a6ba1c084fd6ca9671850d5fc87fd00d34628e0eee173a3c853323e6836fc5489d47e03b455558e67861f04f65562b854f
7
+ data.tar.gz: f2644f96562c3414c34af3ab8907260b755dab6151a6325d9b829d97e6a5175384177ebc4a7d0a542a7b03c122e5f9c6ac3aec2ba4b68b5d2582361a78bfb6c3
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -25,16 +25,21 @@ module Azure::ARM::KeyVault
25
25
 
26
26
  module Models
27
27
  autoload :VaultCreateOrUpdateParameters, 'generated/azure_mgmt_key_vault/models/vault_create_or_update_parameters.rb'
28
- autoload :Sku, 'generated/azure_mgmt_key_vault/models/sku.rb'
29
- autoload :AccessPolicyEntry, 'generated/azure_mgmt_key_vault/models/access_policy_entry.rb'
30
- autoload :VaultListResult, 'generated/azure_mgmt_key_vault/models/vault_list_result.rb'
31
28
  autoload :Permissions, 'generated/azure_mgmt_key_vault/models/permissions.rb'
29
+ autoload :DeletedVault, 'generated/azure_mgmt_key_vault/models/deleted_vault.rb'
32
30
  autoload :VaultProperties, 'generated/azure_mgmt_key_vault/models/vault_properties.rb'
31
+ autoload :VaultListResult, 'generated/azure_mgmt_key_vault/models/vault_list_result.rb'
32
+ autoload :Sku, 'generated/azure_mgmt_key_vault/models/sku.rb'
33
+ autoload :DeletedVaultListResult, 'generated/azure_mgmt_key_vault/models/deleted_vault_list_result.rb'
34
+ autoload :DeletedVaultProperties, 'generated/azure_mgmt_key_vault/models/deleted_vault_properties.rb'
35
+ autoload :AccessPolicyEntry, 'generated/azure_mgmt_key_vault/models/access_policy_entry.rb'
33
36
  autoload :ResourceListResult, 'generated/azure_mgmt_key_vault/models/resource_list_result.rb'
34
37
  autoload :Vault, 'generated/azure_mgmt_key_vault/models/vault.rb'
35
38
  autoload :SkuName, 'generated/azure_mgmt_key_vault/models/sku_name.rb'
36
39
  autoload :KeyPermissions, 'generated/azure_mgmt_key_vault/models/key_permissions.rb'
37
40
  autoload :SecretPermissions, 'generated/azure_mgmt_key_vault/models/secret_permissions.rb'
38
41
  autoload :CertificatePermissions, 'generated/azure_mgmt_key_vault/models/certificate_permissions.rb'
42
+ autoload :StoragePermissions, 'generated/azure_mgmt_key_vault/models/storage_permissions.rb'
43
+ autoload :CreateMode, 'generated/azure_mgmt_key_vault/models/create_mode.rb'
39
44
  end
40
45
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -53,7 +53,7 @@ module Azure::ARM::KeyVault
53
53
  @credentials = credentials
54
54
 
55
55
  @vaults = Vaults.new(self)
56
- @api_version = '2015-06-01'
56
+ @api_version = '2016-10-01'
57
57
  @accept_language = 'en-US'
58
58
  @long_running_operation_retry_timeout = 30
59
59
  @generate_client_request_id = true
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -13,6 +13,7 @@ module Azure::ARM::KeyVault
13
13
 
14
14
  include MsRestAzure
15
15
 
16
+ include MsRest::JSONable
16
17
  # @return The Azure Active Directory tenant ID that should be used for
17
18
  # authenticating requests to the key vault.
18
19
  attr_accessor :tenant_id
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -9,7 +9,6 @@ module Azure::ARM::KeyVault
9
9
  # Defines values for CertificatePermissions
10
10
  #
11
11
  module CertificatePermissions
12
- All = "all"
13
12
  Get = "get"
14
13
  List = "list"
15
14
  Delete = "delete"
@@ -22,6 +21,8 @@ module Azure::ARM::KeyVault
22
21
  Setissuers = "setissuers"
23
22
  Deleteissuers = "deleteissuers"
24
23
  Manageissuers = "manageissuers"
24
+ Recover = "recover"
25
+ Purge = "purge"
25
26
  end
26
27
  end
27
28
  end
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::KeyVault
7
+ module Models
8
+ #
9
+ # Defines values for CreateMode
10
+ #
11
+ module CreateMode
12
+ Recover = "recover"
13
+ Default = "default"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,79 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::KeyVault
7
+ module Models
8
+ #
9
+ # Deleted vault information with extended details.
10
+ #
11
+ class DeletedVault
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [String] The resource ID for the deleted key vault.
17
+ attr_accessor :id
18
+
19
+ # @return [String] The name of the key vault.
20
+ attr_accessor :name
21
+
22
+ # @return [String] The resource type of the key vault.
23
+ attr_accessor :type
24
+
25
+ # @return [DeletedVaultProperties] Properties of the vault
26
+ attr_accessor :properties
27
+
28
+
29
+ #
30
+ # Mapper for DeletedVault class as Ruby Hash.
31
+ # This will be used for serialization/deserialization.
32
+ #
33
+ def self.mapper()
34
+ {
35
+ required: false,
36
+ serialized_name: 'DeletedVault',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'DeletedVault',
40
+ model_properties: {
41
+ id: {
42
+ required: false,
43
+ read_only: true,
44
+ serialized_name: 'id',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ },
49
+ name: {
50
+ required: false,
51
+ read_only: true,
52
+ serialized_name: 'name',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ type: {
58
+ required: false,
59
+ read_only: true,
60
+ serialized_name: 'type',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ },
65
+ properties: {
66
+ required: false,
67
+ serialized_name: 'properties',
68
+ type: {
69
+ name: 'Composite',
70
+ class_name: 'DeletedVaultProperties'
71
+ }
72
+ }
73
+ }
74
+ }
75
+ }
76
+ end
77
+ end
78
+ end
79
+ end
@@ -0,0 +1,94 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::KeyVault
7
+ module Models
8
+ #
9
+ # List of vaults
10
+ #
11
+ class DeletedVaultListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<DeletedVault>] The list of deleted vaults.
17
+ attr_accessor :value
18
+
19
+ # @return [String] The URL to get the next set of deleted vaults.
20
+ attr_accessor :next_link
21
+
22
+ # return [Proc] with next page method call.
23
+ attr_accessor :next_method
24
+
25
+ #
26
+ # Gets the rest of the items for the request, enabling auto-pagination.
27
+ #
28
+ # @return [Array<DeletedVault>] operation results.
29
+ #
30
+ def get_all_items
31
+ items = @value
32
+ page = self
33
+ while page.next_link != nil do
34
+ page = page.get_next_page
35
+ items.concat(page.value)
36
+ end
37
+ items
38
+ end
39
+
40
+ #
41
+ # Gets the next page of results.
42
+ #
43
+ # @return [DeletedVaultListResult] with next page content.
44
+ #
45
+ def get_next_page
46
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
47
+ unless response.nil?
48
+ @next_link = response.body.next_link
49
+ @value = response.body.value
50
+ self
51
+ end
52
+ end
53
+
54
+ #
55
+ # Mapper for DeletedVaultListResult class as Ruby Hash.
56
+ # This will be used for serialization/deserialization.
57
+ #
58
+ def self.mapper()
59
+ {
60
+ required: false,
61
+ serialized_name: 'DeletedVaultListResult',
62
+ type: {
63
+ name: 'Composite',
64
+ class_name: 'DeletedVaultListResult',
65
+ model_properties: {
66
+ value: {
67
+ required: false,
68
+ serialized_name: 'value',
69
+ type: {
70
+ name: 'Sequence',
71
+ element: {
72
+ required: false,
73
+ serialized_name: 'DeletedVaultElementType',
74
+ type: {
75
+ name: 'Composite',
76
+ class_name: 'DeletedVault'
77
+ }
78
+ }
79
+ }
80
+ },
81
+ next_link: {
82
+ required: false,
83
+ serialized_name: 'nextLink',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
91
+ end
92
+ end
93
+ end
94
+ end
@@ -0,0 +1,97 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::KeyVault
7
+ module Models
8
+ #
9
+ # Properties of the deleted vault.
10
+ #
11
+ class DeletedVaultProperties
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [String] The resource id of the original vault.
17
+ attr_accessor :vault_id
18
+
19
+ # @return [String] The location of the original vault.
20
+ attr_accessor :location
21
+
22
+ # @return [DateTime] The deleted date.
23
+ attr_accessor :deletion_date
24
+
25
+ # @return [DateTime] The scheduled purged date.
26
+ attr_accessor :scheduled_purge_date
27
+
28
+ # @return [Hash{String => String}] Tags of the original vault.
29
+ attr_accessor :tags
30
+
31
+
32
+ #
33
+ # Mapper for DeletedVaultProperties class as Ruby Hash.
34
+ # This will be used for serialization/deserialization.
35
+ #
36
+ def self.mapper()
37
+ {
38
+ required: false,
39
+ serialized_name: 'DeletedVaultProperties',
40
+ type: {
41
+ name: 'Composite',
42
+ class_name: 'DeletedVaultProperties',
43
+ model_properties: {
44
+ vault_id: {
45
+ required: false,
46
+ read_only: true,
47
+ serialized_name: 'vaultId',
48
+ type: {
49
+ name: 'String'
50
+ }
51
+ },
52
+ location: {
53
+ required: false,
54
+ read_only: true,
55
+ serialized_name: 'location',
56
+ type: {
57
+ name: 'String'
58
+ }
59
+ },
60
+ deletion_date: {
61
+ required: false,
62
+ read_only: true,
63
+ serialized_name: 'deletionDate',
64
+ type: {
65
+ name: 'DateTime'
66
+ }
67
+ },
68
+ scheduled_purge_date: {
69
+ required: false,
70
+ read_only: true,
71
+ serialized_name: 'scheduledPurgeDate',
72
+ type: {
73
+ name: 'DateTime'
74
+ }
75
+ },
76
+ tags: {
77
+ required: false,
78
+ read_only: true,
79
+ serialized_name: 'tags',
80
+ type: {
81
+ name: 'Dictionary',
82
+ value: {
83
+ required: false,
84
+ serialized_name: 'StringElementType',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ }
89
+ }
90
+ }
91
+ }
92
+ }
93
+ }
94
+ end
95
+ end
96
+ end
97
+ end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -9,7 +9,6 @@ module Azure::ARM::KeyVault
9
9
  # Defines values for KeyPermissions
10
10
  #
11
11
  module KeyPermissions
12
- All = "all"
13
12
  Encrypt = "encrypt"
14
13
  Decrypt = "decrypt"
15
14
  WrapKey = "wrapKey"
@@ -24,6 +23,8 @@ module Azure::ARM::KeyVault
24
23
  Delete = "delete"
25
24
  Backup = "backup"
26
25
  Restore = "restore"
26
+ Recover = "recover"
27
+ Purge = "purge"
27
28
  end
28
29
  end
29
30
  end
@@ -1,17 +1,18 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.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::KeyVault
7
7
  module Models
8
8
  #
9
- # Permissions the identity has for keys, secrets and certificates.
9
+ # Permissions the identity has for keys, secrets, certificates and storage.
10
10
  #
11
11
  class Permissions
12
12
 
13
13
  include MsRestAzure
14
14
 
15
+ include MsRest::JSONable
15
16
  # @return [Array<KeyPermissions>] Permissions to keys
16
17
  attr_accessor :keys
17
18
 
@@ -21,6 +22,9 @@ module Azure::ARM::KeyVault
21
22
  # @return [Array<CertificatePermissions>] Permissions to certificates
22
23
  attr_accessor :certificates
23
24
 
25
+ # @return [Array<StoragePermissions>] Permissions to storage accounts
26
+ attr_accessor :storage
27
+
24
28
 
25
29
  #
26
30
  # Mapper for Permissions class as Ruby Hash.
@@ -75,6 +79,20 @@ module Azure::ARM::KeyVault
75
79
  }
76
80
  }
77
81
  }
82
+ },
83
+ storage: {
84
+ required: false,
85
+ serialized_name: 'storage',
86
+ type: {
87
+ name: 'Sequence',
88
+ element: {
89
+ required: false,
90
+ serialized_name: 'StoragePermissionsElementType',
91
+ type: {
92
+ name: 'String'
93
+ }
94
+ }
95
+ }
78
96
  }
79
97
  }
80
98
  }