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,241 @@
|
|
|
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 EmailCustomizationAccountInformationValues
|
|
18
|
+
attr_accessor :account_id
|
|
19
|
+
|
|
20
|
+
attr_accessor :alias_name
|
|
21
|
+
|
|
22
|
+
attr_accessor :company_name
|
|
23
|
+
|
|
24
|
+
attr_accessor :tenant_name
|
|
25
|
+
|
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
|
+
def self.attribute_map
|
|
28
|
+
{
|
|
29
|
+
:'account_id' => :'account_id',
|
|
30
|
+
:'alias_name' => :'alias_name',
|
|
31
|
+
:'company_name' => :'company_name',
|
|
32
|
+
:'tenant_name' => :'tenant_name'
|
|
33
|
+
}
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Returns all the JSON keys this model knows about
|
|
37
|
+
def self.acceptable_attributes
|
|
38
|
+
attribute_map.values
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Attribute type mapping.
|
|
42
|
+
def self.openapi_types
|
|
43
|
+
{
|
|
44
|
+
:'account_id' => :'String',
|
|
45
|
+
:'alias_name' => :'String',
|
|
46
|
+
:'company_name' => :'String',
|
|
47
|
+
:'tenant_name' => :'String'
|
|
48
|
+
}
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# List of attributes with nullable: true
|
|
52
|
+
def self.openapi_nullable
|
|
53
|
+
Set.new([
|
|
54
|
+
])
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Initializes the object
|
|
58
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
59
|
+
def initialize(attributes = {})
|
|
60
|
+
if (!attributes.is_a?(Hash))
|
|
61
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::EmailCustomizationAccountInformationValues` initialize method"
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
66
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
67
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::EmailCustomizationAccountInformationValues`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
68
|
+
end
|
|
69
|
+
h[k.to_sym] = v
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if attributes.key?(:'account_id')
|
|
73
|
+
self.account_id = attributes[:'account_id']
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
if attributes.key?(:'alias_name')
|
|
77
|
+
self.alias_name = attributes[:'alias_name']
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
if attributes.key?(:'company_name')
|
|
81
|
+
self.company_name = attributes[:'company_name']
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
if attributes.key?(:'tenant_name')
|
|
85
|
+
self.tenant_name = attributes[:'tenant_name']
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
90
|
+
# @return Array for valid properties with the reasons
|
|
91
|
+
def list_invalid_properties
|
|
92
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
93
|
+
invalid_properties = Array.new
|
|
94
|
+
invalid_properties
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Check to see if the all the properties in the model are valid
|
|
98
|
+
# @return true if the model is valid
|
|
99
|
+
def valid?
|
|
100
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
101
|
+
true
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Checks equality by comparing each attribute.
|
|
105
|
+
# @param [Object] Object to be compared
|
|
106
|
+
def ==(o)
|
|
107
|
+
return true if self.equal?(o)
|
|
108
|
+
self.class == o.class &&
|
|
109
|
+
account_id == o.account_id &&
|
|
110
|
+
alias_name == o.alias_name &&
|
|
111
|
+
company_name == o.company_name &&
|
|
112
|
+
tenant_name == o.tenant_name
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# @see the `==` method
|
|
116
|
+
# @param [Object] Object to be compared
|
|
117
|
+
def eql?(o)
|
|
118
|
+
self == o
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# Calculates hash code according to all attributes.
|
|
122
|
+
# @return [Integer] Hash code
|
|
123
|
+
def hash
|
|
124
|
+
[account_id, alias_name, company_name, tenant_name].hash
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Builds the object from hash
|
|
128
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
129
|
+
# @return [Object] Returns the model itself
|
|
130
|
+
def self.build_from_hash(attributes)
|
|
131
|
+
return nil unless attributes.is_a?(Hash)
|
|
132
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
133
|
+
transformed_hash = {}
|
|
134
|
+
openapi_types.each_pair do |key, type|
|
|
135
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
136
|
+
transformed_hash["#{key}"] = nil
|
|
137
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
138
|
+
# check to ensure the input is an array given that the attribute
|
|
139
|
+
# is documented as an array but the input is not
|
|
140
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
141
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
142
|
+
end
|
|
143
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
144
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
145
|
+
end
|
|
146
|
+
end
|
|
147
|
+
new(transformed_hash)
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# Deserializes the data based on type
|
|
151
|
+
# @param string type Data type
|
|
152
|
+
# @param string value Value to be deserialized
|
|
153
|
+
# @return [Object] Deserialized data
|
|
154
|
+
def self._deserialize(type, value)
|
|
155
|
+
case type.to_sym
|
|
156
|
+
when :Time
|
|
157
|
+
Time.parse(value)
|
|
158
|
+
when :Date
|
|
159
|
+
Date.parse(value)
|
|
160
|
+
when :String
|
|
161
|
+
value.to_s
|
|
162
|
+
when :Integer
|
|
163
|
+
value.to_i
|
|
164
|
+
when :Float
|
|
165
|
+
value.to_f
|
|
166
|
+
when :Boolean
|
|
167
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
168
|
+
true
|
|
169
|
+
else
|
|
170
|
+
false
|
|
171
|
+
end
|
|
172
|
+
when :Object
|
|
173
|
+
# generic object (usually a Hash), return directly
|
|
174
|
+
value
|
|
175
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
176
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
177
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
178
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
179
|
+
k_type = Regexp.last_match[:k_type]
|
|
180
|
+
v_type = Regexp.last_match[:v_type]
|
|
181
|
+
{}.tap do |hash|
|
|
182
|
+
value.each do |k, v|
|
|
183
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
184
|
+
end
|
|
185
|
+
end
|
|
186
|
+
else # model
|
|
187
|
+
# models (e.g. Pet) or oneOf
|
|
188
|
+
klass = Akeyless.const_get(type)
|
|
189
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
190
|
+
end
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# Returns the string representation of the object
|
|
194
|
+
# @return [String] String presentation of the object
|
|
195
|
+
def to_s
|
|
196
|
+
to_hash.to_s
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
200
|
+
# @return [Hash] Returns the object in the form of hash
|
|
201
|
+
def to_body
|
|
202
|
+
to_hash
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# Returns the object in the form of hash
|
|
206
|
+
# @return [Hash] Returns the object in the form of hash
|
|
207
|
+
def to_hash
|
|
208
|
+
hash = {}
|
|
209
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
210
|
+
value = self.send(attr)
|
|
211
|
+
if value.nil?
|
|
212
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
213
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
hash[param] = _to_hash(value)
|
|
217
|
+
end
|
|
218
|
+
hash
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
# Outputs non-array value in the form of hash
|
|
222
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
223
|
+
# @param [Object] value Any valid value
|
|
224
|
+
# @return [Hash] Returns the value in the form of hash
|
|
225
|
+
def _to_hash(value)
|
|
226
|
+
if value.is_a?(Array)
|
|
227
|
+
value.compact.map { |v| _to_hash(v) }
|
|
228
|
+
elsif value.is_a?(Hash)
|
|
229
|
+
{}.tap do |hash|
|
|
230
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
231
|
+
end
|
|
232
|
+
elsif value.respond_to? :to_hash
|
|
233
|
+
value.to_hash
|
|
234
|
+
else
|
|
235
|
+
value
|
|
236
|
+
end
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
end
|
|
@@ -15,10 +15,14 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Akeyless
|
|
17
17
|
class EsmGetSecretOutput
|
|
18
|
+
attr_accessor :activation_date
|
|
19
|
+
|
|
18
20
|
attr_accessor :binary_value
|
|
19
21
|
|
|
20
22
|
attr_accessor :encryption_key
|
|
21
23
|
|
|
24
|
+
attr_accessor :expiration
|
|
25
|
+
|
|
22
26
|
attr_accessor :id
|
|
23
27
|
|
|
24
28
|
attr_accessor :metadata
|
|
@@ -27,15 +31,26 @@ module Akeyless
|
|
|
27
31
|
|
|
28
32
|
attr_accessor :value
|
|
29
33
|
|
|
34
|
+
attr_accessor :version_id
|
|
35
|
+
|
|
36
|
+
attr_accessor :version_ids
|
|
37
|
+
|
|
38
|
+
attr_accessor :warnings
|
|
39
|
+
|
|
30
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
41
|
def self.attribute_map
|
|
32
42
|
{
|
|
43
|
+
:'activation_date' => :'activation_date',
|
|
33
44
|
:'binary_value' => :'binary_value',
|
|
34
45
|
:'encryption_key' => :'encryption_key',
|
|
46
|
+
:'expiration' => :'expiration',
|
|
35
47
|
:'id' => :'id',
|
|
36
48
|
:'metadata' => :'metadata',
|
|
37
49
|
:'name' => :'name',
|
|
38
|
-
:'value' => :'value'
|
|
50
|
+
:'value' => :'value',
|
|
51
|
+
:'version_id' => :'version_id',
|
|
52
|
+
:'version_ids' => :'version_ids',
|
|
53
|
+
:'warnings' => :'warnings'
|
|
39
54
|
}
|
|
40
55
|
end
|
|
41
56
|
|
|
@@ -47,12 +62,17 @@ module Akeyless
|
|
|
47
62
|
# Attribute type mapping.
|
|
48
63
|
def self.openapi_types
|
|
49
64
|
{
|
|
65
|
+
:'activation_date' => :'Time',
|
|
50
66
|
:'binary_value' => :'Boolean',
|
|
51
67
|
:'encryption_key' => :'String',
|
|
68
|
+
:'expiration' => :'Time',
|
|
52
69
|
:'id' => :'String',
|
|
53
70
|
:'metadata' => :'Object',
|
|
54
71
|
:'name' => :'String',
|
|
55
|
-
:'value' => :'String'
|
|
72
|
+
:'value' => :'String',
|
|
73
|
+
:'version_id' => :'String',
|
|
74
|
+
:'version_ids' => :'Array<String>',
|
|
75
|
+
:'warnings' => :'Array<String>'
|
|
56
76
|
}
|
|
57
77
|
end
|
|
58
78
|
|
|
@@ -78,6 +98,10 @@ module Akeyless
|
|
|
78
98
|
h[k.to_sym] = v
|
|
79
99
|
}
|
|
80
100
|
|
|
101
|
+
if attributes.key?(:'activation_date')
|
|
102
|
+
self.activation_date = attributes[:'activation_date']
|
|
103
|
+
end
|
|
104
|
+
|
|
81
105
|
if attributes.key?(:'binary_value')
|
|
82
106
|
self.binary_value = attributes[:'binary_value']
|
|
83
107
|
end
|
|
@@ -86,6 +110,10 @@ module Akeyless
|
|
|
86
110
|
self.encryption_key = attributes[:'encryption_key']
|
|
87
111
|
end
|
|
88
112
|
|
|
113
|
+
if attributes.key?(:'expiration')
|
|
114
|
+
self.expiration = attributes[:'expiration']
|
|
115
|
+
end
|
|
116
|
+
|
|
89
117
|
if attributes.key?(:'id')
|
|
90
118
|
self.id = attributes[:'id']
|
|
91
119
|
end
|
|
@@ -101,6 +129,22 @@ module Akeyless
|
|
|
101
129
|
if attributes.key?(:'value')
|
|
102
130
|
self.value = attributes[:'value']
|
|
103
131
|
end
|
|
132
|
+
|
|
133
|
+
if attributes.key?(:'version_id')
|
|
134
|
+
self.version_id = attributes[:'version_id']
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
if attributes.key?(:'version_ids')
|
|
138
|
+
if (value = attributes[:'version_ids']).is_a?(Array)
|
|
139
|
+
self.version_ids = value
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
if attributes.key?(:'warnings')
|
|
144
|
+
if (value = attributes[:'warnings']).is_a?(Array)
|
|
145
|
+
self.warnings = value
|
|
146
|
+
end
|
|
147
|
+
end
|
|
104
148
|
end
|
|
105
149
|
|
|
106
150
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -123,12 +167,17 @@ module Akeyless
|
|
|
123
167
|
def ==(o)
|
|
124
168
|
return true if self.equal?(o)
|
|
125
169
|
self.class == o.class &&
|
|
170
|
+
activation_date == o.activation_date &&
|
|
126
171
|
binary_value == o.binary_value &&
|
|
127
172
|
encryption_key == o.encryption_key &&
|
|
173
|
+
expiration == o.expiration &&
|
|
128
174
|
id == o.id &&
|
|
129
175
|
metadata == o.metadata &&
|
|
130
176
|
name == o.name &&
|
|
131
|
-
value == o.value
|
|
177
|
+
value == o.value &&
|
|
178
|
+
version_id == o.version_id &&
|
|
179
|
+
version_ids == o.version_ids &&
|
|
180
|
+
warnings == o.warnings
|
|
132
181
|
end
|
|
133
182
|
|
|
134
183
|
# @see the `==` method
|
|
@@ -140,7 +189,7 @@ module Akeyless
|
|
|
140
189
|
# Calculates hash code according to all attributes.
|
|
141
190
|
# @return [Integer] Hash code
|
|
142
191
|
def hash
|
|
143
|
-
[binary_value, encryption_key, id, metadata, name, value].hash
|
|
192
|
+
[activation_date, binary_value, encryption_key, expiration, id, metadata, name, value, version_id, version_ids, warnings].hash
|
|
144
193
|
end
|
|
145
194
|
|
|
146
195
|
# Builds the object from hash
|
|
@@ -0,0 +1,223 @@
|
|
|
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 FileDownloadInstructions
|
|
18
|
+
attr_accessor :expires_at
|
|
19
|
+
|
|
20
|
+
attr_accessor :url
|
|
21
|
+
|
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
|
+
def self.attribute_map
|
|
24
|
+
{
|
|
25
|
+
:'expires_at' => :'expires_at',
|
|
26
|
+
:'url' => :'url'
|
|
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
|
+
:'expires_at' => :'Time',
|
|
39
|
+
:'url' => :'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::FileDownloadInstructions` 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::FileDownloadInstructions`. 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?(:'expires_at')
|
|
65
|
+
self.expires_at = attributes[:'expires_at']
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
if attributes.key?(:'url')
|
|
69
|
+
self.url = attributes[:'url']
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
74
|
+
# @return Array for valid properties with the reasons
|
|
75
|
+
def list_invalid_properties
|
|
76
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
77
|
+
invalid_properties = Array.new
|
|
78
|
+
invalid_properties
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Check to see if the all the properties in the model are valid
|
|
82
|
+
# @return true if the model is valid
|
|
83
|
+
def valid?
|
|
84
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
85
|
+
true
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Checks equality by comparing each attribute.
|
|
89
|
+
# @param [Object] Object to be compared
|
|
90
|
+
def ==(o)
|
|
91
|
+
return true if self.equal?(o)
|
|
92
|
+
self.class == o.class &&
|
|
93
|
+
expires_at == o.expires_at &&
|
|
94
|
+
url == o.url
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# @see the `==` method
|
|
98
|
+
# @param [Object] Object to be compared
|
|
99
|
+
def eql?(o)
|
|
100
|
+
self == o
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Calculates hash code according to all attributes.
|
|
104
|
+
# @return [Integer] Hash code
|
|
105
|
+
def hash
|
|
106
|
+
[expires_at, url].hash
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Builds the object from hash
|
|
110
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
111
|
+
# @return [Object] Returns the model itself
|
|
112
|
+
def self.build_from_hash(attributes)
|
|
113
|
+
return nil unless attributes.is_a?(Hash)
|
|
114
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
115
|
+
transformed_hash = {}
|
|
116
|
+
openapi_types.each_pair do |key, type|
|
|
117
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
118
|
+
transformed_hash["#{key}"] = nil
|
|
119
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
120
|
+
# check to ensure the input is an array given that the attribute
|
|
121
|
+
# is documented as an array but the input is not
|
|
122
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
123
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
124
|
+
end
|
|
125
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
126
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
new(transformed_hash)
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# Deserializes the data based on type
|
|
133
|
+
# @param string type Data type
|
|
134
|
+
# @param string value Value to be deserialized
|
|
135
|
+
# @return [Object] Deserialized data
|
|
136
|
+
def self._deserialize(type, value)
|
|
137
|
+
case type.to_sym
|
|
138
|
+
when :Time
|
|
139
|
+
Time.parse(value)
|
|
140
|
+
when :Date
|
|
141
|
+
Date.parse(value)
|
|
142
|
+
when :String
|
|
143
|
+
value.to_s
|
|
144
|
+
when :Integer
|
|
145
|
+
value.to_i
|
|
146
|
+
when :Float
|
|
147
|
+
value.to_f
|
|
148
|
+
when :Boolean
|
|
149
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
150
|
+
true
|
|
151
|
+
else
|
|
152
|
+
false
|
|
153
|
+
end
|
|
154
|
+
when :Object
|
|
155
|
+
# generic object (usually a Hash), return directly
|
|
156
|
+
value
|
|
157
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
158
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
159
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
160
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
161
|
+
k_type = Regexp.last_match[:k_type]
|
|
162
|
+
v_type = Regexp.last_match[:v_type]
|
|
163
|
+
{}.tap do |hash|
|
|
164
|
+
value.each do |k, v|
|
|
165
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
166
|
+
end
|
|
167
|
+
end
|
|
168
|
+
else # model
|
|
169
|
+
# models (e.g. Pet) or oneOf
|
|
170
|
+
klass = Akeyless.const_get(type)
|
|
171
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
172
|
+
end
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Returns the string representation of the object
|
|
176
|
+
# @return [String] String presentation of the object
|
|
177
|
+
def to_s
|
|
178
|
+
to_hash.to_s
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
182
|
+
# @return [Hash] Returns the object in the form of hash
|
|
183
|
+
def to_body
|
|
184
|
+
to_hash
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
# Returns the object in the form of hash
|
|
188
|
+
# @return [Hash] Returns the object in the form of hash
|
|
189
|
+
def to_hash
|
|
190
|
+
hash = {}
|
|
191
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
192
|
+
value = self.send(attr)
|
|
193
|
+
if value.nil?
|
|
194
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
195
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
hash[param] = _to_hash(value)
|
|
199
|
+
end
|
|
200
|
+
hash
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# Outputs non-array value in the form of hash
|
|
204
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
205
|
+
# @param [Object] value Any valid value
|
|
206
|
+
# @return [Hash] Returns the value in the form of hash
|
|
207
|
+
def _to_hash(value)
|
|
208
|
+
if value.is_a?(Array)
|
|
209
|
+
value.compact.map { |v| _to_hash(v) }
|
|
210
|
+
elsif value.is_a?(Hash)
|
|
211
|
+
{}.tap do |hash|
|
|
212
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
213
|
+
end
|
|
214
|
+
elsif value.respond_to? :to_hash
|
|
215
|
+
value.to_hash
|
|
216
|
+
else
|
|
217
|
+
value
|
|
218
|
+
end
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
end
|