akeyless 5.0.27 → 5.0.30
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 +63 -1
- data/docs/AccountGeneralSettings.md +6 -0
- data/docs/AnthropicTargetDetails.md +20 -0
- data/docs/AuthMethod.md +3 -1
- data/docs/AuthMethodAccessInfo.md +2 -0
- data/docs/AuthMethodCreateSAML.md +3 -1
- data/docs/AuthMethodCreateUniversalIdentity.md +2 -0
- data/docs/AuthMethodUpdateSAML.md +3 -1
- data/docs/AuthMethodUpdateUniversalIdentity.md +2 -0
- data/docs/BedrockTargetDetails.md +20 -0
- data/docs/CreateAuthMethodSAML.md +3 -1
- data/docs/CreateAuthMethodUniversalIdentity.md +2 -0
- data/docs/CreateDBTarget.md +2 -0
- data/docs/CreateMcpSecretBearerToken.md +46 -0
- data/docs/CreateMcpSecretOAuthAuthCode.md +56 -0
- data/docs/CreateMcpSecretOAuthClientCreds.md +52 -0
- data/docs/CreatePKICertIssuer.md +1 -1
- data/docs/CustomDnsTargetDetails.md +20 -0
- data/docs/DSProducerDetails.md +2 -0
- data/docs/DbTargetDetails.md +2 -0
- data/docs/EmailCustomization.md +28 -0
- data/docs/EmailCustomizationAccountInformation.md +24 -0
- data/docs/EmailCustomizationAccountInformationValues.md +24 -0
- data/docs/EsmGetSecretOutput.md +11 -1
- data/docs/FileDownloadInstructions.md +20 -0
- data/docs/FileInfo.md +50 -0
- data/docs/FolderDeleteSync.md +32 -0
- data/docs/FolderDeleteSyncOutput.md +24 -0
- data/docs/FolderSync.md +34 -0
- data/docs/FolderSyncAll.md +26 -0
- data/docs/FolderSyncAllOutput.md +18 -0
- data/docs/FolderSyncOutput.md +24 -0
- data/docs/FolderUSCSyncConfig.md +2 -0
- data/docs/GatewayCreateMigration.md +2 -0
- data/docs/GatewayUpdateMigration.md +2 -0
- data/docs/GetKubeExecCreds.md +1 -1
- data/docs/GetPKICertificate.md +1 -1
- data/docs/GrokTargetDetails.md +22 -0
- data/docs/HashiPayload.md +2 -0
- data/docs/Item.md +2 -0
- data/docs/KeycloakTargetDetails.md +24 -0
- data/docs/OIDCAccessRules.md +2 -0
- data/docs/OktaTargetDetails.md +20 -0
- data/docs/PersonalFolderGlobalMappingSettings.md +20 -0
- data/docs/RotatedSecretCreateAws.md +4 -4
- data/docs/RotatedSecretCreateAzure.md +6 -4
- data/docs/RotatedSecretCreateCassandra.md +4 -4
- data/docs/RotatedSecretCreateCustom.md +4 -4
- data/docs/RotatedSecretCreateDockerhub.md +4 -4
- data/docs/RotatedSecretCreateGcp.md +4 -4
- data/docs/RotatedSecretCreateHanadb.md +4 -4
- data/docs/RotatedSecretCreateHashiVault.md +60 -0
- data/docs/RotatedSecretCreateLdap.md +4 -4
- data/docs/RotatedSecretCreateMongodb.md +4 -4
- data/docs/RotatedSecretCreateMssql.md +4 -4
- data/docs/RotatedSecretCreateMysql.md +4 -4
- data/docs/RotatedSecretCreateOpenAI.md +4 -4
- data/docs/RotatedSecretCreateOracledb.md +4 -4
- data/docs/RotatedSecretCreatePostgresql.md +4 -4
- data/docs/RotatedSecretCreateRedis.md +4 -4
- data/docs/RotatedSecretCreateRedshift.md +4 -4
- data/docs/RotatedSecretCreateSnowflake.md +4 -4
- data/docs/RotatedSecretCreateSplunk.md +4 -4
- data/docs/RotatedSecretCreateSsh.md +4 -4
- data/docs/RotatedSecretCreateWindows.md +4 -4
- data/docs/RotatedSecretUpdateAws.md +4 -4
- data/docs/RotatedSecretUpdateAzure.md +6 -4
- data/docs/RotatedSecretUpdateCassandra.md +4 -4
- data/docs/RotatedSecretUpdateCustom.md +4 -4
- data/docs/RotatedSecretUpdateDockerhub.md +4 -4
- data/docs/RotatedSecretUpdateGcp.md +4 -4
- data/docs/RotatedSecretUpdateHanadb.md +4 -4
- data/docs/RotatedSecretUpdateHashiVault.md +64 -0
- data/docs/RotatedSecretUpdateLdap.md +4 -4
- data/docs/RotatedSecretUpdateMongodb.md +4 -4
- data/docs/RotatedSecretUpdateMssql.md +4 -4
- data/docs/RotatedSecretUpdateMysql.md +4 -4
- data/docs/RotatedSecretUpdateOpenAI.md +4 -4
- data/docs/RotatedSecretUpdateOracledb.md +4 -4
- data/docs/RotatedSecretUpdatePostgresql.md +4 -4
- data/docs/RotatedSecretUpdateRedis.md +4 -4
- data/docs/RotatedSecretUpdateRedshift.md +4 -4
- data/docs/RotatedSecretUpdateSnowflake.md +4 -4
- data/docs/RotatedSecretUpdateSplunk.md +4 -4
- data/docs/RotatedSecretUpdateSsh.md +4 -4
- data/docs/RotatedSecretUpdateWindows.md +4 -4
- data/docs/RuntimeAuthorityCommand.md +4 -0
- data/docs/SAMLAccessRules.md +3 -1
- data/docs/SecretInfo.md +5 -1
- data/docs/StaticSecretDetailsInfo.md +2 -0
- data/docs/TargetCreateAnthropic.md +36 -0
- data/docs/TargetCreateBedrock.md +36 -0
- data/docs/TargetCreateCustomDns.md +36 -0
- data/docs/TargetCreateDB.md +2 -0
- data/docs/TargetCreateGrok.md +38 -0
- data/docs/TargetCreateKeycloak.md +40 -0
- data/docs/TargetCreateOkta.md +36 -0
- data/docs/TargetTypeDetailsInput.md +12 -0
- data/docs/TargetUpdateAnthropic.md +42 -0
- data/docs/TargetUpdateBedrock.md +42 -0
- data/docs/TargetUpdateCustomDns.md +40 -0
- data/docs/TargetUpdateDB.md +2 -0
- data/docs/TargetUpdateGrok.md +44 -0
- data/docs/TargetUpdateKeycloak.md +44 -0
- data/docs/TargetUpdateOkta.md +40 -0
- data/docs/UidExpirationEvent.md +18 -0
- data/docs/UpdateAuthMethodSAML.md +3 -1
- data/docs/UpdateAuthMethodUniversalIdentity.md +2 -0
- data/docs/UpdateDBTarget.md +2 -0
- data/docs/UpdateMcpSecretBearerToken.md +40 -0
- data/docs/UpdateMcpSecretOAuthAuthCode.md +50 -0
- data/docs/UpdateMcpSecretOAuthClientCreds.md +46 -0
- data/docs/UpdatePKICertIssuer.md +1 -1
- data/docs/UscGetSecretOutput.md +11 -1
- data/docs/V2Api.md +1449 -0
- data/lib/akeyless/api/v2_api.rb +1617 -145
- data/lib/akeyless/models/account_general_settings.rb +29 -1
- data/lib/akeyless/models/anthropic_target_details.rb +224 -0
- data/lib/akeyless/models/auth_method.rb +15 -4
- data/lib/akeyless/models/auth_method_access_info.rb +13 -1
- data/lib/akeyless/models/auth_method_create_saml.rb +14 -4
- data/lib/akeyless/models/auth_method_create_universal_identity.rb +13 -1
- data/lib/akeyless/models/auth_method_update_saml.rb +14 -4
- data/lib/akeyless/models/auth_method_update_universal_identity.rb +13 -1
- data/lib/akeyless/models/bedrock_target_details.rb +224 -0
- data/lib/akeyless/models/create_auth_method_saml.rb +14 -4
- data/lib/akeyless/models/create_auth_method_universal_identity.rb +13 -1
- data/lib/akeyless/models/create_db_target.rb +11 -1
- data/lib/akeyless/models/create_mcp_secret_bearer_token.rb +371 -0
- data/lib/akeyless/models/create_mcp_secret_o_auth_auth_code.rb +423 -0
- data/lib/akeyless/models/create_mcp_secret_o_auth_client_creds.rb +403 -0
- data/lib/akeyless/models/create_pki_cert_issuer.rb +1 -1
- data/lib/akeyless/models/custom_dns_target_details.rb +225 -0
- data/lib/akeyless/models/db_target_details.rb +11 -1
- data/lib/akeyless/models/ds_producer_details.rb +11 -1
- data/lib/akeyless/models/email_customization.rb +259 -0
- data/lib/akeyless/models/email_customization_account_information.rb +242 -0
- data/lib/akeyless/models/email_customization_account_information_values.rb +241 -0
- data/lib/akeyless/models/esm_get_secret_output.rb +53 -4
- data/lib/akeyless/models/file_download_instructions.rb +223 -0
- data/lib/akeyless/models/file_info.rb +358 -0
- data/lib/akeyless/models/folder_delete_sync.rb +305 -0
- data/lib/akeyless/models/folder_delete_sync_output.rb +245 -0
- data/lib/akeyless/models/folder_sync.rb +306 -0
- data/lib/akeyless/models/folder_sync_all.rb +266 -0
- data/lib/akeyless/models/folder_sync_all_output.rb +214 -0
- data/lib/akeyless/models/folder_sync_output.rb +247 -0
- data/lib/akeyless/models/folder_usc_sync_config.rb +10 -1
- data/lib/akeyless/models/gateway_create_migration.rb +11 -1
- data/lib/akeyless/models/gateway_update_migration.rb +11 -1
- data/lib/akeyless/models/get_kube_exec_creds.rb +1 -1
- data/lib/akeyless/models/get_pki_certificate.rb +1 -1
- data/lib/akeyless/models/grok_target_details.rb +234 -0
- data/lib/akeyless/models/hashi_payload.rb +10 -1
- data/lib/akeyless/models/item.rb +10 -1
- data/lib/akeyless/models/keycloak_target_details.rb +242 -0
- data/lib/akeyless/models/oidc_access_rules.rb +11 -1
- data/lib/akeyless/models/okta_target_details.rb +224 -0
- data/lib/akeyless/models/personal_folder_global_mapping_settings.rb +223 -0
- data/lib/akeyless/models/rotated_secret_create_aws.rb +0 -4
- data/lib/akeyless/models/rotated_secret_create_azure.rb +11 -5
- data/lib/akeyless/models/rotated_secret_create_cassandra.rb +0 -4
- data/lib/akeyless/models/rotated_secret_create_custom.rb +0 -4
- data/lib/akeyless/models/rotated_secret_create_dockerhub.rb +0 -4
- data/lib/akeyless/models/rotated_secret_create_gcp.rb +0 -4
- data/lib/akeyless/models/rotated_secret_create_hanadb.rb +0 -4
- data/lib/akeyless/models/rotated_secret_create_hashi_vault.rb +446 -0
- data/lib/akeyless/models/rotated_secret_create_ldap.rb +0 -4
- data/lib/akeyless/models/rotated_secret_create_mongodb.rb +0 -4
- data/lib/akeyless/models/rotated_secret_create_mssql.rb +0 -4
- data/lib/akeyless/models/rotated_secret_create_mysql.rb +0 -4
- data/lib/akeyless/models/rotated_secret_create_open_ai.rb +0 -4
- data/lib/akeyless/models/rotated_secret_create_oracledb.rb +0 -4
- data/lib/akeyless/models/rotated_secret_create_postgresql.rb +0 -4
- data/lib/akeyless/models/rotated_secret_create_redis.rb +0 -4
- data/lib/akeyless/models/rotated_secret_create_redshift.rb +0 -4
- data/lib/akeyless/models/rotated_secret_create_snowflake.rb +0 -4
- data/lib/akeyless/models/rotated_secret_create_splunk.rb +0 -4
- data/lib/akeyless/models/rotated_secret_create_ssh.rb +0 -4
- data/lib/akeyless/models/rotated_secret_create_windows.rb +0 -4
- data/lib/akeyless/models/rotated_secret_sync.rb +1 -1
- data/lib/akeyless/models/rotated_secret_update_aws.rb +0 -4
- data/lib/akeyless/models/rotated_secret_update_azure.rb +11 -5
- data/lib/akeyless/models/rotated_secret_update_cassandra.rb +0 -4
- data/lib/akeyless/models/rotated_secret_update_custom.rb +0 -4
- data/lib/akeyless/models/rotated_secret_update_dockerhub.rb +0 -4
- data/lib/akeyless/models/rotated_secret_update_gcp.rb +0 -4
- data/lib/akeyless/models/rotated_secret_update_hanadb.rb +0 -4
- data/lib/akeyless/models/rotated_secret_update_hashi_vault.rb +463 -0
- data/lib/akeyless/models/rotated_secret_update_ldap.rb +0 -4
- data/lib/akeyless/models/rotated_secret_update_mongodb.rb +0 -4
- data/lib/akeyless/models/rotated_secret_update_mssql.rb +0 -4
- data/lib/akeyless/models/rotated_secret_update_mysql.rb +0 -4
- data/lib/akeyless/models/rotated_secret_update_open_ai.rb +0 -4
- data/lib/akeyless/models/rotated_secret_update_oracledb.rb +0 -4
- data/lib/akeyless/models/rotated_secret_update_postgresql.rb +0 -4
- data/lib/akeyless/models/rotated_secret_update_redis.rb +0 -4
- data/lib/akeyless/models/rotated_secret_update_redshift.rb +0 -4
- data/lib/akeyless/models/rotated_secret_update_snowflake.rb +0 -4
- data/lib/akeyless/models/rotated_secret_update_splunk.rb +0 -4
- data/lib/akeyless/models/rotated_secret_update_ssh.rb +0 -4
- data/lib/akeyless/models/rotated_secret_update_windows.rb +0 -4
- data/lib/akeyless/models/runtime_authority_command.rb +21 -1
- data/lib/akeyless/models/saml_access_rules.rb +14 -4
- data/lib/akeyless/models/secret_info.rb +24 -4
- data/lib/akeyless/models/static_secret_details_info.rb +10 -1
- data/lib/akeyless/models/static_secret_sync.rb +1 -1
- data/lib/akeyless/models/target_create_anthropic.rb +317 -0
- data/lib/akeyless/models/target_create_bedrock.rb +317 -0
- data/lib/akeyless/models/target_create_custom_dns.rb +330 -0
- data/lib/akeyless/models/target_create_db.rb +11 -1
- data/lib/akeyless/models/target_create_grok.rb +327 -0
- data/lib/akeyless/models/target_create_keycloak.rb +334 -0
- data/lib/akeyless/models/target_create_okta.rb +314 -0
- data/lib/akeyless/models/target_type_details_input.rb +55 -1
- data/lib/akeyless/models/target_update_anthropic.rb +351 -0
- data/lib/akeyless/models/target_update_bedrock.rb +351 -0
- data/lib/akeyless/models/target_update_custom_dns.rb +350 -0
- data/lib/akeyless/models/target_update_db.rb +11 -1
- data/lib/akeyless/models/target_update_grok.rb +361 -0
- data/lib/akeyless/models/target_update_keycloak.rb +354 -0
- data/lib/akeyless/models/target_update_okta.rb +334 -0
- data/lib/akeyless/models/uid_expiration_event.rb +214 -0
- data/lib/akeyless/models/update_auth_method_saml.rb +14 -4
- data/lib/akeyless/models/update_auth_method_universal_identity.rb +13 -1
- data/lib/akeyless/models/update_db_target.rb +11 -1
- data/lib/akeyless/models/update_mcp_secret_bearer_token.rb +338 -0
- data/lib/akeyless/models/update_mcp_secret_o_auth_auth_code.rb +390 -0
- data/lib/akeyless/models/update_mcp_secret_o_auth_client_creds.rb +370 -0
- data/lib/akeyless/models/update_pki_cert_issuer.rb +1 -1
- data/lib/akeyless/models/usc_get_secret_output.rb +53 -4
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +39 -0
- data/spec/models/anthropic_target_details_spec.rb +42 -0
- data/spec/models/bedrock_target_details_spec.rb +42 -0
- data/spec/models/create_mcp_secret_bearer_token_spec.rb +120 -0
- data/spec/models/create_mcp_secret_o_auth_auth_code_spec.rb +150 -0
- data/spec/models/create_mcp_secret_o_auth_client_creds_spec.rb +138 -0
- data/spec/models/custom_dns_target_details_spec.rb +42 -0
- data/spec/models/email_customization_account_information_spec.rb +54 -0
- data/spec/models/email_customization_account_information_values_spec.rb +54 -0
- data/spec/models/email_customization_spec.rb +66 -0
- data/spec/models/file_download_instructions_spec.rb +42 -0
- data/spec/models/file_info_spec.rb +132 -0
- data/spec/models/folder_delete_sync_output_spec.rb +54 -0
- data/spec/models/folder_delete_sync_spec.rb +78 -0
- data/spec/models/folder_sync_all_output_spec.rb +36 -0
- data/spec/models/folder_sync_all_spec.rb +60 -0
- data/spec/models/folder_sync_output_spec.rb +54 -0
- data/spec/models/folder_sync_spec.rb +84 -0
- data/spec/models/grok_target_details_spec.rb +48 -0
- data/spec/models/keycloak_target_details_spec.rb +54 -0
- data/spec/models/okta_target_details_spec.rb +42 -0
- data/spec/models/personal_folder_global_mapping_settings_spec.rb +42 -0
- data/spec/models/rotated_secret_create_hashi_vault_spec.rb +162 -0
- data/spec/models/rotated_secret_update_hashi_vault_spec.rb +174 -0
- data/spec/models/target_create_anthropic_spec.rb +90 -0
- data/spec/models/target_create_bedrock_spec.rb +90 -0
- data/spec/models/target_create_custom_dns_spec.rb +90 -0
- data/spec/models/target_create_grok_spec.rb +96 -0
- data/spec/models/target_create_keycloak_spec.rb +102 -0
- data/spec/models/target_create_okta_spec.rb +90 -0
- data/spec/models/target_update_anthropic_spec.rb +108 -0
- data/spec/models/target_update_bedrock_spec.rb +108 -0
- data/spec/models/target_update_custom_dns_spec.rb +102 -0
- data/spec/models/target_update_grok_spec.rb +114 -0
- data/spec/models/target_update_keycloak_spec.rb +114 -0
- data/spec/models/target_update_okta_spec.rb +102 -0
- data/spec/models/uid_expiration_event_spec.rb +36 -0
- data/spec/models/update_mcp_secret_bearer_token_spec.rb +102 -0
- data/spec/models/update_mcp_secret_o_auth_auth_code_spec.rb +132 -0
- data/spec/models/update_mcp_secret_o_auth_client_creds_spec.rb +120 -0
- metadata +1331 -1175
|
@@ -0,0 +1,403 @@
|
|
|
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 CreateMcpSecretOAuthClientCreds
|
|
18
|
+
# for personal password manager
|
|
19
|
+
attr_accessor :accessibility
|
|
20
|
+
|
|
21
|
+
# Protection from accidental deletion of this object [true/false]
|
|
22
|
+
attr_accessor :delete_protection
|
|
23
|
+
|
|
24
|
+
# Description of the object
|
|
25
|
+
attr_accessor :description
|
|
26
|
+
|
|
27
|
+
# Agentic input rule in name=...,rule=... format (e.g. name=rule1,rule=Sanitize input)
|
|
28
|
+
attr_accessor :input_rule
|
|
29
|
+
|
|
30
|
+
# Set output format to JSON
|
|
31
|
+
attr_accessor :json
|
|
32
|
+
|
|
33
|
+
# Set the maximum number of versions, limited by the account settings defaults.
|
|
34
|
+
attr_accessor :max_versions
|
|
35
|
+
|
|
36
|
+
# Deprecated - use description
|
|
37
|
+
attr_accessor :metadata
|
|
38
|
+
|
|
39
|
+
# Secret name
|
|
40
|
+
attr_accessor :name
|
|
41
|
+
|
|
42
|
+
# OAuth client ID
|
|
43
|
+
attr_accessor :oauth_client_id
|
|
44
|
+
|
|
45
|
+
# OAuth client secret
|
|
46
|
+
attr_accessor :oauth_client_secret
|
|
47
|
+
|
|
48
|
+
# OAuth scopes
|
|
49
|
+
attr_accessor :oauth_scopes
|
|
50
|
+
|
|
51
|
+
# OAuth token URL
|
|
52
|
+
attr_accessor :oauth_token_url
|
|
53
|
+
|
|
54
|
+
# Agentic output rule in name=...,rule=... format (e.g. name=rule1,rule=Mask secrets)
|
|
55
|
+
attr_accessor :output_rule
|
|
56
|
+
|
|
57
|
+
attr_accessor :protection_key
|
|
58
|
+
|
|
59
|
+
# Add tags attached to this object
|
|
60
|
+
attr_accessor :tags
|
|
61
|
+
|
|
62
|
+
# Authentication token (see `/auth` and `/configure`)
|
|
63
|
+
attr_accessor :token
|
|
64
|
+
|
|
65
|
+
# The universal identity token, Required only for universal_identity authentication
|
|
66
|
+
attr_accessor :uid_token
|
|
67
|
+
|
|
68
|
+
# URL of the service
|
|
69
|
+
attr_accessor :url
|
|
70
|
+
|
|
71
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
72
|
+
def self.attribute_map
|
|
73
|
+
{
|
|
74
|
+
:'accessibility' => :'accessibility',
|
|
75
|
+
:'delete_protection' => :'delete_protection',
|
|
76
|
+
:'description' => :'description',
|
|
77
|
+
:'input_rule' => :'input-rule',
|
|
78
|
+
:'json' => :'json',
|
|
79
|
+
:'max_versions' => :'max-versions',
|
|
80
|
+
:'metadata' => :'metadata',
|
|
81
|
+
:'name' => :'name',
|
|
82
|
+
:'oauth_client_id' => :'oauth-client-id',
|
|
83
|
+
:'oauth_client_secret' => :'oauth-client-secret',
|
|
84
|
+
:'oauth_scopes' => :'oauth-scopes',
|
|
85
|
+
:'oauth_token_url' => :'oauth-token-url',
|
|
86
|
+
:'output_rule' => :'output-rule',
|
|
87
|
+
:'protection_key' => :'protection_key',
|
|
88
|
+
:'tags' => :'tags',
|
|
89
|
+
:'token' => :'token',
|
|
90
|
+
:'uid_token' => :'uid-token',
|
|
91
|
+
:'url' => :'url'
|
|
92
|
+
}
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Returns all the JSON keys this model knows about
|
|
96
|
+
def self.acceptable_attributes
|
|
97
|
+
attribute_map.values
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Attribute type mapping.
|
|
101
|
+
def self.openapi_types
|
|
102
|
+
{
|
|
103
|
+
:'accessibility' => :'String',
|
|
104
|
+
:'delete_protection' => :'String',
|
|
105
|
+
:'description' => :'String',
|
|
106
|
+
:'input_rule' => :'Array<String>',
|
|
107
|
+
:'json' => :'Boolean',
|
|
108
|
+
:'max_versions' => :'String',
|
|
109
|
+
:'metadata' => :'String',
|
|
110
|
+
:'name' => :'String',
|
|
111
|
+
:'oauth_client_id' => :'String',
|
|
112
|
+
:'oauth_client_secret' => :'String',
|
|
113
|
+
:'oauth_scopes' => :'Array<String>',
|
|
114
|
+
:'oauth_token_url' => :'String',
|
|
115
|
+
:'output_rule' => :'Array<String>',
|
|
116
|
+
:'protection_key' => :'String',
|
|
117
|
+
:'tags' => :'Array<String>',
|
|
118
|
+
:'token' => :'String',
|
|
119
|
+
:'uid_token' => :'String',
|
|
120
|
+
:'url' => :'String'
|
|
121
|
+
}
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# List of attributes with nullable: true
|
|
125
|
+
def self.openapi_nullable
|
|
126
|
+
Set.new([
|
|
127
|
+
])
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# Initializes the object
|
|
131
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
132
|
+
def initialize(attributes = {})
|
|
133
|
+
if (!attributes.is_a?(Hash))
|
|
134
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::CreateMcpSecretOAuthClientCreds` initialize method"
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
138
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
139
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
140
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::CreateMcpSecretOAuthClientCreds`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
141
|
+
end
|
|
142
|
+
h[k.to_sym] = v
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
if attributes.key?(:'accessibility')
|
|
146
|
+
self.accessibility = attributes[:'accessibility']
|
|
147
|
+
else
|
|
148
|
+
self.accessibility = 'regular'
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
if attributes.key?(:'delete_protection')
|
|
152
|
+
self.delete_protection = attributes[:'delete_protection']
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
if attributes.key?(:'description')
|
|
156
|
+
self.description = attributes[:'description']
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
if attributes.key?(:'input_rule')
|
|
160
|
+
if (value = attributes[:'input_rule']).is_a?(Array)
|
|
161
|
+
self.input_rule = value
|
|
162
|
+
end
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
if attributes.key?(:'json')
|
|
166
|
+
self.json = attributes[:'json']
|
|
167
|
+
else
|
|
168
|
+
self.json = false
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
if attributes.key?(:'max_versions')
|
|
172
|
+
self.max_versions = attributes[:'max_versions']
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
if attributes.key?(:'metadata')
|
|
176
|
+
self.metadata = attributes[:'metadata']
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
if attributes.key?(:'name')
|
|
180
|
+
self.name = attributes[:'name']
|
|
181
|
+
else
|
|
182
|
+
self.name = nil
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
if attributes.key?(:'oauth_client_id')
|
|
186
|
+
self.oauth_client_id = attributes[:'oauth_client_id']
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
if attributes.key?(:'oauth_client_secret')
|
|
190
|
+
self.oauth_client_secret = attributes[:'oauth_client_secret']
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
if attributes.key?(:'oauth_scopes')
|
|
194
|
+
if (value = attributes[:'oauth_scopes']).is_a?(Array)
|
|
195
|
+
self.oauth_scopes = value
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
if attributes.key?(:'oauth_token_url')
|
|
200
|
+
self.oauth_token_url = attributes[:'oauth_token_url']
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
if attributes.key?(:'output_rule')
|
|
204
|
+
if (value = attributes[:'output_rule']).is_a?(Array)
|
|
205
|
+
self.output_rule = value
|
|
206
|
+
end
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
if attributes.key?(:'protection_key')
|
|
210
|
+
self.protection_key = attributes[:'protection_key']
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
if attributes.key?(:'tags')
|
|
214
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
|
215
|
+
self.tags = value
|
|
216
|
+
end
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
if attributes.key?(:'token')
|
|
220
|
+
self.token = attributes[:'token']
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
if attributes.key?(:'uid_token')
|
|
224
|
+
self.uid_token = attributes[:'uid_token']
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
if attributes.key?(:'url')
|
|
228
|
+
self.url = attributes[:'url']
|
|
229
|
+
end
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
233
|
+
# @return Array for valid properties with the reasons
|
|
234
|
+
def list_invalid_properties
|
|
235
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
236
|
+
invalid_properties = Array.new
|
|
237
|
+
if @name.nil?
|
|
238
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
invalid_properties
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
# Check to see if the all the properties in the model are valid
|
|
245
|
+
# @return true if the model is valid
|
|
246
|
+
def valid?
|
|
247
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
248
|
+
return false if @name.nil?
|
|
249
|
+
true
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
# Checks equality by comparing each attribute.
|
|
253
|
+
# @param [Object] Object to be compared
|
|
254
|
+
def ==(o)
|
|
255
|
+
return true if self.equal?(o)
|
|
256
|
+
self.class == o.class &&
|
|
257
|
+
accessibility == o.accessibility &&
|
|
258
|
+
delete_protection == o.delete_protection &&
|
|
259
|
+
description == o.description &&
|
|
260
|
+
input_rule == o.input_rule &&
|
|
261
|
+
json == o.json &&
|
|
262
|
+
max_versions == o.max_versions &&
|
|
263
|
+
metadata == o.metadata &&
|
|
264
|
+
name == o.name &&
|
|
265
|
+
oauth_client_id == o.oauth_client_id &&
|
|
266
|
+
oauth_client_secret == o.oauth_client_secret &&
|
|
267
|
+
oauth_scopes == o.oauth_scopes &&
|
|
268
|
+
oauth_token_url == o.oauth_token_url &&
|
|
269
|
+
output_rule == o.output_rule &&
|
|
270
|
+
protection_key == o.protection_key &&
|
|
271
|
+
tags == o.tags &&
|
|
272
|
+
token == o.token &&
|
|
273
|
+
uid_token == o.uid_token &&
|
|
274
|
+
url == o.url
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
# @see the `==` method
|
|
278
|
+
# @param [Object] Object to be compared
|
|
279
|
+
def eql?(o)
|
|
280
|
+
self == o
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
# Calculates hash code according to all attributes.
|
|
284
|
+
# @return [Integer] Hash code
|
|
285
|
+
def hash
|
|
286
|
+
[accessibility, delete_protection, description, input_rule, json, max_versions, metadata, name, oauth_client_id, oauth_client_secret, oauth_scopes, oauth_token_url, output_rule, protection_key, tags, token, uid_token, url].hash
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
# Builds the object from hash
|
|
290
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
291
|
+
# @return [Object] Returns the model itself
|
|
292
|
+
def self.build_from_hash(attributes)
|
|
293
|
+
return nil unless attributes.is_a?(Hash)
|
|
294
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
295
|
+
transformed_hash = {}
|
|
296
|
+
openapi_types.each_pair do |key, type|
|
|
297
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
298
|
+
transformed_hash["#{key}"] = nil
|
|
299
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
300
|
+
# check to ensure the input is an array given that the attribute
|
|
301
|
+
# is documented as an array but the input is not
|
|
302
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
303
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
304
|
+
end
|
|
305
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
306
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
307
|
+
end
|
|
308
|
+
end
|
|
309
|
+
new(transformed_hash)
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
# Deserializes the data based on type
|
|
313
|
+
# @param string type Data type
|
|
314
|
+
# @param string value Value to be deserialized
|
|
315
|
+
# @return [Object] Deserialized data
|
|
316
|
+
def self._deserialize(type, value)
|
|
317
|
+
case type.to_sym
|
|
318
|
+
when :Time
|
|
319
|
+
Time.parse(value)
|
|
320
|
+
when :Date
|
|
321
|
+
Date.parse(value)
|
|
322
|
+
when :String
|
|
323
|
+
value.to_s
|
|
324
|
+
when :Integer
|
|
325
|
+
value.to_i
|
|
326
|
+
when :Float
|
|
327
|
+
value.to_f
|
|
328
|
+
when :Boolean
|
|
329
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
330
|
+
true
|
|
331
|
+
else
|
|
332
|
+
false
|
|
333
|
+
end
|
|
334
|
+
when :Object
|
|
335
|
+
# generic object (usually a Hash), return directly
|
|
336
|
+
value
|
|
337
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
338
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
339
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
340
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
341
|
+
k_type = Regexp.last_match[:k_type]
|
|
342
|
+
v_type = Regexp.last_match[:v_type]
|
|
343
|
+
{}.tap do |hash|
|
|
344
|
+
value.each do |k, v|
|
|
345
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
346
|
+
end
|
|
347
|
+
end
|
|
348
|
+
else # model
|
|
349
|
+
# models (e.g. Pet) or oneOf
|
|
350
|
+
klass = Akeyless.const_get(type)
|
|
351
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
352
|
+
end
|
|
353
|
+
end
|
|
354
|
+
|
|
355
|
+
# Returns the string representation of the object
|
|
356
|
+
# @return [String] String presentation of the object
|
|
357
|
+
def to_s
|
|
358
|
+
to_hash.to_s
|
|
359
|
+
end
|
|
360
|
+
|
|
361
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
362
|
+
# @return [Hash] Returns the object in the form of hash
|
|
363
|
+
def to_body
|
|
364
|
+
to_hash
|
|
365
|
+
end
|
|
366
|
+
|
|
367
|
+
# Returns the object in the form of hash
|
|
368
|
+
# @return [Hash] Returns the object in the form of hash
|
|
369
|
+
def to_hash
|
|
370
|
+
hash = {}
|
|
371
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
372
|
+
value = self.send(attr)
|
|
373
|
+
if value.nil?
|
|
374
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
375
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
376
|
+
end
|
|
377
|
+
|
|
378
|
+
hash[param] = _to_hash(value)
|
|
379
|
+
end
|
|
380
|
+
hash
|
|
381
|
+
end
|
|
382
|
+
|
|
383
|
+
# Outputs non-array value in the form of hash
|
|
384
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
385
|
+
# @param [Object] value Any valid value
|
|
386
|
+
# @return [Hash] Returns the value in the form of hash
|
|
387
|
+
def _to_hash(value)
|
|
388
|
+
if value.is_a?(Array)
|
|
389
|
+
value.compact.map { |v| _to_hash(v) }
|
|
390
|
+
elsif value.is_a?(Hash)
|
|
391
|
+
{}.tap do |hash|
|
|
392
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
393
|
+
end
|
|
394
|
+
elsif value.respond_to? :to_hash
|
|
395
|
+
value.to_hash
|
|
396
|
+
else
|
|
397
|
+
value
|
|
398
|
+
end
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
end
|
|
402
|
+
|
|
403
|
+
end
|
|
@@ -156,7 +156,7 @@ module Akeyless
|
|
|
156
156
|
# Authentication token (see `/auth` and `/configure`)
|
|
157
157
|
attr_accessor :token
|
|
158
158
|
|
|
159
|
-
# The maximum requested Time To Live for issued certificates, in seconds. In case of Public CA, this is based on the CA target's supported maximum TTLs
|
|
159
|
+
# The maximum requested Time To Live for issued certificates, in seconds. In case of Public CA, this is based on the CA target's supported maximum TTLs. Not supported for Let's Encrypt, which always uses the CA default lifetime (about 90 days).
|
|
160
160
|
attr_accessor :ttl
|
|
161
161
|
|
|
162
162
|
# The universal identity token, Required only for universal_identity authentication
|
|
@@ -0,0 +1,225 @@
|
|
|
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 CustomDnsTargetDetails
|
|
18
|
+
attr_accessor :parameters
|
|
19
|
+
|
|
20
|
+
attr_accessor :provider_type
|
|
21
|
+
|
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
|
+
def self.attribute_map
|
|
24
|
+
{
|
|
25
|
+
:'parameters' => :'parameters',
|
|
26
|
+
:'provider_type' => :'provider_type'
|
|
27
|
+
}
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Returns all the JSON keys this model knows about
|
|
31
|
+
def self.acceptable_attributes
|
|
32
|
+
attribute_map.values
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Attribute type mapping.
|
|
36
|
+
def self.openapi_types
|
|
37
|
+
{
|
|
38
|
+
:'parameters' => :'Hash<String, String>',
|
|
39
|
+
:'provider_type' => :'String'
|
|
40
|
+
}
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# List of attributes with nullable: true
|
|
44
|
+
def self.openapi_nullable
|
|
45
|
+
Set.new([
|
|
46
|
+
])
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Initializes the object
|
|
50
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
51
|
+
def initialize(attributes = {})
|
|
52
|
+
if (!attributes.is_a?(Hash))
|
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::CustomDnsTargetDetails` initialize method"
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
57
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
58
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::CustomDnsTargetDetails`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
60
|
+
end
|
|
61
|
+
h[k.to_sym] = v
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
if attributes.key?(:'parameters')
|
|
65
|
+
if (value = attributes[:'parameters']).is_a?(Hash)
|
|
66
|
+
self.parameters = value
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
if attributes.key?(:'provider_type')
|
|
71
|
+
self.provider_type = attributes[:'provider_type']
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
76
|
+
# @return Array for valid properties with the reasons
|
|
77
|
+
def list_invalid_properties
|
|
78
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
79
|
+
invalid_properties = Array.new
|
|
80
|
+
invalid_properties
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Check to see if the all the properties in the model are valid
|
|
84
|
+
# @return true if the model is valid
|
|
85
|
+
def valid?
|
|
86
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
87
|
+
true
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Checks equality by comparing each attribute.
|
|
91
|
+
# @param [Object] Object to be compared
|
|
92
|
+
def ==(o)
|
|
93
|
+
return true if self.equal?(o)
|
|
94
|
+
self.class == o.class &&
|
|
95
|
+
parameters == o.parameters &&
|
|
96
|
+
provider_type == o.provider_type
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# @see the `==` method
|
|
100
|
+
# @param [Object] Object to be compared
|
|
101
|
+
def eql?(o)
|
|
102
|
+
self == o
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Calculates hash code according to all attributes.
|
|
106
|
+
# @return [Integer] Hash code
|
|
107
|
+
def hash
|
|
108
|
+
[parameters, provider_type].hash
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Builds the object from hash
|
|
112
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
113
|
+
# @return [Object] Returns the model itself
|
|
114
|
+
def self.build_from_hash(attributes)
|
|
115
|
+
return nil unless attributes.is_a?(Hash)
|
|
116
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
117
|
+
transformed_hash = {}
|
|
118
|
+
openapi_types.each_pair do |key, type|
|
|
119
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
120
|
+
transformed_hash["#{key}"] = nil
|
|
121
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
122
|
+
# check to ensure the input is an array given that the attribute
|
|
123
|
+
# is documented as an array but the input is not
|
|
124
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
125
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
126
|
+
end
|
|
127
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
128
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
129
|
+
end
|
|
130
|
+
end
|
|
131
|
+
new(transformed_hash)
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# Deserializes the data based on type
|
|
135
|
+
# @param string type Data type
|
|
136
|
+
# @param string value Value to be deserialized
|
|
137
|
+
# @return [Object] Deserialized data
|
|
138
|
+
def self._deserialize(type, value)
|
|
139
|
+
case type.to_sym
|
|
140
|
+
when :Time
|
|
141
|
+
Time.parse(value)
|
|
142
|
+
when :Date
|
|
143
|
+
Date.parse(value)
|
|
144
|
+
when :String
|
|
145
|
+
value.to_s
|
|
146
|
+
when :Integer
|
|
147
|
+
value.to_i
|
|
148
|
+
when :Float
|
|
149
|
+
value.to_f
|
|
150
|
+
when :Boolean
|
|
151
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
152
|
+
true
|
|
153
|
+
else
|
|
154
|
+
false
|
|
155
|
+
end
|
|
156
|
+
when :Object
|
|
157
|
+
# generic object (usually a Hash), return directly
|
|
158
|
+
value
|
|
159
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
160
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
161
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
162
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
163
|
+
k_type = Regexp.last_match[:k_type]
|
|
164
|
+
v_type = Regexp.last_match[:v_type]
|
|
165
|
+
{}.tap do |hash|
|
|
166
|
+
value.each do |k, v|
|
|
167
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
168
|
+
end
|
|
169
|
+
end
|
|
170
|
+
else # model
|
|
171
|
+
# models (e.g. Pet) or oneOf
|
|
172
|
+
klass = Akeyless.const_get(type)
|
|
173
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
174
|
+
end
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
# Returns the string representation of the object
|
|
178
|
+
# @return [String] String presentation of the object
|
|
179
|
+
def to_s
|
|
180
|
+
to_hash.to_s
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
184
|
+
# @return [Hash] Returns the object in the form of hash
|
|
185
|
+
def to_body
|
|
186
|
+
to_hash
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
# Returns the object in the form of hash
|
|
190
|
+
# @return [Hash] Returns the object in the form of hash
|
|
191
|
+
def to_hash
|
|
192
|
+
hash = {}
|
|
193
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
194
|
+
value = self.send(attr)
|
|
195
|
+
if value.nil?
|
|
196
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
197
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
hash[param] = _to_hash(value)
|
|
201
|
+
end
|
|
202
|
+
hash
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# Outputs non-array value in the form of hash
|
|
206
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
207
|
+
# @param [Object] value Any valid value
|
|
208
|
+
# @return [Hash] Returns the value in the form of hash
|
|
209
|
+
def _to_hash(value)
|
|
210
|
+
if value.is_a?(Array)
|
|
211
|
+
value.compact.map { |v| _to_hash(v) }
|
|
212
|
+
elsif value.is_a?(Hash)
|
|
213
|
+
{}.tap do |hash|
|
|
214
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
215
|
+
end
|
|
216
|
+
elsif value.respond_to? :to_hash
|
|
217
|
+
value.to_hash
|
|
218
|
+
else
|
|
219
|
+
value
|
|
220
|
+
end
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
end
|
|
@@ -65,6 +65,9 @@ module Akeyless
|
|
|
65
65
|
|
|
66
66
|
attr_accessor :sf_account
|
|
67
67
|
|
|
68
|
+
# (Optional) SkipServerNameValidation disables server name verification while still validating the certificate chain. Postgres treats empty as legacy \"skip hostname validation\"; MySQL treats empty as false.
|
|
69
|
+
attr_accessor :skip_server_name_validation
|
|
70
|
+
|
|
68
71
|
# (Optional) SSLConnectionCertificate defines the certificate for SSL connection. Must be base64 certificate loaded by UI using file loader field
|
|
69
72
|
attr_accessor :ssl_connection_certificate
|
|
70
73
|
|
|
@@ -95,6 +98,7 @@ module Akeyless
|
|
|
95
98
|
:'enable_mtls' => :'enable_mtls',
|
|
96
99
|
:'oracle_wallet_details' => :'oracle_wallet_details',
|
|
97
100
|
:'sf_account' => :'sf_account',
|
|
101
|
+
:'skip_server_name_validation' => :'skip_server_name_validation',
|
|
98
102
|
:'ssl_connection_certificate' => :'ssl_connection_certificate',
|
|
99
103
|
:'ssl_connection_mode' => :'ssl_connection_mode'
|
|
100
104
|
}
|
|
@@ -129,6 +133,7 @@ module Akeyless
|
|
|
129
133
|
:'enable_mtls' => :'Boolean',
|
|
130
134
|
:'oracle_wallet_details' => :'WalletDetails',
|
|
131
135
|
:'sf_account' => :'String',
|
|
136
|
+
:'skip_server_name_validation' => :'String',
|
|
132
137
|
:'ssl_connection_certificate' => :'String',
|
|
133
138
|
:'ssl_connection_mode' => :'Boolean'
|
|
134
139
|
}
|
|
@@ -239,6 +244,10 @@ module Akeyless
|
|
|
239
244
|
self.sf_account = attributes[:'sf_account']
|
|
240
245
|
end
|
|
241
246
|
|
|
247
|
+
if attributes.key?(:'skip_server_name_validation')
|
|
248
|
+
self.skip_server_name_validation = attributes[:'skip_server_name_validation']
|
|
249
|
+
end
|
|
250
|
+
|
|
242
251
|
if attributes.key?(:'ssl_connection_certificate')
|
|
243
252
|
self.ssl_connection_certificate = attributes[:'ssl_connection_certificate']
|
|
244
253
|
end
|
|
@@ -289,6 +298,7 @@ module Akeyless
|
|
|
289
298
|
enable_mtls == o.enable_mtls &&
|
|
290
299
|
oracle_wallet_details == o.oracle_wallet_details &&
|
|
291
300
|
sf_account == o.sf_account &&
|
|
301
|
+
skip_server_name_validation == o.skip_server_name_validation &&
|
|
292
302
|
ssl_connection_certificate == o.ssl_connection_certificate &&
|
|
293
303
|
ssl_connection_mode == o.ssl_connection_mode
|
|
294
304
|
end
|
|
@@ -302,7 +312,7 @@ module Akeyless
|
|
|
302
312
|
# Calculates hash code according to all attributes.
|
|
303
313
|
# @return [Integer] Hash code
|
|
304
314
|
def hash
|
|
305
|
-
[client_certificate, client_key_passphrase, client_private_key, cloud_service_provider, cluster_mode, connection_type, db_client_id, db_client_secret, db_host_name, db_name, db_port, db_private_key, db_private_key_passphrase, db_pwd, db_server_certificates, db_server_name, db_tenant_id, db_user_name, enable_mtls, oracle_wallet_details, sf_account, ssl_connection_certificate, ssl_connection_mode].hash
|
|
315
|
+
[client_certificate, client_key_passphrase, client_private_key, cloud_service_provider, cluster_mode, connection_type, db_client_id, db_client_secret, db_host_name, db_name, db_port, db_private_key, db_private_key_passphrase, db_pwd, db_server_certificates, db_server_name, db_tenant_id, db_user_name, enable_mtls, oracle_wallet_details, sf_account, skip_server_name_validation, ssl_connection_certificate, ssl_connection_mode].hash
|
|
306
316
|
end
|
|
307
317
|
|
|
308
318
|
# Builds the object from hash
|