akeyless 5.0.25 → 5.0.26
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/README.md +14 -2
- data/docs/AccountCustomField.md +34 -0
- data/docs/AccountCustomFieldGetOutput.md +1 -1
- data/docs/CloudflareTargetDetails.md +20 -0
- data/docs/CreateRole.md +2 -0
- data/docs/CreateSecret.md +4 -0
- data/docs/DigiCertTargetDetails.md +2 -0
- data/docs/DynamicSecretCreateArtifactory.md +4 -0
- data/docs/DynamicSecretCreateAws.md +4 -0
- data/docs/DynamicSecretCreateAzure.md +4 -0
- data/docs/DynamicSecretCreateCassandra.md +4 -0
- data/docs/DynamicSecretCreateChef.md +4 -0
- data/docs/DynamicSecretCreateCustom.md +4 -0
- data/docs/DynamicSecretCreateDockerhub.md +4 -0
- data/docs/DynamicSecretCreateEks.md +4 -0
- data/docs/DynamicSecretCreateGcp.md +4 -0
- data/docs/DynamicSecretCreateGithub.md +4 -0
- data/docs/DynamicSecretCreateGitlab.md +4 -0
- data/docs/DynamicSecretCreateGke.md +4 -0
- data/docs/DynamicSecretCreateGoogleWorkspace.md +4 -0
- data/docs/DynamicSecretCreateHanaDb.md +4 -0
- data/docs/DynamicSecretCreateK8s.md +4 -0
- data/docs/DynamicSecretCreateLdap.md +4 -0
- data/docs/DynamicSecretCreateMongoDb.md +4 -0
- data/docs/DynamicSecretCreateMsSql.md +4 -0
- data/docs/DynamicSecretCreateMySql.md +4 -0
- data/docs/DynamicSecretCreateOpenAI.md +4 -0
- data/docs/DynamicSecretCreateOracleDb.md +4 -0
- data/docs/DynamicSecretCreatePing.md +4 -0
- data/docs/DynamicSecretCreatePostgreSql.md +4 -0
- data/docs/DynamicSecretCreateRabbitMq.md +4 -0
- data/docs/DynamicSecretCreateRdp.md +4 -0
- data/docs/DynamicSecretCreateRedis.md +4 -0
- data/docs/DynamicSecretCreateRedshift.md +4 -0
- data/docs/DynamicSecretCreateSnowflake.md +4 -0
- data/docs/DynamicSecretCreateVenafi.md +4 -0
- data/docs/DynamicSecretTmpCredsDelete.md +4 -0
- data/docs/DynamicSecretTmpCredsGet.md +4 -0
- data/docs/DynamicSecretTmpCredsUpdate.md +4 -0
- data/docs/DynamicSecretUpdateArtifactory.md +4 -0
- data/docs/DynamicSecretUpdateAws.md +4 -0
- data/docs/DynamicSecretUpdateAzure.md +4 -0
- data/docs/DynamicSecretUpdateCassandra.md +4 -0
- data/docs/DynamicSecretUpdateChef.md +4 -0
- data/docs/DynamicSecretUpdateCustom.md +4 -0
- data/docs/DynamicSecretUpdateDockerhub.md +4 -0
- data/docs/DynamicSecretUpdateEks.md +4 -0
- data/docs/DynamicSecretUpdateGcp.md +4 -0
- data/docs/DynamicSecretUpdateGithub.md +4 -0
- data/docs/DynamicSecretUpdateGitlab.md +4 -0
- data/docs/DynamicSecretUpdateGke.md +4 -0
- data/docs/DynamicSecretUpdateGoogleWorkspace.md +4 -0
- data/docs/DynamicSecretUpdateHanaDb.md +4 -0
- data/docs/DynamicSecretUpdateK8s.md +4 -0
- data/docs/DynamicSecretUpdateLdap.md +4 -0
- data/docs/DynamicSecretUpdateMongoDb.md +4 -0
- data/docs/DynamicSecretUpdateMsSql.md +4 -0
- data/docs/DynamicSecretUpdateMySql.md +4 -0
- data/docs/DynamicSecretUpdateOpenAI.md +4 -0
- data/docs/DynamicSecretUpdateOracleDb.md +4 -0
- data/docs/DynamicSecretUpdatePing.md +4 -0
- data/docs/DynamicSecretUpdatePostgreSql.md +4 -0
- data/docs/DynamicSecretUpdateRabbitMq.md +4 -0
- data/docs/DynamicSecretUpdateRdp.md +4 -0
- data/docs/DynamicSecretUpdateRedis.md +4 -0
- data/docs/DynamicSecretUpdateRedshift.md +4 -0
- data/docs/DynamicSecretUpdateSnowflake.md +4 -0
- data/docs/DynamicSecretUpdateVenafi.md +4 -0
- data/docs/FolderUSCSyncConfig.md +24 -0
- data/docs/GatewayCreateMigration.md +2 -0
- data/docs/GatewayCreateProducerArtifactory.md +4 -0
- data/docs/GatewayCreateProducerAws.md +4 -0
- data/docs/GatewayCreateProducerAzure.md +4 -0
- data/docs/GatewayCreateProducerCassandra.md +4 -0
- data/docs/GatewayCreateProducerChef.md +4 -0
- data/docs/GatewayCreateProducerCustom.md +4 -0
- data/docs/GatewayCreateProducerDockerhub.md +4 -0
- data/docs/GatewayCreateProducerEks.md +4 -0
- data/docs/GatewayCreateProducerGcp.md +4 -0
- data/docs/GatewayCreateProducerGithub.md +4 -0
- data/docs/GatewayCreateProducerGke.md +4 -0
- data/docs/GatewayCreateProducerHanaDb.md +4 -0
- data/docs/GatewayCreateProducerLdap.md +4 -0
- data/docs/GatewayCreateProducerMSSQL.md +4 -0
- data/docs/GatewayCreateProducerMongo.md +4 -0
- data/docs/GatewayCreateProducerMySQL.md +4 -0
- data/docs/GatewayCreateProducerNativeK8S.md +4 -0
- data/docs/GatewayCreateProducerOracleDb.md +4 -0
- data/docs/GatewayCreateProducerPing.md +4 -0
- data/docs/GatewayCreateProducerPostgreSQL.md +4 -0
- data/docs/GatewayCreateProducerRabbitMQ.md +4 -0
- data/docs/GatewayCreateProducerRdp.md +4 -0
- data/docs/GatewayCreateProducerRedis.md +4 -0
- data/docs/GatewayCreateProducerRedshift.md +4 -0
- data/docs/GatewayCreateProducerSnowflake.md +4 -0
- data/docs/GatewayCreateProducerVenafi.md +4 -0
- data/docs/GatewayDeleteProducer.md +4 -0
- data/docs/GatewayGetProducer.md +4 -0
- data/docs/GatewayGetTmpUsers.md +4 -0
- data/docs/GatewayRevokeTmpUsers.md +4 -0
- data/docs/GatewayStartProducer.md +4 -0
- data/docs/GatewayStopProducer.md +4 -0
- data/docs/GatewayUpdateMigration.md +2 -0
- data/docs/GatewayUpdateProducerArtifactory.md +4 -0
- data/docs/GatewayUpdateProducerAws.md +4 -0
- data/docs/GatewayUpdateProducerAzure.md +4 -0
- data/docs/GatewayUpdateProducerCassandra.md +4 -0
- data/docs/GatewayUpdateProducerChef.md +4 -0
- data/docs/GatewayUpdateProducerCustom.md +4 -0
- data/docs/GatewayUpdateProducerDockerhub.md +4 -0
- data/docs/GatewayUpdateProducerEks.md +4 -0
- data/docs/GatewayUpdateProducerGcp.md +4 -0
- data/docs/GatewayUpdateProducerGithub.md +4 -0
- data/docs/GatewayUpdateProducerGke.md +4 -0
- data/docs/GatewayUpdateProducerHanaDb.md +4 -0
- data/docs/GatewayUpdateProducerLdap.md +4 -0
- data/docs/GatewayUpdateProducerMSSQL.md +4 -0
- data/docs/GatewayUpdateProducerMongo.md +4 -0
- data/docs/GatewayUpdateProducerMySQL.md +4 -0
- data/docs/GatewayUpdateProducerNativeK8S.md +4 -0
- data/docs/GatewayUpdateProducerOracleDb.md +4 -0
- data/docs/GatewayUpdateProducerPing.md +4 -0
- data/docs/GatewayUpdateProducerPostgreSQL.md +4 -0
- data/docs/GatewayUpdateProducerRabbitMQ.md +4 -0
- data/docs/GatewayUpdateProducerRdp.md +4 -0
- data/docs/GatewayUpdateProducerRedis.md +4 -0
- data/docs/GatewayUpdateProducerRedshift.md +4 -0
- data/docs/GatewayUpdateProducerSnowflake.md +4 -0
- data/docs/GatewayUpdateProducerVenafi.md +4 -0
- data/docs/GatewayUpdateTmpUsers.md +4 -0
- data/docs/GetFolderOutput.md +3 -1
- data/docs/GoogleTrustTargetDetails.md +2 -0
- data/docs/HashiPayload.md +2 -0
- data/docs/KMIPClient.md +2 -0
- data/docs/KMIPServer.md +2 -0
- data/docs/KmipClientUpdate.md +28 -0
- data/docs/KmipClientUpdateOutput.md +18 -0
- data/docs/KmipCreateClient.md +2 -0
- data/docs/KmipDescribeServerOutput.md +2 -0
- data/docs/KmipServerSetup.md +2 -0
- data/docs/KmipServerUpdate.md +24 -0
- data/docs/KmipServerUpdateOutput.md +18 -0
- data/docs/LetsEncryptTargetDetails.md +2 -0
- data/docs/ListTargets.md +1 -1
- data/docs/RotatedSecretCreateAws.md +4 -0
- data/docs/RotatedSecretCreateAzure.md +4 -0
- data/docs/RotatedSecretCreateCassandra.md +4 -0
- data/docs/RotatedSecretCreateCustom.md +4 -0
- data/docs/RotatedSecretCreateDockerhub.md +4 -0
- data/docs/RotatedSecretCreateGcp.md +4 -0
- data/docs/RotatedSecretCreateHanadb.md +4 -0
- data/docs/RotatedSecretCreateLdap.md +4 -0
- data/docs/RotatedSecretCreateMongodb.md +4 -0
- data/docs/RotatedSecretCreateMssql.md +4 -0
- data/docs/RotatedSecretCreateMysql.md +4 -0
- data/docs/RotatedSecretCreateOpenAI.md +4 -0
- data/docs/RotatedSecretCreateOracledb.md +4 -0
- data/docs/RotatedSecretCreatePostgresql.md +4 -0
- data/docs/RotatedSecretCreateRedis.md +4 -0
- data/docs/RotatedSecretCreateRedshift.md +4 -0
- data/docs/RotatedSecretCreateSnowflake.md +4 -0
- data/docs/RotatedSecretCreateSplunk.md +4 -0
- data/docs/RotatedSecretCreateSsh.md +4 -0
- data/docs/RotatedSecretCreateWindows.md +4 -0
- data/docs/RotatedSecretUpdateAws.md +4 -0
- data/docs/RotatedSecretUpdateAzure.md +4 -0
- data/docs/RotatedSecretUpdateCassandra.md +4 -0
- data/docs/RotatedSecretUpdateCustom.md +4 -0
- data/docs/RotatedSecretUpdateDockerhub.md +4 -0
- data/docs/RotatedSecretUpdateGcp.md +4 -0
- data/docs/RotatedSecretUpdateHanadb.md +4 -0
- data/docs/RotatedSecretUpdateLdap.md +4 -0
- data/docs/RotatedSecretUpdateMongodb.md +4 -0
- data/docs/RotatedSecretUpdateMssql.md +4 -0
- data/docs/RotatedSecretUpdateMysql.md +4 -0
- data/docs/RotatedSecretUpdateOpenAI.md +4 -0
- data/docs/RotatedSecretUpdateOracledb.md +4 -0
- data/docs/RotatedSecretUpdatePostgresql.md +4 -0
- data/docs/RotatedSecretUpdateRedis.md +4 -0
- data/docs/RotatedSecretUpdateRedshift.md +4 -0
- data/docs/RotatedSecretUpdateSnowflake.md +4 -0
- data/docs/RotatedSecretUpdateSplunk.md +4 -0
- data/docs/RotatedSecretUpdateSsh.md +4 -0
- data/docs/RotatedSecretUpdateWindows.md +4 -0
- data/docs/SecretInfo.md +2 -0
- data/docs/TargetCreateCloudflare.md +36 -0
- data/docs/TargetCreateDigiCert.md +3 -1
- data/docs/TargetCreateGoogleTrust.md +3 -1
- data/docs/TargetCreateLetsEncrypt.md +3 -1
- data/docs/TargetList.md +1 -1
- data/docs/TargetTypeDetailsInput.md +2 -0
- data/docs/TargetUpdateCloudflare.md +40 -0
- data/docs/TargetUpdateDigiCert.md +3 -1
- data/docs/TargetUpdateGoogleTrust.md +3 -1
- data/docs/TargetUpdateLetsEncrypt.md +3 -1
- data/docs/UpdateRole.md +2 -0
- data/docs/UscCreate.md +4 -0
- data/docs/UscUpdate.md +4 -0
- data/docs/V2Api.md +260 -4
- data/lib/akeyless/api/v2_api.rb +251 -3
- data/lib/akeyless/models/account_custom_field.rb +287 -0
- data/lib/akeyless/models/account_custom_field_get_output.rb +1 -1
- data/lib/akeyless/models/cloudflare_target_details.rb +224 -0
- data/lib/akeyless/models/create_role.rb +11 -1
- data/lib/akeyless/models/create_secret.rb +25 -1
- data/lib/akeyless/models/digi_cert_target_details.rb +11 -1
- data/lib/akeyless/models/dynamic_secret_create_artifactory.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_create_aws.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_create_azure.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_create_cassandra.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_create_chef.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_create_custom.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_create_dockerhub.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_create_eks.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_create_gcp.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_create_github.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_create_gitlab.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_create_gke.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_create_google_workspace.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_create_hana_db.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_create_k8s.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_create_ldap.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_create_mongo_db.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_create_ms_sql.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_create_my_sql.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_create_open_ai.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_create_oracle_db.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_create_ping.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_create_postgre_sql.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_create_rabbit_mq.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_create_rdp.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_create_redis.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_create_redshift.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_create_snowflake.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_create_venafi.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_tmp_creds_delete.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_tmp_creds_get.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_tmp_creds_update.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_update_artifactory.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_update_aws.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_update_azure.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_update_cassandra.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_update_chef.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_update_custom.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_update_dockerhub.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_update_eks.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_update_gcp.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_update_github.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_update_gitlab.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_update_gke.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_update_google_workspace.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_update_hana_db.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_update_k8s.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_update_ldap.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_update_mongo_db.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_update_ms_sql.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_update_my_sql.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_update_open_ai.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_update_oracle_db.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_update_ping.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_update_postgre_sql.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_update_rabbit_mq.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_update_rdp.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_update_redis.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_update_redshift.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_update_snowflake.rb +25 -1
- data/lib/akeyless/models/dynamic_secret_update_venafi.rb +25 -1
- data/lib/akeyless/models/folder_usc_sync_config.rb +241 -0
- data/lib/akeyless/models/gateway_create_migration.rb +11 -1
- data/lib/akeyless/models/gateway_create_producer_artifactory.rb +25 -1
- data/lib/akeyless/models/gateway_create_producer_aws.rb +25 -1
- data/lib/akeyless/models/gateway_create_producer_azure.rb +25 -1
- data/lib/akeyless/models/gateway_create_producer_cassandra.rb +25 -1
- data/lib/akeyless/models/gateway_create_producer_chef.rb +25 -1
- data/lib/akeyless/models/gateway_create_producer_custom.rb +25 -1
- data/lib/akeyless/models/gateway_create_producer_dockerhub.rb +25 -1
- data/lib/akeyless/models/gateway_create_producer_eks.rb +25 -1
- data/lib/akeyless/models/gateway_create_producer_gcp.rb +25 -1
- data/lib/akeyless/models/gateway_create_producer_github.rb +25 -1
- data/lib/akeyless/models/gateway_create_producer_gke.rb +25 -1
- data/lib/akeyless/models/gateway_create_producer_hana_db.rb +25 -1
- data/lib/akeyless/models/gateway_create_producer_ldap.rb +25 -1
- data/lib/akeyless/models/gateway_create_producer_mongo.rb +25 -1
- data/lib/akeyless/models/gateway_create_producer_mssql.rb +25 -1
- data/lib/akeyless/models/gateway_create_producer_my_sql.rb +25 -1
- data/lib/akeyless/models/gateway_create_producer_native_k8_s.rb +25 -1
- data/lib/akeyless/models/gateway_create_producer_oracle_db.rb +25 -1
- data/lib/akeyless/models/gateway_create_producer_ping.rb +25 -1
- data/lib/akeyless/models/gateway_create_producer_postgre_sql.rb +25 -1
- data/lib/akeyless/models/gateway_create_producer_rabbit_mq.rb +25 -1
- data/lib/akeyless/models/gateway_create_producer_rdp.rb +25 -1
- data/lib/akeyless/models/gateway_create_producer_redis.rb +25 -1
- data/lib/akeyless/models/gateway_create_producer_redshift.rb +25 -1
- data/lib/akeyless/models/gateway_create_producer_snowflake.rb +25 -1
- data/lib/akeyless/models/gateway_create_producer_venafi.rb +25 -1
- data/lib/akeyless/models/gateway_delete_producer.rb +25 -1
- data/lib/akeyless/models/gateway_get_producer.rb +25 -1
- data/lib/akeyless/models/gateway_get_tmp_users.rb +25 -1
- data/lib/akeyless/models/gateway_revoke_tmp_users.rb +25 -1
- data/lib/akeyless/models/gateway_start_producer.rb +25 -1
- data/lib/akeyless/models/gateway_stop_producer.rb +25 -1
- data/lib/akeyless/models/gateway_update_migration.rb +11 -1
- data/lib/akeyless/models/gateway_update_producer_artifactory.rb +25 -1
- data/lib/akeyless/models/gateway_update_producer_aws.rb +25 -1
- data/lib/akeyless/models/gateway_update_producer_azure.rb +25 -1
- data/lib/akeyless/models/gateway_update_producer_cassandra.rb +25 -1
- data/lib/akeyless/models/gateway_update_producer_chef.rb +25 -1
- data/lib/akeyless/models/gateway_update_producer_custom.rb +25 -1
- data/lib/akeyless/models/gateway_update_producer_dockerhub.rb +25 -1
- data/lib/akeyless/models/gateway_update_producer_eks.rb +25 -1
- data/lib/akeyless/models/gateway_update_producer_gcp.rb +25 -1
- data/lib/akeyless/models/gateway_update_producer_github.rb +25 -1
- data/lib/akeyless/models/gateway_update_producer_gke.rb +25 -1
- data/lib/akeyless/models/gateway_update_producer_hana_db.rb +25 -1
- data/lib/akeyless/models/gateway_update_producer_ldap.rb +25 -1
- data/lib/akeyless/models/gateway_update_producer_mongo.rb +25 -1
- data/lib/akeyless/models/gateway_update_producer_mssql.rb +25 -1
- data/lib/akeyless/models/gateway_update_producer_my_sql.rb +25 -1
- data/lib/akeyless/models/gateway_update_producer_native_k8_s.rb +25 -1
- data/lib/akeyless/models/gateway_update_producer_oracle_db.rb +25 -1
- data/lib/akeyless/models/gateway_update_producer_ping.rb +25 -1
- data/lib/akeyless/models/gateway_update_producer_postgre_sql.rb +25 -1
- data/lib/akeyless/models/gateway_update_producer_rabbit_mq.rb +25 -1
- data/lib/akeyless/models/gateway_update_producer_rdp.rb +25 -1
- data/lib/akeyless/models/gateway_update_producer_redis.rb +25 -1
- data/lib/akeyless/models/gateway_update_producer_redshift.rb +25 -1
- data/lib/akeyless/models/gateway_update_producer_snowflake.rb +25 -1
- data/lib/akeyless/models/gateway_update_producer_venafi.rb +25 -1
- data/lib/akeyless/models/gateway_update_tmp_users.rb +25 -1
- data/lib/akeyless/models/get_folder_output.rb +15 -4
- data/lib/akeyless/models/google_trust_target_details.rb +11 -1
- data/lib/akeyless/models/hashi_payload.rb +10 -1
- data/lib/akeyless/models/kmip_client.rb +12 -1
- data/lib/akeyless/models/kmip_client_update.rb +267 -0
- data/lib/akeyless/models/kmip_client_update_output.rb +214 -0
- data/lib/akeyless/models/kmip_create_client.rb +13 -1
- data/lib/akeyless/models/kmip_describe_server_output.rb +12 -1
- data/lib/akeyless/models/kmip_server.rb +12 -1
- data/lib/akeyless/models/kmip_server_setup.rb +13 -1
- data/lib/akeyless/models/kmip_server_update.rb +249 -0
- data/lib/akeyless/models/kmip_server_update_output.rb +214 -0
- data/lib/akeyless/models/lets_encrypt_target_details.rb +11 -1
- data/lib/akeyless/models/list_targets.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_aws.rb +25 -1
- data/lib/akeyless/models/rotated_secret_create_azure.rb +25 -1
- data/lib/akeyless/models/rotated_secret_create_cassandra.rb +25 -1
- data/lib/akeyless/models/rotated_secret_create_custom.rb +25 -1
- data/lib/akeyless/models/rotated_secret_create_dockerhub.rb +25 -1
- data/lib/akeyless/models/rotated_secret_create_gcp.rb +25 -1
- data/lib/akeyless/models/rotated_secret_create_hanadb.rb +25 -1
- data/lib/akeyless/models/rotated_secret_create_ldap.rb +25 -1
- data/lib/akeyless/models/rotated_secret_create_mongodb.rb +25 -1
- data/lib/akeyless/models/rotated_secret_create_mssql.rb +25 -1
- data/lib/akeyless/models/rotated_secret_create_mysql.rb +25 -1
- data/lib/akeyless/models/rotated_secret_create_open_ai.rb +25 -1
- data/lib/akeyless/models/rotated_secret_create_oracledb.rb +25 -1
- data/lib/akeyless/models/rotated_secret_create_postgresql.rb +25 -1
- data/lib/akeyless/models/rotated_secret_create_redis.rb +25 -1
- data/lib/akeyless/models/rotated_secret_create_redshift.rb +25 -1
- data/lib/akeyless/models/rotated_secret_create_snowflake.rb +25 -1
- data/lib/akeyless/models/rotated_secret_create_splunk.rb +25 -1
- data/lib/akeyless/models/rotated_secret_create_ssh.rb +25 -1
- data/lib/akeyless/models/rotated_secret_create_windows.rb +25 -1
- data/lib/akeyless/models/rotated_secret_update_aws.rb +25 -1
- data/lib/akeyless/models/rotated_secret_update_azure.rb +25 -1
- data/lib/akeyless/models/rotated_secret_update_cassandra.rb +25 -1
- data/lib/akeyless/models/rotated_secret_update_custom.rb +25 -1
- data/lib/akeyless/models/rotated_secret_update_dockerhub.rb +25 -1
- data/lib/akeyless/models/rotated_secret_update_gcp.rb +25 -1
- data/lib/akeyless/models/rotated_secret_update_hanadb.rb +25 -1
- data/lib/akeyless/models/rotated_secret_update_ldap.rb +25 -1
- data/lib/akeyless/models/rotated_secret_update_mongodb.rb +25 -1
- data/lib/akeyless/models/rotated_secret_update_mssql.rb +25 -1
- data/lib/akeyless/models/rotated_secret_update_mysql.rb +25 -1
- data/lib/akeyless/models/rotated_secret_update_open_ai.rb +25 -1
- data/lib/akeyless/models/rotated_secret_update_oracledb.rb +25 -1
- data/lib/akeyless/models/rotated_secret_update_postgresql.rb +25 -1
- data/lib/akeyless/models/rotated_secret_update_redis.rb +25 -1
- data/lib/akeyless/models/rotated_secret_update_redshift.rb +25 -1
- data/lib/akeyless/models/rotated_secret_update_snowflake.rb +25 -1
- data/lib/akeyless/models/rotated_secret_update_splunk.rb +25 -1
- data/lib/akeyless/models/rotated_secret_update_ssh.rb +25 -1
- data/lib/akeyless/models/rotated_secret_update_windows.rb +25 -1
- data/lib/akeyless/models/secret_info.rb +10 -1
- data/lib/akeyless/models/target_create_cloudflare.rb +314 -0
- data/lib/akeyless/models/target_create_digi_cert.rb +12 -2
- data/lib/akeyless/models/target_create_google_trust.rb +12 -2
- data/lib/akeyless/models/target_create_lets_encrypt.rb +12 -2
- data/lib/akeyless/models/target_list.rb +1 -1
- data/lib/akeyless/models/target_type_details_input.rb +10 -1
- data/lib/akeyless/models/target_update_cloudflare.rb +334 -0
- data/lib/akeyless/models/target_update_digi_cert.rb +12 -2
- data/lib/akeyless/models/target_update_google_trust.rb +12 -2
- data/lib/akeyless/models/target_update_lets_encrypt.rb +12 -2
- data/lib/akeyless/models/update_role.rb +11 -1
- data/lib/akeyless/models/usc_create.rb +21 -1
- data/lib/akeyless/models/usc_update.rb +21 -1
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +9 -1
- data/spec/models/account_custom_field_spec.rb +84 -0
- data/spec/models/cloudflare_target_details_spec.rb +42 -0
- data/spec/models/folder_usc_sync_config_spec.rb +54 -0
- data/spec/models/kmip_client_update_output_spec.rb +36 -0
- data/spec/models/kmip_client_update_spec.rb +66 -0
- data/spec/models/kmip_server_update_output_spec.rb +36 -0
- data/spec/models/kmip_server_update_spec.rb +54 -0
- data/spec/models/target_create_cloudflare_spec.rb +90 -0
- data/spec/models/target_update_cloudflare_spec.rb +102 -0
- metadata +38 -2
|
@@ -0,0 +1,267 @@
|
|
|
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 KmipClientUpdate
|
|
18
|
+
attr_accessor :client_id
|
|
19
|
+
|
|
20
|
+
# How many days before the expiration of the certificate would you like to be notified.
|
|
21
|
+
attr_accessor :expiration_event_in
|
|
22
|
+
|
|
23
|
+
# Set output format to JSON
|
|
24
|
+
attr_accessor :json
|
|
25
|
+
|
|
26
|
+
attr_accessor :name
|
|
27
|
+
|
|
28
|
+
# Authentication token (see `/auth` and `/configure`)
|
|
29
|
+
attr_accessor :token
|
|
30
|
+
|
|
31
|
+
# The universal identity token, Required only for universal_identity authentication
|
|
32
|
+
attr_accessor :uid_token
|
|
33
|
+
|
|
34
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
35
|
+
def self.attribute_map
|
|
36
|
+
{
|
|
37
|
+
:'client_id' => :'client-id',
|
|
38
|
+
:'expiration_event_in' => :'expiration-event-in',
|
|
39
|
+
:'json' => :'json',
|
|
40
|
+
:'name' => :'name',
|
|
41
|
+
:'token' => :'token',
|
|
42
|
+
:'uid_token' => :'uid-token'
|
|
43
|
+
}
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Returns all the JSON keys this model knows about
|
|
47
|
+
def self.acceptable_attributes
|
|
48
|
+
attribute_map.values
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Attribute type mapping.
|
|
52
|
+
def self.openapi_types
|
|
53
|
+
{
|
|
54
|
+
:'client_id' => :'String',
|
|
55
|
+
:'expiration_event_in' => :'Array<String>',
|
|
56
|
+
:'json' => :'Boolean',
|
|
57
|
+
:'name' => :'String',
|
|
58
|
+
:'token' => :'String',
|
|
59
|
+
:'uid_token' => :'String'
|
|
60
|
+
}
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# List of attributes with nullable: true
|
|
64
|
+
def self.openapi_nullable
|
|
65
|
+
Set.new([
|
|
66
|
+
])
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# Initializes the object
|
|
70
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
71
|
+
def initialize(attributes = {})
|
|
72
|
+
if (!attributes.is_a?(Hash))
|
|
73
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::KmipClientUpdate` initialize method"
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
77
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
78
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
79
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::KmipClientUpdate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
80
|
+
end
|
|
81
|
+
h[k.to_sym] = v
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if attributes.key?(:'client_id')
|
|
85
|
+
self.client_id = attributes[:'client_id']
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
if attributes.key?(:'expiration_event_in')
|
|
89
|
+
if (value = attributes[:'expiration_event_in']).is_a?(Array)
|
|
90
|
+
self.expiration_event_in = value
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
if attributes.key?(:'json')
|
|
95
|
+
self.json = attributes[:'json']
|
|
96
|
+
else
|
|
97
|
+
self.json = false
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if attributes.key?(:'name')
|
|
101
|
+
self.name = attributes[:'name']
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
if attributes.key?(:'token')
|
|
105
|
+
self.token = attributes[:'token']
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if attributes.key?(:'uid_token')
|
|
109
|
+
self.uid_token = attributes[:'uid_token']
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
114
|
+
# @return Array for valid properties with the reasons
|
|
115
|
+
def list_invalid_properties
|
|
116
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
117
|
+
invalid_properties = Array.new
|
|
118
|
+
invalid_properties
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# Check to see if the all the properties in the model are valid
|
|
122
|
+
# @return true if the model is valid
|
|
123
|
+
def valid?
|
|
124
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
125
|
+
true
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Checks equality by comparing each attribute.
|
|
129
|
+
# @param [Object] Object to be compared
|
|
130
|
+
def ==(o)
|
|
131
|
+
return true if self.equal?(o)
|
|
132
|
+
self.class == o.class &&
|
|
133
|
+
client_id == o.client_id &&
|
|
134
|
+
expiration_event_in == o.expiration_event_in &&
|
|
135
|
+
json == o.json &&
|
|
136
|
+
name == o.name &&
|
|
137
|
+
token == o.token &&
|
|
138
|
+
uid_token == o.uid_token
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# @see the `==` method
|
|
142
|
+
# @param [Object] Object to be compared
|
|
143
|
+
def eql?(o)
|
|
144
|
+
self == o
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# Calculates hash code according to all attributes.
|
|
148
|
+
# @return [Integer] Hash code
|
|
149
|
+
def hash
|
|
150
|
+
[client_id, expiration_event_in, json, name, token, uid_token].hash
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Builds the object from hash
|
|
154
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
155
|
+
# @return [Object] Returns the model itself
|
|
156
|
+
def self.build_from_hash(attributes)
|
|
157
|
+
return nil unless attributes.is_a?(Hash)
|
|
158
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
159
|
+
transformed_hash = {}
|
|
160
|
+
openapi_types.each_pair do |key, type|
|
|
161
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
162
|
+
transformed_hash["#{key}"] = nil
|
|
163
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
164
|
+
# check to ensure the input is an array given that the attribute
|
|
165
|
+
# is documented as an array but the input is not
|
|
166
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
167
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
168
|
+
end
|
|
169
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
170
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
171
|
+
end
|
|
172
|
+
end
|
|
173
|
+
new(transformed_hash)
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# Deserializes the data based on type
|
|
177
|
+
# @param string type Data type
|
|
178
|
+
# @param string value Value to be deserialized
|
|
179
|
+
# @return [Object] Deserialized data
|
|
180
|
+
def self._deserialize(type, value)
|
|
181
|
+
case type.to_sym
|
|
182
|
+
when :Time
|
|
183
|
+
Time.parse(value)
|
|
184
|
+
when :Date
|
|
185
|
+
Date.parse(value)
|
|
186
|
+
when :String
|
|
187
|
+
value.to_s
|
|
188
|
+
when :Integer
|
|
189
|
+
value.to_i
|
|
190
|
+
when :Float
|
|
191
|
+
value.to_f
|
|
192
|
+
when :Boolean
|
|
193
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
194
|
+
true
|
|
195
|
+
else
|
|
196
|
+
false
|
|
197
|
+
end
|
|
198
|
+
when :Object
|
|
199
|
+
# generic object (usually a Hash), return directly
|
|
200
|
+
value
|
|
201
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
202
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
203
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
204
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
205
|
+
k_type = Regexp.last_match[:k_type]
|
|
206
|
+
v_type = Regexp.last_match[:v_type]
|
|
207
|
+
{}.tap do |hash|
|
|
208
|
+
value.each do |k, v|
|
|
209
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
210
|
+
end
|
|
211
|
+
end
|
|
212
|
+
else # model
|
|
213
|
+
# models (e.g. Pet) or oneOf
|
|
214
|
+
klass = Akeyless.const_get(type)
|
|
215
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
216
|
+
end
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
# Returns the string representation of the object
|
|
220
|
+
# @return [String] String presentation of the object
|
|
221
|
+
def to_s
|
|
222
|
+
to_hash.to_s
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
226
|
+
# @return [Hash] Returns the object in the form of hash
|
|
227
|
+
def to_body
|
|
228
|
+
to_hash
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
# Returns the object in the form of hash
|
|
232
|
+
# @return [Hash] Returns the object in the form of hash
|
|
233
|
+
def to_hash
|
|
234
|
+
hash = {}
|
|
235
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
236
|
+
value = self.send(attr)
|
|
237
|
+
if value.nil?
|
|
238
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
239
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
hash[param] = _to_hash(value)
|
|
243
|
+
end
|
|
244
|
+
hash
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
# Outputs non-array value in the form of hash
|
|
248
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
249
|
+
# @param [Object] value Any valid value
|
|
250
|
+
# @return [Hash] Returns the value in the form of hash
|
|
251
|
+
def _to_hash(value)
|
|
252
|
+
if value.is_a?(Array)
|
|
253
|
+
value.compact.map { |v| _to_hash(v) }
|
|
254
|
+
elsif value.is_a?(Hash)
|
|
255
|
+
{}.tap do |hash|
|
|
256
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
257
|
+
end
|
|
258
|
+
elsif value.respond_to? :to_hash
|
|
259
|
+
value.to_hash
|
|
260
|
+
else
|
|
261
|
+
value
|
|
262
|
+
end
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
end
|
|
@@ -0,0 +1,214 @@
|
|
|
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 KmipClientUpdateOutput
|
|
18
|
+
attr_accessor :updated
|
|
19
|
+
|
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
|
+
def self.attribute_map
|
|
22
|
+
{
|
|
23
|
+
:'updated' => :'updated'
|
|
24
|
+
}
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# Returns all the JSON keys this model knows about
|
|
28
|
+
def self.acceptable_attributes
|
|
29
|
+
attribute_map.values
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Attribute type mapping.
|
|
33
|
+
def self.openapi_types
|
|
34
|
+
{
|
|
35
|
+
:'updated' => :'Boolean'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# List of attributes with nullable: true
|
|
40
|
+
def self.openapi_nullable
|
|
41
|
+
Set.new([
|
|
42
|
+
])
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Initializes the object
|
|
46
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
47
|
+
def initialize(attributes = {})
|
|
48
|
+
if (!attributes.is_a?(Hash))
|
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::KmipClientUpdateOutput` initialize method"
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
53
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
54
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::KmipClientUpdateOutput`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
56
|
+
end
|
|
57
|
+
h[k.to_sym] = v
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
if attributes.key?(:'updated')
|
|
61
|
+
self.updated = attributes[:'updated']
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
66
|
+
# @return Array for valid properties with the reasons
|
|
67
|
+
def list_invalid_properties
|
|
68
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
69
|
+
invalid_properties = Array.new
|
|
70
|
+
invalid_properties
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Check to see if the all the properties in the model are valid
|
|
74
|
+
# @return true if the model is valid
|
|
75
|
+
def valid?
|
|
76
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
77
|
+
true
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Checks equality by comparing each attribute.
|
|
81
|
+
# @param [Object] Object to be compared
|
|
82
|
+
def ==(o)
|
|
83
|
+
return true if self.equal?(o)
|
|
84
|
+
self.class == o.class &&
|
|
85
|
+
updated == o.updated
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# @see the `==` method
|
|
89
|
+
# @param [Object] Object to be compared
|
|
90
|
+
def eql?(o)
|
|
91
|
+
self == o
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Calculates hash code according to all attributes.
|
|
95
|
+
# @return [Integer] Hash code
|
|
96
|
+
def hash
|
|
97
|
+
[updated].hash
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Builds the object from hash
|
|
101
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
102
|
+
# @return [Object] Returns the model itself
|
|
103
|
+
def self.build_from_hash(attributes)
|
|
104
|
+
return nil unless attributes.is_a?(Hash)
|
|
105
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
106
|
+
transformed_hash = {}
|
|
107
|
+
openapi_types.each_pair do |key, type|
|
|
108
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
109
|
+
transformed_hash["#{key}"] = nil
|
|
110
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
111
|
+
# check to ensure the input is an array given that the attribute
|
|
112
|
+
# is documented as an array but the input is not
|
|
113
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
114
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
115
|
+
end
|
|
116
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
117
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
new(transformed_hash)
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Deserializes the data based on type
|
|
124
|
+
# @param string type Data type
|
|
125
|
+
# @param string value Value to be deserialized
|
|
126
|
+
# @return [Object] Deserialized data
|
|
127
|
+
def self._deserialize(type, value)
|
|
128
|
+
case type.to_sym
|
|
129
|
+
when :Time
|
|
130
|
+
Time.parse(value)
|
|
131
|
+
when :Date
|
|
132
|
+
Date.parse(value)
|
|
133
|
+
when :String
|
|
134
|
+
value.to_s
|
|
135
|
+
when :Integer
|
|
136
|
+
value.to_i
|
|
137
|
+
when :Float
|
|
138
|
+
value.to_f
|
|
139
|
+
when :Boolean
|
|
140
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
141
|
+
true
|
|
142
|
+
else
|
|
143
|
+
false
|
|
144
|
+
end
|
|
145
|
+
when :Object
|
|
146
|
+
# generic object (usually a Hash), return directly
|
|
147
|
+
value
|
|
148
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
149
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
150
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
151
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
152
|
+
k_type = Regexp.last_match[:k_type]
|
|
153
|
+
v_type = Regexp.last_match[:v_type]
|
|
154
|
+
{}.tap do |hash|
|
|
155
|
+
value.each do |k, v|
|
|
156
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
157
|
+
end
|
|
158
|
+
end
|
|
159
|
+
else # model
|
|
160
|
+
# models (e.g. Pet) or oneOf
|
|
161
|
+
klass = Akeyless.const_get(type)
|
|
162
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
163
|
+
end
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# Returns the string representation of the object
|
|
167
|
+
# @return [String] String presentation of the object
|
|
168
|
+
def to_s
|
|
169
|
+
to_hash.to_s
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
173
|
+
# @return [Hash] Returns the object in the form of hash
|
|
174
|
+
def to_body
|
|
175
|
+
to_hash
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Returns the object in the form of hash
|
|
179
|
+
# @return [Hash] Returns the object in the form of hash
|
|
180
|
+
def to_hash
|
|
181
|
+
hash = {}
|
|
182
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
183
|
+
value = self.send(attr)
|
|
184
|
+
if value.nil?
|
|
185
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
186
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
hash[param] = _to_hash(value)
|
|
190
|
+
end
|
|
191
|
+
hash
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# Outputs non-array value in the form of hash
|
|
195
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
196
|
+
# @param [Object] value Any valid value
|
|
197
|
+
# @return [Hash] Returns the value in the form of hash
|
|
198
|
+
def _to_hash(value)
|
|
199
|
+
if value.is_a?(Array)
|
|
200
|
+
value.compact.map { |v| _to_hash(v) }
|
|
201
|
+
elsif value.is_a?(Hash)
|
|
202
|
+
{}.tap do |hash|
|
|
203
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
204
|
+
end
|
|
205
|
+
elsif value.respond_to? :to_hash
|
|
206
|
+
value.to_hash
|
|
207
|
+
else
|
|
208
|
+
value
|
|
209
|
+
end
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
end
|
|
@@ -21,6 +21,9 @@ module Akeyless
|
|
|
21
21
|
# Client certificate TTL in days
|
|
22
22
|
attr_accessor :certificate_ttl
|
|
23
23
|
|
|
24
|
+
# How many days before the expiration of the certificate would you like to be notified.
|
|
25
|
+
attr_accessor :expiration_event_in
|
|
26
|
+
|
|
24
27
|
# Set output format to JSON
|
|
25
28
|
attr_accessor :json
|
|
26
29
|
|
|
@@ -38,6 +41,7 @@ module Akeyless
|
|
|
38
41
|
{
|
|
39
42
|
:'activate_keys_on_creation' => :'activate-keys-on-creation',
|
|
40
43
|
:'certificate_ttl' => :'certificate-ttl',
|
|
44
|
+
:'expiration_event_in' => :'expiration-event-in',
|
|
41
45
|
:'json' => :'json',
|
|
42
46
|
:'name' => :'name',
|
|
43
47
|
:'token' => :'token',
|
|
@@ -55,6 +59,7 @@ module Akeyless
|
|
|
55
59
|
{
|
|
56
60
|
:'activate_keys_on_creation' => :'String',
|
|
57
61
|
:'certificate_ttl' => :'Integer',
|
|
62
|
+
:'expiration_event_in' => :'Array<String>',
|
|
58
63
|
:'json' => :'Boolean',
|
|
59
64
|
:'name' => :'String',
|
|
60
65
|
:'token' => :'String',
|
|
@@ -95,6 +100,12 @@ module Akeyless
|
|
|
95
100
|
self.certificate_ttl = 90
|
|
96
101
|
end
|
|
97
102
|
|
|
103
|
+
if attributes.key?(:'expiration_event_in')
|
|
104
|
+
if (value = attributes[:'expiration_event_in']).is_a?(Array)
|
|
105
|
+
self.expiration_event_in = value
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
|
|
98
109
|
if attributes.key?(:'json')
|
|
99
110
|
self.json = attributes[:'json']
|
|
100
111
|
else
|
|
@@ -143,6 +154,7 @@ module Akeyless
|
|
|
143
154
|
self.class == o.class &&
|
|
144
155
|
activate_keys_on_creation == o.activate_keys_on_creation &&
|
|
145
156
|
certificate_ttl == o.certificate_ttl &&
|
|
157
|
+
expiration_event_in == o.expiration_event_in &&
|
|
146
158
|
json == o.json &&
|
|
147
159
|
name == o.name &&
|
|
148
160
|
token == o.token &&
|
|
@@ -158,7 +170,7 @@ module Akeyless
|
|
|
158
170
|
# Calculates hash code according to all attributes.
|
|
159
171
|
# @return [Integer] Hash code
|
|
160
172
|
def hash
|
|
161
|
-
[activate_keys_on_creation, certificate_ttl, json, name, token, uid_token].hash
|
|
173
|
+
[activate_keys_on_creation, certificate_ttl, expiration_event_in, json, name, token, uid_token].hash
|
|
162
174
|
end
|
|
163
175
|
|
|
164
176
|
# Builds the object from hash
|
|
@@ -23,6 +23,8 @@ module Akeyless
|
|
|
23
23
|
|
|
24
24
|
attr_accessor :certificate_ttl_in_seconds
|
|
25
25
|
|
|
26
|
+
attr_accessor :expiration_events
|
|
27
|
+
|
|
26
28
|
attr_accessor :hostname
|
|
27
29
|
|
|
28
30
|
attr_accessor :root
|
|
@@ -34,6 +36,7 @@ module Akeyless
|
|
|
34
36
|
:'ca_cert' => :'ca_cert',
|
|
35
37
|
:'certificate_issue_date' => :'certificate_issue_date',
|
|
36
38
|
:'certificate_ttl_in_seconds' => :'certificate_ttl_in_seconds',
|
|
39
|
+
:'expiration_events' => :'expiration_events',
|
|
37
40
|
:'hostname' => :'hostname',
|
|
38
41
|
:'root' => :'root'
|
|
39
42
|
}
|
|
@@ -51,6 +54,7 @@ module Akeyless
|
|
|
51
54
|
:'ca_cert' => :'Array<Integer>',
|
|
52
55
|
:'certificate_issue_date' => :'Time',
|
|
53
56
|
:'certificate_ttl_in_seconds' => :'Integer',
|
|
57
|
+
:'expiration_events' => :'Array<CertificateExpirationEvent>',
|
|
54
58
|
:'hostname' => :'String',
|
|
55
59
|
:'root' => :'String'
|
|
56
60
|
}
|
|
@@ -95,6 +99,12 @@ module Akeyless
|
|
|
95
99
|
self.certificate_ttl_in_seconds = attributes[:'certificate_ttl_in_seconds']
|
|
96
100
|
end
|
|
97
101
|
|
|
102
|
+
if attributes.key?(:'expiration_events')
|
|
103
|
+
if (value = attributes[:'expiration_events']).is_a?(Array)
|
|
104
|
+
self.expiration_events = value
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
|
|
98
108
|
if attributes.key?(:'hostname')
|
|
99
109
|
self.hostname = attributes[:'hostname']
|
|
100
110
|
end
|
|
@@ -128,6 +138,7 @@ module Akeyless
|
|
|
128
138
|
ca_cert == o.ca_cert &&
|
|
129
139
|
certificate_issue_date == o.certificate_issue_date &&
|
|
130
140
|
certificate_ttl_in_seconds == o.certificate_ttl_in_seconds &&
|
|
141
|
+
expiration_events == o.expiration_events &&
|
|
131
142
|
hostname == o.hostname &&
|
|
132
143
|
root == o.root
|
|
133
144
|
end
|
|
@@ -141,7 +152,7 @@ module Akeyless
|
|
|
141
152
|
# Calculates hash code according to all attributes.
|
|
142
153
|
# @return [Integer] Hash code
|
|
143
154
|
def hash
|
|
144
|
-
[active, ca_cert, certificate_issue_date, certificate_ttl_in_seconds, hostname, root].hash
|
|
155
|
+
[active, ca_cert, certificate_issue_date, certificate_ttl_in_seconds, expiration_events, hostname, root].hash
|
|
145
156
|
end
|
|
146
157
|
|
|
147
158
|
# Builds the object from hash
|
|
@@ -25,6 +25,8 @@ module Akeyless
|
|
|
25
25
|
|
|
26
26
|
attr_accessor :certificate_ttl_in_seconds
|
|
27
27
|
|
|
28
|
+
attr_accessor :expiration_events
|
|
29
|
+
|
|
28
30
|
attr_accessor :hostname
|
|
29
31
|
|
|
30
32
|
attr_accessor :root
|
|
@@ -37,6 +39,7 @@ module Akeyless
|
|
|
37
39
|
:'certificate' => :'certificate',
|
|
38
40
|
:'certificate_issue_date' => :'certificate_issue_date',
|
|
39
41
|
:'certificate_ttl_in_seconds' => :'certificate_ttl_in_seconds',
|
|
42
|
+
:'expiration_events' => :'expiration_events',
|
|
40
43
|
:'hostname' => :'hostname',
|
|
41
44
|
:'root' => :'root'
|
|
42
45
|
}
|
|
@@ -55,6 +58,7 @@ module Akeyless
|
|
|
55
58
|
:'certificate' => :'Array<Integer>',
|
|
56
59
|
:'certificate_issue_date' => :'Time',
|
|
57
60
|
:'certificate_ttl_in_seconds' => :'Integer',
|
|
61
|
+
:'expiration_events' => :'Array<CertificateExpirationEvent>',
|
|
58
62
|
:'hostname' => :'String',
|
|
59
63
|
:'root' => :'String'
|
|
60
64
|
}
|
|
@@ -105,6 +109,12 @@ module Akeyless
|
|
|
105
109
|
self.certificate_ttl_in_seconds = attributes[:'certificate_ttl_in_seconds']
|
|
106
110
|
end
|
|
107
111
|
|
|
112
|
+
if attributes.key?(:'expiration_events')
|
|
113
|
+
if (value = attributes[:'expiration_events']).is_a?(Array)
|
|
114
|
+
self.expiration_events = value
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
|
|
108
118
|
if attributes.key?(:'hostname')
|
|
109
119
|
self.hostname = attributes[:'hostname']
|
|
110
120
|
end
|
|
@@ -139,6 +149,7 @@ module Akeyless
|
|
|
139
149
|
certificate == o.certificate &&
|
|
140
150
|
certificate_issue_date == o.certificate_issue_date &&
|
|
141
151
|
certificate_ttl_in_seconds == o.certificate_ttl_in_seconds &&
|
|
152
|
+
expiration_events == o.expiration_events &&
|
|
142
153
|
hostname == o.hostname &&
|
|
143
154
|
root == o.root
|
|
144
155
|
end
|
|
@@ -152,7 +163,7 @@ module Akeyless
|
|
|
152
163
|
# Calculates hash code according to all attributes.
|
|
153
164
|
# @return [Integer] Hash code
|
|
154
165
|
def hash
|
|
155
|
-
[active, ca, certificate, certificate_issue_date, certificate_ttl_in_seconds, hostname, root].hash
|
|
166
|
+
[active, ca, certificate, certificate_issue_date, certificate_ttl_in_seconds, expiration_events, hostname, root].hash
|
|
156
167
|
end
|
|
157
168
|
|
|
158
169
|
# Builds the object from hash
|
|
@@ -18,6 +18,9 @@ module Akeyless
|
|
|
18
18
|
# Server certificate TTL in days
|
|
19
19
|
attr_accessor :certificate_ttl
|
|
20
20
|
|
|
21
|
+
# How many days before the expiration of the certificate would you like to be notified.
|
|
22
|
+
attr_accessor :expiration_event_in
|
|
23
|
+
|
|
21
24
|
# Hostname
|
|
22
25
|
attr_accessor :hostname
|
|
23
26
|
|
|
@@ -37,6 +40,7 @@ module Akeyless
|
|
|
37
40
|
def self.attribute_map
|
|
38
41
|
{
|
|
39
42
|
:'certificate_ttl' => :'certificate-ttl',
|
|
43
|
+
:'expiration_event_in' => :'expiration-event-in',
|
|
40
44
|
:'hostname' => :'hostname',
|
|
41
45
|
:'json' => :'json',
|
|
42
46
|
:'root' => :'root',
|
|
@@ -54,6 +58,7 @@ module Akeyless
|
|
|
54
58
|
def self.openapi_types
|
|
55
59
|
{
|
|
56
60
|
:'certificate_ttl' => :'Integer',
|
|
61
|
+
:'expiration_event_in' => :'Array<String>',
|
|
57
62
|
:'hostname' => :'String',
|
|
58
63
|
:'json' => :'Boolean',
|
|
59
64
|
:'root' => :'String',
|
|
@@ -89,6 +94,12 @@ module Akeyless
|
|
|
89
94
|
self.certificate_ttl = 90
|
|
90
95
|
end
|
|
91
96
|
|
|
97
|
+
if attributes.key?(:'expiration_event_in')
|
|
98
|
+
if (value = attributes[:'expiration_event_in']).is_a?(Array)
|
|
99
|
+
self.expiration_event_in = value
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
|
|
92
103
|
if attributes.key?(:'hostname')
|
|
93
104
|
self.hostname = attributes[:'hostname']
|
|
94
105
|
else
|
|
@@ -147,6 +158,7 @@ module Akeyless
|
|
|
147
158
|
return true if self.equal?(o)
|
|
148
159
|
self.class == o.class &&
|
|
149
160
|
certificate_ttl == o.certificate_ttl &&
|
|
161
|
+
expiration_event_in == o.expiration_event_in &&
|
|
150
162
|
hostname == o.hostname &&
|
|
151
163
|
json == o.json &&
|
|
152
164
|
root == o.root &&
|
|
@@ -163,7 +175,7 @@ module Akeyless
|
|
|
163
175
|
# Calculates hash code according to all attributes.
|
|
164
176
|
# @return [Integer] Hash code
|
|
165
177
|
def hash
|
|
166
|
-
[certificate_ttl, hostname, json, root, token, uid_token].hash
|
|
178
|
+
[certificate_ttl, expiration_event_in, hostname, json, root, token, uid_token].hash
|
|
167
179
|
end
|
|
168
180
|
|
|
169
181
|
# Builds the object from hash
|