azure_key_vault 0.18.1 → 0.19.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 +38 -38
- data/lib/2015-06-01/generated/azure_key_vault/models/certificate_import_parameters.rb +1 -1
- data/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb +46 -46
- data/lib/2016-10-01/generated/azure_key_vault/models/certificate_import_parameters.rb +1 -1
- data/lib/7.0-preview/generated/azure_key_vault/key_vault_client.rb +50 -50
- data/lib/7.0-preview/generated/azure_key_vault/models/certificate_import_parameters.rb +1 -1
- data/lib/7.0/generated/azure_key_vault/key_vault_client.rb +49 -49
- data/lib/7.0/generated/azure_key_vault/models/certificate_import_parameters.rb +1 -1
- data/lib/7.1-preview/generated/azure_key_vault/key_vault_client.rb +50 -50
- data/lib/7.1-preview/generated/azure_key_vault/models/certificate_import_parameters.rb +1 -1
- data/lib/7.1/generated/azure_key_vault/key_vault_client.rb +50 -50
- data/lib/7.1/generated/azure_key_vault/models/certificate_import_parameters.rb +1 -1
- data/lib/7.2-preview/generated/azure_key_vault.rb +56 -64
- data/lib/7.2-preview/generated/azure_key_vault/hsmsecurity_domain.rb +206 -49
- data/lib/7.2-preview/generated/azure_key_vault/key_vault_client.rb +68 -218
- data/lib/7.2-preview/generated/azure_key_vault/models/certificate_import_parameters.rb +1 -1
- data/lib/7.2-preview/generated/azure_key_vault/models/certificate_info_object.rb +1 -1
- data/lib/7.2-preview/generated/azure_key_vault/models/data_action.rb +43 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/deleted_key_bundle.rb +0 -9
- data/lib/7.2-preview/generated/azure_key_vault/models/json_web_key_operation.rb +0 -1
- data/lib/7.2-preview/generated/azure_key_vault/models/key_attributes.rb +0 -11
- data/lib/7.2-preview/generated/azure_key_vault/models/key_bundle.rb +0 -13
- data/lib/7.2-preview/generated/azure_key_vault/models/key_create_parameters.rb +0 -13
- data/lib/7.2-preview/generated/azure_key_vault/models/key_import_parameters.rb +0 -13
- data/lib/7.2-preview/generated/azure_key_vault/models/key_operation_result.rb +36 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/key_properties.rb +0 -11
- data/lib/7.2-preview/generated/azure_key_vault/models/key_update_parameters.rb +0 -13
- data/lib/7.2-preview/generated/azure_key_vault/models/permission.rb +10 -6
- data/lib/7.2-preview/generated/azure_key_vault/models/restore_operation_parameters.rb +2 -1
- data/lib/7.2-preview/generated/azure_key_vault/models/role_assignment_properties_with_scope.rb +1 -1
- data/lib/7.2-preview/generated/azure_key_vault/models/role_definition.rb +6 -4
- data/lib/7.2-preview/generated/azure_key_vault/models/{security_domain_upload_object.rb → role_definition_create_parameters.rb} +10 -10
- data/lib/7.2-preview/generated/azure_key_vault/models/role_definition_properties.rb +108 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/role_definition_type.rb +15 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/{key_release_policy_version.rb → role_scope.rb} +4 -3
- data/lib/7.2-preview/generated/azure_key_vault/models/{key_release_condition_condition.rb → role_type.rb} +4 -3
- data/lib/7.2-preview/generated/azure_key_vault/models/security_domain_json_web_key.rb +1 -1
- data/lib/7.2-preview/generated/azure_key_vault/models/security_domain_object.rb +6 -7
- data/lib/7.2-preview/generated/azure_key_vault/models/selective_key_restore_operation_parameters.rb +2 -1
- data/lib/7.2-preview/generated/azure_key_vault/role_definitions.rb +335 -0
- data/lib/azure_key_vault.rb +5 -5
- data/lib/profiles/latest/modules/keyvault_profile_module.rb +180 -212
- data/lib/version.rb +1 -1
- metadata +8 -16
- data/lib/7.2-preview/generated/azure_key_vault/models/enc_data_set.rb +0 -72
- data/lib/7.2-preview/generated/azure_key_vault/models/enc_data_set_item.rb +0 -58
- data/lib/7.2-preview/generated/azure_key_vault/models/key.rb +0 -58
- data/lib/7.2-preview/generated/azure_key_vault/models/key_export_parameters.rb +0 -49
- data/lib/7.2-preview/generated/azure_key_vault/models/key_release_authority.rb +0 -70
- data/lib/7.2-preview/generated/azure_key_vault/models/key_release_condition.rb +0 -76
- data/lib/7.2-preview/generated/azure_key_vault/models/key_release_policy.rb +0 -68
- data/lib/7.2-preview/generated/azure_key_vault/models/security_domain_object_data.rb +0 -71
- data/lib/7.2-preview/generated/azure_key_vault/models/security_domain_object_data_shared_keys.rb +0 -87
- data/lib/7.2-preview/generated/azure_key_vault/models/security_domain_upload_object_value.rb +0 -61
- data/lib/7.2-preview/generated/azure_key_vault/models/security_domain_upload_object_value_wrapped_key.rb +0 -59
@@ -16,7 +16,7 @@ module Azure::KeyVault::V7_1
|
|
16
16
|
# need to contain the private key.
|
17
17
|
attr_accessor :base64encoded_certificate
|
18
18
|
|
19
|
-
# @return [String] If the private key in
|
19
|
+
# @return [String] If the private key in base64encoded_certificate is
|
20
20
|
# encrypted, the password used for encryption.
|
21
21
|
attr_accessor :password
|
22
22
|
|
@@ -26,20 +26,20 @@ module Azure::KeyVault::V7_2_preview
|
|
26
26
|
autoload :KeyVaultClient, '7.2-preview/generated/azure_key_vault/key_vault_client.rb'
|
27
27
|
|
28
28
|
module Models
|
29
|
+
autoload :BackupKeyResult, '7.2-preview/generated/azure_key_vault/models/backup_key_result.rb'
|
29
30
|
autoload :RoleAssignmentFilter, '7.2-preview/generated/azure_key_vault/models/role_assignment_filter.rb'
|
30
|
-
autoload :RoleAssignmentPropertiesWithScope, '7.2-preview/generated/azure_key_vault/models/role_assignment_properties_with_scope.rb'
|
31
31
|
autoload :CertificateItem, '7.2-preview/generated/azure_key_vault/models/certificate_item.rb'
|
32
|
-
autoload :
|
32
|
+
autoload :RoleAssignmentPropertiesWithScope, '7.2-preview/generated/azure_key_vault/models/role_assignment_properties_with_scope.rb'
|
33
33
|
autoload :KeyProperties, '7.2-preview/generated/azure_key_vault/models/key_properties.rb'
|
34
|
-
autoload :
|
34
|
+
autoload :RoleAssignment, '7.2-preview/generated/azure_key_vault/models/role_assignment.rb'
|
35
35
|
autoload :SubjectAlternativeNames, '7.2-preview/generated/azure_key_vault/models/subject_alternative_names.rb'
|
36
|
-
autoload :
|
36
|
+
autoload :RoleAssignmentListResult, '7.2-preview/generated/azure_key_vault/models/role_assignment_list_result.rb'
|
37
37
|
autoload :Trigger, '7.2-preview/generated/azure_key_vault/models/trigger.rb'
|
38
|
-
autoload :
|
38
|
+
autoload :RoleAssignmentProperties, '7.2-preview/generated/azure_key_vault/models/role_assignment_properties.rb'
|
39
39
|
autoload :LifetimeAction, '7.2-preview/generated/azure_key_vault/models/lifetime_action.rb'
|
40
|
-
autoload :RoleDefinitionFilter, '7.2-preview/generated/azure_key_vault/models/role_definition_filter.rb'
|
41
|
-
autoload :CertificatePolicy, '7.2-preview/generated/azure_key_vault/models/certificate_policy.rb'
|
42
40
|
autoload :Permission, '7.2-preview/generated/azure_key_vault/models/permission.rb'
|
41
|
+
autoload :CertificatePolicy, '7.2-preview/generated/azure_key_vault/models/certificate_policy.rb'
|
42
|
+
autoload :RoleDefinitionProperties, '7.2-preview/generated/azure_key_vault/models/role_definition_properties.rb'
|
43
43
|
autoload :CertificateIssuerItem, '7.2-preview/generated/azure_key_vault/models/certificate_issuer_item.rb'
|
44
44
|
autoload :SecretProperties, '7.2-preview/generated/azure_key_vault/models/secret_properties.rb'
|
45
45
|
autoload :Error, '7.2-preview/generated/azure_key_vault/models/error.rb'
|
@@ -51,91 +51,81 @@ module Azure::KeyVault::V7_2_preview
|
|
51
51
|
autoload :IssuerBundle, '7.2-preview/generated/azure_key_vault/models/issuer_bundle.rb'
|
52
52
|
autoload :CertificateBundle, '7.2-preview/generated/azure_key_vault/models/certificate_bundle.rb'
|
53
53
|
autoload :Contacts, '7.2-preview/generated/azure_key_vault/models/contacts.rb'
|
54
|
-
autoload :
|
54
|
+
autoload :CertificateInfoObject, '7.2-preview/generated/azure_key_vault/models/certificate_info_object.rb'
|
55
55
|
autoload :CertificateImportParameters, '7.2-preview/generated/azure_key_vault/models/certificate_import_parameters.rb'
|
56
|
-
autoload :
|
56
|
+
autoload :RoleDefinitionCreateParameters, '7.2-preview/generated/azure_key_vault/models/role_definition_create_parameters.rb'
|
57
57
|
autoload :CertificateMergeParameters, '7.2-preview/generated/azure_key_vault/models/certificate_merge_parameters.rb'
|
58
|
-
autoload :
|
58
|
+
autoload :RoleAssignmentCreateParameters, '7.2-preview/generated/azure_key_vault/models/role_assignment_create_parameters.rb'
|
59
59
|
autoload :CertificateIssuerUpdateParameters, '7.2-preview/generated/azure_key_vault/models/certificate_issuer_update_parameters.rb'
|
60
|
-
autoload :
|
60
|
+
autoload :RoleDefinitionFilter, '7.2-preview/generated/azure_key_vault/models/role_definition_filter.rb'
|
61
61
|
autoload :CertificateListResult, '7.2-preview/generated/azure_key_vault/models/certificate_list_result.rb'
|
62
|
-
autoload :
|
62
|
+
autoload :RoleDefinition, '7.2-preview/generated/azure_key_vault/models/role_definition.rb'
|
63
63
|
autoload :CertificateIssuerListResult, '7.2-preview/generated/azure_key_vault/models/certificate_issuer_list_result.rb'
|
64
|
-
autoload :
|
64
|
+
autoload :RoleDefinitionListResult, '7.2-preview/generated/azure_key_vault/models/role_definition_list_result.rb'
|
65
65
|
autoload :CertificateRestoreParameters, '7.2-preview/generated/azure_key_vault/models/certificate_restore_parameters.rb'
|
66
|
-
autoload :
|
66
|
+
autoload :SecurityDomainCertificateItem, '7.2-preview/generated/azure_key_vault/models/security_domain_certificate_item.rb'
|
67
67
|
autoload :Attributes, '7.2-preview/generated/azure_key_vault/models/attributes.rb'
|
68
|
-
autoload :
|
69
|
-
autoload :
|
68
|
+
autoload :SecretBundle, '7.2-preview/generated/azure_key_vault/models/secret_bundle.rb'
|
69
|
+
autoload :JsonWebKey, '7.2-preview/generated/azure_key_vault/models/json_web_key.rb'
|
70
|
+
autoload :SecretItem, '7.2-preview/generated/azure_key_vault/models/secret_item.rb'
|
71
|
+
autoload :KeyBundle, '7.2-preview/generated/azure_key_vault/models/key_bundle.rb'
|
72
|
+
autoload :SecurityDomainJsonWebKey, '7.2-preview/generated/azure_key_vault/models/security_domain_json_web_key.rb'
|
73
|
+
autoload :SecurityDomainObject, '7.2-preview/generated/azure_key_vault/models/security_domain_object.rb'
|
74
|
+
autoload :RestoreOperation, '7.2-preview/generated/azure_key_vault/models/restore_operation.rb'
|
75
|
+
autoload :KeyCreateParameters, '7.2-preview/generated/azure_key_vault/models/key_create_parameters.rb'
|
70
76
|
autoload :SecretRestoreParameters, '7.2-preview/generated/azure_key_vault/models/secret_restore_parameters.rb'
|
71
|
-
autoload :
|
77
|
+
autoload :KeyOperationsParameters, '7.2-preview/generated/azure_key_vault/models/key_operations_parameters.rb'
|
72
78
|
autoload :SecretSetParameters, '7.2-preview/generated/azure_key_vault/models/secret_set_parameters.rb'
|
73
|
-
autoload :
|
79
|
+
autoload :KeyVerifyParameters, '7.2-preview/generated/azure_key_vault/models/key_verify_parameters.rb'
|
74
80
|
autoload :SecretUpdateParameters, '7.2-preview/generated/azure_key_vault/models/secret_update_parameters.rb'
|
75
|
-
autoload :
|
81
|
+
autoload :KeyRestoreParameters, '7.2-preview/generated/azure_key_vault/models/key_restore_parameters.rb'
|
76
82
|
autoload :SecretListResult, '7.2-preview/generated/azure_key_vault/models/secret_list_result.rb'
|
77
|
-
autoload :
|
83
|
+
autoload :KeyVerifyResult, '7.2-preview/generated/azure_key_vault/models/key_verify_result.rb'
|
78
84
|
autoload :DeletedSecretListResult, '7.2-preview/generated/azure_key_vault/models/deleted_secret_list_result.rb'
|
79
|
-
autoload :
|
85
|
+
autoload :DeletedKeyListResult, '7.2-preview/generated/azure_key_vault/models/deleted_key_list_result.rb'
|
80
86
|
autoload :BackupSecretResult, '7.2-preview/generated/azure_key_vault/models/backup_secret_result.rb'
|
81
|
-
autoload :KeyOperationsParameters, '7.2-preview/generated/azure_key_vault/models/key_operations_parameters.rb'
|
82
87
|
autoload :StorageRestoreParameters, '7.2-preview/generated/azure_key_vault/models/storage_restore_parameters.rb'
|
83
|
-
autoload :
|
88
|
+
autoload :AdministratorDetails, '7.2-preview/generated/azure_key_vault/models/administrator_details.rb'
|
84
89
|
autoload :StorageAccountAttributes, '7.2-preview/generated/azure_key_vault/models/storage_account_attributes.rb'
|
85
|
-
autoload :
|
90
|
+
autoload :Contact, '7.2-preview/generated/azure_key_vault/models/contact.rb'
|
86
91
|
autoload :StorageBundle, '7.2-preview/generated/azure_key_vault/models/storage_bundle.rb'
|
87
|
-
autoload :
|
88
|
-
autoload :
|
89
|
-
autoload :
|
92
|
+
autoload :CertificateUpdateParameters, '7.2-preview/generated/azure_key_vault/models/certificate_update_parameters.rb'
|
93
|
+
autoload :FullBackupOperation, '7.2-preview/generated/azure_key_vault/models/full_backup_operation.rb'
|
94
|
+
autoload :CertificateOperationUpdateParameter, '7.2-preview/generated/azure_key_vault/models/certificate_operation_update_parameter.rb'
|
90
95
|
autoload :StorageAccountCreateParameters, '7.2-preview/generated/azure_key_vault/models/storage_account_create_parameters.rb'
|
91
|
-
autoload :
|
96
|
+
autoload :PendingCertificateSigningRequestResult, '7.2-preview/generated/azure_key_vault/models/pending_certificate_signing_request_result.rb'
|
92
97
|
autoload :StorageAccountUpdateParameters, '7.2-preview/generated/azure_key_vault/models/storage_account_update_parameters.rb'
|
93
|
-
autoload :
|
98
|
+
autoload :KeyVaultError, '7.2-preview/generated/azure_key_vault/models/key_vault_error.rb'
|
94
99
|
autoload :StorageAccountRegenerteKeyParameters, '7.2-preview/generated/azure_key_vault/models/storage_account_regenerte_key_parameters.rb'
|
95
|
-
autoload :
|
100
|
+
autoload :KeyItem, '7.2-preview/generated/azure_key_vault/models/key_item.rb'
|
96
101
|
autoload :StorageAccountItem, '7.2-preview/generated/azure_key_vault/models/storage_account_item.rb'
|
97
|
-
autoload :
|
98
|
-
autoload :
|
99
|
-
autoload :
|
102
|
+
autoload :KeyImportParameters, '7.2-preview/generated/azure_key_vault/models/key_import_parameters.rb'
|
103
|
+
autoload :SelectiveKeyRestoreOperation, '7.2-preview/generated/azure_key_vault/models/selective_key_restore_operation.rb'
|
104
|
+
autoload :KeyUpdateParameters, '7.2-preview/generated/azure_key_vault/models/key_update_parameters.rb'
|
100
105
|
autoload :StorageListResult, '7.2-preview/generated/azure_key_vault/models/storage_list_result.rb'
|
101
|
-
autoload :
|
106
|
+
autoload :KeyListResult, '7.2-preview/generated/azure_key_vault/models/key_list_result.rb'
|
102
107
|
autoload :DeletedStorageListResult, '7.2-preview/generated/azure_key_vault/models/deleted_storage_list_result.rb'
|
103
|
-
autoload :
|
108
|
+
autoload :CertificateOperation, '7.2-preview/generated/azure_key_vault/models/certificate_operation.rb'
|
104
109
|
autoload :SasDefinitionAttributes, '7.2-preview/generated/azure_key_vault/models/sas_definition_attributes.rb'
|
105
|
-
autoload :
|
110
|
+
autoload :CertificateCreateParameters, '7.2-preview/generated/azure_key_vault/models/certificate_create_parameters.rb'
|
106
111
|
autoload :SasDefinitionBundle, '7.2-preview/generated/azure_key_vault/models/sas_definition_bundle.rb'
|
107
|
-
autoload :
|
108
|
-
autoload :
|
109
|
-
autoload :
|
112
|
+
autoload :DeletedCertificateListResult, '7.2-preview/generated/azure_key_vault/models/deleted_certificate_list_result.rb'
|
113
|
+
autoload :SelectiveKeyRestoreOperationParameters, '7.2-preview/generated/azure_key_vault/models/selective_key_restore_operation_parameters.rb'
|
114
|
+
autoload :SecurityDomainOperationStatus, '7.2-preview/generated/azure_key_vault/models/security_domain_operation_status.rb'
|
110
115
|
autoload :SasDefinitionItem, '7.2-preview/generated/azure_key_vault/models/sas_definition_item.rb'
|
111
|
-
autoload :
|
112
|
-
autoload :
|
113
|
-
autoload :
|
116
|
+
autoload :KeySignParameters, '7.2-preview/generated/azure_key_vault/models/key_sign_parameters.rb'
|
117
|
+
autoload :RestoreOperationParameters, '7.2-preview/generated/azure_key_vault/models/restore_operation_parameters.rb'
|
118
|
+
autoload :SASTokenParameter, '7.2-preview/generated/azure_key_vault/models/sastoken_parameter.rb'
|
119
|
+
autoload :IssuerAttributes, '7.2-preview/generated/azure_key_vault/models/issuer_attributes.rb'
|
114
120
|
autoload :SasDefinitionListResult, '7.2-preview/generated/azure_key_vault/models/sas_definition_list_result.rb'
|
115
|
-
autoload :
|
121
|
+
autoload :BackupCertificateResult, '7.2-preview/generated/azure_key_vault/models/backup_certificate_result.rb'
|
116
122
|
autoload :DeletedSasDefinitionListResult, '7.2-preview/generated/azure_key_vault/models/deleted_sas_definition_list_result.rb'
|
117
|
-
autoload :
|
123
|
+
autoload :KeyOperationResult, '7.2-preview/generated/azure_key_vault/models/key_operation_result.rb'
|
118
124
|
autoload :SasDefinitionCreateParameters, '7.2-preview/generated/azure_key_vault/models/sas_definition_create_parameters.rb'
|
119
|
-
autoload :
|
125
|
+
autoload :TransferKey, '7.2-preview/generated/azure_key_vault/models/transfer_key.rb'
|
120
126
|
autoload :SasDefinitionUpdateParameters, '7.2-preview/generated/azure_key_vault/models/sas_definition_update_parameters.rb'
|
121
|
-
autoload :KeyReleaseAuthority, '7.2-preview/generated/azure_key_vault/models/key_release_authority.rb'
|
122
|
-
autoload :BackupStorageResult, '7.2-preview/generated/azure_key_vault/models/backup_storage_result.rb'
|
123
|
-
autoload :KeyCreateParameters, '7.2-preview/generated/azure_key_vault/models/key_create_parameters.rb'
|
124
|
-
autoload :SASTokenParameter, '7.2-preview/generated/azure_key_vault/models/sastoken_parameter.rb'
|
125
|
-
autoload :KeyOperationResult, '7.2-preview/generated/azure_key_vault/models/key_operation_result.rb'
|
126
|
-
autoload :RestoreOperationParameters, '7.2-preview/generated/azure_key_vault/models/restore_operation_parameters.rb'
|
127
|
-
autoload :IssuerAttributes, '7.2-preview/generated/azure_key_vault/models/issuer_attributes.rb'
|
128
|
-
autoload :SelectiveKeyRestoreOperationParameters, '7.2-preview/generated/azure_key_vault/models/selective_key_restore_operation_parameters.rb'
|
129
|
-
autoload :BackupCertificateResult, '7.2-preview/generated/azure_key_vault/models/backup_certificate_result.rb'
|
130
|
-
autoload :SelectiveKeyRestoreOperation, '7.2-preview/generated/azure_key_vault/models/selective_key_restore_operation.rb'
|
131
|
-
autoload :KeySignParameters, '7.2-preview/generated/azure_key_vault/models/key_sign_parameters.rb'
|
132
|
-
autoload :FullBackupOperation, '7.2-preview/generated/azure_key_vault/models/full_backup_operation.rb'
|
133
127
|
autoload :CertificateIssuerSetParameters, '7.2-preview/generated/azure_key_vault/models/certificate_issuer_set_parameters.rb'
|
134
|
-
autoload :
|
135
|
-
autoload :BackupKeyResult, '7.2-preview/generated/azure_key_vault/models/backup_key_result.rb'
|
136
|
-
autoload :SecurityDomainJsonWebKey, '7.2-preview/generated/azure_key_vault/models/security_domain_json_web_key.rb'
|
137
|
-
autoload :KeyBundle, '7.2-preview/generated/azure_key_vault/models/key_bundle.rb'
|
138
|
-
autoload :SecurityDomainCertificateItem, '7.2-preview/generated/azure_key_vault/models/security_domain_certificate_item.rb'
|
128
|
+
autoload :BackupStorageResult, '7.2-preview/generated/azure_key_vault/models/backup_storage_result.rb'
|
139
129
|
autoload :CertificateAttributes, '7.2-preview/generated/azure_key_vault/models/certificate_attributes.rb'
|
140
130
|
autoload :DeletedCertificateBundle, '7.2-preview/generated/azure_key_vault/models/deleted_certificate_bundle.rb'
|
141
131
|
autoload :DeletedCertificateItem, '7.2-preview/generated/azure_key_vault/models/deleted_certificate_item.rb'
|
@@ -154,11 +144,13 @@ module Azure::KeyVault::V7_2_preview
|
|
154
144
|
autoload :JsonWebKeyCurveName, '7.2-preview/generated/azure_key_vault/models/json_web_key_curve_name.rb'
|
155
145
|
autoload :KeyUsageType, '7.2-preview/generated/azure_key_vault/models/key_usage_type.rb'
|
156
146
|
autoload :ActionType, '7.2-preview/generated/azure_key_vault/models/action_type.rb'
|
157
|
-
autoload :KeyReleaseConditionCondition, '7.2-preview/generated/azure_key_vault/models/key_release_condition_condition.rb'
|
158
|
-
autoload :KeyReleasePolicyVersion, '7.2-preview/generated/azure_key_vault/models/key_release_policy_version.rb'
|
159
147
|
autoload :JsonWebKeyOperation, '7.2-preview/generated/azure_key_vault/models/json_web_key_operation.rb'
|
160
148
|
autoload :JsonWebKeyEncryptionAlgorithm, '7.2-preview/generated/azure_key_vault/models/json_web_key_encryption_algorithm.rb'
|
161
149
|
autoload :JsonWebKeySignatureAlgorithm, '7.2-preview/generated/azure_key_vault/models/json_web_key_signature_algorithm.rb'
|
150
|
+
autoload :RoleScope, '7.2-preview/generated/azure_key_vault/models/role_scope.rb'
|
151
|
+
autoload :RoleType, '7.2-preview/generated/azure_key_vault/models/role_type.rb'
|
152
|
+
autoload :DataAction, '7.2-preview/generated/azure_key_vault/models/data_action.rb'
|
153
|
+
autoload :RoleDefinitionType, '7.2-preview/generated/azure_key_vault/models/role_definition_type.rb'
|
162
154
|
autoload :SasTokenType, '7.2-preview/generated/azure_key_vault/models/sas_token_type.rb'
|
163
155
|
autoload :OperationStatus, '7.2-preview/generated/azure_key_vault/models/operation_status.rb'
|
164
156
|
end
|
@@ -23,57 +23,46 @@ module Azure::KeyVault::V7_2_preview
|
|
23
23
|
attr_reader :client
|
24
24
|
|
25
25
|
#
|
26
|
-
# Retrieves Security
|
26
|
+
# Retrieves the Security Domain download operation status
|
27
27
|
#
|
28
28
|
# @param vault_base_url [String] The vault name, for example
|
29
29
|
# https://myvault.vault.azure.net.
|
30
|
-
# @param certificate_info_object [CertificateInfoObject] Security domain
|
31
|
-
# download operation requires customer to provide N certificates (minimum 3 and
|
32
|
-
# maximum 10) containing public key in JWK format.
|
33
30
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
34
31
|
# will be added to the HTTP request.
|
35
32
|
#
|
36
|
-
# @return [
|
33
|
+
# @return [SecurityDomainOperationStatus] operation results.
|
37
34
|
#
|
38
|
-
def
|
39
|
-
response =
|
35
|
+
def download_pending(vault_base_url, custom_headers:nil)
|
36
|
+
response = download_pending_async(vault_base_url, custom_headers:custom_headers).value!
|
40
37
|
response.body unless response.nil?
|
41
38
|
end
|
42
39
|
|
43
40
|
#
|
44
|
-
# Retrieves Security
|
41
|
+
# Retrieves the Security Domain download operation status
|
45
42
|
#
|
46
43
|
# @param vault_base_url [String] The vault name, for example
|
47
44
|
# https://myvault.vault.azure.net.
|
48
|
-
# @param certificate_info_object [CertificateInfoObject] Security domain
|
49
|
-
# download operation requires customer to provide N certificates (minimum 3 and
|
50
|
-
# maximum 10) containing public key in JWK format.
|
51
45
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
52
46
|
# will be added to the HTTP request.
|
53
47
|
#
|
54
48
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
55
49
|
#
|
56
|
-
def
|
57
|
-
|
50
|
+
def download_pending_with_http_info(vault_base_url, custom_headers:nil)
|
51
|
+
download_pending_async(vault_base_url, custom_headers:custom_headers).value!
|
58
52
|
end
|
59
53
|
|
60
54
|
#
|
61
|
-
# Retrieves Security
|
55
|
+
# Retrieves the Security Domain download operation status
|
62
56
|
#
|
63
57
|
# @param vault_base_url [String] The vault name, for example
|
64
58
|
# https://myvault.vault.azure.net.
|
65
|
-
# @param certificate_info_object [CertificateInfoObject] Security domain
|
66
|
-
# download operation requires customer to provide N certificates (minimum 3 and
|
67
|
-
# maximum 10) containing public key in JWK format.
|
68
59
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
69
60
|
# to the HTTP request.
|
70
61
|
#
|
71
62
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
72
63
|
#
|
73
|
-
def
|
64
|
+
def download_pending_async(vault_base_url, custom_headers:nil)
|
74
65
|
fail ArgumentError, 'vault_base_url is nil' if vault_base_url.nil?
|
75
|
-
fail ArgumentError, 'certificate_info_object is nil' if certificate_info_object.nil?
|
76
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
77
66
|
|
78
67
|
|
79
68
|
request_headers = {}
|
@@ -82,25 +71,17 @@ module Azure::KeyVault::V7_2_preview
|
|
82
71
|
# Set Headers
|
83
72
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
84
73
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
85
|
-
|
86
|
-
# Serialize Request
|
87
|
-
request_mapper = Azure::KeyVault::V7_2_preview::Models::CertificateInfoObject.mapper()
|
88
|
-
request_content = @client.serialize(request_mapper, certificate_info_object)
|
89
|
-
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
90
|
-
|
91
|
-
path_template = 'securitydomain/download'
|
74
|
+
path_template = 'securitydomain/download/pending'
|
92
75
|
|
93
76
|
request_url = @base_url || @client.base_url
|
94
77
|
request_url = request_url.gsub('{vaultBaseUrl}', vault_base_url)
|
95
78
|
|
96
79
|
options = {
|
97
80
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
98
|
-
query_params: {'api-version' => @client.api_version},
|
99
|
-
body: request_content,
|
100
81
|
headers: request_headers.merge(custom_headers || {}),
|
101
82
|
base_url: request_url
|
102
83
|
}
|
103
|
-
promise = @client.make_request_async(:
|
84
|
+
promise = @client.make_request_async(:get, path_template, options)
|
104
85
|
|
105
86
|
promise = promise.then do |result|
|
106
87
|
http_response = result.response
|
@@ -118,7 +99,7 @@ module Azure::KeyVault::V7_2_preview
|
|
118
99
|
if status_code == 200
|
119
100
|
begin
|
120
101
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
121
|
-
result_mapper = Azure::KeyVault::V7_2_preview::Models::
|
102
|
+
result_mapper = Azure::KeyVault::V7_2_preview::Models::SecurityDomainOperationStatus.mapper()
|
122
103
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
123
104
|
rescue Exception => e
|
124
105
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -132,7 +113,56 @@ module Azure::KeyVault::V7_2_preview
|
|
132
113
|
end
|
133
114
|
|
134
115
|
#
|
135
|
-
#
|
116
|
+
# Retrieves the Security Domain from the managed HSM. Calling this endpoint can
|
117
|
+
# be used to activate a provisioned managed HSM resource.
|
118
|
+
#
|
119
|
+
# @param vault_base_url [String] The vault name, for example
|
120
|
+
# https://myvault.vault.azure.net.
|
121
|
+
# @param certificate_info_object [CertificateInfoObject] The Security Domain
|
122
|
+
# download operation requires customer to provide N certificates (minimum 3 and
|
123
|
+
# maximum 10) containing a public key in JWK format.
|
124
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
125
|
+
# will be added to the HTTP request.
|
126
|
+
#
|
127
|
+
# @return [SecurityDomainObject] operation results.
|
128
|
+
#
|
129
|
+
def download(vault_base_url, certificate_info_object, custom_headers:nil)
|
130
|
+
response = download_async(vault_base_url, certificate_info_object, custom_headers:custom_headers).value!
|
131
|
+
response.body unless response.nil?
|
132
|
+
end
|
133
|
+
|
134
|
+
#
|
135
|
+
# @param vault_base_url [String] The vault name, for example
|
136
|
+
# https://myvault.vault.azure.net.
|
137
|
+
# @param certificate_info_object [CertificateInfoObject] The Security Domain
|
138
|
+
# download operation requires customer to provide N certificates (minimum 3 and
|
139
|
+
# maximum 10) containing a public key in JWK format.
|
140
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
141
|
+
# will be added to the HTTP request.
|
142
|
+
#
|
143
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
144
|
+
# response.
|
145
|
+
#
|
146
|
+
def download_async(vault_base_url, certificate_info_object, custom_headers:nil)
|
147
|
+
# Send request
|
148
|
+
promise = begin_download_async(vault_base_url, certificate_info_object, custom_headers:custom_headers)
|
149
|
+
|
150
|
+
promise = promise.then do |response|
|
151
|
+
# Defining deserialization method.
|
152
|
+
deserialize_method = lambda do |parsed_response|
|
153
|
+
result_mapper = Azure::KeyVault::V7_2_preview::Models::SecurityDomainObject.mapper()
|
154
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
155
|
+
end
|
156
|
+
|
157
|
+
# Waiting for response.
|
158
|
+
@client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::AZURE_ASYNC_OPERATION)
|
159
|
+
end
|
160
|
+
|
161
|
+
promise
|
162
|
+
end
|
163
|
+
|
164
|
+
#
|
165
|
+
# Retrieve Security Domain transfer key
|
136
166
|
#
|
137
167
|
# @param vault_base_url [String] The vault name, for example
|
138
168
|
# https://myvault.vault.azure.net.
|
@@ -147,7 +177,7 @@ module Azure::KeyVault::V7_2_preview
|
|
147
177
|
end
|
148
178
|
|
149
179
|
#
|
150
|
-
# Retrieve
|
180
|
+
# Retrieve Security Domain transfer key
|
151
181
|
#
|
152
182
|
# @param vault_base_url [String] The vault name, for example
|
153
183
|
# https://myvault.vault.azure.net.
|
@@ -161,7 +191,7 @@ module Azure::KeyVault::V7_2_preview
|
|
161
191
|
end
|
162
192
|
|
163
193
|
#
|
164
|
-
# Retrieve
|
194
|
+
# Retrieve Security Domain transfer key
|
165
195
|
#
|
166
196
|
# @param vault_base_url [String] The vault name, for example
|
167
197
|
# https://myvault.vault.azure.net.
|
@@ -181,7 +211,7 @@ module Azure::KeyVault::V7_2_preview
|
|
181
211
|
# Set Headers
|
182
212
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
183
213
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
184
|
-
path_template = 'securitydomain/
|
214
|
+
path_template = 'securitydomain/upload'
|
185
215
|
|
186
216
|
request_url = @base_url || @client.base_url
|
187
217
|
request_url = request_url.gsub('{vaultBaseUrl}', vault_base_url)
|
@@ -224,11 +254,12 @@ module Azure::KeyVault::V7_2_preview
|
|
224
254
|
end
|
225
255
|
|
226
256
|
#
|
227
|
-
#
|
257
|
+
# Restore the provided Security Domain.
|
228
258
|
#
|
229
259
|
# @param vault_base_url [String] The vault name, for example
|
230
260
|
# https://myvault.vault.azure.net.
|
231
|
-
# @param security_domain [
|
261
|
+
# @param security_domain [SecurityDomainObject] The Security Domain to be
|
262
|
+
# restored.
|
232
263
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
233
264
|
# will be added to the HTTP request.
|
234
265
|
#
|
@@ -242,7 +273,8 @@ module Azure::KeyVault::V7_2_preview
|
|
242
273
|
#
|
243
274
|
# @param vault_base_url [String] The vault name, for example
|
244
275
|
# https://myvault.vault.azure.net.
|
245
|
-
# @param security_domain [
|
276
|
+
# @param security_domain [SecurityDomainObject] The Security Domain to be
|
277
|
+
# restored.
|
246
278
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
247
279
|
# will be added to the HTTP request.
|
248
280
|
#
|
@@ -268,7 +300,7 @@ module Azure::KeyVault::V7_2_preview
|
|
268
300
|
end
|
269
301
|
|
270
302
|
#
|
271
|
-
# Get Security
|
303
|
+
# Get Security Domain upload operation status
|
272
304
|
#
|
273
305
|
# @param vault_base_url [String] The vault name, for example
|
274
306
|
# https://myvault.vault.azure.net.
|
@@ -283,7 +315,7 @@ module Azure::KeyVault::V7_2_preview
|
|
283
315
|
end
|
284
316
|
|
285
317
|
#
|
286
|
-
# Get Security
|
318
|
+
# Get Security Domain upload operation status
|
287
319
|
#
|
288
320
|
# @param vault_base_url [String] The vault name, for example
|
289
321
|
# https://myvault.vault.azure.net.
|
@@ -297,7 +329,7 @@ module Azure::KeyVault::V7_2_preview
|
|
297
329
|
end
|
298
330
|
|
299
331
|
#
|
300
|
-
# Get Security
|
332
|
+
# Get Security Domain upload operation status
|
301
333
|
#
|
302
334
|
# @param vault_base_url [String] The vault name, for example
|
303
335
|
# https://myvault.vault.azure.net.
|
@@ -358,11 +390,134 @@ module Azure::KeyVault::V7_2_preview
|
|
358
390
|
end
|
359
391
|
|
360
392
|
#
|
361
|
-
#
|
393
|
+
# Retrieves the Security Domain from the managed HSM. Calling this endpoint can
|
394
|
+
# be used to activate a provisioned managed HSM resource.
|
395
|
+
#
|
396
|
+
# @param vault_base_url [String] The vault name, for example
|
397
|
+
# https://myvault.vault.azure.net.
|
398
|
+
# @param certificate_info_object [CertificateInfoObject] The Security Domain
|
399
|
+
# download operation requires customer to provide N certificates (minimum 3 and
|
400
|
+
# maximum 10) containing a public key in JWK format.
|
401
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
402
|
+
# will be added to the HTTP request.
|
403
|
+
#
|
404
|
+
# @return [SecurityDomainObject] operation results.
|
405
|
+
#
|
406
|
+
def begin_download(vault_base_url, certificate_info_object, custom_headers:nil)
|
407
|
+
response = begin_download_async(vault_base_url, certificate_info_object, custom_headers:custom_headers).value!
|
408
|
+
response.body unless response.nil?
|
409
|
+
end
|
410
|
+
|
411
|
+
#
|
412
|
+
# Retrieves the Security Domain from the managed HSM. Calling this endpoint can
|
413
|
+
# be used to activate a provisioned managed HSM resource.
|
414
|
+
#
|
415
|
+
# @param vault_base_url [String] The vault name, for example
|
416
|
+
# https://myvault.vault.azure.net.
|
417
|
+
# @param certificate_info_object [CertificateInfoObject] The Security Domain
|
418
|
+
# download operation requires customer to provide N certificates (minimum 3 and
|
419
|
+
# maximum 10) containing a public key in JWK format.
|
420
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
421
|
+
# will be added to the HTTP request.
|
422
|
+
#
|
423
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
424
|
+
#
|
425
|
+
def begin_download_with_http_info(vault_base_url, certificate_info_object, custom_headers:nil)
|
426
|
+
begin_download_async(vault_base_url, certificate_info_object, custom_headers:custom_headers).value!
|
427
|
+
end
|
428
|
+
|
429
|
+
#
|
430
|
+
# Retrieves the Security Domain from the managed HSM. Calling this endpoint can
|
431
|
+
# be used to activate a provisioned managed HSM resource.
|
432
|
+
#
|
433
|
+
# @param vault_base_url [String] The vault name, for example
|
434
|
+
# https://myvault.vault.azure.net.
|
435
|
+
# @param certificate_info_object [CertificateInfoObject] The Security Domain
|
436
|
+
# download operation requires customer to provide N certificates (minimum 3 and
|
437
|
+
# maximum 10) containing a public key in JWK format.
|
438
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
439
|
+
# to the HTTP request.
|
440
|
+
#
|
441
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
442
|
+
#
|
443
|
+
def begin_download_async(vault_base_url, certificate_info_object, custom_headers:nil)
|
444
|
+
fail ArgumentError, 'vault_base_url is nil' if vault_base_url.nil?
|
445
|
+
fail ArgumentError, 'certificate_info_object is nil' if certificate_info_object.nil?
|
446
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
447
|
+
|
448
|
+
|
449
|
+
request_headers = {}
|
450
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
451
|
+
|
452
|
+
# Set Headers
|
453
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
454
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
455
|
+
|
456
|
+
# Serialize Request
|
457
|
+
request_mapper = Azure::KeyVault::V7_2_preview::Models::CertificateInfoObject.mapper()
|
458
|
+
request_content = @client.serialize(request_mapper, certificate_info_object)
|
459
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
460
|
+
|
461
|
+
path_template = 'securitydomain/download'
|
462
|
+
|
463
|
+
request_url = @base_url || @client.base_url
|
464
|
+
request_url = request_url.gsub('{vaultBaseUrl}', vault_base_url)
|
465
|
+
|
466
|
+
options = {
|
467
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
468
|
+
query_params: {'api-version' => @client.api_version},
|
469
|
+
body: request_content,
|
470
|
+
headers: request_headers.merge(custom_headers || {}),
|
471
|
+
base_url: request_url
|
472
|
+
}
|
473
|
+
promise = @client.make_request_async(:post, path_template, options)
|
474
|
+
|
475
|
+
promise = promise.then do |result|
|
476
|
+
http_response = result.response
|
477
|
+
status_code = http_response.status
|
478
|
+
response_content = http_response.body
|
479
|
+
unless status_code == 202 || status_code == 200
|
480
|
+
error_model = JSON.load(response_content)
|
481
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
482
|
+
end
|
483
|
+
|
484
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
485
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
486
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
487
|
+
# Deserialize Response
|
488
|
+
if status_code == 202
|
489
|
+
begin
|
490
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
491
|
+
result_mapper = Azure::KeyVault::V7_2_preview::Models::SecurityDomainObject.mapper()
|
492
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
493
|
+
rescue Exception => e
|
494
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
495
|
+
end
|
496
|
+
end
|
497
|
+
# Deserialize Response
|
498
|
+
if status_code == 200
|
499
|
+
begin
|
500
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
501
|
+
result_mapper = Azure::KeyVault::V7_2_preview::Models::SecurityDomainObject.mapper()
|
502
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
503
|
+
rescue Exception => e
|
504
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
505
|
+
end
|
506
|
+
end
|
507
|
+
|
508
|
+
result
|
509
|
+
end
|
510
|
+
|
511
|
+
promise.execute
|
512
|
+
end
|
513
|
+
|
514
|
+
#
|
515
|
+
# Restore the provided Security Domain.
|
362
516
|
#
|
363
517
|
# @param vault_base_url [String] The vault name, for example
|
364
518
|
# https://myvault.vault.azure.net.
|
365
|
-
# @param security_domain [
|
519
|
+
# @param security_domain [SecurityDomainObject] The Security Domain to be
|
520
|
+
# restored.
|
366
521
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
367
522
|
# will be added to the HTTP request.
|
368
523
|
#
|
@@ -374,11 +529,12 @@ module Azure::KeyVault::V7_2_preview
|
|
374
529
|
end
|
375
530
|
|
376
531
|
#
|
377
|
-
#
|
532
|
+
# Restore the provided Security Domain.
|
378
533
|
#
|
379
534
|
# @param vault_base_url [String] The vault name, for example
|
380
535
|
# https://myvault.vault.azure.net.
|
381
|
-
# @param security_domain [
|
536
|
+
# @param security_domain [SecurityDomainObject] The Security Domain to be
|
537
|
+
# restored.
|
382
538
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
383
539
|
# will be added to the HTTP request.
|
384
540
|
#
|
@@ -389,11 +545,12 @@ module Azure::KeyVault::V7_2_preview
|
|
389
545
|
end
|
390
546
|
|
391
547
|
#
|
392
|
-
#
|
548
|
+
# Restore the provided Security Domain.
|
393
549
|
#
|
394
550
|
# @param vault_base_url [String] The vault name, for example
|
395
551
|
# https://myvault.vault.azure.net.
|
396
|
-
# @param security_domain [
|
552
|
+
# @param security_domain [SecurityDomainObject] The Security Domain to be
|
553
|
+
# restored.
|
397
554
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
398
555
|
# to the HTTP request.
|
399
556
|
#
|
@@ -412,7 +569,7 @@ module Azure::KeyVault::V7_2_preview
|
|
412
569
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
413
570
|
|
414
571
|
# Serialize Request
|
415
|
-
request_mapper = Azure::KeyVault::V7_2_preview::Models::
|
572
|
+
request_mapper = Azure::KeyVault::V7_2_preview::Models::SecurityDomainObject.mapper()
|
416
573
|
request_content = @client.serialize(request_mapper, security_domain)
|
417
574
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
418
575
|
|
@@ -433,7 +590,7 @@ module Azure::KeyVault::V7_2_preview
|
|
433
590
|
http_response = result.response
|
434
591
|
status_code = http_response.status
|
435
592
|
response_content = http_response.body
|
436
|
-
unless status_code == 202
|
593
|
+
unless status_code == 202 || status_code == 204
|
437
594
|
error_model = JSON.load(response_content)
|
438
595
|
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
439
596
|
end
|