akeyless 5.0.39 → 5.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE +190 -0
- data/README.md +34 -1
- data/akeyless.gemspec +1 -1
- data/docs/AccountGeneralSettings.md +4 -0
- data/docs/AliCloudTargetDetails.md +28 -0
- data/docs/AnthropicTargetDetails.md +15 -1
- data/docs/AssocTargetItem.md +12 -0
- data/docs/AtlassianTargetDetails.md +46 -0
- data/docs/Auth.md +2 -0
- data/docs/AuthMethod.md +2 -0
- data/docs/AuthMethodAccessInfo.md +2 -0
- data/docs/AuthMethodCreateAliCloud.md +2 -0
- data/docs/AuthMethodCreateApiKey.md +2 -0
- data/docs/AuthMethodCreateAwsIam.md +2 -0
- data/docs/AuthMethodCreateAzureAD.md +2 -0
- data/docs/AuthMethodCreateCert.md +2 -0
- data/docs/AuthMethodCreateEmail.md +2 -0
- data/docs/AuthMethodCreateGcp.md +2 -0
- data/docs/AuthMethodCreateK8s.md +2 -0
- data/docs/AuthMethodCreateKerberos.md +2 -0
- data/docs/AuthMethodCreateLdap.md +2 -0
- data/docs/AuthMethodCreateOCI.md +2 -0
- data/docs/AuthMethodCreateOIDC.md +10 -0
- data/docs/AuthMethodCreateOauth2.md +2 -0
- data/docs/AuthMethodCreateOutput.md +3 -1
- data/docs/AuthMethodCreateSAML.md +10 -0
- data/docs/AuthMethodCreateUniversalIdentity.md +3 -1
- data/docs/AuthMethodList.md +2 -0
- data/docs/AuthMethodUpdateAliCloud.md +2 -0
- data/docs/AuthMethodUpdateApiKey.md +2 -0
- data/docs/AuthMethodUpdateAwsIam.md +2 -0
- data/docs/AuthMethodUpdateAzureAD.md +2 -0
- data/docs/AuthMethodUpdateCert.md +2 -0
- data/docs/AuthMethodUpdateEmail.md +2 -0
- data/docs/AuthMethodUpdateGcp.md +2 -0
- data/docs/AuthMethodUpdateK8s.md +2 -0
- data/docs/AuthMethodUpdateKerberos.md +2 -0
- data/docs/AuthMethodUpdateLdap.md +2 -0
- data/docs/AuthMethodUpdateOCI.md +2 -0
- data/docs/AuthMethodUpdateOIDC.md +10 -0
- data/docs/AuthMethodUpdateOauth2.md +2 -0
- data/docs/AuthMethodUpdateOutput.md +3 -1
- data/docs/AuthMethodUpdateSAML.md +10 -0
- data/docs/AuthMethodUpdateUniversalIdentity.md +3 -1
- data/docs/CacheConfigPart.md +2 -0
- data/docs/Connect.md +1 -1
- data/docs/CreateAuthMethod.md +2 -0
- data/docs/CreateAuthMethodAWSIAM.md +2 -0
- data/docs/CreateAuthMethodAzureAD.md +2 -0
- data/docs/CreateAuthMethodCert.md +2 -0
- data/docs/CreateAuthMethodEmail.md +2 -0
- data/docs/CreateAuthMethodGCP.md +2 -0
- data/docs/CreateAuthMethodHuawei.md +2 -0
- data/docs/CreateAuthMethodK8S.md +2 -0
- data/docs/CreateAuthMethodLDAP.md +2 -0
- data/docs/CreateAuthMethodOAuth2.md +2 -0
- data/docs/CreateAuthMethodOCI.md +2 -0
- data/docs/CreateAuthMethodOIDC.md +2 -0
- data/docs/CreateAuthMethodSAML.md +2 -0
- data/docs/CreateAuthMethodUniversalIdentity.md +3 -1
- data/docs/CreateEventForwarder.md +1 -1
- data/docs/CreateUSC.md +2 -0
- data/docs/DSProducerDetails.md +28 -0
- data/docs/DigiCertTargetDetails.md +2 -0
- data/docs/DynamicSecretCreateAliCloud.md +94 -0
- data/docs/DynamicSecretCreateEks.md +3 -1
- data/docs/DynamicSecretCreateGke.md +3 -1
- data/docs/DynamicSecretCreateK8s.md +3 -1
- data/docs/DynamicSecretUpdateAliCloud.md +96 -0
- data/docs/DynamicSecretUpdateEks.md +3 -1
- data/docs/DynamicSecretUpdateGke.md +3 -1
- data/docs/DynamicSecretUpdateK8s.md +3 -1
- data/docs/EventForwarderCreateEmail.md +2 -2
- data/docs/EventForwarderCreateServiceNow.md +1 -1
- data/docs/EventForwarderCreateSlack.md +1 -1
- data/docs/EventForwarderCreateTeams.md +1 -1
- data/docs/EventForwarderCreateWebhook.md +1 -1
- data/docs/EventForwarderUpdateEmail.md +2 -2
- data/docs/EventForwarderUpdateServiceNow.md +1 -1
- data/docs/EventForwarderUpdateSlack.md +1 -1
- data/docs/EventForwarderUpdateTeams.md +1 -1
- data/docs/EventForwarderUpdateWebhook.md +1 -1
- data/docs/GatewayCreateMigration.md +2 -0
- data/docs/GatewayCreateProducerEks.md +3 -1
- data/docs/GatewayCreateProducerGke.md +3 -1
- data/docs/GatewayCreateProducerNativeK8S.md +3 -1
- data/docs/GatewayUpdateCache.md +2 -0
- data/docs/GatewayUpdateMigration.md +2 -0
- data/docs/GatewayUpdateProducerEks.md +3 -1
- data/docs/GatewayUpdateProducerGke.md +3 -1
- data/docs/GatewayUpdateProducerNativeK8S.md +3 -1
- data/docs/GetGroupOutput.md +13 -1
- data/docs/GetScimStatus.md +24 -0
- data/docs/GrantedRole.md +20 -0
- data/docs/Group.md +13 -1
- data/docs/ListAuthMethods.md +2 -0
- data/docs/ListTargets.md +1 -1
- data/docs/ProvisionCertificate.md +2 -0
- data/docs/ProvisionCertificateOutput.md +7 -1
- data/docs/ProvisionSSHRotatedSecretOutput.md +24 -0
- data/docs/RotatedSecretCreateAliCloud.md +90 -0
- data/docs/RotatedSecretCreateAzure.md +1 -1
- data/docs/RotatedSecretDetailsInfo.md +2 -0
- data/docs/RotatedSecretProvisionAssocOutput.md +20 -0
- data/docs/RotatedSecretProvisionCreate.md +36 -0
- data/docs/RotatedSecretProvisionDelete.md +26 -0
- data/docs/RotatedSecretProvisionPush.md +26 -0
- data/docs/RotatedSecretProvisionUpdate.md +38 -0
- data/docs/RotatedSecretUpdateAliCloud.md +92 -0
- data/docs/RotatedSecretUpdateAzure.md +1 -1
- data/docs/ScimSettings.md +30 -0
- data/docs/ScimStatus.md +42 -0
- data/docs/TargetCreateAliCloud.md +52 -0
- data/docs/TargetCreateAnthropic.md +15 -1
- data/docs/TargetCreateAtlassian.md +68 -0
- data/docs/TargetCreateDigiCert.md +2 -0
- data/docs/TargetList.md +1 -1
- data/docs/TargetTypeDetailsInput.md +4 -0
- data/docs/TargetUpdateAliCloud.md +56 -0
- data/docs/TargetUpdateAnthropic.md +15 -1
- data/docs/TargetUpdateAtlassian.md +72 -0
- data/docs/TargetUpdateDigiCert.md +2 -0
- data/docs/UpdateAccountSettings.md +2 -0
- data/docs/UpdateAuthMethod.md +2 -0
- data/docs/UpdateAuthMethodAWSIAM.md +2 -0
- data/docs/UpdateAuthMethodAzureAD.md +2 -0
- data/docs/UpdateAuthMethodCert.md +2 -0
- data/docs/UpdateAuthMethodGCP.md +2 -0
- data/docs/UpdateAuthMethodK8S.md +2 -0
- data/docs/UpdateAuthMethodLDAP.md +2 -0
- data/docs/UpdateAuthMethodOAuth2.md +2 -0
- data/docs/UpdateAuthMethodOCI.md +2 -0
- data/docs/UpdateAuthMethodOIDC.md +2 -0
- data/docs/UpdateAuthMethodSAML.md +2 -0
- data/docs/UpdateAuthMethodUniversalIdentity.md +3 -1
- data/docs/UpdateItem.md +3 -1
- data/docs/UpdateRotatedSecret.md +3 -1
- data/docs/UscCreate.md +3 -1
- data/docs/UscDelete.md +4 -0
- data/docs/UscGet.md +4 -0
- data/docs/UscList.md +4 -0
- data/docs/UscUpdate.md +4 -0
- data/docs/V2Api.md +826 -6
- data/lib/akeyless/api/v2_api.rb +892 -60
- data/lib/akeyless/models/account_general_settings.rb +23 -1
- data/lib/akeyless/models/ali_cloud_target_details.rb +259 -0
- data/lib/akeyless/models/anthropic_target_details.rb +74 -4
- data/lib/akeyless/models/assoc_target_item.rb +63 -1
- data/lib/akeyless/models/atlassian_target_details.rb +346 -0
- data/lib/akeyless/models/attribute_type_and_value.rb +1 -1
- data/lib/akeyless/models/auth.rb +11 -1
- data/lib/akeyless/models/auth_method.rb +10 -1
- data/lib/akeyless/models/auth_method_access_info.rb +10 -1
- data/lib/akeyless/models/auth_method_create_ali_cloud.rb +11 -1
- data/lib/akeyless/models/auth_method_create_api_key.rb +11 -1
- data/lib/akeyless/models/auth_method_create_aws_iam.rb +11 -1
- data/lib/akeyless/models/auth_method_create_azure_ad.rb +11 -1
- data/lib/akeyless/models/auth_method_create_cert.rb +11 -1
- data/lib/akeyless/models/auth_method_create_email.rb +11 -1
- data/lib/akeyless/models/auth_method_create_gcp.rb +11 -1
- data/lib/akeyless/models/auth_method_create_k8s.rb +11 -1
- data/lib/akeyless/models/auth_method_create_kerberos.rb +11 -1
- data/lib/akeyless/models/auth_method_create_ldap.rb +11 -1
- data/lib/akeyless/models/auth_method_create_oauth2.rb +11 -1
- data/lib/akeyless/models/auth_method_create_oci.rb +11 -1
- data/lib/akeyless/models/auth_method_create_oidc.rb +51 -1
- data/lib/akeyless/models/auth_method_create_output.rb +14 -4
- data/lib/akeyless/models/auth_method_create_saml.rb +51 -1
- data/lib/akeyless/models/auth_method_create_universal_identity.rb +12 -2
- data/lib/akeyless/models/auth_method_list.rb +11 -1
- data/lib/akeyless/models/auth_method_update_ali_cloud.rb +11 -1
- data/lib/akeyless/models/auth_method_update_api_key.rb +11 -1
- data/lib/akeyless/models/auth_method_update_aws_iam.rb +11 -1
- data/lib/akeyless/models/auth_method_update_azure_ad.rb +11 -1
- data/lib/akeyless/models/auth_method_update_cert.rb +11 -1
- data/lib/akeyless/models/auth_method_update_email.rb +11 -1
- data/lib/akeyless/models/auth_method_update_gcp.rb +11 -1
- data/lib/akeyless/models/auth_method_update_k8s.rb +11 -1
- data/lib/akeyless/models/auth_method_update_kerberos.rb +11 -1
- data/lib/akeyless/models/auth_method_update_ldap.rb +11 -1
- data/lib/akeyless/models/auth_method_update_oauth2.rb +11 -1
- data/lib/akeyless/models/auth_method_update_oci.rb +11 -1
- data/lib/akeyless/models/auth_method_update_oidc.rb +51 -1
- data/lib/akeyless/models/auth_method_update_output.rb +14 -4
- data/lib/akeyless/models/auth_method_update_saml.rb +51 -1
- data/lib/akeyless/models/auth_method_update_universal_identity.rb +12 -2
- data/lib/akeyless/models/cache_config_part.rb +10 -1
- data/lib/akeyless/models/connect.rb +1 -1
- data/lib/akeyless/models/create_auth_method.rb +12 -1
- data/lib/akeyless/models/create_auth_method_awsiam.rb +12 -1
- data/lib/akeyless/models/create_auth_method_azure_ad.rb +12 -1
- data/lib/akeyless/models/create_auth_method_cert.rb +12 -1
- data/lib/akeyless/models/create_auth_method_email.rb +12 -1
- data/lib/akeyless/models/create_auth_method_gcp.rb +12 -1
- data/lib/akeyless/models/create_auth_method_huawei.rb +11 -1
- data/lib/akeyless/models/create_auth_method_k8_s.rb +12 -1
- data/lib/akeyless/models/create_auth_method_ldap.rb +12 -1
- data/lib/akeyless/models/create_auth_method_o_auth2.rb +12 -1
- data/lib/akeyless/models/create_auth_method_oci.rb +12 -1
- data/lib/akeyless/models/create_auth_method_oidc.rb +12 -1
- data/lib/akeyless/models/create_auth_method_saml.rb +12 -1
- data/lib/akeyless/models/create_auth_method_universal_identity.rb +13 -2
- data/lib/akeyless/models/create_event_forwarder.rb +1 -1
- data/lib/akeyless/models/create_mcp_secret_bearer_token.rb +3 -0
- data/lib/akeyless/models/create_mcp_secret_o_auth_auth_code.rb +3 -0
- data/lib/akeyless/models/create_mcp_secret_o_auth_client_creds.rb +3 -0
- data/lib/akeyless/models/create_secret.rb +3 -0
- data/lib/akeyless/models/create_usc.rb +11 -1
- data/lib/akeyless/models/digi_cert_target_details.rb +11 -1
- data/lib/akeyless/models/ds_producer_details.rb +127 -1
- data/lib/akeyless/models/dynamic_secret_create_ali_cloud.rb +625 -0
- data/lib/akeyless/models/dynamic_secret_create_eks.rb +12 -2
- data/lib/akeyless/models/dynamic_secret_create_gke.rb +12 -2
- data/lib/akeyless/models/dynamic_secret_create_k8s.rb +12 -2
- data/lib/akeyless/models/dynamic_secret_update_ali_cloud.rb +635 -0
- data/lib/akeyless/models/dynamic_secret_update_eks.rb +12 -2
- data/lib/akeyless/models/dynamic_secret_update_gke.rb +12 -2
- data/lib/akeyless/models/dynamic_secret_update_k8s.rb +12 -2
- data/lib/akeyless/models/event_forwarder_create_email.rb +2 -2
- data/lib/akeyless/models/event_forwarder_create_service_now.rb +1 -1
- data/lib/akeyless/models/event_forwarder_create_slack.rb +1 -1
- data/lib/akeyless/models/event_forwarder_create_teams.rb +1 -1
- data/lib/akeyless/models/event_forwarder_create_webhook.rb +1 -1
- data/lib/akeyless/models/event_forwarder_update_email.rb +2 -2
- data/lib/akeyless/models/event_forwarder_update_service_now.rb +1 -1
- data/lib/akeyless/models/event_forwarder_update_slack.rb +1 -1
- data/lib/akeyless/models/event_forwarder_update_teams.rb +1 -1
- data/lib/akeyless/models/event_forwarder_update_webhook.rb +1 -1
- data/lib/akeyless/models/gateway_create_migration.rb +12 -1
- data/lib/akeyless/models/gateway_create_producer_artifactory.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_aws.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_azure.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_cassandra.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_chef.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_custom.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_dockerhub.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_eks.rb +16 -2
- data/lib/akeyless/models/gateway_create_producer_gcp.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_github.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_gke.rb +16 -2
- data/lib/akeyless/models/gateway_create_producer_hana_db.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_ldap.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_mongo.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_mssql.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_my_sql.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_native_k8_s.rb +16 -2
- data/lib/akeyless/models/gateway_create_producer_oracle_db.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_ping.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_postgre_sql.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_rabbit_mq.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_rdp.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_redis.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_redshift.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_snowflake.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_venafi.rb +4 -0
- data/lib/akeyless/models/gateway_delete_producer.rb +4 -0
- data/lib/akeyless/models/gateway_get_producer.rb +4 -0
- data/lib/akeyless/models/gateway_get_tmp_users.rb +4 -0
- data/lib/akeyless/models/gateway_revoke_tmp_users.rb +4 -0
- data/lib/akeyless/models/gateway_start_producer.rb +4 -0
- data/lib/akeyless/models/gateway_stop_producer.rb +4 -0
- data/lib/akeyless/models/gateway_update_cache.rb +11 -1
- data/lib/akeyless/models/gateway_update_migration.rb +12 -1
- data/lib/akeyless/models/gateway_update_producer_artifactory.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_aws.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_azure.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_cassandra.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_chef.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_custom.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_dockerhub.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_eks.rb +16 -2
- data/lib/akeyless/models/gateway_update_producer_gcp.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_github.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_gke.rb +16 -2
- data/lib/akeyless/models/gateway_update_producer_hana_db.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_ldap.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_mongo.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_mssql.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_my_sql.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_native_k8_s.rb +16 -2
- data/lib/akeyless/models/gateway_update_producer_oracle_db.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_ping.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_postgre_sql.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_rabbit_mq.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_rdp.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_redis.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_redshift.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_snowflake.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_venafi.rb +4 -0
- data/lib/akeyless/models/gateway_update_tmp_users.rb +4 -0
- data/lib/akeyless/models/get_group_output.rb +63 -4
- data/lib/akeyless/models/get_scim_status.rb +254 -0
- data/lib/akeyless/models/granted_role.rb +224 -0
- data/lib/akeyless/models/group.rb +63 -4
- data/lib/akeyless/models/list_auth_methods.rb +11 -1
- data/lib/akeyless/models/list_targets.rb +1 -1
- data/lib/akeyless/models/provision_certificate.rb +12 -1
- data/lib/akeyless/models/provision_certificate_output.rb +35 -4
- data/lib/akeyless/models/provision_ssh_rotated_secret_output.rb +243 -0
- data/lib/akeyless/models/rotated_secret_create_ali_cloud.rb +605 -0
- data/lib/akeyless/models/rotated_secret_create_azure.rb +1 -1
- data/lib/akeyless/models/rotated_secret_details_info.rb +11 -1
- data/lib/akeyless/models/rotated_secret_provision_assoc_output.rb +223 -0
- data/lib/akeyless/models/rotated_secret_provision_create.rb +322 -0
- data/lib/akeyless/models/rotated_secret_provision_delete.rb +271 -0
- data/lib/akeyless/models/rotated_secret_provision_push.rb +271 -0
- data/lib/akeyless/models/rotated_secret_provision_update.rb +332 -0
- data/lib/akeyless/models/rotated_secret_update_ali_cloud.rb +605 -0
- data/lib/akeyless/models/rotated_secret_update_azure.rb +1 -1
- data/lib/akeyless/models/scim_settings.rb +271 -0
- data/lib/akeyless/models/scim_status.rb +323 -0
- data/lib/akeyless/models/target_create_ali_cloud.rb +394 -0
- data/lib/akeyless/models/target_create_anthropic.rb +74 -4
- data/lib/akeyless/models/target_create_atlassian.rb +476 -0
- data/lib/akeyless/models/target_create_digi_cert.rb +11 -1
- data/lib/akeyless/models/target_list.rb +1 -1
- data/lib/akeyless/models/target_type_details_input.rb +19 -1
- data/lib/akeyless/models/target_update_ali_cloud.rb +414 -0
- data/lib/akeyless/models/target_update_anthropic.rb +74 -4
- data/lib/akeyless/models/target_update_atlassian.rb +496 -0
- data/lib/akeyless/models/target_update_digi_cert.rb +11 -1
- data/lib/akeyless/models/update_account_settings.rb +11 -1
- data/lib/akeyless/models/update_auth_method.rb +12 -1
- data/lib/akeyless/models/update_auth_method_awsiam.rb +12 -1
- data/lib/akeyless/models/update_auth_method_azure_ad.rb +12 -1
- data/lib/akeyless/models/update_auth_method_cert.rb +12 -1
- data/lib/akeyless/models/update_auth_method_gcp.rb +12 -1
- data/lib/akeyless/models/update_auth_method_k8_s.rb +12 -1
- data/lib/akeyless/models/update_auth_method_ldap.rb +12 -1
- data/lib/akeyless/models/update_auth_method_o_auth2.rb +12 -1
- data/lib/akeyless/models/update_auth_method_oci.rb +12 -1
- data/lib/akeyless/models/update_auth_method_oidc.rb +12 -1
- data/lib/akeyless/models/update_auth_method_saml.rb +12 -1
- data/lib/akeyless/models/update_auth_method_universal_identity.rb +13 -2
- data/lib/akeyless/models/update_item.rb +23 -2
- data/lib/akeyless/models/update_mcp_secret_bearer_token.rb +3 -0
- data/lib/akeyless/models/update_mcp_secret_o_auth_auth_code.rb +3 -0
- data/lib/akeyless/models/update_mcp_secret_o_auth_client_creds.rb +3 -0
- data/lib/akeyless/models/update_rotated_secret.rb +20 -2
- data/lib/akeyless/models/usc_create.rb +12 -2
- data/lib/akeyless/models/usc_delete.rb +21 -1
- data/lib/akeyless/models/usc_get.rb +21 -1
- data/lib/akeyless/models/usc_list.rb +21 -1
- data/lib/akeyless/models/usc_update.rb +21 -1
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +20 -0
- data/spec/models/ali_cloud_target_details_spec.rb +66 -0
- data/spec/models/atlassian_target_details_spec.rb +120 -0
- data/spec/models/dynamic_secret_create_ali_cloud_spec.rb +264 -0
- data/spec/models/dynamic_secret_update_ali_cloud_spec.rb +270 -0
- data/spec/models/get_scim_status_spec.rb +54 -0
- data/spec/models/granted_role_spec.rb +42 -0
- data/spec/models/provision_ssh_rotated_secret_output_spec.rb +54 -0
- data/spec/models/rotated_secret_create_ali_cloud_spec.rb +252 -0
- data/spec/models/rotated_secret_provision_assoc_output_spec.rb +42 -0
- data/spec/models/rotated_secret_provision_create_spec.rb +90 -0
- data/spec/models/rotated_secret_provision_delete_spec.rb +60 -0
- data/spec/models/rotated_secret_provision_push_spec.rb +60 -0
- data/spec/models/rotated_secret_provision_update_spec.rb +96 -0
- data/spec/models/rotated_secret_update_ali_cloud_spec.rb +258 -0
- data/spec/models/scim_settings_spec.rb +72 -0
- data/spec/models/scim_status_spec.rb +108 -0
- data/spec/models/target_create_ali_cloud_spec.rb +138 -0
- data/spec/models/target_create_atlassian_spec.rb +186 -0
- data/spec/models/target_update_ali_cloud_spec.rb +150 -0
- data/spec/models/target_update_atlassian_spec.rb +198 -0
- metadata +96 -15
|
@@ -0,0 +1,496 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Akeyless API
|
|
3
|
+
|
|
4
|
+
#The purpose of this application is to provide access to Akeyless API.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 3.0
|
|
7
|
+
Contact: support@akeyless.io
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.10.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Akeyless
|
|
17
|
+
class TargetUpdateAtlassian
|
|
18
|
+
# Atlassian auth type: oauth, service_account_token or user_api_token on cloud, pat on data center
|
|
19
|
+
attr_accessor :atlassian_auth_type
|
|
20
|
+
|
|
21
|
+
# Optional Automation REST API key (Jira settings > System > Automation > API keys); the automation API refuses an account token, so without it the automation rules are reported as not read
|
|
22
|
+
attr_accessor :atlassian_automation_key
|
|
23
|
+
|
|
24
|
+
# CA certificate (base64-encoded PEM) of a Data Center site signed by a private CA
|
|
25
|
+
attr_accessor :atlassian_ca_certificate
|
|
26
|
+
|
|
27
|
+
# Atlassian OAuth 2.0 service account client ID
|
|
28
|
+
attr_accessor :atlassian_client_id
|
|
29
|
+
|
|
30
|
+
# Atlassian OAuth 2.0 service account client secret
|
|
31
|
+
attr_accessor :atlassian_client_secret
|
|
32
|
+
|
|
33
|
+
# Atlassian Cloud ID of the site (resolved from the site URL when empty)
|
|
34
|
+
attr_accessor :atlassian_cloud_id
|
|
35
|
+
|
|
36
|
+
# Confluence Data Center personal access token
|
|
37
|
+
attr_accessor :atlassian_confluence_token
|
|
38
|
+
|
|
39
|
+
# Confluence Data Center base URL
|
|
40
|
+
attr_accessor :atlassian_confluence_url
|
|
41
|
+
|
|
42
|
+
# Atlassian deployment type: cloud or data_center (inferred from the URL when empty)
|
|
43
|
+
attr_accessor :atlassian_deployment_type
|
|
44
|
+
|
|
45
|
+
# Atlassian account email paired with a user API token
|
|
46
|
+
attr_accessor :atlassian_email
|
|
47
|
+
|
|
48
|
+
# Jira Data Center personal access token
|
|
49
|
+
attr_accessor :atlassian_jira_token
|
|
50
|
+
|
|
51
|
+
# Jira Data Center base URL
|
|
52
|
+
attr_accessor :atlassian_jira_url
|
|
53
|
+
|
|
54
|
+
# Atlassian products to connect to on cloud: jira, confluence or both (default both)
|
|
55
|
+
attr_accessor :atlassian_products
|
|
56
|
+
|
|
57
|
+
# Atlassian Cloud service account API token or user API token
|
|
58
|
+
attr_accessor :atlassian_token
|
|
59
|
+
|
|
60
|
+
# Atlassian Cloud site base URL (https://<site>.atlassian.net)
|
|
61
|
+
attr_accessor :atlassian_url
|
|
62
|
+
|
|
63
|
+
# Protection from accidental deletion of this object [true/false]
|
|
64
|
+
attr_accessor :delete_protection
|
|
65
|
+
|
|
66
|
+
# Description of the object
|
|
67
|
+
attr_accessor :description
|
|
68
|
+
|
|
69
|
+
# Set output format to JSON
|
|
70
|
+
attr_accessor :json
|
|
71
|
+
|
|
72
|
+
# Whether to keep previous version [true/false]. If not set, use default according to account settings
|
|
73
|
+
attr_accessor :keep_prev_version
|
|
74
|
+
|
|
75
|
+
# The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
|
|
76
|
+
attr_accessor :key
|
|
77
|
+
|
|
78
|
+
# Lock this secret after each successful value read
|
|
79
|
+
attr_accessor :lock_on_read
|
|
80
|
+
|
|
81
|
+
# Lock TTL in minutes
|
|
82
|
+
attr_accessor :lock_ttl
|
|
83
|
+
|
|
84
|
+
# Set the maximum number of versions, limited by the account settings defaults.
|
|
85
|
+
attr_accessor :max_versions
|
|
86
|
+
|
|
87
|
+
# Target name
|
|
88
|
+
attr_accessor :name
|
|
89
|
+
|
|
90
|
+
# New target name
|
|
91
|
+
attr_accessor :new_name
|
|
92
|
+
|
|
93
|
+
# Rotate this secret after it is unlocked
|
|
94
|
+
attr_accessor :rotate_on_unlock
|
|
95
|
+
|
|
96
|
+
# Authentication token (see `/auth` and `/configure`)
|
|
97
|
+
attr_accessor :token
|
|
98
|
+
|
|
99
|
+
# The universal identity token, Required only for universal_identity authentication
|
|
100
|
+
attr_accessor :uid_token
|
|
101
|
+
|
|
102
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
103
|
+
def self.attribute_map
|
|
104
|
+
{
|
|
105
|
+
:'atlassian_auth_type' => :'atlassian-auth-type',
|
|
106
|
+
:'atlassian_automation_key' => :'atlassian-automation-key',
|
|
107
|
+
:'atlassian_ca_certificate' => :'atlassian-ca-certificate',
|
|
108
|
+
:'atlassian_client_id' => :'atlassian-client-id',
|
|
109
|
+
:'atlassian_client_secret' => :'atlassian-client-secret',
|
|
110
|
+
:'atlassian_cloud_id' => :'atlassian-cloud-id',
|
|
111
|
+
:'atlassian_confluence_token' => :'atlassian-confluence-token',
|
|
112
|
+
:'atlassian_confluence_url' => :'atlassian-confluence-url',
|
|
113
|
+
:'atlassian_deployment_type' => :'atlassian-deployment-type',
|
|
114
|
+
:'atlassian_email' => :'atlassian-email',
|
|
115
|
+
:'atlassian_jira_token' => :'atlassian-jira-token',
|
|
116
|
+
:'atlassian_jira_url' => :'atlassian-jira-url',
|
|
117
|
+
:'atlassian_products' => :'atlassian-products',
|
|
118
|
+
:'atlassian_token' => :'atlassian-token',
|
|
119
|
+
:'atlassian_url' => :'atlassian-url',
|
|
120
|
+
:'delete_protection' => :'delete_protection',
|
|
121
|
+
:'description' => :'description',
|
|
122
|
+
:'json' => :'json',
|
|
123
|
+
:'keep_prev_version' => :'keep-prev-version',
|
|
124
|
+
:'key' => :'key',
|
|
125
|
+
:'lock_on_read' => :'lock-on-read',
|
|
126
|
+
:'lock_ttl' => :'lock-ttl',
|
|
127
|
+
:'max_versions' => :'max-versions',
|
|
128
|
+
:'name' => :'name',
|
|
129
|
+
:'new_name' => :'new-name',
|
|
130
|
+
:'rotate_on_unlock' => :'rotate-on-unlock',
|
|
131
|
+
:'token' => :'token',
|
|
132
|
+
:'uid_token' => :'uid-token'
|
|
133
|
+
}
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Returns all the JSON keys this model knows about
|
|
137
|
+
def self.acceptable_attributes
|
|
138
|
+
attribute_map.values
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# Attribute type mapping.
|
|
142
|
+
def self.openapi_types
|
|
143
|
+
{
|
|
144
|
+
:'atlassian_auth_type' => :'String',
|
|
145
|
+
:'atlassian_automation_key' => :'String',
|
|
146
|
+
:'atlassian_ca_certificate' => :'String',
|
|
147
|
+
:'atlassian_client_id' => :'String',
|
|
148
|
+
:'atlassian_client_secret' => :'String',
|
|
149
|
+
:'atlassian_cloud_id' => :'String',
|
|
150
|
+
:'atlassian_confluence_token' => :'String',
|
|
151
|
+
:'atlassian_confluence_url' => :'String',
|
|
152
|
+
:'atlassian_deployment_type' => :'String',
|
|
153
|
+
:'atlassian_email' => :'String',
|
|
154
|
+
:'atlassian_jira_token' => :'String',
|
|
155
|
+
:'atlassian_jira_url' => :'String',
|
|
156
|
+
:'atlassian_products' => :'Array<String>',
|
|
157
|
+
:'atlassian_token' => :'String',
|
|
158
|
+
:'atlassian_url' => :'String',
|
|
159
|
+
:'delete_protection' => :'String',
|
|
160
|
+
:'description' => :'String',
|
|
161
|
+
:'json' => :'Boolean',
|
|
162
|
+
:'keep_prev_version' => :'String',
|
|
163
|
+
:'key' => :'String',
|
|
164
|
+
:'lock_on_read' => :'String',
|
|
165
|
+
:'lock_ttl' => :'String',
|
|
166
|
+
:'max_versions' => :'String',
|
|
167
|
+
:'name' => :'String',
|
|
168
|
+
:'new_name' => :'String',
|
|
169
|
+
:'rotate_on_unlock' => :'String',
|
|
170
|
+
:'token' => :'String',
|
|
171
|
+
:'uid_token' => :'String'
|
|
172
|
+
}
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# List of attributes with nullable: true
|
|
176
|
+
def self.openapi_nullable
|
|
177
|
+
Set.new([
|
|
178
|
+
])
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# Initializes the object
|
|
182
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
183
|
+
def initialize(attributes = {})
|
|
184
|
+
if (!attributes.is_a?(Hash))
|
|
185
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::TargetUpdateAtlassian` initialize method"
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
189
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
190
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
191
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::TargetUpdateAtlassian`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
192
|
+
end
|
|
193
|
+
h[k.to_sym] = v
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
if attributes.key?(:'atlassian_auth_type')
|
|
197
|
+
self.atlassian_auth_type = attributes[:'atlassian_auth_type']
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
if attributes.key?(:'atlassian_automation_key')
|
|
201
|
+
self.atlassian_automation_key = attributes[:'atlassian_automation_key']
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
if attributes.key?(:'atlassian_ca_certificate')
|
|
205
|
+
self.atlassian_ca_certificate = attributes[:'atlassian_ca_certificate']
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
if attributes.key?(:'atlassian_client_id')
|
|
209
|
+
self.atlassian_client_id = attributes[:'atlassian_client_id']
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
if attributes.key?(:'atlassian_client_secret')
|
|
213
|
+
self.atlassian_client_secret = attributes[:'atlassian_client_secret']
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
if attributes.key?(:'atlassian_cloud_id')
|
|
217
|
+
self.atlassian_cloud_id = attributes[:'atlassian_cloud_id']
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
if attributes.key?(:'atlassian_confluence_token')
|
|
221
|
+
self.atlassian_confluence_token = attributes[:'atlassian_confluence_token']
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
if attributes.key?(:'atlassian_confluence_url')
|
|
225
|
+
self.atlassian_confluence_url = attributes[:'atlassian_confluence_url']
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
if attributes.key?(:'atlassian_deployment_type')
|
|
229
|
+
self.atlassian_deployment_type = attributes[:'atlassian_deployment_type']
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
if attributes.key?(:'atlassian_email')
|
|
233
|
+
self.atlassian_email = attributes[:'atlassian_email']
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
if attributes.key?(:'atlassian_jira_token')
|
|
237
|
+
self.atlassian_jira_token = attributes[:'atlassian_jira_token']
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
if attributes.key?(:'atlassian_jira_url')
|
|
241
|
+
self.atlassian_jira_url = attributes[:'atlassian_jira_url']
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
if attributes.key?(:'atlassian_products')
|
|
245
|
+
if (value = attributes[:'atlassian_products']).is_a?(Array)
|
|
246
|
+
self.atlassian_products = value
|
|
247
|
+
end
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
if attributes.key?(:'atlassian_token')
|
|
251
|
+
self.atlassian_token = attributes[:'atlassian_token']
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
if attributes.key?(:'atlassian_url')
|
|
255
|
+
self.atlassian_url = attributes[:'atlassian_url']
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
if attributes.key?(:'delete_protection')
|
|
259
|
+
self.delete_protection = attributes[:'delete_protection']
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
if attributes.key?(:'description')
|
|
263
|
+
self.description = attributes[:'description']
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
if attributes.key?(:'json')
|
|
267
|
+
self.json = attributes[:'json']
|
|
268
|
+
else
|
|
269
|
+
self.json = false
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
if attributes.key?(:'keep_prev_version')
|
|
273
|
+
self.keep_prev_version = attributes[:'keep_prev_version']
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
if attributes.key?(:'key')
|
|
277
|
+
self.key = attributes[:'key']
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
if attributes.key?(:'lock_on_read')
|
|
281
|
+
self.lock_on_read = attributes[:'lock_on_read']
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
if attributes.key?(:'lock_ttl')
|
|
285
|
+
self.lock_ttl = attributes[:'lock_ttl']
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
if attributes.key?(:'max_versions')
|
|
289
|
+
self.max_versions = attributes[:'max_versions']
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
if attributes.key?(:'name')
|
|
293
|
+
self.name = attributes[:'name']
|
|
294
|
+
else
|
|
295
|
+
self.name = nil
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
if attributes.key?(:'new_name')
|
|
299
|
+
self.new_name = attributes[:'new_name']
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
if attributes.key?(:'rotate_on_unlock')
|
|
303
|
+
self.rotate_on_unlock = attributes[:'rotate_on_unlock']
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
if attributes.key?(:'token')
|
|
307
|
+
self.token = attributes[:'token']
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
if attributes.key?(:'uid_token')
|
|
311
|
+
self.uid_token = attributes[:'uid_token']
|
|
312
|
+
end
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
316
|
+
# @return Array for valid properties with the reasons
|
|
317
|
+
def list_invalid_properties
|
|
318
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
319
|
+
invalid_properties = Array.new
|
|
320
|
+
if @name.nil?
|
|
321
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
invalid_properties
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
# Check to see if the all the properties in the model are valid
|
|
328
|
+
# @return true if the model is valid
|
|
329
|
+
def valid?
|
|
330
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
331
|
+
return false if @name.nil?
|
|
332
|
+
true
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
# Checks equality by comparing each attribute.
|
|
336
|
+
# @param [Object] Object to be compared
|
|
337
|
+
def ==(o)
|
|
338
|
+
return true if self.equal?(o)
|
|
339
|
+
self.class == o.class &&
|
|
340
|
+
atlassian_auth_type == o.atlassian_auth_type &&
|
|
341
|
+
atlassian_automation_key == o.atlassian_automation_key &&
|
|
342
|
+
atlassian_ca_certificate == o.atlassian_ca_certificate &&
|
|
343
|
+
atlassian_client_id == o.atlassian_client_id &&
|
|
344
|
+
atlassian_client_secret == o.atlassian_client_secret &&
|
|
345
|
+
atlassian_cloud_id == o.atlassian_cloud_id &&
|
|
346
|
+
atlassian_confluence_token == o.atlassian_confluence_token &&
|
|
347
|
+
atlassian_confluence_url == o.atlassian_confluence_url &&
|
|
348
|
+
atlassian_deployment_type == o.atlassian_deployment_type &&
|
|
349
|
+
atlassian_email == o.atlassian_email &&
|
|
350
|
+
atlassian_jira_token == o.atlassian_jira_token &&
|
|
351
|
+
atlassian_jira_url == o.atlassian_jira_url &&
|
|
352
|
+
atlassian_products == o.atlassian_products &&
|
|
353
|
+
atlassian_token == o.atlassian_token &&
|
|
354
|
+
atlassian_url == o.atlassian_url &&
|
|
355
|
+
delete_protection == o.delete_protection &&
|
|
356
|
+
description == o.description &&
|
|
357
|
+
json == o.json &&
|
|
358
|
+
keep_prev_version == o.keep_prev_version &&
|
|
359
|
+
key == o.key &&
|
|
360
|
+
lock_on_read == o.lock_on_read &&
|
|
361
|
+
lock_ttl == o.lock_ttl &&
|
|
362
|
+
max_versions == o.max_versions &&
|
|
363
|
+
name == o.name &&
|
|
364
|
+
new_name == o.new_name &&
|
|
365
|
+
rotate_on_unlock == o.rotate_on_unlock &&
|
|
366
|
+
token == o.token &&
|
|
367
|
+
uid_token == o.uid_token
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
# @see the `==` method
|
|
371
|
+
# @param [Object] Object to be compared
|
|
372
|
+
def eql?(o)
|
|
373
|
+
self == o
|
|
374
|
+
end
|
|
375
|
+
|
|
376
|
+
# Calculates hash code according to all attributes.
|
|
377
|
+
# @return [Integer] Hash code
|
|
378
|
+
def hash
|
|
379
|
+
[atlassian_auth_type, atlassian_automation_key, atlassian_ca_certificate, atlassian_client_id, atlassian_client_secret, atlassian_cloud_id, atlassian_confluence_token, atlassian_confluence_url, atlassian_deployment_type, atlassian_email, atlassian_jira_token, atlassian_jira_url, atlassian_products, atlassian_token, atlassian_url, delete_protection, description, json, keep_prev_version, key, lock_on_read, lock_ttl, max_versions, name, new_name, rotate_on_unlock, token, uid_token].hash
|
|
380
|
+
end
|
|
381
|
+
|
|
382
|
+
# Builds the object from hash
|
|
383
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
384
|
+
# @return [Object] Returns the model itself
|
|
385
|
+
def self.build_from_hash(attributes)
|
|
386
|
+
return nil unless attributes.is_a?(Hash)
|
|
387
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
388
|
+
transformed_hash = {}
|
|
389
|
+
openapi_types.each_pair do |key, type|
|
|
390
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
391
|
+
transformed_hash["#{key}"] = nil
|
|
392
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
393
|
+
# check to ensure the input is an array given that the attribute
|
|
394
|
+
# is documented as an array but the input is not
|
|
395
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
396
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
397
|
+
end
|
|
398
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
399
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
400
|
+
end
|
|
401
|
+
end
|
|
402
|
+
new(transformed_hash)
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
# Deserializes the data based on type
|
|
406
|
+
# @param string type Data type
|
|
407
|
+
# @param string value Value to be deserialized
|
|
408
|
+
# @return [Object] Deserialized data
|
|
409
|
+
def self._deserialize(type, value)
|
|
410
|
+
case type.to_sym
|
|
411
|
+
when :Time
|
|
412
|
+
Time.parse(value)
|
|
413
|
+
when :Date
|
|
414
|
+
Date.parse(value)
|
|
415
|
+
when :String
|
|
416
|
+
value.to_s
|
|
417
|
+
when :Integer
|
|
418
|
+
value.to_i
|
|
419
|
+
when :Float
|
|
420
|
+
value.to_f
|
|
421
|
+
when :Boolean
|
|
422
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
423
|
+
true
|
|
424
|
+
else
|
|
425
|
+
false
|
|
426
|
+
end
|
|
427
|
+
when :Object
|
|
428
|
+
# generic object (usually a Hash), return directly
|
|
429
|
+
value
|
|
430
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
431
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
432
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
433
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
434
|
+
k_type = Regexp.last_match[:k_type]
|
|
435
|
+
v_type = Regexp.last_match[:v_type]
|
|
436
|
+
{}.tap do |hash|
|
|
437
|
+
value.each do |k, v|
|
|
438
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
439
|
+
end
|
|
440
|
+
end
|
|
441
|
+
else # model
|
|
442
|
+
# models (e.g. Pet) or oneOf
|
|
443
|
+
klass = Akeyless.const_get(type)
|
|
444
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
445
|
+
end
|
|
446
|
+
end
|
|
447
|
+
|
|
448
|
+
# Returns the string representation of the object
|
|
449
|
+
# @return [String] String presentation of the object
|
|
450
|
+
def to_s
|
|
451
|
+
to_hash.to_s
|
|
452
|
+
end
|
|
453
|
+
|
|
454
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
455
|
+
# @return [Hash] Returns the object in the form of hash
|
|
456
|
+
def to_body
|
|
457
|
+
to_hash
|
|
458
|
+
end
|
|
459
|
+
|
|
460
|
+
# Returns the object in the form of hash
|
|
461
|
+
# @return [Hash] Returns the object in the form of hash
|
|
462
|
+
def to_hash
|
|
463
|
+
hash = {}
|
|
464
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
465
|
+
value = self.send(attr)
|
|
466
|
+
if value.nil?
|
|
467
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
468
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
469
|
+
end
|
|
470
|
+
|
|
471
|
+
hash[param] = _to_hash(value)
|
|
472
|
+
end
|
|
473
|
+
hash
|
|
474
|
+
end
|
|
475
|
+
|
|
476
|
+
# Outputs non-array value in the form of hash
|
|
477
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
478
|
+
# @param [Object] value Any valid value
|
|
479
|
+
# @return [Hash] Returns the value in the form of hash
|
|
480
|
+
def _to_hash(value)
|
|
481
|
+
if value.is_a?(Array)
|
|
482
|
+
value.compact.map { |v| _to_hash(v) }
|
|
483
|
+
elsif value.is_a?(Hash)
|
|
484
|
+
{}.tap do |hash|
|
|
485
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
486
|
+
end
|
|
487
|
+
elsif value.respond_to? :to_hash
|
|
488
|
+
value.to_hash
|
|
489
|
+
else
|
|
490
|
+
value
|
|
491
|
+
end
|
|
492
|
+
end
|
|
493
|
+
|
|
494
|
+
end
|
|
495
|
+
|
|
496
|
+
end
|
|
@@ -19,6 +19,9 @@ module Akeyless
|
|
|
19
19
|
# ACME challenge type. Options: [dns]
|
|
20
20
|
attr_accessor :acme_challenge
|
|
21
21
|
|
|
22
|
+
# DigiCert CertCentral API key. Optional - when set, certificate renewal reissues the existing DigiCert order instead of placing a new (billable) order. DNS challenge and production endpoints only. On target update pass it again to keep it, omitting it clears it
|
|
23
|
+
attr_accessor :cert_central_api_key
|
|
24
|
+
|
|
22
25
|
# Protection from accidental deletion of this object [true/false]
|
|
23
26
|
attr_accessor :delete_protection
|
|
24
27
|
|
|
@@ -104,6 +107,7 @@ module Akeyless
|
|
|
104
107
|
def self.attribute_map
|
|
105
108
|
{
|
|
106
109
|
:'acme_challenge' => :'acme-challenge',
|
|
110
|
+
:'cert_central_api_key' => :'cert-central-api-key',
|
|
107
111
|
:'delete_protection' => :'delete_protection',
|
|
108
112
|
:'description' => :'description',
|
|
109
113
|
:'digicert_url' => :'digicert-url',
|
|
@@ -143,6 +147,7 @@ module Akeyless
|
|
|
143
147
|
def self.openapi_types
|
|
144
148
|
{
|
|
145
149
|
:'acme_challenge' => :'String',
|
|
150
|
+
:'cert_central_api_key' => :'String',
|
|
146
151
|
:'delete_protection' => :'String',
|
|
147
152
|
:'description' => :'String',
|
|
148
153
|
:'digicert_url' => :'String',
|
|
@@ -200,6 +205,10 @@ module Akeyless
|
|
|
200
205
|
self.acme_challenge = 'dns'
|
|
201
206
|
end
|
|
202
207
|
|
|
208
|
+
if attributes.key?(:'cert_central_api_key')
|
|
209
|
+
self.cert_central_api_key = attributes[:'cert_central_api_key']
|
|
210
|
+
end
|
|
211
|
+
|
|
203
212
|
if attributes.key?(:'delete_protection')
|
|
204
213
|
self.delete_protection = attributes[:'delete_protection']
|
|
205
214
|
end
|
|
@@ -352,6 +361,7 @@ module Akeyless
|
|
|
352
361
|
return true if self.equal?(o)
|
|
353
362
|
self.class == o.class &&
|
|
354
363
|
acme_challenge == o.acme_challenge &&
|
|
364
|
+
cert_central_api_key == o.cert_central_api_key &&
|
|
355
365
|
delete_protection == o.delete_protection &&
|
|
356
366
|
description == o.description &&
|
|
357
367
|
digicert_url == o.digicert_url &&
|
|
@@ -390,7 +400,7 @@ module Akeyless
|
|
|
390
400
|
# Calculates hash code according to all attributes.
|
|
391
401
|
# @return [Integer] Hash code
|
|
392
402
|
def hash
|
|
393
|
-
[acme_challenge, delete_protection, description, digicert_url, dns_propagation_wait, dns_resolvers, dns_skip_precheck, dns_target_creds, dns_timeout, dns_zone, eab_hmac_key, eab_key_id, email, gcp_project, hosted_zone, json, keep_prev_version, key, lock_on_read, lock_ttl, max_versions, name, new_name, resource_group, rotate_on_unlock, timeout, token, uid_token].hash
|
|
403
|
+
[acme_challenge, cert_central_api_key, delete_protection, description, digicert_url, dns_propagation_wait, dns_resolvers, dns_skip_precheck, dns_target_creds, dns_timeout, dns_zone, eab_hmac_key, eab_key_id, email, gcp_project, hosted_zone, json, keep_prev_version, key, lock_on_read, lock_ttl, max_versions, name, new_name, resource_group, rotate_on_unlock, timeout, token, uid_token].hash
|
|
394
404
|
end
|
|
395
405
|
|
|
396
406
|
# Builds the object from hash
|
|
@@ -147,6 +147,9 @@ module Akeyless
|
|
|
147
147
|
# Postal code
|
|
148
148
|
attr_accessor :postal_code
|
|
149
149
|
|
|
150
|
+
# Require an owner when creating or updating authentication methods [true/false]
|
|
151
|
+
attr_accessor :require_auth_method_owner
|
|
152
|
+
|
|
150
153
|
# Authentication token (see `/auth` and `/configure`)
|
|
151
154
|
attr_accessor :token
|
|
152
155
|
|
|
@@ -220,6 +223,7 @@ module Akeyless
|
|
|
220
223
|
:'password_length' => :'password-length',
|
|
221
224
|
:'phone' => :'phone',
|
|
222
225
|
:'postal_code' => :'postal-code',
|
|
226
|
+
:'require_auth_method_owner' => :'require-auth-method-owner',
|
|
223
227
|
:'token' => :'token',
|
|
224
228
|
:'uid_token' => :'uid-token',
|
|
225
229
|
:'usage_event_enable' => :'usage-event-enable',
|
|
@@ -284,6 +288,7 @@ module Akeyless
|
|
|
284
288
|
:'password_length' => :'Integer',
|
|
285
289
|
:'phone' => :'String',
|
|
286
290
|
:'postal_code' => :'String',
|
|
291
|
+
:'require_auth_method_owner' => :'String',
|
|
287
292
|
:'token' => :'String',
|
|
288
293
|
:'uid_token' => :'String',
|
|
289
294
|
:'usage_event_enable' => :'String',
|
|
@@ -507,6 +512,10 @@ module Akeyless
|
|
|
507
512
|
self.postal_code = attributes[:'postal_code']
|
|
508
513
|
end
|
|
509
514
|
|
|
515
|
+
if attributes.key?(:'require_auth_method_owner')
|
|
516
|
+
self.require_auth_method_owner = attributes[:'require_auth_method_owner']
|
|
517
|
+
end
|
|
518
|
+
|
|
510
519
|
if attributes.key?(:'token')
|
|
511
520
|
self.token = attributes[:'token']
|
|
512
521
|
end
|
|
@@ -608,6 +617,7 @@ module Akeyless
|
|
|
608
617
|
password_length == o.password_length &&
|
|
609
618
|
phone == o.phone &&
|
|
610
619
|
postal_code == o.postal_code &&
|
|
620
|
+
require_auth_method_owner == o.require_auth_method_owner &&
|
|
611
621
|
token == o.token &&
|
|
612
622
|
uid_token == o.uid_token &&
|
|
613
623
|
usage_event_enable == o.usage_event_enable &&
|
|
@@ -628,7 +638,7 @@ module Akeyless
|
|
|
628
638
|
# Calculates hash code according to all attributes.
|
|
629
639
|
# @return [Integer] Hash code
|
|
630
640
|
def hash
|
|
631
|
-
[address, allowed_client_type, allowed_email_domains, bound_ips, city, company_name, country, default_certificate_expiration_notification_days, default_key_name, default_share_link_ttl_minutes, default_versioning, dp_enable_classic_key_protection, dynamic_secret_max_ttl, dynamic_secret_max_ttl_enable, enable_ai_insights, enable_ai_quorum, enable_default_certificate_expiration_event, enable_item_sharing, enable_password_expiration, force_new_versions, gw_bound_ips, hide_personal_folder, hide_static_password, invalid_characters, item_locking_enabled, item_type, items_deletion_protection, json, jwt_ttl_default, jwt_ttl_max, jwt_ttl_min, lock_allowed_client_type, lock_bound_ips, lock_default_key, lock_gw_bound_ips, lock_max_ttl, max_rotation_interval, max_rotation_interval_enable, max_versions, password_expiration_days, password_expiration_notification_days, password_length, phone, postal_code, token, uid_token, usage_event_enable, usage_event_interval, usage_event_object_type, use_capital_letters, use_lower_letters, use_numbers, use_special_characters].hash
|
|
641
|
+
[address, allowed_client_type, allowed_email_domains, bound_ips, city, company_name, country, default_certificate_expiration_notification_days, default_key_name, default_share_link_ttl_minutes, default_versioning, dp_enable_classic_key_protection, dynamic_secret_max_ttl, dynamic_secret_max_ttl_enable, enable_ai_insights, enable_ai_quorum, enable_default_certificate_expiration_event, enable_item_sharing, enable_password_expiration, force_new_versions, gw_bound_ips, hide_personal_folder, hide_static_password, invalid_characters, item_locking_enabled, item_type, items_deletion_protection, json, jwt_ttl_default, jwt_ttl_max, jwt_ttl_min, lock_allowed_client_type, lock_bound_ips, lock_default_key, lock_gw_bound_ips, lock_max_ttl, max_rotation_interval, max_rotation_interval_enable, max_versions, password_expiration_days, password_expiration_notification_days, password_length, phone, postal_code, require_auth_method_owner, token, uid_token, usage_event_enable, usage_event_interval, usage_event_object_type, use_capital_letters, use_lower_letters, use_numbers, use_special_characters].hash
|
|
632
642
|
end
|
|
633
643
|
|
|
634
644
|
# Builds the object from hash
|
|
@@ -55,6 +55,9 @@ module Akeyless
|
|
|
55
55
|
# Auth Method new name
|
|
56
56
|
attr_accessor :new_name
|
|
57
57
|
|
|
58
|
+
# Auth Method owner (free text, up to 255 characters). On update, omit to keep the current owner and pass an empty value to clear it
|
|
59
|
+
attr_accessor :owner
|
|
60
|
+
|
|
58
61
|
# Choose the relevant product type for the auth method [sm, sra, pm, dp, ca, ara]
|
|
59
62
|
attr_accessor :product_type
|
|
60
63
|
|
|
@@ -80,6 +83,7 @@ module Akeyless
|
|
|
80
83
|
:'jwt_ttl' => :'jwt-ttl',
|
|
81
84
|
:'name' => :'name',
|
|
82
85
|
:'new_name' => :'new-name',
|
|
86
|
+
:'owner' => :'owner',
|
|
83
87
|
:'product_type' => :'product-type',
|
|
84
88
|
:'token' => :'token',
|
|
85
89
|
:'uid_token' => :'uid-token'
|
|
@@ -107,6 +111,7 @@ module Akeyless
|
|
|
107
111
|
:'jwt_ttl' => :'Integer',
|
|
108
112
|
:'name' => :'String',
|
|
109
113
|
:'new_name' => :'String',
|
|
114
|
+
:'owner' => :'String',
|
|
110
115
|
:'product_type' => :'Array<String>',
|
|
111
116
|
:'token' => :'String',
|
|
112
117
|
:'uid_token' => :'String'
|
|
@@ -116,6 +121,7 @@ module Akeyless
|
|
|
116
121
|
# List of attributes with nullable: true
|
|
117
122
|
def self.openapi_nullable
|
|
118
123
|
Set.new([
|
|
124
|
+
:'owner',
|
|
119
125
|
])
|
|
120
126
|
end
|
|
121
127
|
|
|
@@ -204,6 +210,10 @@ module Akeyless
|
|
|
204
210
|
self.new_name = attributes[:'new_name']
|
|
205
211
|
end
|
|
206
212
|
|
|
213
|
+
if attributes.key?(:'owner')
|
|
214
|
+
self.owner = attributes[:'owner']
|
|
215
|
+
end
|
|
216
|
+
|
|
207
217
|
if attributes.key?(:'product_type')
|
|
208
218
|
if (value = attributes[:'product_type']).is_a?(Array)
|
|
209
219
|
self.product_type = value
|
|
@@ -257,6 +267,7 @@ module Akeyless
|
|
|
257
267
|
jwt_ttl == o.jwt_ttl &&
|
|
258
268
|
name == o.name &&
|
|
259
269
|
new_name == o.new_name &&
|
|
270
|
+
owner == o.owner &&
|
|
260
271
|
product_type == o.product_type &&
|
|
261
272
|
token == o.token &&
|
|
262
273
|
uid_token == o.uid_token
|
|
@@ -271,7 +282,7 @@ module Akeyless
|
|
|
271
282
|
# Calculates hash code according to all attributes.
|
|
272
283
|
# @return [Integer] Hash code
|
|
273
284
|
def hash
|
|
274
|
-
[access_expires, allowed_client_type, audit_logs_claims, bound_ips, delete_protection, description, expiration_event_in, force_sub_claims, gw_bound_ips, json, jwt_ttl, name, new_name, product_type, token, uid_token].hash
|
|
285
|
+
[access_expires, allowed_client_type, audit_logs_claims, bound_ips, delete_protection, description, expiration_event_in, force_sub_claims, gw_bound_ips, json, jwt_ttl, name, new_name, owner, product_type, token, uid_token].hash
|
|
275
286
|
end
|
|
276
287
|
|
|
277
288
|
# Builds the object from hash
|