azure_key_vault 0.16.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-06-01/generated/azure_key_vault/key_vault_client.rb +10 -9
- data/lib/2015-06-01/generated/azure_key_vault/models/key_create_parameters.rb +1 -1
- data/lib/2015-06-01/generated/azure_key_vault/models/key_properties.rb +1 -1
- data/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb +7 -6
- data/lib/7.0-preview/generated/azure_key_vault.rb +39 -37
- data/lib/7.0-preview/generated/azure_key_vault/key_vault_client.rb +299 -47
- data/lib/7.0-preview/generated/azure_key_vault/models/backup_certificate_result.rb +47 -0
- data/lib/7.0-preview/generated/azure_key_vault/models/certificate_restore_parameters.rb +46 -0
- data/lib/7.0-preview/generated/azure_key_vault/models/issuer_parameters.rb +12 -0
- data/lib/7.0-preview/generated/azure_key_vault/models/json_web_key.rb +4 -3
- data/lib/7.0-preview/generated/azure_key_vault/models/json_web_key_curve_name.rb +1 -1
- data/lib/7.0-preview/generated/azure_key_vault/models/json_web_key_signature_algorithm.rb +1 -1
- data/lib/7.0-preview/generated/azure_key_vault/models/key_create_parameters.rb +3 -2
- data/lib/7.0-preview/generated/azure_key_vault/models/key_properties.rb +18 -2
- data/lib/7.0-preview/generated/azure_key_vault/models/key_sign_parameters.rb +1 -1
- data/lib/7.0-preview/generated/azure_key_vault/models/key_verify_parameters.rb +1 -1
- data/lib/7.0/generated/azure_key_vault.rb +125 -0
- data/lib/7.0/generated/azure_key_vault/key_vault_client.rb +12438 -0
- data/lib/7.0/generated/azure_key_vault/models/action.rb +48 -0
- data/lib/7.0/generated/azure_key_vault/models/action_type.rb +16 -0
- data/lib/7.0/generated/azure_key_vault/models/administrator_details.rb +79 -0
- data/lib/7.0/generated/azure_key_vault/models/attributes.rb +92 -0
- data/lib/7.0/generated/azure_key_vault/models/backup_certificate_result.rb +47 -0
- data/lib/7.0/generated/azure_key_vault/models/backup_key_result.rb +47 -0
- data/lib/7.0/generated/azure_key_vault/models/backup_secret_result.rb +47 -0
- data/lib/7.0/generated/azure_key_vault/models/backup_storage_result.rb +47 -0
- data/lib/7.0/generated/azure_key_vault/models/certificate_attributes.rb +95 -0
- data/lib/7.0/generated/azure_key_vault/models/certificate_bundle.rb +151 -0
- data/lib/7.0/generated/azure_key_vault/models/certificate_create_parameters.rb +80 -0
- data/lib/7.0/generated/azure_key_vault/models/certificate_import_parameters.rb +104 -0
- data/lib/7.0/generated/azure_key_vault/models/certificate_issuer_item.rb +57 -0
- data/lib/7.0/generated/azure_key_vault/models/certificate_issuer_list_result.rb +102 -0
- data/lib/7.0/generated/azure_key_vault/models/certificate_issuer_set_parameters.rb +83 -0
- data/lib/7.0/generated/azure_key_vault/models/certificate_issuer_update_parameters.rb +83 -0
- data/lib/7.0/generated/azure_key_vault/models/certificate_item.rb +89 -0
- data/lib/7.0/generated/azure_key_vault/models/certificate_list_result.rb +102 -0
- data/lib/7.0/generated/azure_key_vault/models/certificate_merge_parameters.rb +88 -0
- data/lib/7.0/generated/azure_key_vault/models/certificate_operation.rb +142 -0
- data/lib/7.0/generated/azure_key_vault/models/certificate_operation_update_parameter.rb +47 -0
- data/lib/7.0/generated/azure_key_vault/models/certificate_policy.rb +131 -0
- data/lib/7.0/generated/azure_key_vault/models/certificate_restore_parameters.rb +46 -0
- data/lib/7.0/generated/azure_key_vault/models/certificate_update_parameters.rb +80 -0
- data/lib/7.0/generated/azure_key_vault/models/contact.rb +68 -0
- data/lib/7.0/generated/azure_key_vault/models/contacts.rb +67 -0
- data/lib/7.0/generated/azure_key_vault/models/deleted_certificate_bundle.rb +159 -0
- data/lib/7.0/generated/azure_key_vault/models/deleted_certificate_item.rb +113 -0
- data/lib/7.0/generated/azure_key_vault/models/deleted_certificate_list_result.rb +102 -0
- data/lib/7.0/generated/azure_key_vault/models/deleted_key_bundle.rb +115 -0
- data/lib/7.0/generated/azure_key_vault/models/deleted_key_item.rb +114 -0
- data/lib/7.0/generated/azure_key_vault/models/deleted_key_list_result.rb +102 -0
- data/lib/7.0/generated/azure_key_vault/models/deleted_sas_definition_bundle.rb +145 -0
- data/lib/7.0/generated/azure_key_vault/models/deleted_sas_definition_item.rb +118 -0
- data/lib/7.0/generated/azure_key_vault/models/deleted_sas_definition_list_result.rb +103 -0
- data/lib/7.0/generated/azure_key_vault/models/deleted_secret_bundle.rb +139 -0
- data/lib/7.0/generated/azure_key_vault/models/deleted_secret_item.rb +121 -0
- data/lib/7.0/generated/azure_key_vault/models/deleted_secret_list_result.rb +102 -0
- data/lib/7.0/generated/azure_key_vault/models/deleted_storage_account_item.rb +118 -0
- data/lib/7.0/generated/azure_key_vault/models/deleted_storage_bundle.rb +146 -0
- data/lib/7.0/generated/azure_key_vault/models/deleted_storage_list_result.rb +103 -0
- data/lib/7.0/generated/azure_key_vault/models/deletion_recovery_level.rb +18 -0
- data/lib/7.0/generated/azure_key_vault/models/error.rb +72 -0
- data/lib/7.0/generated/azure_key_vault/models/issuer_attributes.rb +70 -0
- data/lib/7.0/generated/azure_key_vault/models/issuer_bundle.rb +95 -0
- data/lib/7.0/generated/azure_key_vault/models/issuer_credentials.rb +57 -0
- data/lib/7.0/generated/azure_key_vault/models/issuer_parameters.rb +71 -0
- data/lib/7.0/generated/azure_key_vault/models/json_web_key.rb +223 -0
- data/lib/7.0/generated/azure_key_vault/models/json_web_key_curve_name.rb +18 -0
- data/lib/7.0/generated/azure_key_vault/models/json_web_key_encryption_algorithm.rb +17 -0
- data/lib/7.0/generated/azure_key_vault/models/json_web_key_operation.rb +20 -0
- data/lib/7.0/generated/azure_key_vault/models/json_web_key_signature_algorithm.rb +25 -0
- data/lib/7.0/generated/azure_key_vault/models/json_web_key_type.rb +19 -0
- data/lib/7.0/generated/azure_key_vault/models/key_attributes.rb +95 -0
- data/lib/7.0/generated/azure_key_vault/models/key_bundle.rb +92 -0
- data/lib/7.0/generated/azure_key_vault/models/key_create_parameters.rb +127 -0
- data/lib/7.0/generated/azure_key_vault/models/key_import_parameters.rb +91 -0
- data/lib/7.0/generated/azure_key_vault/models/key_item.rb +91 -0
- data/lib/7.0/generated/azure_key_vault/models/key_list_result.rb +101 -0
- data/lib/7.0/generated/azure_key_vault/models/key_operation_result.rb +59 -0
- data/lib/7.0/generated/azure_key_vault/models/key_operations_parameters.rb +61 -0
- data/lib/7.0/generated/azure_key_vault/models/key_properties.rb +96 -0
- data/lib/7.0/generated/azure_key_vault/models/key_restore_parameters.rb +46 -0
- data/lib/7.0/generated/azure_key_vault/models/key_sign_parameters.rb +64 -0
- data/lib/7.0/generated/azure_key_vault/models/key_update_parameters.rb +87 -0
- data/lib/7.0/generated/azure_key_vault/models/key_usage_type.rb +23 -0
- data/lib/7.0/generated/azure_key_vault/models/key_vault_error.rb +48 -0
- data/lib/7.0/generated/azure_key_vault/models/key_verify_parameters.rb +75 -0
- data/lib/7.0/generated/azure_key_vault/models/key_verify_result.rb +47 -0
- data/lib/7.0/generated/azure_key_vault/models/lifetime_action.rb +60 -0
- data/lib/7.0/generated/azure_key_vault/models/organization_details.rb +67 -0
- data/lib/7.0/generated/azure_key_vault/models/pending_certificate_signing_request_result.rb +48 -0
- data/lib/7.0/generated/azure_key_vault/models/sas_definition_attributes.rb +88 -0
- data/lib/7.0/generated/azure_key_vault/models/sas_definition_bundle.rb +134 -0
- data/lib/7.0/generated/azure_key_vault/models/sas_definition_create_parameters.rb +104 -0
- data/lib/7.0/generated/azure_key_vault/models/sas_definition_item.rb +94 -0
- data/lib/7.0/generated/azure_key_vault/models/sas_definition_list_result.rb +102 -0
- data/lib/7.0/generated/azure_key_vault/models/sas_definition_update_parameters.rb +104 -0
- data/lib/7.0/generated/azure_key_vault/models/sas_token_type.rb +16 -0
- data/lib/7.0/generated/azure_key_vault/models/secret_attributes.rb +95 -0
- data/lib/7.0/generated/azure_key_vault/models/secret_bundle.rb +127 -0
- data/lib/7.0/generated/azure_key_vault/models/secret_item.rb +103 -0
- data/lib/7.0/generated/azure_key_vault/models/secret_list_result.rb +101 -0
- data/lib/7.0/generated/azure_key_vault/models/secret_properties.rb +46 -0
- data/lib/7.0/generated/azure_key_vault/models/secret_restore_parameters.rb +46 -0
- data/lib/7.0/generated/azure_key_vault/models/secret_set_parameters.rb +89 -0
- data/lib/7.0/generated/azure_key_vault/models/secret_update_parameters.rb +78 -0
- data/lib/7.0/generated/azure_key_vault/models/storage_account_attributes.rb +88 -0
- data/lib/7.0/generated/azure_key_vault/models/storage_account_create_parameters.rb +114 -0
- data/lib/7.0/generated/azure_key_vault/models/storage_account_item.rb +94 -0
- data/lib/7.0/generated/azure_key_vault/models/storage_account_regenerte_key_parameters.rb +46 -0
- data/lib/7.0/generated/azure_key_vault/models/storage_account_update_parameters.rb +103 -0
- data/lib/7.0/generated/azure_key_vault/models/storage_bundle.rb +132 -0
- data/lib/7.0/generated/azure_key_vault/models/storage_list_result.rb +102 -0
- data/lib/7.0/generated/azure_key_vault/models/storage_restore_parameters.rb +46 -0
- data/lib/7.0/generated/azure_key_vault/models/subject_alternative_names.rb +92 -0
- data/lib/7.0/generated/azure_key_vault/models/trigger.rb +65 -0
- data/lib/7.0/generated/azure_key_vault/models/x509certificate_properties.rb +111 -0
- data/lib/7.0/generated/azure_key_vault/module_definition.rb +8 -0
- data/lib/azure_key_vault.rb +1 -0
- data/lib/profiles/latest/modules/keyvault_profile_module.rb +266 -222
- data/lib/version.rb +1 -1
- metadata +107 -4
@@ -0,0 +1,102 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::KeyVault::V7_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The deleted secret list result
|
10
|
+
#
|
11
|
+
class DeletedSecretListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<DeletedSecretItem>] A response message containing a list
|
17
|
+
# of the deleted secrets in the vault along with a link to the next page
|
18
|
+
# of deleted secrets
|
19
|
+
attr_accessor :value
|
20
|
+
|
21
|
+
# @return [String] The URL to get the next set of deleted secrets.
|
22
|
+
attr_accessor :next_link
|
23
|
+
|
24
|
+
# return [Proc] with next page method call.
|
25
|
+
attr_accessor :next_method
|
26
|
+
|
27
|
+
#
|
28
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
29
|
+
#
|
30
|
+
# @return [Array<DeletedSecretItem>] operation results.
|
31
|
+
#
|
32
|
+
def get_all_items
|
33
|
+
items = @value
|
34
|
+
page = self
|
35
|
+
while page.next_link != nil do
|
36
|
+
page = page.get_next_page
|
37
|
+
items.concat(page.value)
|
38
|
+
end
|
39
|
+
items
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
# Gets the next page of results.
|
44
|
+
#
|
45
|
+
# @return [DeletedSecretListResult] with next page content.
|
46
|
+
#
|
47
|
+
def get_next_page
|
48
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
49
|
+
unless response.nil?
|
50
|
+
@next_link = response.body.next_link
|
51
|
+
@value = response.body.value
|
52
|
+
self
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
#
|
57
|
+
# Mapper for DeletedSecretListResult class as Ruby Hash.
|
58
|
+
# This will be used for serialization/deserialization.
|
59
|
+
#
|
60
|
+
def self.mapper()
|
61
|
+
{
|
62
|
+
client_side_validation: true,
|
63
|
+
required: false,
|
64
|
+
serialized_name: 'DeletedSecretListResult',
|
65
|
+
type: {
|
66
|
+
name: 'Composite',
|
67
|
+
class_name: 'DeletedSecretListResult',
|
68
|
+
model_properties: {
|
69
|
+
value: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: false,
|
72
|
+
read_only: true,
|
73
|
+
serialized_name: 'value',
|
74
|
+
type: {
|
75
|
+
name: 'Sequence',
|
76
|
+
element: {
|
77
|
+
client_side_validation: true,
|
78
|
+
required: false,
|
79
|
+
serialized_name: 'DeletedSecretItemElementType',
|
80
|
+
type: {
|
81
|
+
name: 'Composite',
|
82
|
+
class_name: 'DeletedSecretItem'
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
},
|
87
|
+
next_link: {
|
88
|
+
client_side_validation: true,
|
89
|
+
required: false,
|
90
|
+
read_only: true,
|
91
|
+
serialized_name: 'nextLink',
|
92
|
+
type: {
|
93
|
+
name: 'String'
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
@@ -0,0 +1,118 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::KeyVault::V7_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The deleted storage account item containing metadata about the deleted
|
10
|
+
# storage account.
|
11
|
+
#
|
12
|
+
class DeletedStorageAccountItem < StorageAccountItem
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] The url of the recovery object, used to identify and
|
17
|
+
# recover the deleted storage account.
|
18
|
+
attr_accessor :recovery_id
|
19
|
+
|
20
|
+
# @return The time when the storage account is scheduled to be purged, in
|
21
|
+
# UTC
|
22
|
+
attr_accessor :scheduled_purge_date
|
23
|
+
|
24
|
+
# @return The time when the storage account was deleted, in UTC
|
25
|
+
attr_accessor :deleted_date
|
26
|
+
|
27
|
+
|
28
|
+
#
|
29
|
+
# Mapper for DeletedStorageAccountItem class as Ruby Hash.
|
30
|
+
# This will be used for serialization/deserialization.
|
31
|
+
#
|
32
|
+
def self.mapper()
|
33
|
+
{
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'DeletedStorageAccountItem',
|
37
|
+
type: {
|
38
|
+
name: 'Composite',
|
39
|
+
class_name: 'DeletedStorageAccountItem',
|
40
|
+
model_properties: {
|
41
|
+
id: {
|
42
|
+
client_side_validation: true,
|
43
|
+
required: false,
|
44
|
+
read_only: true,
|
45
|
+
serialized_name: 'id',
|
46
|
+
type: {
|
47
|
+
name: 'String'
|
48
|
+
}
|
49
|
+
},
|
50
|
+
resource_id: {
|
51
|
+
client_side_validation: true,
|
52
|
+
required: false,
|
53
|
+
read_only: true,
|
54
|
+
serialized_name: 'resourceId',
|
55
|
+
type: {
|
56
|
+
name: 'String'
|
57
|
+
}
|
58
|
+
},
|
59
|
+
attributes: {
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
read_only: true,
|
63
|
+
serialized_name: 'attributes',
|
64
|
+
type: {
|
65
|
+
name: 'Composite',
|
66
|
+
class_name: 'StorageAccountAttributes'
|
67
|
+
}
|
68
|
+
},
|
69
|
+
tags: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: false,
|
72
|
+
read_only: true,
|
73
|
+
serialized_name: 'tags',
|
74
|
+
type: {
|
75
|
+
name: 'Dictionary',
|
76
|
+
value: {
|
77
|
+
client_side_validation: true,
|
78
|
+
required: false,
|
79
|
+
serialized_name: 'StringElementType',
|
80
|
+
type: {
|
81
|
+
name: 'String'
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
},
|
86
|
+
recovery_id: {
|
87
|
+
client_side_validation: true,
|
88
|
+
required: false,
|
89
|
+
serialized_name: 'recoveryId',
|
90
|
+
type: {
|
91
|
+
name: 'String'
|
92
|
+
}
|
93
|
+
},
|
94
|
+
scheduled_purge_date: {
|
95
|
+
client_side_validation: true,
|
96
|
+
required: false,
|
97
|
+
read_only: true,
|
98
|
+
serialized_name: 'scheduledPurgeDate',
|
99
|
+
type: {
|
100
|
+
name: 'UnixTime'
|
101
|
+
}
|
102
|
+
},
|
103
|
+
deleted_date: {
|
104
|
+
client_side_validation: true,
|
105
|
+
required: false,
|
106
|
+
read_only: true,
|
107
|
+
serialized_name: 'deletedDate',
|
108
|
+
type: {
|
109
|
+
name: 'UnixTime'
|
110
|
+
}
|
111
|
+
}
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
118
|
+
end
|
@@ -0,0 +1,146 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::KeyVault::V7_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# A deleted storage account bundle consisting of its previous id,
|
10
|
+
# attributes and its tags, as well as information on when it will be
|
11
|
+
# purged.
|
12
|
+
#
|
13
|
+
class DeletedStorageBundle < StorageBundle
|
14
|
+
|
15
|
+
include MsRestAzure
|
16
|
+
|
17
|
+
# @return [String] The url of the recovery object, used to identify and
|
18
|
+
# recover the deleted storage account.
|
19
|
+
attr_accessor :recovery_id
|
20
|
+
|
21
|
+
# @return The time when the storage account is scheduled to be purged, in
|
22
|
+
# UTC
|
23
|
+
attr_accessor :scheduled_purge_date
|
24
|
+
|
25
|
+
# @return The time when the storage account was deleted, in UTC
|
26
|
+
attr_accessor :deleted_date
|
27
|
+
|
28
|
+
|
29
|
+
#
|
30
|
+
# Mapper for DeletedStorageBundle class as Ruby Hash.
|
31
|
+
# This will be used for serialization/deserialization.
|
32
|
+
#
|
33
|
+
def self.mapper()
|
34
|
+
{
|
35
|
+
client_side_validation: true,
|
36
|
+
required: false,
|
37
|
+
serialized_name: 'DeletedStorageBundle',
|
38
|
+
type: {
|
39
|
+
name: 'Composite',
|
40
|
+
class_name: 'DeletedStorageBundle',
|
41
|
+
model_properties: {
|
42
|
+
id: {
|
43
|
+
client_side_validation: true,
|
44
|
+
required: false,
|
45
|
+
read_only: true,
|
46
|
+
serialized_name: 'id',
|
47
|
+
type: {
|
48
|
+
name: 'String'
|
49
|
+
}
|
50
|
+
},
|
51
|
+
resource_id: {
|
52
|
+
client_side_validation: true,
|
53
|
+
required: false,
|
54
|
+
read_only: true,
|
55
|
+
serialized_name: 'resourceId',
|
56
|
+
type: {
|
57
|
+
name: 'String'
|
58
|
+
}
|
59
|
+
},
|
60
|
+
active_key_name: {
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
read_only: true,
|
64
|
+
serialized_name: 'activeKeyName',
|
65
|
+
type: {
|
66
|
+
name: 'String'
|
67
|
+
}
|
68
|
+
},
|
69
|
+
auto_regenerate_key: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: false,
|
72
|
+
read_only: true,
|
73
|
+
serialized_name: 'autoRegenerateKey',
|
74
|
+
type: {
|
75
|
+
name: 'Boolean'
|
76
|
+
}
|
77
|
+
},
|
78
|
+
regeneration_period: {
|
79
|
+
client_side_validation: true,
|
80
|
+
required: false,
|
81
|
+
read_only: true,
|
82
|
+
serialized_name: 'regenerationPeriod',
|
83
|
+
type: {
|
84
|
+
name: 'String'
|
85
|
+
}
|
86
|
+
},
|
87
|
+
attributes: {
|
88
|
+
client_side_validation: true,
|
89
|
+
required: false,
|
90
|
+
read_only: true,
|
91
|
+
serialized_name: 'attributes',
|
92
|
+
type: {
|
93
|
+
name: 'Composite',
|
94
|
+
class_name: 'StorageAccountAttributes'
|
95
|
+
}
|
96
|
+
},
|
97
|
+
tags: {
|
98
|
+
client_side_validation: true,
|
99
|
+
required: false,
|
100
|
+
read_only: true,
|
101
|
+
serialized_name: 'tags',
|
102
|
+
type: {
|
103
|
+
name: 'Dictionary',
|
104
|
+
value: {
|
105
|
+
client_side_validation: true,
|
106
|
+
required: false,
|
107
|
+
serialized_name: 'StringElementType',
|
108
|
+
type: {
|
109
|
+
name: 'String'
|
110
|
+
}
|
111
|
+
}
|
112
|
+
}
|
113
|
+
},
|
114
|
+
recovery_id: {
|
115
|
+
client_side_validation: true,
|
116
|
+
required: false,
|
117
|
+
serialized_name: 'recoveryId',
|
118
|
+
type: {
|
119
|
+
name: 'String'
|
120
|
+
}
|
121
|
+
},
|
122
|
+
scheduled_purge_date: {
|
123
|
+
client_side_validation: true,
|
124
|
+
required: false,
|
125
|
+
read_only: true,
|
126
|
+
serialized_name: 'scheduledPurgeDate',
|
127
|
+
type: {
|
128
|
+
name: 'UnixTime'
|
129
|
+
}
|
130
|
+
},
|
131
|
+
deleted_date: {
|
132
|
+
client_side_validation: true,
|
133
|
+
required: false,
|
134
|
+
read_only: true,
|
135
|
+
serialized_name: 'deletedDate',
|
136
|
+
type: {
|
137
|
+
name: 'UnixTime'
|
138
|
+
}
|
139
|
+
}
|
140
|
+
}
|
141
|
+
}
|
142
|
+
}
|
143
|
+
end
|
144
|
+
end
|
145
|
+
end
|
146
|
+
end
|
@@ -0,0 +1,103 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::KeyVault::V7_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The deleted storage account list result
|
10
|
+
#
|
11
|
+
class DeletedStorageListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<DeletedStorageAccountItem>] A response message
|
17
|
+
# containing a list of the deleted storage accounts in the vault along
|
18
|
+
# with a link to the next page of deleted storage accounts
|
19
|
+
attr_accessor :value
|
20
|
+
|
21
|
+
# @return [String] The URL to get the next set of deleted storage
|
22
|
+
# accounts.
|
23
|
+
attr_accessor :next_link
|
24
|
+
|
25
|
+
# return [Proc] with next page method call.
|
26
|
+
attr_accessor :next_method
|
27
|
+
|
28
|
+
#
|
29
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
30
|
+
#
|
31
|
+
# @return [Array<DeletedStorageAccountItem>] operation results.
|
32
|
+
#
|
33
|
+
def get_all_items
|
34
|
+
items = @value
|
35
|
+
page = self
|
36
|
+
while page.next_link != nil do
|
37
|
+
page = page.get_next_page
|
38
|
+
items.concat(page.value)
|
39
|
+
end
|
40
|
+
items
|
41
|
+
end
|
42
|
+
|
43
|
+
#
|
44
|
+
# Gets the next page of results.
|
45
|
+
#
|
46
|
+
# @return [DeletedStorageListResult] with next page content.
|
47
|
+
#
|
48
|
+
def get_next_page
|
49
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
50
|
+
unless response.nil?
|
51
|
+
@next_link = response.body.next_link
|
52
|
+
@value = response.body.value
|
53
|
+
self
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
#
|
58
|
+
# Mapper for DeletedStorageListResult class as Ruby Hash.
|
59
|
+
# This will be used for serialization/deserialization.
|
60
|
+
#
|
61
|
+
def self.mapper()
|
62
|
+
{
|
63
|
+
client_side_validation: true,
|
64
|
+
required: false,
|
65
|
+
serialized_name: 'DeletedStorageListResult',
|
66
|
+
type: {
|
67
|
+
name: 'Composite',
|
68
|
+
class_name: 'DeletedStorageListResult',
|
69
|
+
model_properties: {
|
70
|
+
value: {
|
71
|
+
client_side_validation: true,
|
72
|
+
required: false,
|
73
|
+
read_only: true,
|
74
|
+
serialized_name: 'value',
|
75
|
+
type: {
|
76
|
+
name: 'Sequence',
|
77
|
+
element: {
|
78
|
+
client_side_validation: true,
|
79
|
+
required: false,
|
80
|
+
serialized_name: 'DeletedStorageAccountItemElementType',
|
81
|
+
type: {
|
82
|
+
name: 'Composite',
|
83
|
+
class_name: 'DeletedStorageAccountItem'
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
},
|
88
|
+
next_link: {
|
89
|
+
client_side_validation: true,
|
90
|
+
required: false,
|
91
|
+
read_only: true,
|
92
|
+
serialized_name: 'nextLink',
|
93
|
+
type: {
|
94
|
+
name: 'String'
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|