azure_key_vault 0.17.0 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/2015-06-01/generated/azure_key_vault/key_vault_client.rb +113 -1
- data/lib/2015-06-01/generated/azure_key_vault/models/administrator_details.rb +1 -1
- data/lib/2015-06-01/generated/azure_key_vault/models/attributes.rb +4 -4
- data/lib/2015-06-01/generated/azure_key_vault/models/certificate_issuer_list_result.rb +1 -1
- data/lib/2015-06-01/generated/azure_key_vault/models/certificate_list_result.rb +1 -1
- data/lib/2015-06-01/generated/azure_key_vault/models/contact.rb +1 -1
- data/lib/2015-06-01/generated/azure_key_vault/models/issuer_attributes.rb +2 -2
- data/lib/2015-06-01/generated/azure_key_vault/models/key_list_result.rb +1 -1
- data/lib/2015-06-01/generated/azure_key_vault/models/secret_list_result.rb +1 -1
- data/lib/2015-06-01/generated/azure_key_vault/models/x509certificate_properties.rb +1 -1
- data/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb +186 -4
- data/lib/2016-10-01/generated/azure_key_vault/models/administrator_details.rb +1 -1
- data/lib/2016-10-01/generated/azure_key_vault/models/certificate_issuer_list_result.rb +1 -1
- data/lib/2016-10-01/generated/azure_key_vault/models/certificate_list_result.rb +1 -1
- data/lib/2016-10-01/generated/azure_key_vault/models/contact.rb +1 -1
- data/lib/2016-10-01/generated/azure_key_vault/models/deleted_certificate_list_result.rb +1 -1
- data/lib/2016-10-01/generated/azure_key_vault/models/deleted_key_list_result.rb +1 -1
- data/lib/2016-10-01/generated/azure_key_vault/models/deleted_secret_list_result.rb +1 -1
- data/lib/2016-10-01/generated/azure_key_vault/models/key_list_result.rb +1 -1
- data/lib/2016-10-01/generated/azure_key_vault/models/sas_definition_list_result.rb +2 -2
- data/lib/2016-10-01/generated/azure_key_vault/models/secret_list_result.rb +1 -1
- data/lib/2016-10-01/generated/azure_key_vault/models/storage_list_result.rb +1 -1
- data/lib/2016-10-01/generated/azure_key_vault/models/x509certificate_properties.rb +1 -1
- data/lib/7.0-preview/generated/azure_key_vault/key_vault_client.rb +216 -4
- data/lib/7.0-preview/generated/azure_key_vault/models/administrator_details.rb +1 -1
- data/lib/7.0-preview/generated/azure_key_vault/models/certificate_issuer_list_result.rb +1 -1
- data/lib/7.0-preview/generated/azure_key_vault/models/certificate_list_result.rb +1 -1
- data/lib/7.0-preview/generated/azure_key_vault/models/contact.rb +1 -1
- data/lib/7.0-preview/generated/azure_key_vault/models/deleted_certificate_list_result.rb +1 -1
- data/lib/7.0-preview/generated/azure_key_vault/models/deleted_key_list_result.rb +1 -1
- data/lib/7.0-preview/generated/azure_key_vault/models/deleted_sas_definition_list_result.rb +1 -1
- data/lib/7.0-preview/generated/azure_key_vault/models/deleted_secret_list_result.rb +1 -1
- data/lib/7.0-preview/generated/azure_key_vault/models/deleted_storage_list_result.rb +1 -1
- data/lib/7.0-preview/generated/azure_key_vault/models/issuer_parameters.rb +2 -2
- data/lib/7.0-preview/generated/azure_key_vault/models/key_list_result.rb +1 -1
- data/lib/7.0-preview/generated/azure_key_vault/models/sas_definition_list_result.rb +2 -2
- data/lib/7.0-preview/generated/azure_key_vault/models/secret_list_result.rb +1 -1
- data/lib/7.0-preview/generated/azure_key_vault/models/storage_list_result.rb +1 -1
- data/lib/7.0-preview/generated/azure_key_vault/models/x509certificate_properties.rb +1 -1
- data/lib/7.0/generated/azure_key_vault/key_vault_client.rb +243 -22
- data/lib/7.0/generated/azure_key_vault/models/administrator_details.rb +1 -1
- data/lib/7.0/generated/azure_key_vault/models/certificate_attributes.rb +2 -1
- data/lib/7.0/generated/azure_key_vault/models/certificate_import_parameters.rb +2 -2
- data/lib/7.0/generated/azure_key_vault/models/certificate_issuer_list_result.rb +1 -1
- data/lib/7.0/generated/azure_key_vault/models/certificate_list_result.rb +1 -1
- data/lib/7.0/generated/azure_key_vault/models/contact.rb +1 -1
- data/lib/7.0/generated/azure_key_vault/models/deleted_certificate_list_result.rb +1 -1
- data/lib/7.0/generated/azure_key_vault/models/deleted_key_list_result.rb +1 -1
- data/lib/7.0/generated/azure_key_vault/models/deleted_sas_definition_list_result.rb +1 -1
- data/lib/7.0/generated/azure_key_vault/models/deleted_secret_list_result.rb +1 -1
- data/lib/7.0/generated/azure_key_vault/models/deleted_storage_list_result.rb +1 -1
- data/lib/7.0/generated/azure_key_vault/models/deletion_recovery_level.rb +3 -0
- data/lib/7.0/generated/azure_key_vault/models/issuer_parameters.rb +2 -2
- data/lib/7.0/generated/azure_key_vault/models/key_attributes.rb +2 -1
- data/lib/7.0/generated/azure_key_vault/models/key_list_result.rb +1 -1
- data/lib/7.0/generated/azure_key_vault/models/sas_definition_attributes.rb +2 -1
- data/lib/7.0/generated/azure_key_vault/models/sas_definition_list_result.rb +2 -2
- data/lib/7.0/generated/azure_key_vault/models/secret_attributes.rb +2 -1
- data/lib/7.0/generated/azure_key_vault/models/secret_list_result.rb +1 -1
- data/lib/7.0/generated/azure_key_vault/models/storage_account_attributes.rb +2 -1
- data/lib/7.0/generated/azure_key_vault/models/storage_list_result.rb +1 -1
- data/lib/7.0/generated/azure_key_vault/models/x509certificate_properties.rb +1 -1
- data/lib/7.1-preview/generated/azure_key_vault.rb +125 -0
- data/lib/7.1-preview/generated/azure_key_vault/key_vault_client.rb +12662 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/action.rb +48 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/action_type.rb +16 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/administrator_details.rb +79 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/attributes.rb +92 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/backup_certificate_result.rb +47 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/backup_key_result.rb +47 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/backup_secret_result.rb +47 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/backup_storage_result.rb +47 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/certificate_attributes.rb +109 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/certificate_bundle.rb +151 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/certificate_create_parameters.rb +80 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/certificate_import_parameters.rb +104 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/certificate_issuer_item.rb +57 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/certificate_issuer_list_result.rb +102 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/certificate_issuer_set_parameters.rb +83 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/certificate_issuer_update_parameters.rb +83 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/certificate_item.rb +89 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/certificate_list_result.rb +102 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/certificate_merge_parameters.rb +88 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/certificate_operation.rb +142 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/certificate_operation_update_parameter.rb +47 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/certificate_policy.rb +131 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/certificate_restore_parameters.rb +46 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/certificate_update_parameters.rb +80 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/contact.rb +68 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/contacts.rb +67 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/deleted_certificate_bundle.rb +159 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/deleted_certificate_item.rb +113 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/deleted_certificate_list_result.rb +102 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/deleted_key_bundle.rb +115 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/deleted_key_item.rb +114 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/deleted_key_list_result.rb +102 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/deleted_sas_definition_bundle.rb +145 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/deleted_sas_definition_item.rb +118 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/deleted_sas_definition_list_result.rb +103 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/deleted_secret_bundle.rb +139 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/deleted_secret_item.rb +121 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/deleted_secret_list_result.rb +102 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/deleted_storage_account_item.rb +118 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/deleted_storage_bundle.rb +146 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/deleted_storage_list_result.rb +103 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/deletion_recovery_level.rb +21 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/error.rb +72 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/issuer_attributes.rb +70 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/issuer_bundle.rb +95 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/issuer_credentials.rb +57 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/issuer_parameters.rb +71 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/json_web_key.rb +223 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/json_web_key_curve_name.rb +18 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/json_web_key_encryption_algorithm.rb +17 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/json_web_key_operation.rb +21 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/json_web_key_signature_algorithm.rb +25 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/json_web_key_type.rb +19 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/key_attributes.rb +109 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/key_bundle.rb +92 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/key_create_parameters.rb +127 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/key_import_parameters.rb +91 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/key_item.rb +91 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/key_list_result.rb +101 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/key_operation_result.rb +59 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/key_operations_parameters.rb +61 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/key_properties.rb +96 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/key_restore_parameters.rb +46 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/key_sign_parameters.rb +64 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/key_update_parameters.rb +87 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/key_usage_type.rb +23 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/key_vault_error.rb +48 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/key_verify_parameters.rb +75 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/key_verify_result.rb +47 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/lifetime_action.rb +60 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/organization_details.rb +67 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/pending_certificate_signing_request_result.rb +48 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/sas_definition_attributes.rb +102 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/sas_definition_bundle.rb +134 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/sas_definition_create_parameters.rb +104 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/sas_definition_item.rb +94 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/sas_definition_list_result.rb +102 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/sas_definition_update_parameters.rb +104 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/sas_token_type.rb +16 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/secret_attributes.rb +109 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/secret_bundle.rb +127 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/secret_item.rb +103 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/secret_list_result.rb +101 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/secret_properties.rb +46 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/secret_restore_parameters.rb +46 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/secret_set_parameters.rb +89 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/secret_update_parameters.rb +78 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/storage_account_attributes.rb +102 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/storage_account_create_parameters.rb +114 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/storage_account_item.rb +94 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/storage_account_regenerte_key_parameters.rb +46 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/storage_account_update_parameters.rb +103 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/storage_bundle.rb +132 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/storage_list_result.rb +102 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/storage_restore_parameters.rb +46 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/subject_alternative_names.rb +92 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/trigger.rb +65 -0
- data/lib/7.1-preview/generated/azure_key_vault/models/x509certificate_properties.rb +111 -0
- data/lib/7.1-preview/generated/azure_key_vault/module_definition.rb +8 -0
- data/lib/7.1/generated/azure_key_vault.rb +125 -0
- data/lib/7.1/generated/azure_key_vault/key_vault_client.rb +12659 -0
- data/lib/7.1/generated/azure_key_vault/models/action.rb +48 -0
- data/lib/7.1/generated/azure_key_vault/models/action_type.rb +16 -0
- data/lib/7.1/generated/azure_key_vault/models/administrator_details.rb +79 -0
- data/lib/7.1/generated/azure_key_vault/models/attributes.rb +92 -0
- data/lib/7.1/generated/azure_key_vault/models/backup_certificate_result.rb +47 -0
- data/lib/7.1/generated/azure_key_vault/models/backup_key_result.rb +47 -0
- data/lib/7.1/generated/azure_key_vault/models/backup_secret_result.rb +47 -0
- data/lib/7.1/generated/azure_key_vault/models/backup_storage_result.rb +47 -0
- data/lib/7.1/generated/azure_key_vault/models/certificate_attributes.rb +109 -0
- data/lib/7.1/generated/azure_key_vault/models/certificate_bundle.rb +151 -0
- data/lib/7.1/generated/azure_key_vault/models/certificate_create_parameters.rb +80 -0
- data/lib/7.1/generated/azure_key_vault/models/certificate_import_parameters.rb +104 -0
- data/lib/7.1/generated/azure_key_vault/models/certificate_issuer_item.rb +57 -0
- data/lib/7.1/generated/azure_key_vault/models/certificate_issuer_list_result.rb +102 -0
- data/lib/7.1/generated/azure_key_vault/models/certificate_issuer_set_parameters.rb +83 -0
- data/lib/7.1/generated/azure_key_vault/models/certificate_issuer_update_parameters.rb +83 -0
- data/lib/7.1/generated/azure_key_vault/models/certificate_item.rb +89 -0
- data/lib/7.1/generated/azure_key_vault/models/certificate_list_result.rb +102 -0
- data/lib/7.1/generated/azure_key_vault/models/certificate_merge_parameters.rb +88 -0
- data/lib/7.1/generated/azure_key_vault/models/certificate_operation.rb +142 -0
- data/lib/7.1/generated/azure_key_vault/models/certificate_operation_update_parameter.rb +47 -0
- data/lib/7.1/generated/azure_key_vault/models/certificate_policy.rb +131 -0
- data/lib/7.1/generated/azure_key_vault/models/certificate_restore_parameters.rb +46 -0
- data/lib/7.1/generated/azure_key_vault/models/certificate_update_parameters.rb +80 -0
- data/lib/7.1/generated/azure_key_vault/models/contact.rb +68 -0
- data/lib/7.1/generated/azure_key_vault/models/contacts.rb +67 -0
- data/lib/7.1/generated/azure_key_vault/models/deleted_certificate_bundle.rb +159 -0
- data/lib/7.1/generated/azure_key_vault/models/deleted_certificate_item.rb +113 -0
- data/lib/7.1/generated/azure_key_vault/models/deleted_certificate_list_result.rb +102 -0
- data/lib/7.1/generated/azure_key_vault/models/deleted_key_bundle.rb +115 -0
- data/lib/7.1/generated/azure_key_vault/models/deleted_key_item.rb +114 -0
- data/lib/7.1/generated/azure_key_vault/models/deleted_key_list_result.rb +102 -0
- data/lib/7.1/generated/azure_key_vault/models/deleted_sas_definition_bundle.rb +145 -0
- data/lib/7.1/generated/azure_key_vault/models/deleted_sas_definition_item.rb +118 -0
- data/lib/7.1/generated/azure_key_vault/models/deleted_sas_definition_list_result.rb +103 -0
- data/lib/7.1/generated/azure_key_vault/models/deleted_secret_bundle.rb +139 -0
- data/lib/7.1/generated/azure_key_vault/models/deleted_secret_item.rb +121 -0
- data/lib/7.1/generated/azure_key_vault/models/deleted_secret_list_result.rb +102 -0
- data/lib/7.1/generated/azure_key_vault/models/deleted_storage_account_item.rb +118 -0
- data/lib/7.1/generated/azure_key_vault/models/deleted_storage_bundle.rb +146 -0
- data/lib/7.1/generated/azure_key_vault/models/deleted_storage_list_result.rb +103 -0
- data/lib/7.1/generated/azure_key_vault/models/deletion_recovery_level.rb +21 -0
- data/lib/7.1/generated/azure_key_vault/models/error.rb +72 -0
- data/lib/7.1/generated/azure_key_vault/models/issuer_attributes.rb +70 -0
- data/lib/7.1/generated/azure_key_vault/models/issuer_bundle.rb +95 -0
- data/lib/7.1/generated/azure_key_vault/models/issuer_credentials.rb +57 -0
- data/lib/7.1/generated/azure_key_vault/models/issuer_parameters.rb +71 -0
- data/lib/7.1/generated/azure_key_vault/models/json_web_key.rb +223 -0
- data/lib/7.1/generated/azure_key_vault/models/json_web_key_curve_name.rb +18 -0
- data/lib/7.1/generated/azure_key_vault/models/json_web_key_encryption_algorithm.rb +17 -0
- data/lib/7.1/generated/azure_key_vault/models/json_web_key_operation.rb +21 -0
- data/lib/7.1/generated/azure_key_vault/models/json_web_key_signature_algorithm.rb +25 -0
- data/lib/7.1/generated/azure_key_vault/models/json_web_key_type.rb +19 -0
- data/lib/7.1/generated/azure_key_vault/models/key_attributes.rb +109 -0
- data/lib/7.1/generated/azure_key_vault/models/key_bundle.rb +92 -0
- data/lib/7.1/generated/azure_key_vault/models/key_create_parameters.rb +127 -0
- data/lib/7.1/generated/azure_key_vault/models/key_import_parameters.rb +91 -0
- data/lib/7.1/generated/azure_key_vault/models/key_item.rb +91 -0
- data/lib/7.1/generated/azure_key_vault/models/key_list_result.rb +101 -0
- data/lib/7.1/generated/azure_key_vault/models/key_operation_result.rb +59 -0
- data/lib/7.1/generated/azure_key_vault/models/key_operations_parameters.rb +61 -0
- data/lib/7.1/generated/azure_key_vault/models/key_properties.rb +96 -0
- data/lib/7.1/generated/azure_key_vault/models/key_restore_parameters.rb +46 -0
- data/lib/7.1/generated/azure_key_vault/models/key_sign_parameters.rb +64 -0
- data/lib/7.1/generated/azure_key_vault/models/key_update_parameters.rb +87 -0
- data/lib/7.1/generated/azure_key_vault/models/key_usage_type.rb +23 -0
- data/lib/7.1/generated/azure_key_vault/models/key_vault_error.rb +48 -0
- data/lib/7.1/generated/azure_key_vault/models/key_verify_parameters.rb +75 -0
- data/lib/7.1/generated/azure_key_vault/models/key_verify_result.rb +47 -0
- data/lib/7.1/generated/azure_key_vault/models/lifetime_action.rb +60 -0
- data/lib/7.1/generated/azure_key_vault/models/organization_details.rb +67 -0
- data/lib/7.1/generated/azure_key_vault/models/pending_certificate_signing_request_result.rb +48 -0
- data/lib/7.1/generated/azure_key_vault/models/sas_definition_attributes.rb +102 -0
- data/lib/7.1/generated/azure_key_vault/models/sas_definition_bundle.rb +134 -0
- data/lib/7.1/generated/azure_key_vault/models/sas_definition_create_parameters.rb +104 -0
- data/lib/7.1/generated/azure_key_vault/models/sas_definition_item.rb +94 -0
- data/lib/7.1/generated/azure_key_vault/models/sas_definition_list_result.rb +102 -0
- data/lib/7.1/generated/azure_key_vault/models/sas_definition_update_parameters.rb +104 -0
- data/lib/7.1/generated/azure_key_vault/models/sas_token_type.rb +16 -0
- data/lib/7.1/generated/azure_key_vault/models/secret_attributes.rb +109 -0
- data/lib/7.1/generated/azure_key_vault/models/secret_bundle.rb +127 -0
- data/lib/7.1/generated/azure_key_vault/models/secret_item.rb +103 -0
- data/lib/7.1/generated/azure_key_vault/models/secret_list_result.rb +101 -0
- data/lib/7.1/generated/azure_key_vault/models/secret_properties.rb +46 -0
- data/lib/7.1/generated/azure_key_vault/models/secret_restore_parameters.rb +46 -0
- data/lib/7.1/generated/azure_key_vault/models/secret_set_parameters.rb +89 -0
- data/lib/7.1/generated/azure_key_vault/models/secret_update_parameters.rb +78 -0
- data/lib/7.1/generated/azure_key_vault/models/storage_account_attributes.rb +102 -0
- data/lib/7.1/generated/azure_key_vault/models/storage_account_create_parameters.rb +114 -0
- data/lib/7.1/generated/azure_key_vault/models/storage_account_item.rb +94 -0
- data/lib/7.1/generated/azure_key_vault/models/storage_account_regenerte_key_parameters.rb +46 -0
- data/lib/7.1/generated/azure_key_vault/models/storage_account_update_parameters.rb +103 -0
- data/lib/7.1/generated/azure_key_vault/models/storage_bundle.rb +132 -0
- data/lib/7.1/generated/azure_key_vault/models/storage_list_result.rb +102 -0
- data/lib/7.1/generated/azure_key_vault/models/storage_restore_parameters.rb +46 -0
- data/lib/7.1/generated/azure_key_vault/models/subject_alternative_names.rb +92 -0
- data/lib/7.1/generated/azure_key_vault/models/trigger.rb +65 -0
- data/lib/7.1/generated/azure_key_vault/models/x509certificate_properties.rb +111 -0
- data/lib/7.1/generated/azure_key_vault/module_definition.rb +8 -0
- data/lib/7.2-preview/generated/azure_key_vault.rb +165 -0
- data/lib/7.2-preview/generated/azure_key_vault/hsmsecurity_domain.rb +462 -0
- data/lib/7.2-preview/generated/azure_key_vault/key_vault_client.rb +13806 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/action.rb +48 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/action_type.rb +16 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/administrator_details.rb +79 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/attributes.rb +92 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/backup_certificate_result.rb +47 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/backup_key_result.rb +47 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/backup_secret_result.rb +47 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/backup_storage_result.rb +47 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/certificate_attributes.rb +109 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/certificate_bundle.rb +151 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/certificate_create_parameters.rb +80 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/certificate_import_parameters.rb +104 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/certificate_info_object.rb +80 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/certificate_issuer_item.rb +57 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/certificate_issuer_list_result.rb +102 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/certificate_issuer_set_parameters.rb +83 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/certificate_issuer_update_parameters.rb +83 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/certificate_item.rb +89 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/certificate_list_result.rb +102 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/certificate_merge_parameters.rb +88 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/certificate_operation.rb +142 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/certificate_operation_update_parameter.rb +47 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/certificate_policy.rb +131 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/certificate_restore_parameters.rb +46 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/certificate_update_parameters.rb +80 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/contact.rb +68 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/contacts.rb +67 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/deleted_certificate_bundle.rb +159 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/deleted_certificate_item.rb +113 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/deleted_certificate_list_result.rb +102 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/deleted_key_bundle.rb +124 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/deleted_key_item.rb +114 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/deleted_key_list_result.rb +102 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/deleted_sas_definition_bundle.rb +145 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/deleted_sas_definition_item.rb +118 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/deleted_sas_definition_list_result.rb +103 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/deleted_secret_bundle.rb +139 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/deleted_secret_item.rb +121 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/deleted_secret_list_result.rb +102 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/deleted_storage_account_item.rb +118 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/deleted_storage_bundle.rb +146 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/deleted_storage_list_result.rb +103 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/deletion_recovery_level.rb +21 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/enc_data_set.rb +72 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/enc_data_set_item.rb +58 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/error.rb +72 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/full_backup_operation.rb +115 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/issuer_attributes.rb +70 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/issuer_bundle.rb +95 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/issuer_credentials.rb +57 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/issuer_parameters.rb +71 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/json_web_key.rb +224 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/json_web_key_curve_name.rb +18 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/json_web_key_encryption_algorithm.rb +29 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/json_web_key_operation.rb +22 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/json_web_key_signature_algorithm.rb +25 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/json_web_key_type.rb +20 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/key.rb +58 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/key_attributes.rb +120 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/key_bundle.rb +105 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/key_create_parameters.rb +151 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/key_export_parameters.rb +49 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/key_import_parameters.rb +104 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/key_item.rb +91 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/key_list_result.rb +101 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/key_operation_result.rb +59 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/key_operations_parameters.rb +98 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/key_properties.rb +96 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/key_release_authority.rb +70 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/key_release_condition.rb +76 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/key_release_condition_condition.rb +15 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/key_release_policy.rb +68 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/key_release_policy_version.rb +15 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/key_restore_parameters.rb +46 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/key_sign_parameters.rb +64 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/key_update_parameters.rb +100 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/key_usage_type.rb +23 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/key_vault_error.rb +48 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/key_verify_parameters.rb +75 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/key_verify_result.rb +47 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/lifetime_action.rb +60 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/operation_status.rb +17 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/organization_details.rb +67 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/pending_certificate_signing_request_result.rb +48 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/permission.rb +111 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/restore_operation.rb +103 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/restore_operation_parameters.rb +60 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/role_assignment.rb +83 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/role_assignment_create_parameters.rb +47 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/role_assignment_filter.rb +46 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/role_assignment_list_result.rb +98 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/role_assignment_properties.rb +59 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/role_assignment_properties_with_scope.rb +68 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/role_definition.rb +143 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/role_definition_filter.rb +46 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/role_definition_list_result.rb +98 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/sas_definition_attributes.rb +102 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/sas_definition_bundle.rb +134 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/sas_definition_create_parameters.rb +104 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/sas_definition_item.rb +94 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/sas_definition_list_result.rb +102 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/sas_definition_update_parameters.rb +104 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/sas_token_type.rb +16 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/sastoken_parameter.rb +59 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/secret_attributes.rb +109 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/secret_bundle.rb +127 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/secret_item.rb +103 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/secret_list_result.rb +101 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/secret_properties.rb +46 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/secret_restore_parameters.rb +46 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/secret_set_parameters.rb +89 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/secret_update_parameters.rb +78 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/security_domain_certificate_item.rb +49 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/security_domain_json_web_key.rb +165 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/security_domain_object.rb +47 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/security_domain_object_data.rb +71 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/security_domain_object_data_shared_keys.rb +87 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/security_domain_operation_status.rb +60 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/security_domain_upload_object.rb +47 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/security_domain_upload_object_value.rb +61 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/security_domain_upload_object_value_wrapped_key.rb +59 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/selective_key_restore_operation.rb +103 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/selective_key_restore_operation_parameters.rb +60 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/storage_account_attributes.rb +102 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/storage_account_create_parameters.rb +114 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/storage_account_item.rb +94 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/storage_account_regenerte_key_parameters.rb +46 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/storage_account_update_parameters.rb +103 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/storage_bundle.rb +132 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/storage_list_result.rb +102 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/storage_restore_parameters.rb +46 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/subject_alternative_names.rb +92 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/transfer_key.rb +62 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/trigger.rb +65 -0
- data/lib/7.2-preview/generated/azure_key_vault/models/x509certificate_properties.rb +111 -0
- data/lib/7.2-preview/generated/azure_key_vault/module_definition.rb +8 -0
- data/lib/7.2-preview/generated/azure_key_vault/role_assignments.rb +578 -0
- data/lib/7.2-preview/generated/azure_key_vault/role_definitions.rb +244 -0
- data/lib/azure_key_vault.rb +8 -2
- data/lib/profiles/latest/modules/keyvault_profile_module.rb +426 -272
- data/lib/profiles/v2017_03_09/keyvault_module_definition.rb +8 -0
- data/lib/profiles/v2017_03_09/keyvault_v2017_03_09_profile_client.rb +38 -0
- data/lib/profiles/v2017_03_09/modules/keyvault_profile_module.rb +405 -0
- data/lib/profiles/v2018_03_01/keyvault_module_definition.rb +8 -0
- data/lib/profiles/v2018_03_01/keyvault_v2018_03_01_profile_client.rb +38 -0
- data/lib/profiles/v2018_03_01/modules/keyvault_profile_module.rb +405 -0
- data/lib/profiles/v2019_03_01_hybrid/keyvault_module_definition.rb +8 -0
- data/lib/profiles/v2019_03_01_hybrid/keyvault_v2019_03_01_hybrid_profile_client.rb +38 -0
- data/lib/profiles/v2019_03_01_hybrid/modules/keyvault_profile_module.rb +405 -0
- data/lib/version.rb +1 -1
- metadata +357 -5
@@ -0,0 +1,165 @@
|
|
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
|
+
require 'uri'
|
7
|
+
require 'cgi'
|
8
|
+
require 'date'
|
9
|
+
require 'json'
|
10
|
+
require 'base64'
|
11
|
+
require 'erb'
|
12
|
+
require 'securerandom'
|
13
|
+
require 'time'
|
14
|
+
require 'timeliness'
|
15
|
+
require 'faraday'
|
16
|
+
require 'faraday-cookie_jar'
|
17
|
+
require 'concurrent'
|
18
|
+
require 'ms_rest'
|
19
|
+
require '7.2-preview/generated/azure_key_vault/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::KeyVault::V7_2_preview
|
23
|
+
autoload :RoleDefinitions, '7.2-preview/generated/azure_key_vault/role_definitions.rb'
|
24
|
+
autoload :RoleAssignments, '7.2-preview/generated/azure_key_vault/role_assignments.rb'
|
25
|
+
autoload :HSMSecurityDomain, '7.2-preview/generated/azure_key_vault/hsmsecurity_domain.rb'
|
26
|
+
autoload :KeyVaultClient, '7.2-preview/generated/azure_key_vault/key_vault_client.rb'
|
27
|
+
|
28
|
+
module Models
|
29
|
+
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
|
+
autoload :CertificateItem, '7.2-preview/generated/azure_key_vault/models/certificate_item.rb'
|
32
|
+
autoload :RoleAssignment, '7.2-preview/generated/azure_key_vault/models/role_assignment.rb'
|
33
|
+
autoload :KeyProperties, '7.2-preview/generated/azure_key_vault/models/key_properties.rb'
|
34
|
+
autoload :RoleAssignmentListResult, '7.2-preview/generated/azure_key_vault/models/role_assignment_list_result.rb'
|
35
|
+
autoload :SubjectAlternativeNames, '7.2-preview/generated/azure_key_vault/models/subject_alternative_names.rb'
|
36
|
+
autoload :RoleAssignmentProperties, '7.2-preview/generated/azure_key_vault/models/role_assignment_properties.rb'
|
37
|
+
autoload :Trigger, '7.2-preview/generated/azure_key_vault/models/trigger.rb'
|
38
|
+
autoload :RoleAssignmentCreateParameters, '7.2-preview/generated/azure_key_vault/models/role_assignment_create_parameters.rb'
|
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
|
+
autoload :Permission, '7.2-preview/generated/azure_key_vault/models/permission.rb'
|
43
|
+
autoload :CertificateIssuerItem, '7.2-preview/generated/azure_key_vault/models/certificate_issuer_item.rb'
|
44
|
+
autoload :SecretProperties, '7.2-preview/generated/azure_key_vault/models/secret_properties.rb'
|
45
|
+
autoload :Error, '7.2-preview/generated/azure_key_vault/models/error.rb'
|
46
|
+
autoload :X509CertificateProperties, '7.2-preview/generated/azure_key_vault/models/x509certificate_properties.rb'
|
47
|
+
autoload :IssuerCredentials, '7.2-preview/generated/azure_key_vault/models/issuer_credentials.rb'
|
48
|
+
autoload :Action, '7.2-preview/generated/azure_key_vault/models/action.rb'
|
49
|
+
autoload :OrganizationDetails, '7.2-preview/generated/azure_key_vault/models/organization_details.rb'
|
50
|
+
autoload :IssuerParameters, '7.2-preview/generated/azure_key_vault/models/issuer_parameters.rb'
|
51
|
+
autoload :IssuerBundle, '7.2-preview/generated/azure_key_vault/models/issuer_bundle.rb'
|
52
|
+
autoload :CertificateBundle, '7.2-preview/generated/azure_key_vault/models/certificate_bundle.rb'
|
53
|
+
autoload :Contacts, '7.2-preview/generated/azure_key_vault/models/contacts.rb'
|
54
|
+
autoload :SecurityDomainOperationStatus, '7.2-preview/generated/azure_key_vault/models/security_domain_operation_status.rb'
|
55
|
+
autoload :CertificateImportParameters, '7.2-preview/generated/azure_key_vault/models/certificate_import_parameters.rb'
|
56
|
+
autoload :RoleDefinition, '7.2-preview/generated/azure_key_vault/models/role_definition.rb'
|
57
|
+
autoload :CertificateMergeParameters, '7.2-preview/generated/azure_key_vault/models/certificate_merge_parameters.rb'
|
58
|
+
autoload :RoleDefinitionListResult, '7.2-preview/generated/azure_key_vault/models/role_definition_list_result.rb'
|
59
|
+
autoload :CertificateIssuerUpdateParameters, '7.2-preview/generated/azure_key_vault/models/certificate_issuer_update_parameters.rb'
|
60
|
+
autoload :SecurityDomainObject, '7.2-preview/generated/azure_key_vault/models/security_domain_object.rb'
|
61
|
+
autoload :CertificateListResult, '7.2-preview/generated/azure_key_vault/models/certificate_list_result.rb'
|
62
|
+
autoload :SecretBundle, '7.2-preview/generated/azure_key_vault/models/secret_bundle.rb'
|
63
|
+
autoload :CertificateIssuerListResult, '7.2-preview/generated/azure_key_vault/models/certificate_issuer_list_result.rb'
|
64
|
+
autoload :SecretItem, '7.2-preview/generated/azure_key_vault/models/secret_item.rb'
|
65
|
+
autoload :CertificateRestoreParameters, '7.2-preview/generated/azure_key_vault/models/certificate_restore_parameters.rb'
|
66
|
+
autoload :SecurityDomainObjectData, '7.2-preview/generated/azure_key_vault/models/security_domain_object_data.rb'
|
67
|
+
autoload :Attributes, '7.2-preview/generated/azure_key_vault/models/attributes.rb'
|
68
|
+
autoload :SecurityDomainObjectDataSharedKeys, '7.2-preview/generated/azure_key_vault/models/security_domain_object_data_shared_keys.rb'
|
69
|
+
autoload :KeyReleaseCondition, '7.2-preview/generated/azure_key_vault/models/key_release_condition.rb'
|
70
|
+
autoload :SecretRestoreParameters, '7.2-preview/generated/azure_key_vault/models/secret_restore_parameters.rb'
|
71
|
+
autoload :KeyReleasePolicy, '7.2-preview/generated/azure_key_vault/models/key_release_policy.rb'
|
72
|
+
autoload :SecretSetParameters, '7.2-preview/generated/azure_key_vault/models/secret_set_parameters.rb'
|
73
|
+
autoload :SecurityDomainUploadObject, '7.2-preview/generated/azure_key_vault/models/security_domain_upload_object.rb'
|
74
|
+
autoload :SecretUpdateParameters, '7.2-preview/generated/azure_key_vault/models/secret_update_parameters.rb'
|
75
|
+
autoload :KeyItem, '7.2-preview/generated/azure_key_vault/models/key_item.rb'
|
76
|
+
autoload :SecretListResult, '7.2-preview/generated/azure_key_vault/models/secret_list_result.rb'
|
77
|
+
autoload :SecurityDomainUploadObjectValueWrappedKey, '7.2-preview/generated/azure_key_vault/models/security_domain_upload_object_value_wrapped_key.rb'
|
78
|
+
autoload :DeletedSecretListResult, '7.2-preview/generated/azure_key_vault/models/deleted_secret_list_result.rb'
|
79
|
+
autoload :KeyImportParameters, '7.2-preview/generated/azure_key_vault/models/key_import_parameters.rb'
|
80
|
+
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
|
+
autoload :StorageRestoreParameters, '7.2-preview/generated/azure_key_vault/models/storage_restore_parameters.rb'
|
83
|
+
autoload :KeyVerifyParameters, '7.2-preview/generated/azure_key_vault/models/key_verify_parameters.rb'
|
84
|
+
autoload :StorageAccountAttributes, '7.2-preview/generated/azure_key_vault/models/storage_account_attributes.rb'
|
85
|
+
autoload :KeyRestoreParameters, '7.2-preview/generated/azure_key_vault/models/key_restore_parameters.rb'
|
86
|
+
autoload :StorageBundle, '7.2-preview/generated/azure_key_vault/models/storage_bundle.rb'
|
87
|
+
autoload :KeyVerifyResult, '7.2-preview/generated/azure_key_vault/models/key_verify_result.rb'
|
88
|
+
autoload :Key, '7.2-preview/generated/azure_key_vault/models/key.rb'
|
89
|
+
autoload :DeletedKeyListResult, '7.2-preview/generated/azure_key_vault/models/deleted_key_list_result.rb'
|
90
|
+
autoload :StorageAccountCreateParameters, '7.2-preview/generated/azure_key_vault/models/storage_account_create_parameters.rb'
|
91
|
+
autoload :CertificateInfoObject, '7.2-preview/generated/azure_key_vault/models/certificate_info_object.rb'
|
92
|
+
autoload :StorageAccountUpdateParameters, '7.2-preview/generated/azure_key_vault/models/storage_account_update_parameters.rb'
|
93
|
+
autoload :AdministratorDetails, '7.2-preview/generated/azure_key_vault/models/administrator_details.rb'
|
94
|
+
autoload :StorageAccountRegenerteKeyParameters, '7.2-preview/generated/azure_key_vault/models/storage_account_regenerte_key_parameters.rb'
|
95
|
+
autoload :Contact, '7.2-preview/generated/azure_key_vault/models/contact.rb'
|
96
|
+
autoload :StorageAccountItem, '7.2-preview/generated/azure_key_vault/models/storage_account_item.rb'
|
97
|
+
autoload :CertificateUpdateParameters, '7.2-preview/generated/azure_key_vault/models/certificate_update_parameters.rb'
|
98
|
+
autoload :EncDataSet, '7.2-preview/generated/azure_key_vault/models/enc_data_set.rb'
|
99
|
+
autoload :CertificateOperationUpdateParameter, '7.2-preview/generated/azure_key_vault/models/certificate_operation_update_parameter.rb'
|
100
|
+
autoload :StorageListResult, '7.2-preview/generated/azure_key_vault/models/storage_list_result.rb'
|
101
|
+
autoload :PendingCertificateSigningRequestResult, '7.2-preview/generated/azure_key_vault/models/pending_certificate_signing_request_result.rb'
|
102
|
+
autoload :DeletedStorageListResult, '7.2-preview/generated/azure_key_vault/models/deleted_storage_list_result.rb'
|
103
|
+
autoload :KeyVaultError, '7.2-preview/generated/azure_key_vault/models/key_vault_error.rb'
|
104
|
+
autoload :SasDefinitionAttributes, '7.2-preview/generated/azure_key_vault/models/sas_definition_attributes.rb'
|
105
|
+
autoload :JsonWebKey, '7.2-preview/generated/azure_key_vault/models/json_web_key.rb'
|
106
|
+
autoload :SasDefinitionBundle, '7.2-preview/generated/azure_key_vault/models/sas_definition_bundle.rb'
|
107
|
+
autoload :SecurityDomainUploadObjectValue, '7.2-preview/generated/azure_key_vault/models/security_domain_upload_object_value.rb'
|
108
|
+
autoload :EncDataSetItem, '7.2-preview/generated/azure_key_vault/models/enc_data_set_item.rb'
|
109
|
+
autoload :KeyExportParameters, '7.2-preview/generated/azure_key_vault/models/key_export_parameters.rb'
|
110
|
+
autoload :SasDefinitionItem, '7.2-preview/generated/azure_key_vault/models/sas_definition_item.rb'
|
111
|
+
autoload :KeyUpdateParameters, '7.2-preview/generated/azure_key_vault/models/key_update_parameters.rb'
|
112
|
+
autoload :TransferKey, '7.2-preview/generated/azure_key_vault/models/transfer_key.rb'
|
113
|
+
autoload :KeyListResult, '7.2-preview/generated/azure_key_vault/models/key_list_result.rb'
|
114
|
+
autoload :SasDefinitionListResult, '7.2-preview/generated/azure_key_vault/models/sas_definition_list_result.rb'
|
115
|
+
autoload :CertificateOperation, '7.2-preview/generated/azure_key_vault/models/certificate_operation.rb'
|
116
|
+
autoload :DeletedSasDefinitionListResult, '7.2-preview/generated/azure_key_vault/models/deleted_sas_definition_list_result.rb'
|
117
|
+
autoload :CertificateCreateParameters, '7.2-preview/generated/azure_key_vault/models/certificate_create_parameters.rb'
|
118
|
+
autoload :SasDefinitionCreateParameters, '7.2-preview/generated/azure_key_vault/models/sas_definition_create_parameters.rb'
|
119
|
+
autoload :DeletedCertificateListResult, '7.2-preview/generated/azure_key_vault/models/deleted_certificate_list_result.rb'
|
120
|
+
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
|
+
autoload :CertificateIssuerSetParameters, '7.2-preview/generated/azure_key_vault/models/certificate_issuer_set_parameters.rb'
|
134
|
+
autoload :RestoreOperation, '7.2-preview/generated/azure_key_vault/models/restore_operation.rb'
|
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'
|
139
|
+
autoload :CertificateAttributes, '7.2-preview/generated/azure_key_vault/models/certificate_attributes.rb'
|
140
|
+
autoload :DeletedCertificateBundle, '7.2-preview/generated/azure_key_vault/models/deleted_certificate_bundle.rb'
|
141
|
+
autoload :DeletedCertificateItem, '7.2-preview/generated/azure_key_vault/models/deleted_certificate_item.rb'
|
142
|
+
autoload :KeyAttributes, '7.2-preview/generated/azure_key_vault/models/key_attributes.rb'
|
143
|
+
autoload :DeletedKeyBundle, '7.2-preview/generated/azure_key_vault/models/deleted_key_bundle.rb'
|
144
|
+
autoload :DeletedKeyItem, '7.2-preview/generated/azure_key_vault/models/deleted_key_item.rb'
|
145
|
+
autoload :SecretAttributes, '7.2-preview/generated/azure_key_vault/models/secret_attributes.rb'
|
146
|
+
autoload :DeletedSecretBundle, '7.2-preview/generated/azure_key_vault/models/deleted_secret_bundle.rb'
|
147
|
+
autoload :DeletedSecretItem, '7.2-preview/generated/azure_key_vault/models/deleted_secret_item.rb'
|
148
|
+
autoload :DeletedStorageBundle, '7.2-preview/generated/azure_key_vault/models/deleted_storage_bundle.rb'
|
149
|
+
autoload :DeletedStorageAccountItem, '7.2-preview/generated/azure_key_vault/models/deleted_storage_account_item.rb'
|
150
|
+
autoload :DeletedSasDefinitionBundle, '7.2-preview/generated/azure_key_vault/models/deleted_sas_definition_bundle.rb'
|
151
|
+
autoload :DeletedSasDefinitionItem, '7.2-preview/generated/azure_key_vault/models/deleted_sas_definition_item.rb'
|
152
|
+
autoload :DeletionRecoveryLevel, '7.2-preview/generated/azure_key_vault/models/deletion_recovery_level.rb'
|
153
|
+
autoload :JsonWebKeyType, '7.2-preview/generated/azure_key_vault/models/json_web_key_type.rb'
|
154
|
+
autoload :JsonWebKeyCurveName, '7.2-preview/generated/azure_key_vault/models/json_web_key_curve_name.rb'
|
155
|
+
autoload :KeyUsageType, '7.2-preview/generated/azure_key_vault/models/key_usage_type.rb'
|
156
|
+
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
|
+
autoload :JsonWebKeyOperation, '7.2-preview/generated/azure_key_vault/models/json_web_key_operation.rb'
|
160
|
+
autoload :JsonWebKeyEncryptionAlgorithm, '7.2-preview/generated/azure_key_vault/models/json_web_key_encryption_algorithm.rb'
|
161
|
+
autoload :JsonWebKeySignatureAlgorithm, '7.2-preview/generated/azure_key_vault/models/json_web_key_signature_algorithm.rb'
|
162
|
+
autoload :SasTokenType, '7.2-preview/generated/azure_key_vault/models/sas_token_type.rb'
|
163
|
+
autoload :OperationStatus, '7.2-preview/generated/azure_key_vault/models/operation_status.rb'
|
164
|
+
end
|
165
|
+
end
|
@@ -0,0 +1,462 @@
|
|
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_2_preview
|
7
|
+
#
|
8
|
+
# The key vault client performs cryptographic key operations and vault
|
9
|
+
# operations against the Key Vault service.
|
10
|
+
#
|
11
|
+
class HSMSecurityDomain
|
12
|
+
include MsRestAzure
|
13
|
+
|
14
|
+
#
|
15
|
+
# Creates and initializes a new instance of the HSMSecurityDomain class.
|
16
|
+
# @param client service class for accessing basic functionality.
|
17
|
+
#
|
18
|
+
def initialize(client)
|
19
|
+
@client = client
|
20
|
+
end
|
21
|
+
|
22
|
+
# @return [KeyVaultClient] reference to the KeyVaultClient
|
23
|
+
attr_reader :client
|
24
|
+
|
25
|
+
#
|
26
|
+
# Retrieves Security domain from HSM enclave
|
27
|
+
#
|
28
|
+
# @param vault_base_url [String] The vault name, for example
|
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
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
34
|
+
# will be added to the HTTP request.
|
35
|
+
#
|
36
|
+
# @return [SecurityDomainObject] operation results.
|
37
|
+
#
|
38
|
+
def download(vault_base_url, certificate_info_object, custom_headers:nil)
|
39
|
+
response = download_async(vault_base_url, certificate_info_object, custom_headers:custom_headers).value!
|
40
|
+
response.body unless response.nil?
|
41
|
+
end
|
42
|
+
|
43
|
+
#
|
44
|
+
# Retrieves Security domain from HSM enclave
|
45
|
+
#
|
46
|
+
# @param vault_base_url [String] The vault name, for example
|
47
|
+
# 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
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
52
|
+
# will be added to the HTTP request.
|
53
|
+
#
|
54
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
55
|
+
#
|
56
|
+
def download_with_http_info(vault_base_url, certificate_info_object, custom_headers:nil)
|
57
|
+
download_async(vault_base_url, certificate_info_object, custom_headers:custom_headers).value!
|
58
|
+
end
|
59
|
+
|
60
|
+
#
|
61
|
+
# Retrieves Security domain from HSM enclave
|
62
|
+
#
|
63
|
+
# @param vault_base_url [String] The vault name, for example
|
64
|
+
# 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
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
69
|
+
# to the HTTP request.
|
70
|
+
#
|
71
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
72
|
+
#
|
73
|
+
def download_async(vault_base_url, certificate_info_object, custom_headers:nil)
|
74
|
+
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
|
+
|
78
|
+
|
79
|
+
request_headers = {}
|
80
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
81
|
+
|
82
|
+
# Set Headers
|
83
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
84
|
+
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'
|
92
|
+
|
93
|
+
request_url = @base_url || @client.base_url
|
94
|
+
request_url = request_url.gsub('{vaultBaseUrl}', vault_base_url)
|
95
|
+
|
96
|
+
options = {
|
97
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
98
|
+
query_params: {'api-version' => @client.api_version},
|
99
|
+
body: request_content,
|
100
|
+
headers: request_headers.merge(custom_headers || {}),
|
101
|
+
base_url: request_url
|
102
|
+
}
|
103
|
+
promise = @client.make_request_async(:post, path_template, options)
|
104
|
+
|
105
|
+
promise = promise.then do |result|
|
106
|
+
http_response = result.response
|
107
|
+
status_code = http_response.status
|
108
|
+
response_content = http_response.body
|
109
|
+
unless status_code == 200
|
110
|
+
error_model = JSON.load(response_content)
|
111
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
112
|
+
end
|
113
|
+
|
114
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
115
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
116
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
117
|
+
# Deserialize Response
|
118
|
+
if status_code == 200
|
119
|
+
begin
|
120
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
121
|
+
result_mapper = Azure::KeyVault::V7_2_preview::Models::SecurityDomainObject.mapper()
|
122
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
123
|
+
rescue Exception => e
|
124
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
result
|
129
|
+
end
|
130
|
+
|
131
|
+
promise.execute
|
132
|
+
end
|
133
|
+
|
134
|
+
#
|
135
|
+
# Retrieve security domain transfer key
|
136
|
+
#
|
137
|
+
# @param vault_base_url [String] The vault name, for example
|
138
|
+
# https://myvault.vault.azure.net.
|
139
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
140
|
+
# will be added to the HTTP request.
|
141
|
+
#
|
142
|
+
# @return [TransferKey] operation results.
|
143
|
+
#
|
144
|
+
def transfer_key_method(vault_base_url, custom_headers:nil)
|
145
|
+
response = transfer_key_method_async(vault_base_url, custom_headers:custom_headers).value!
|
146
|
+
response.body unless response.nil?
|
147
|
+
end
|
148
|
+
|
149
|
+
#
|
150
|
+
# Retrieve security domain transfer key
|
151
|
+
#
|
152
|
+
# @param vault_base_url [String] The vault name, for example
|
153
|
+
# https://myvault.vault.azure.net.
|
154
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
155
|
+
# will be added to the HTTP request.
|
156
|
+
#
|
157
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
158
|
+
#
|
159
|
+
def transfer_key_method_with_http_info(vault_base_url, custom_headers:nil)
|
160
|
+
transfer_key_method_async(vault_base_url, custom_headers:custom_headers).value!
|
161
|
+
end
|
162
|
+
|
163
|
+
#
|
164
|
+
# Retrieve security domain transfer key
|
165
|
+
#
|
166
|
+
# @param vault_base_url [String] The vault name, for example
|
167
|
+
# https://myvault.vault.azure.net.
|
168
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
169
|
+
# to the HTTP request.
|
170
|
+
#
|
171
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
172
|
+
#
|
173
|
+
def transfer_key_method_async(vault_base_url, custom_headers:nil)
|
174
|
+
fail ArgumentError, 'vault_base_url is nil' if vault_base_url.nil?
|
175
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
176
|
+
|
177
|
+
|
178
|
+
request_headers = {}
|
179
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
180
|
+
|
181
|
+
# Set Headers
|
182
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
183
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
184
|
+
path_template = 'securitydomain/transferkey'
|
185
|
+
|
186
|
+
request_url = @base_url || @client.base_url
|
187
|
+
request_url = request_url.gsub('{vaultBaseUrl}', vault_base_url)
|
188
|
+
|
189
|
+
options = {
|
190
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
191
|
+
query_params: {'api-version' => @client.api_version},
|
192
|
+
headers: request_headers.merge(custom_headers || {}),
|
193
|
+
base_url: request_url
|
194
|
+
}
|
195
|
+
promise = @client.make_request_async(:get, path_template, options)
|
196
|
+
|
197
|
+
promise = promise.then do |result|
|
198
|
+
http_response = result.response
|
199
|
+
status_code = http_response.status
|
200
|
+
response_content = http_response.body
|
201
|
+
unless status_code == 200
|
202
|
+
error_model = JSON.load(response_content)
|
203
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
204
|
+
end
|
205
|
+
|
206
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
207
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
208
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
209
|
+
# Deserialize Response
|
210
|
+
if status_code == 200
|
211
|
+
begin
|
212
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
213
|
+
result_mapper = Azure::KeyVault::V7_2_preview::Models::TransferKey.mapper()
|
214
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
215
|
+
rescue Exception => e
|
216
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
217
|
+
end
|
218
|
+
end
|
219
|
+
|
220
|
+
result
|
221
|
+
end
|
222
|
+
|
223
|
+
promise.execute
|
224
|
+
end
|
225
|
+
|
226
|
+
#
|
227
|
+
# Request Security domain upload operation
|
228
|
+
#
|
229
|
+
# @param vault_base_url [String] The vault name, for example
|
230
|
+
# https://myvault.vault.azure.net.
|
231
|
+
# @param security_domain [SecurityDomainUploadObject] security domain
|
232
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
233
|
+
# will be added to the HTTP request.
|
234
|
+
#
|
235
|
+
# @return [SecurityDomainOperationStatus] operation results.
|
236
|
+
#
|
237
|
+
def upload(vault_base_url, security_domain, custom_headers:nil)
|
238
|
+
response = upload_async(vault_base_url, security_domain, custom_headers:custom_headers).value!
|
239
|
+
response.body unless response.nil?
|
240
|
+
end
|
241
|
+
|
242
|
+
#
|
243
|
+
# @param vault_base_url [String] The vault name, for example
|
244
|
+
# https://myvault.vault.azure.net.
|
245
|
+
# @param security_domain [SecurityDomainUploadObject] security domain
|
246
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
247
|
+
# will be added to the HTTP request.
|
248
|
+
#
|
249
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
250
|
+
# response.
|
251
|
+
#
|
252
|
+
def upload_async(vault_base_url, security_domain, custom_headers:nil)
|
253
|
+
# Send request
|
254
|
+
promise = begin_upload_async(vault_base_url, security_domain, custom_headers:custom_headers)
|
255
|
+
|
256
|
+
promise = promise.then do |response|
|
257
|
+
# Defining deserialization method.
|
258
|
+
deserialize_method = lambda do |parsed_response|
|
259
|
+
result_mapper = Azure::KeyVault::V7_2_preview::Models::SecurityDomainOperationStatus.mapper()
|
260
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
261
|
+
end
|
262
|
+
|
263
|
+
# Waiting for response.
|
264
|
+
@client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::AZURE_ASYNC_OPERATION)
|
265
|
+
end
|
266
|
+
|
267
|
+
promise
|
268
|
+
end
|
269
|
+
|
270
|
+
#
|
271
|
+
# Get Security domain upload operation status
|
272
|
+
#
|
273
|
+
# @param vault_base_url [String] The vault name, for example
|
274
|
+
# https://myvault.vault.azure.net.
|
275
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
276
|
+
# will be added to the HTTP request.
|
277
|
+
#
|
278
|
+
# @return [SecurityDomainOperationStatus] operation results.
|
279
|
+
#
|
280
|
+
def upload_pending(vault_base_url, custom_headers:nil)
|
281
|
+
response = upload_pending_async(vault_base_url, custom_headers:custom_headers).value!
|
282
|
+
response.body unless response.nil?
|
283
|
+
end
|
284
|
+
|
285
|
+
#
|
286
|
+
# Get Security domain upload operation status
|
287
|
+
#
|
288
|
+
# @param vault_base_url [String] The vault name, for example
|
289
|
+
# https://myvault.vault.azure.net.
|
290
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
291
|
+
# will be added to the HTTP request.
|
292
|
+
#
|
293
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
294
|
+
#
|
295
|
+
def upload_pending_with_http_info(vault_base_url, custom_headers:nil)
|
296
|
+
upload_pending_async(vault_base_url, custom_headers:custom_headers).value!
|
297
|
+
end
|
298
|
+
|
299
|
+
#
|
300
|
+
# Get Security domain upload operation status
|
301
|
+
#
|
302
|
+
# @param vault_base_url [String] The vault name, for example
|
303
|
+
# https://myvault.vault.azure.net.
|
304
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
305
|
+
# to the HTTP request.
|
306
|
+
#
|
307
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
308
|
+
#
|
309
|
+
def upload_pending_async(vault_base_url, custom_headers:nil)
|
310
|
+
fail ArgumentError, 'vault_base_url is nil' if vault_base_url.nil?
|
311
|
+
|
312
|
+
|
313
|
+
request_headers = {}
|
314
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
315
|
+
|
316
|
+
# Set Headers
|
317
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
318
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
319
|
+
path_template = 'securitydomain/upload/pending'
|
320
|
+
|
321
|
+
request_url = @base_url || @client.base_url
|
322
|
+
request_url = request_url.gsub('{vaultBaseUrl}', vault_base_url)
|
323
|
+
|
324
|
+
options = {
|
325
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
326
|
+
headers: request_headers.merge(custom_headers || {}),
|
327
|
+
base_url: request_url
|
328
|
+
}
|
329
|
+
promise = @client.make_request_async(:get, path_template, options)
|
330
|
+
|
331
|
+
promise = promise.then do |result|
|
332
|
+
http_response = result.response
|
333
|
+
status_code = http_response.status
|
334
|
+
response_content = http_response.body
|
335
|
+
unless status_code == 200
|
336
|
+
error_model = JSON.load(response_content)
|
337
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
338
|
+
end
|
339
|
+
|
340
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
341
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
342
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
343
|
+
# Deserialize Response
|
344
|
+
if status_code == 200
|
345
|
+
begin
|
346
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
347
|
+
result_mapper = Azure::KeyVault::V7_2_preview::Models::SecurityDomainOperationStatus.mapper()
|
348
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
349
|
+
rescue Exception => e
|
350
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
351
|
+
end
|
352
|
+
end
|
353
|
+
|
354
|
+
result
|
355
|
+
end
|
356
|
+
|
357
|
+
promise.execute
|
358
|
+
end
|
359
|
+
|
360
|
+
#
|
361
|
+
# Request Security domain upload operation
|
362
|
+
#
|
363
|
+
# @param vault_base_url [String] The vault name, for example
|
364
|
+
# https://myvault.vault.azure.net.
|
365
|
+
# @param security_domain [SecurityDomainUploadObject] security domain
|
366
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
367
|
+
# will be added to the HTTP request.
|
368
|
+
#
|
369
|
+
# @return [SecurityDomainOperationStatus] operation results.
|
370
|
+
#
|
371
|
+
def begin_upload(vault_base_url, security_domain, custom_headers:nil)
|
372
|
+
response = begin_upload_async(vault_base_url, security_domain, custom_headers:custom_headers).value!
|
373
|
+
response.body unless response.nil?
|
374
|
+
end
|
375
|
+
|
376
|
+
#
|
377
|
+
# Request Security domain upload operation
|
378
|
+
#
|
379
|
+
# @param vault_base_url [String] The vault name, for example
|
380
|
+
# https://myvault.vault.azure.net.
|
381
|
+
# @param security_domain [SecurityDomainUploadObject] security domain
|
382
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
383
|
+
# will be added to the HTTP request.
|
384
|
+
#
|
385
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
386
|
+
#
|
387
|
+
def begin_upload_with_http_info(vault_base_url, security_domain, custom_headers:nil)
|
388
|
+
begin_upload_async(vault_base_url, security_domain, custom_headers:custom_headers).value!
|
389
|
+
end
|
390
|
+
|
391
|
+
#
|
392
|
+
# Request Security domain upload operation
|
393
|
+
#
|
394
|
+
# @param vault_base_url [String] The vault name, for example
|
395
|
+
# https://myvault.vault.azure.net.
|
396
|
+
# @param security_domain [SecurityDomainUploadObject] security domain
|
397
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
398
|
+
# to the HTTP request.
|
399
|
+
#
|
400
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
401
|
+
#
|
402
|
+
def begin_upload_async(vault_base_url, security_domain, custom_headers:nil)
|
403
|
+
fail ArgumentError, 'vault_base_url is nil' if vault_base_url.nil?
|
404
|
+
fail ArgumentError, 'security_domain is nil' if security_domain.nil?
|
405
|
+
|
406
|
+
|
407
|
+
request_headers = {}
|
408
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
409
|
+
|
410
|
+
# Set Headers
|
411
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
412
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
413
|
+
|
414
|
+
# Serialize Request
|
415
|
+
request_mapper = Azure::KeyVault::V7_2_preview::Models::SecurityDomainUploadObject.mapper()
|
416
|
+
request_content = @client.serialize(request_mapper, security_domain)
|
417
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
418
|
+
|
419
|
+
path_template = 'securitydomain/upload'
|
420
|
+
|
421
|
+
request_url = @base_url || @client.base_url
|
422
|
+
request_url = request_url.gsub('{vaultBaseUrl}', vault_base_url)
|
423
|
+
|
424
|
+
options = {
|
425
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
426
|
+
body: request_content,
|
427
|
+
headers: request_headers.merge(custom_headers || {}),
|
428
|
+
base_url: request_url
|
429
|
+
}
|
430
|
+
promise = @client.make_request_async(:post, path_template, options)
|
431
|
+
|
432
|
+
promise = promise.then do |result|
|
433
|
+
http_response = result.response
|
434
|
+
status_code = http_response.status
|
435
|
+
response_content = http_response.body
|
436
|
+
unless status_code == 202
|
437
|
+
error_model = JSON.load(response_content)
|
438
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
439
|
+
end
|
440
|
+
|
441
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
442
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
443
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
444
|
+
# Deserialize Response
|
445
|
+
if status_code == 202
|
446
|
+
begin
|
447
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
448
|
+
result_mapper = Azure::KeyVault::V7_2_preview::Models::SecurityDomainOperationStatus.mapper()
|
449
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
450
|
+
rescue Exception => e
|
451
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
452
|
+
end
|
453
|
+
end
|
454
|
+
|
455
|
+
result
|
456
|
+
end
|
457
|
+
|
458
|
+
promise.execute
|
459
|
+
end
|
460
|
+
|
461
|
+
end
|
462
|
+
end
|