akeyless 5.0.22 → 5.0.24
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 +33 -5
- data/docs/AccountGeneralSettings.md +4 -0
- data/docs/AgenticRule.md +20 -0
- data/docs/AgenticRules.md +20 -0
- data/docs/AuthMethodCreateUniversalIdentity.md +4 -0
- data/docs/AuthMethodUpdateUniversalIdentity.md +4 -0
- data/docs/AwsStorage.md +2 -0
- data/docs/CreateAuthMethodUniversalIdentity.md +4 -0
- data/docs/CreateRole.md +2 -0
- data/docs/CreateRotatedSecret.md +3 -1
- data/docs/CreateSecret.md +2 -0
- data/docs/CreateUSC.md +6 -2
- data/docs/DSProducerDetails.md +2 -0
- data/docs/DeleteRoleRule.md +1 -1
- data/docs/DescribePermissions.md +1 -1
- data/docs/DigiCertTargetDetails.md +42 -0
- data/docs/EsmListSecretsOutput.md +5 -1
- data/docs/GatewayCreateMigration.md +4 -0
- data/docs/GatewayMigrationCreateOutput.md +2 -0
- data/docs/GatewayUpdateMigration.md +4 -0
- data/docs/GatewayUpdateRemoteAccessRdpRecordings.md +2 -0
- data/docs/GeneralConfigPart.md +4 -0
- data/docs/GoogleTrustTargetDetails.md +42 -0
- data/docs/HashiPayload.md +5 -1
- data/docs/Item.md +2 -0
- data/docs/ItemGeneralInfo.md +2 -0
- data/docs/ItemLockingSetting.md +20 -0
- data/docs/ListItems.md +2 -0
- data/docs/LockItem.md +28 -0
- data/docs/LockTarget.md +28 -0
- data/docs/LockingInfo.md +24 -0
- data/docs/MigrationStatusReplyObj.md +2 -0
- data/docs/NetappStorage.md +30 -0
- data/docs/ReverseRBAC.md +1 -1
- data/docs/RotatedSecretCreateAws.md +3 -1
- data/docs/RotatedSecretCreateAzure.md +3 -1
- data/docs/RotatedSecretCreateCustom.md +3 -1
- data/docs/RotatedSecretCreateLdap.md +3 -1
- data/docs/RotatedSecretCreateMongodb.md +3 -1
- data/docs/RotatedSecretCreateMssql.md +3 -1
- data/docs/RotatedSecretCreateMysql.md +3 -1
- data/docs/RotatedSecretCreateOracledb.md +3 -1
- data/docs/RotatedSecretCreatePostgresql.md +3 -1
- data/docs/RotatedSecretCreateRedshift.md +3 -1
- data/docs/RotatedSecretCreateSsh.md +3 -1
- data/docs/RotatedSecretCreateWindows.md +3 -1
- data/docs/RotatedSecretUpdateAws.md +3 -1
- data/docs/RotatedSecretUpdateAzure.md +3 -1
- data/docs/RotatedSecretUpdateCustom.md +3 -1
- data/docs/RotatedSecretUpdateLdap.md +3 -1
- data/docs/RotatedSecretUpdateMongodb.md +3 -1
- data/docs/RotatedSecretUpdateMssql.md +3 -1
- data/docs/RotatedSecretUpdateMysql.md +3 -1
- data/docs/RotatedSecretUpdateOracledb.md +3 -1
- data/docs/RotatedSecretUpdatePostgresql.md +3 -1
- data/docs/RotatedSecretUpdateRedshift.md +3 -1
- data/docs/RotatedSecretUpdateSsh.md +3 -1
- data/docs/RotatedSecretUpdateWindows.md +3 -1
- data/docs/RuntimeAuthorityCommand.md +28 -0
- data/docs/SecretInfo.md +2 -0
- data/docs/SecureRemoteAccess.md +4 -0
- data/docs/SetDefaultProfile.md +20 -0
- data/docs/SetDefaultProfileOutput.md +18 -0
- data/docs/SetRoleRule.md +1 -1
- data/docs/SyncCounters.md +22 -0
- data/docs/SystemAccessCredentialsReplyObj.md +2 -0
- data/docs/Target.md +4 -0
- data/docs/TargetCreateArtifactory.md +2 -0
- data/docs/TargetCreateAws.md +2 -0
- data/docs/TargetCreateAzure.md +2 -0
- data/docs/TargetCreateDB.md +2 -0
- data/docs/TargetCreateDigiCert.md +52 -0
- data/docs/TargetCreateDockerhub.md +2 -0
- data/docs/TargetCreateEks.md +2 -0
- data/docs/TargetCreateGcp.md +2 -0
- data/docs/TargetCreateGemini.md +2 -0
- data/docs/TargetCreateGithub.md +2 -0
- data/docs/TargetCreateGitlab.md +2 -0
- data/docs/TargetCreateGke.md +2 -0
- data/docs/TargetCreateGlobalSign.md +2 -0
- data/docs/TargetCreateGlobalSignAtlas.md +2 -0
- data/docs/TargetCreateGodaddy.md +2 -0
- data/docs/TargetCreateGoogleTrust.md +52 -0
- data/docs/TargetCreateHashiVault.md +2 -0
- data/docs/TargetCreateK8s.md +2 -0
- data/docs/TargetCreateLdap.md +2 -0
- data/docs/TargetCreateLetsEncrypt.md +3 -1
- data/docs/TargetCreateLinked.md +2 -0
- data/docs/TargetCreateOpenAI.md +2 -0
- data/docs/TargetCreatePing.md +2 -0
- data/docs/TargetCreateRabbitMq.md +2 -0
- data/docs/TargetCreateSalesforce.md +2 -0
- data/docs/TargetCreateSectigo.md +2 -0
- data/docs/TargetCreateSplunk.md +5 -1
- data/docs/TargetCreateSsh.md +2 -0
- data/docs/TargetCreateWeb.md +2 -0
- data/docs/TargetCreateWindows.md +2 -0
- data/docs/TargetCreateZeroSSL.md +2 -0
- data/docs/TargetTypeDetailsInput.md +4 -0
- data/docs/TargetUpdateArtifactory.md +2 -0
- data/docs/TargetUpdateAws.md +2 -0
- data/docs/TargetUpdateAzure.md +2 -0
- data/docs/TargetUpdateDB.md +2 -0
- data/docs/TargetUpdateDigiCert.md +54 -0
- data/docs/TargetUpdateDockerhub.md +2 -0
- data/docs/TargetUpdateEks.md +2 -0
- data/docs/TargetUpdateGcp.md +2 -0
- data/docs/TargetUpdateGemini.md +2 -0
- data/docs/TargetUpdateGithub.md +2 -0
- data/docs/TargetUpdateGitlab.md +2 -0
- data/docs/TargetUpdateGke.md +2 -0
- data/docs/TargetUpdateGlobalSign.md +2 -0
- data/docs/TargetUpdateGlobalSignAtlas.md +2 -0
- data/docs/TargetUpdateGodaddy.md +2 -0
- data/docs/TargetUpdateGoogleTrust.md +56 -0
- data/docs/TargetUpdateHashiVault.md +2 -0
- data/docs/TargetUpdateK8s.md +2 -0
- data/docs/TargetUpdateLdap.md +2 -0
- data/docs/TargetUpdateLetsEncrypt.md +3 -1
- data/docs/TargetUpdateOpenAI.md +2 -0
- data/docs/TargetUpdatePing.md +2 -0
- data/docs/TargetUpdateRabbitMq.md +2 -0
- data/docs/TargetUpdateSalesforce.md +2 -0
- data/docs/TargetUpdateSectigo.md +2 -0
- data/docs/TargetUpdateSsh.md +2 -0
- data/docs/TargetUpdateWeb.md +2 -0
- data/docs/TargetUpdateWindows.md +2 -0
- data/docs/TargetUpdateZeroSSL.md +2 -0
- data/docs/UniversalIdentityAccessRules.md +4 -0
- data/docs/UnlockItem.md +24 -0
- data/docs/UnlockTarget.md +24 -0
- data/docs/UpdateAccountSettings.md +4 -0
- data/docs/UpdateAuthMethodUniversalIdentity.md +4 -0
- data/docs/UpdateItem.md +8 -2
- data/docs/UpdateRole.md +2 -0
- data/docs/UpdateRotatedSecret.md +3 -1
- data/docs/UpdateTarget.md +2 -0
- data/docs/UscCreate.md +2 -0
- data/docs/UscDelete.md +4 -0
- data/docs/UscGet.md +4 -0
- data/docs/UscList.md +4 -0
- data/docs/UscListSecretsOutput.md +5 -1
- data/docs/UscUpdate.md +4 -0
- data/docs/V2Api.md +572 -6
- data/docs/WebBastionRdpRecord.md +2 -0
- data/lib/akeyless/api/v2_api.rb +580 -4
- data/lib/akeyless/models/account_general_settings.rb +19 -1
- data/lib/akeyless/models/agentic_rule.rb +223 -0
- data/lib/akeyless/models/agentic_rules.rb +227 -0
- data/lib/akeyless/models/auth_method_create_universal_identity.rb +25 -1
- data/lib/akeyless/models/auth_method_update_universal_identity.rb +25 -1
- data/lib/akeyless/models/aws_storage.rb +10 -1
- data/lib/akeyless/models/create_auth_method_universal_identity.rb +25 -1
- data/lib/akeyless/models/create_role.rb +11 -1
- data/lib/akeyless/models/create_rotated_secret.rb +12 -4
- data/lib/akeyless/models/create_secret.rb +11 -1
- data/lib/akeyless/models/create_usc.rb +25 -5
- data/lib/akeyless/models/delete_role_rule.rb +1 -1
- data/lib/akeyless/models/describe_permissions.rb +1 -1
- data/lib/akeyless/models/digi_cert_target_details.rb +333 -0
- data/lib/akeyless/models/ds_producer_details.rb +10 -1
- data/lib/akeyless/models/esm_list_secrets_output.rb +24 -4
- data/lib/akeyless/models/gateway_create_migration.rb +21 -1
- data/lib/akeyless/models/gateway_migration_create_output.rb +10 -1
- data/lib/akeyless/models/gateway_update_migration.rb +21 -1
- data/lib/akeyless/models/gateway_update_remote_access_rdp_recordings.rb +11 -1
- data/lib/akeyless/models/general_config_part.rb +19 -1
- data/lib/akeyless/models/google_trust_target_details.rb +335 -0
- data/lib/akeyless/models/hashi_payload.rb +22 -4
- data/lib/akeyless/models/item.rb +10 -1
- data/lib/akeyless/models/item_general_info.rb +10 -1
- data/lib/akeyless/models/item_locking_setting.rb +223 -0
- data/lib/akeyless/models/list_items.rb +13 -1
- data/lib/akeyless/models/lock_item.rb +274 -0
- data/lib/akeyless/models/lock_target.rb +274 -0
- data/lib/akeyless/models/locking_info.rb +243 -0
- data/lib/akeyless/models/migration_status_reply_obj.rb +10 -1
- data/lib/akeyless/models/netapp_storage.rb +268 -0
- data/lib/akeyless/models/reverse_rbac.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_aws.rb +12 -4
- data/lib/akeyless/models/rotated_secret_create_azure.rb +12 -4
- data/lib/akeyless/models/rotated_secret_create_custom.rb +12 -4
- data/lib/akeyless/models/rotated_secret_create_ldap.rb +12 -4
- data/lib/akeyless/models/rotated_secret_create_mongodb.rb +12 -4
- data/lib/akeyless/models/rotated_secret_create_mssql.rb +12 -4
- data/lib/akeyless/models/rotated_secret_create_mysql.rb +12 -4
- data/lib/akeyless/models/rotated_secret_create_oracledb.rb +12 -4
- data/lib/akeyless/models/rotated_secret_create_postgresql.rb +12 -4
- data/lib/akeyless/models/rotated_secret_create_redshift.rb +12 -4
- data/lib/akeyless/models/rotated_secret_create_ssh.rb +12 -4
- data/lib/akeyless/models/rotated_secret_create_windows.rb +12 -4
- data/lib/akeyless/models/rotated_secret_update_aws.rb +12 -4
- data/lib/akeyless/models/rotated_secret_update_azure.rb +12 -4
- data/lib/akeyless/models/rotated_secret_update_custom.rb +12 -4
- data/lib/akeyless/models/rotated_secret_update_ldap.rb +12 -4
- data/lib/akeyless/models/rotated_secret_update_mongodb.rb +12 -4
- data/lib/akeyless/models/rotated_secret_update_mssql.rb +12 -4
- data/lib/akeyless/models/rotated_secret_update_mysql.rb +12 -4
- data/lib/akeyless/models/rotated_secret_update_oracledb.rb +12 -4
- data/lib/akeyless/models/rotated_secret_update_postgresql.rb +12 -4
- data/lib/akeyless/models/rotated_secret_update_redshift.rb +12 -4
- data/lib/akeyless/models/rotated_secret_update_ssh.rb +12 -4
- data/lib/akeyless/models/rotated_secret_update_windows.rb +12 -4
- data/lib/akeyless/models/runtime_authority_command.rb +288 -0
- data/lib/akeyless/models/secret_info.rb +10 -1
- data/lib/akeyless/models/secure_remote_access.rb +19 -1
- data/lib/akeyless/models/set_default_profile.rb +234 -0
- data/lib/akeyless/models/set_default_profile_output.rb +214 -0
- data/lib/akeyless/models/set_role_rule.rb +1 -1
- data/lib/akeyless/models/sync_counters.rb +233 -0
- data/lib/akeyless/models/system_access_credentials_reply_obj.rb +11 -1
- data/lib/akeyless/models/target.rb +19 -1
- data/lib/akeyless/models/target_create_artifactory.rb +11 -1
- data/lib/akeyless/models/target_create_aws.rb +11 -1
- data/lib/akeyless/models/target_create_azure.rb +11 -1
- data/lib/akeyless/models/target_create_db.rb +11 -1
- data/lib/akeyless/models/target_create_digi_cert.rb +408 -0
- data/lib/akeyless/models/target_create_dockerhub.rb +11 -1
- data/lib/akeyless/models/target_create_eks.rb +11 -1
- data/lib/akeyless/models/target_create_gcp.rb +11 -1
- data/lib/akeyless/models/target_create_gemini.rb +11 -1
- data/lib/akeyless/models/target_create_github.rb +11 -1
- data/lib/akeyless/models/target_create_gitlab.rb +11 -1
- data/lib/akeyless/models/target_create_gke.rb +11 -1
- data/lib/akeyless/models/target_create_global_sign.rb +11 -1
- data/lib/akeyless/models/target_create_global_sign_atlas.rb +11 -1
- data/lib/akeyless/models/target_create_godaddy.rb +11 -1
- data/lib/akeyless/models/target_create_google_trust.rb +408 -0
- data/lib/akeyless/models/target_create_hashi_vault.rb +11 -1
- data/lib/akeyless/models/target_create_k8s.rb +11 -1
- data/lib/akeyless/models/target_create_ldap.rb +11 -1
- data/lib/akeyless/models/target_create_lets_encrypt.rb +18 -1
- data/lib/akeyless/models/target_create_linked.rb +11 -1
- data/lib/akeyless/models/target_create_open_ai.rb +11 -1
- data/lib/akeyless/models/target_create_ping.rb +11 -1
- data/lib/akeyless/models/target_create_rabbit_mq.rb +11 -1
- data/lib/akeyless/models/target_create_salesforce.rb +11 -1
- data/lib/akeyless/models/target_create_sectigo.rb +11 -1
- data/lib/akeyless/models/target_create_splunk.rb +21 -1
- data/lib/akeyless/models/target_create_ssh.rb +11 -1
- data/lib/akeyless/models/target_create_web.rb +11 -1
- data/lib/akeyless/models/target_create_windows.rb +11 -1
- data/lib/akeyless/models/target_create_zero_ssl.rb +11 -1
- data/lib/akeyless/models/target_type_details_input.rb +19 -1
- data/lib/akeyless/models/target_update_artifactory.rb +11 -1
- data/lib/akeyless/models/target_update_aws.rb +11 -1
- data/lib/akeyless/models/target_update_azure.rb +11 -1
- data/lib/akeyless/models/target_update_db.rb +11 -1
- data/lib/akeyless/models/target_update_digi_cert.rb +418 -0
- data/lib/akeyless/models/target_update_dockerhub.rb +11 -1
- data/lib/akeyless/models/target_update_eks.rb +11 -1
- data/lib/akeyless/models/target_update_gcp.rb +11 -1
- data/lib/akeyless/models/target_update_gemini.rb +11 -1
- data/lib/akeyless/models/target_update_github.rb +11 -1
- data/lib/akeyless/models/target_update_gitlab.rb +11 -1
- data/lib/akeyless/models/target_update_gke.rb +11 -1
- data/lib/akeyless/models/target_update_global_sign.rb +11 -1
- data/lib/akeyless/models/target_update_global_sign_atlas.rb +11 -1
- data/lib/akeyless/models/target_update_godaddy.rb +11 -1
- data/lib/akeyless/models/target_update_google_trust.rb +428 -0
- data/lib/akeyless/models/target_update_hashi_vault.rb +11 -1
- data/lib/akeyless/models/target_update_k8s.rb +11 -1
- data/lib/akeyless/models/target_update_ldap.rb +11 -1
- data/lib/akeyless/models/target_update_lets_encrypt.rb +18 -1
- data/lib/akeyless/models/target_update_open_ai.rb +11 -1
- data/lib/akeyless/models/target_update_ping.rb +11 -1
- data/lib/akeyless/models/target_update_rabbit_mq.rb +11 -1
- data/lib/akeyless/models/target_update_salesforce.rb +11 -1
- data/lib/akeyless/models/target_update_sectigo.rb +11 -1
- data/lib/akeyless/models/target_update_ssh.rb +11 -1
- data/lib/akeyless/models/target_update_web.rb +11 -1
- data/lib/akeyless/models/target_update_windows.rb +11 -1
- data/lib/akeyless/models/target_update_zero_ssl.rb +11 -1
- data/lib/akeyless/models/universal_identity_access_rules.rb +19 -1
- data/lib/akeyless/models/unlock_item.rb +254 -0
- data/lib/akeyless/models/unlock_target.rb +254 -0
- data/lib/akeyless/models/update_account_settings.rb +21 -1
- data/lib/akeyless/models/update_auth_method_universal_identity.rb +25 -1
- data/lib/akeyless/models/update_item.rb +35 -7
- data/lib/akeyless/models/update_role.rb +11 -1
- data/lib/akeyless/models/update_rotated_secret.rb +12 -4
- data/lib/akeyless/models/update_target.rb +11 -1
- data/lib/akeyless/models/usc_create.rb +10 -1
- data/lib/akeyless/models/usc_delete.rb +20 -1
- data/lib/akeyless/models/usc_get.rb +20 -1
- data/lib/akeyless/models/usc_list.rb +21 -1
- data/lib/akeyless/models/usc_list_secrets_output.rb +24 -4
- data/lib/akeyless/models/usc_update.rb +20 -1
- data/lib/akeyless/models/web_bastion_rdp_record.rb +10 -1
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +19 -0
- data/spec/models/agentic_rule_spec.rb +42 -0
- data/spec/models/agentic_rules_spec.rb +42 -0
- data/spec/models/digi_cert_target_details_spec.rb +108 -0
- data/spec/models/google_trust_target_details_spec.rb +108 -0
- data/spec/models/item_locking_setting_spec.rb +42 -0
- data/spec/models/lock_item_spec.rb +66 -0
- data/spec/models/lock_target_spec.rb +66 -0
- data/spec/models/locking_info_spec.rb +54 -0
- data/spec/models/netapp_storage_spec.rb +72 -0
- data/spec/models/runtime_authority_command_spec.rb +66 -0
- data/spec/models/set_default_profile_output_spec.rb +36 -0
- data/spec/models/set_default_profile_spec.rb +42 -0
- data/spec/models/sync_counters_spec.rb +48 -0
- data/spec/models/target_create_digi_cert_spec.rb +132 -0
- data/spec/models/target_create_google_trust_spec.rb +132 -0
- data/spec/models/target_update_digi_cert_spec.rb +144 -0
- data/spec/models/target_update_google_trust_spec.rb +144 -0
- data/spec/models/unlock_item_spec.rb +54 -0
- data/spec/models/unlock_target_spec.rb +54 -0
- metadata +1226 -1147
|
@@ -0,0 +1,268 @@
|
|
|
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 NetappStorage
|
|
18
|
+
attr_accessor :access_key_id
|
|
19
|
+
|
|
20
|
+
attr_accessor :access_key_secret
|
|
21
|
+
|
|
22
|
+
attr_accessor :auth_type
|
|
23
|
+
|
|
24
|
+
attr_accessor :bucket
|
|
25
|
+
|
|
26
|
+
attr_accessor :endpoint_url
|
|
27
|
+
|
|
28
|
+
attr_accessor :prefix
|
|
29
|
+
|
|
30
|
+
attr_accessor :region
|
|
31
|
+
|
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
|
+
def self.attribute_map
|
|
34
|
+
{
|
|
35
|
+
:'access_key_id' => :'access_key_id',
|
|
36
|
+
:'access_key_secret' => :'access_key_secret',
|
|
37
|
+
:'auth_type' => :'auth_type',
|
|
38
|
+
:'bucket' => :'bucket',
|
|
39
|
+
:'endpoint_url' => :'endpoint_url',
|
|
40
|
+
:'prefix' => :'prefix',
|
|
41
|
+
:'region' => :'region'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Returns all the JSON keys this model knows about
|
|
46
|
+
def self.acceptable_attributes
|
|
47
|
+
attribute_map.values
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Attribute type mapping.
|
|
51
|
+
def self.openapi_types
|
|
52
|
+
{
|
|
53
|
+
:'access_key_id' => :'String',
|
|
54
|
+
:'access_key_secret' => :'String',
|
|
55
|
+
:'auth_type' => :'String',
|
|
56
|
+
:'bucket' => :'String',
|
|
57
|
+
:'endpoint_url' => :'String',
|
|
58
|
+
:'prefix' => :'String',
|
|
59
|
+
:'region' => :'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::NetappStorage` 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::NetappStorage`. 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?(:'access_key_id')
|
|
85
|
+
self.access_key_id = attributes[:'access_key_id']
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
if attributes.key?(:'access_key_secret')
|
|
89
|
+
self.access_key_secret = attributes[:'access_key_secret']
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
if attributes.key?(:'auth_type')
|
|
93
|
+
self.auth_type = attributes[:'auth_type']
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'bucket')
|
|
97
|
+
self.bucket = attributes[:'bucket']
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if attributes.key?(:'endpoint_url')
|
|
101
|
+
self.endpoint_url = attributes[:'endpoint_url']
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
if attributes.key?(:'prefix')
|
|
105
|
+
self.prefix = attributes[:'prefix']
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if attributes.key?(:'region')
|
|
109
|
+
self.region = attributes[:'region']
|
|
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
|
+
access_key_id == o.access_key_id &&
|
|
134
|
+
access_key_secret == o.access_key_secret &&
|
|
135
|
+
auth_type == o.auth_type &&
|
|
136
|
+
bucket == o.bucket &&
|
|
137
|
+
endpoint_url == o.endpoint_url &&
|
|
138
|
+
prefix == o.prefix &&
|
|
139
|
+
region == o.region
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# @see the `==` method
|
|
143
|
+
# @param [Object] Object to be compared
|
|
144
|
+
def eql?(o)
|
|
145
|
+
self == o
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# Calculates hash code according to all attributes.
|
|
149
|
+
# @return [Integer] Hash code
|
|
150
|
+
def hash
|
|
151
|
+
[access_key_id, access_key_secret, auth_type, bucket, endpoint_url, prefix, region].hash
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# Builds the object from hash
|
|
155
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
156
|
+
# @return [Object] Returns the model itself
|
|
157
|
+
def self.build_from_hash(attributes)
|
|
158
|
+
return nil unless attributes.is_a?(Hash)
|
|
159
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
160
|
+
transformed_hash = {}
|
|
161
|
+
openapi_types.each_pair do |key, type|
|
|
162
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
163
|
+
transformed_hash["#{key}"] = nil
|
|
164
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
165
|
+
# check to ensure the input is an array given that the attribute
|
|
166
|
+
# is documented as an array but the input is not
|
|
167
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
168
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
169
|
+
end
|
|
170
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
171
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
172
|
+
end
|
|
173
|
+
end
|
|
174
|
+
new(transformed_hash)
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
# Deserializes the data based on type
|
|
178
|
+
# @param string type Data type
|
|
179
|
+
# @param string value Value to be deserialized
|
|
180
|
+
# @return [Object] Deserialized data
|
|
181
|
+
def self._deserialize(type, value)
|
|
182
|
+
case type.to_sym
|
|
183
|
+
when :Time
|
|
184
|
+
Time.parse(value)
|
|
185
|
+
when :Date
|
|
186
|
+
Date.parse(value)
|
|
187
|
+
when :String
|
|
188
|
+
value.to_s
|
|
189
|
+
when :Integer
|
|
190
|
+
value.to_i
|
|
191
|
+
when :Float
|
|
192
|
+
value.to_f
|
|
193
|
+
when :Boolean
|
|
194
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
195
|
+
true
|
|
196
|
+
else
|
|
197
|
+
false
|
|
198
|
+
end
|
|
199
|
+
when :Object
|
|
200
|
+
# generic object (usually a Hash), return directly
|
|
201
|
+
value
|
|
202
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
203
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
204
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
205
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
206
|
+
k_type = Regexp.last_match[:k_type]
|
|
207
|
+
v_type = Regexp.last_match[:v_type]
|
|
208
|
+
{}.tap do |hash|
|
|
209
|
+
value.each do |k, v|
|
|
210
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
211
|
+
end
|
|
212
|
+
end
|
|
213
|
+
else # model
|
|
214
|
+
# models (e.g. Pet) or oneOf
|
|
215
|
+
klass = Akeyless.const_get(type)
|
|
216
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
217
|
+
end
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# Returns the string representation of the object
|
|
221
|
+
# @return [String] String presentation of the object
|
|
222
|
+
def to_s
|
|
223
|
+
to_hash.to_s
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
227
|
+
# @return [Hash] Returns the object in the form of hash
|
|
228
|
+
def to_body
|
|
229
|
+
to_hash
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
# Returns the object in the form of hash
|
|
233
|
+
# @return [Hash] Returns the object in the form of hash
|
|
234
|
+
def to_hash
|
|
235
|
+
hash = {}
|
|
236
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
237
|
+
value = self.send(attr)
|
|
238
|
+
if value.nil?
|
|
239
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
240
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
hash[param] = _to_hash(value)
|
|
244
|
+
end
|
|
245
|
+
hash
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
# Outputs non-array value in the form of hash
|
|
249
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
250
|
+
# @param [Object] value Any valid value
|
|
251
|
+
# @return [Hash] Returns the value in the form of hash
|
|
252
|
+
def _to_hash(value)
|
|
253
|
+
if value.is_a?(Array)
|
|
254
|
+
value.compact.map { |v| _to_hash(v) }
|
|
255
|
+
elsif value.is_a?(Hash)
|
|
256
|
+
{}.tap do |hash|
|
|
257
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
258
|
+
end
|
|
259
|
+
elsif value.respond_to? :to_hash
|
|
260
|
+
value.to_hash
|
|
261
|
+
else
|
|
262
|
+
value
|
|
263
|
+
end
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
end
|
|
@@ -25,7 +25,7 @@ module Akeyless
|
|
|
25
25
|
# Authentication token (see `/auth` and `/configure`)
|
|
26
26
|
attr_accessor :token
|
|
27
27
|
|
|
28
|
-
# Type of object (item, am, role)
|
|
28
|
+
# Type of object (item, am, role, target, sra, ara)
|
|
29
29
|
attr_accessor :type
|
|
30
30
|
|
|
31
31
|
# The universal identity token, Required only for universal_identity authentication
|
|
@@ -57,6 +57,9 @@ module Akeyless
|
|
|
57
57
|
# The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
|
|
58
58
|
attr_accessor :key
|
|
59
59
|
|
|
60
|
+
# Lock this secret for read/update while an SRA session is active
|
|
61
|
+
attr_accessor :lock_during_sra_session
|
|
62
|
+
|
|
60
63
|
# Set the maximum number of versions, limited by the account settings defaults.
|
|
61
64
|
attr_accessor :max_versions
|
|
62
65
|
|
|
@@ -66,7 +69,7 @@ module Akeyless
|
|
|
66
69
|
# The length of the password to be generated
|
|
67
70
|
attr_accessor :password_length
|
|
68
71
|
|
|
69
|
-
#
|
|
72
|
+
# StringOrBool accepts JSON strings, booleans, and numbers for backward compatibility with older SDK versions that send boolean values for rotate-after-disconnect.
|
|
70
73
|
attr_accessor :rotate_after_disconnect
|
|
71
74
|
|
|
72
75
|
# How many days before the rotation of the item would you like to be notified
|
|
@@ -125,6 +128,7 @@ module Akeyless
|
|
|
125
128
|
:'item_custom_fields' => :'item-custom-fields',
|
|
126
129
|
:'json' => :'json',
|
|
127
130
|
:'key' => :'key',
|
|
131
|
+
:'lock_during_sra_session' => :'lock-during-sra-session',
|
|
128
132
|
:'max_versions' => :'max-versions',
|
|
129
133
|
:'name' => :'name',
|
|
130
134
|
:'password_length' => :'password-length',
|
|
@@ -167,6 +171,7 @@ module Akeyless
|
|
|
167
171
|
:'item_custom_fields' => :'Hash<String, String>',
|
|
168
172
|
:'json' => :'Boolean',
|
|
169
173
|
:'key' => :'String',
|
|
174
|
+
:'lock_during_sra_session' => :'String',
|
|
170
175
|
:'max_versions' => :'String',
|
|
171
176
|
:'name' => :'String',
|
|
172
177
|
:'password_length' => :'String',
|
|
@@ -272,6 +277,10 @@ module Akeyless
|
|
|
272
277
|
self.key = attributes[:'key']
|
|
273
278
|
end
|
|
274
279
|
|
|
280
|
+
if attributes.key?(:'lock_during_sra_session')
|
|
281
|
+
self.lock_during_sra_session = attributes[:'lock_during_sra_session']
|
|
282
|
+
end
|
|
283
|
+
|
|
275
284
|
if attributes.key?(:'max_versions')
|
|
276
285
|
self.max_versions = attributes[:'max_versions']
|
|
277
286
|
end
|
|
@@ -288,8 +297,6 @@ module Akeyless
|
|
|
288
297
|
|
|
289
298
|
if attributes.key?(:'rotate_after_disconnect')
|
|
290
299
|
self.rotate_after_disconnect = attributes[:'rotate_after_disconnect']
|
|
291
|
-
else
|
|
292
|
-
self.rotate_after_disconnect = 'false'
|
|
293
300
|
end
|
|
294
301
|
|
|
295
302
|
if attributes.key?(:'rotation_event_in')
|
|
@@ -402,6 +409,7 @@ module Akeyless
|
|
|
402
409
|
item_custom_fields == o.item_custom_fields &&
|
|
403
410
|
json == o.json &&
|
|
404
411
|
key == o.key &&
|
|
412
|
+
lock_during_sra_session == o.lock_during_sra_session &&
|
|
405
413
|
max_versions == o.max_versions &&
|
|
406
414
|
name == o.name &&
|
|
407
415
|
password_length == o.password_length &&
|
|
@@ -430,7 +438,7 @@ module Akeyless
|
|
|
430
438
|
# Calculates hash code according to all attributes.
|
|
431
439
|
# @return [Integer] Hash code
|
|
432
440
|
def hash
|
|
433
|
-
[api_id, api_key, authentication_credentials, auto_rotate, aws_region, delete_protection, description, grace_rotation, grace_rotation_hour, grace_rotation_interval, grace_rotation_timing, item_custom_fields, json, key, max_versions, name, password_length, rotate_after_disconnect, rotation_event_in, rotation_hour, rotation_interval, rotator_type, secure_access_aws_account_id, secure_access_aws_native_cli, secure_access_bastion_issuer, secure_access_certificate_issuer, secure_access_enable, tags, target_name, token, uid_token].hash
|
|
441
|
+
[api_id, api_key, authentication_credentials, auto_rotate, aws_region, delete_protection, description, grace_rotation, grace_rotation_hour, grace_rotation_interval, grace_rotation_timing, item_custom_fields, json, key, lock_during_sra_session, max_versions, name, password_length, rotate_after_disconnect, rotation_event_in, rotation_hour, rotation_interval, rotator_type, secure_access_aws_account_id, secure_access_aws_native_cli, secure_access_bastion_issuer, secure_access_certificate_issuer, secure_access_enable, tags, target_name, token, uid_token].hash
|
|
434
442
|
end
|
|
435
443
|
|
|
436
444
|
# Builds the object from hash
|
|
@@ -60,6 +60,9 @@ module Akeyless
|
|
|
60
60
|
# The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
|
|
61
61
|
attr_accessor :key
|
|
62
62
|
|
|
63
|
+
# Lock this secret for read/update while an SRA session is active
|
|
64
|
+
attr_accessor :lock_during_sra_session
|
|
65
|
+
|
|
63
66
|
# Set the maximum number of versions, limited by the account settings defaults.
|
|
64
67
|
attr_accessor :max_versions
|
|
65
68
|
|
|
@@ -75,7 +78,7 @@ module Akeyless
|
|
|
75
78
|
# The name of the storage account (only relevant when explicitly-set-sa=true)
|
|
76
79
|
attr_accessor :resource_name
|
|
77
80
|
|
|
78
|
-
#
|
|
81
|
+
# StringOrBool accepts JSON strings, booleans, and numbers for backward compatibility with older SDK versions that send boolean values for rotate-after-disconnect.
|
|
79
82
|
attr_accessor :rotate_after_disconnect
|
|
80
83
|
|
|
81
84
|
# How many days before the rotation of the item would you like to be notified
|
|
@@ -144,6 +147,7 @@ module Akeyless
|
|
|
144
147
|
:'item_custom_fields' => :'item-custom-fields',
|
|
145
148
|
:'json' => :'json',
|
|
146
149
|
:'key' => :'key',
|
|
150
|
+
:'lock_during_sra_session' => :'lock-during-sra-session',
|
|
147
151
|
:'max_versions' => :'max-versions',
|
|
148
152
|
:'name' => :'name',
|
|
149
153
|
:'password_length' => :'password-length',
|
|
@@ -192,6 +196,7 @@ module Akeyless
|
|
|
192
196
|
:'item_custom_fields' => :'Hash<String, String>',
|
|
193
197
|
:'json' => :'Boolean',
|
|
194
198
|
:'key' => :'String',
|
|
199
|
+
:'lock_during_sra_session' => :'String',
|
|
195
200
|
:'max_versions' => :'String',
|
|
196
201
|
:'name' => :'String',
|
|
197
202
|
:'password_length' => :'String',
|
|
@@ -306,6 +311,10 @@ module Akeyless
|
|
|
306
311
|
self.key = attributes[:'key']
|
|
307
312
|
end
|
|
308
313
|
|
|
314
|
+
if attributes.key?(:'lock_during_sra_session')
|
|
315
|
+
self.lock_during_sra_session = attributes[:'lock_during_sra_session']
|
|
316
|
+
end
|
|
317
|
+
|
|
309
318
|
if attributes.key?(:'max_versions')
|
|
310
319
|
self.max_versions = attributes[:'max_versions']
|
|
311
320
|
end
|
|
@@ -330,8 +339,6 @@ module Akeyless
|
|
|
330
339
|
|
|
331
340
|
if attributes.key?(:'rotate_after_disconnect')
|
|
332
341
|
self.rotate_after_disconnect = attributes[:'rotate_after_disconnect']
|
|
333
|
-
else
|
|
334
|
-
self.rotate_after_disconnect = 'false'
|
|
335
342
|
end
|
|
336
343
|
|
|
337
344
|
if attributes.key?(:'rotation_event_in')
|
|
@@ -463,6 +470,7 @@ module Akeyless
|
|
|
463
470
|
item_custom_fields == o.item_custom_fields &&
|
|
464
471
|
json == o.json &&
|
|
465
472
|
key == o.key &&
|
|
473
|
+
lock_during_sra_session == o.lock_during_sra_session &&
|
|
466
474
|
max_versions == o.max_versions &&
|
|
467
475
|
name == o.name &&
|
|
468
476
|
password_length == o.password_length &&
|
|
@@ -496,7 +504,7 @@ module Akeyless
|
|
|
496
504
|
# Calculates hash code according to all attributes.
|
|
497
505
|
# @return [Integer] Hash code
|
|
498
506
|
def hash
|
|
499
|
-
[api_id, api_key, application_id, authentication_credentials, auto_rotate, delete_protection, description, explicitly_set_sa, grace_rotation, grace_rotation_hour, grace_rotation_interval, grace_rotation_timing, item_custom_fields, json, key, max_versions, name, password_length, resource_group_name, resource_name, rotate_after_disconnect, rotation_event_in, rotation_hour, rotation_interval, rotator_type, secure_access_disable_concurrent_connections, secure_access_enable, secure_access_url, secure_access_web, secure_access_web_browsing, secure_access_web_proxy, storage_account_key_name, tags, target_name, token, uid_token, username].hash
|
|
507
|
+
[api_id, api_key, application_id, authentication_credentials, auto_rotate, delete_protection, description, explicitly_set_sa, grace_rotation, grace_rotation_hour, grace_rotation_interval, grace_rotation_timing, item_custom_fields, json, key, lock_during_sra_session, max_versions, name, password_length, resource_group_name, resource_name, rotate_after_disconnect, rotation_event_in, rotation_hour, rotation_interval, rotator_type, secure_access_disable_concurrent_connections, secure_access_enable, secure_access_url, secure_access_web, secure_access_web_browsing, secure_access_web_proxy, storage_account_key_name, tags, target_name, token, uid_token, username].hash
|
|
500
508
|
end
|
|
501
509
|
|
|
502
510
|
# Builds the object from hash
|
|
@@ -42,6 +42,9 @@ module Akeyless
|
|
|
42
42
|
# The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
|
|
43
43
|
attr_accessor :key
|
|
44
44
|
|
|
45
|
+
# Lock this secret for read/update while an SRA session is active
|
|
46
|
+
attr_accessor :lock_during_sra_session
|
|
47
|
+
|
|
45
48
|
# Set the maximum number of versions, limited by the account settings defaults.
|
|
46
49
|
attr_accessor :max_versions
|
|
47
50
|
|
|
@@ -51,7 +54,7 @@ module Akeyless
|
|
|
51
54
|
# The length of the password to be generated
|
|
52
55
|
attr_accessor :password_length
|
|
53
56
|
|
|
54
|
-
#
|
|
57
|
+
# StringOrBool accepts JSON strings, booleans, and numbers for backward compatibility with older SDK versions that send boolean values for rotate-after-disconnect.
|
|
55
58
|
attr_accessor :rotate_after_disconnect
|
|
56
59
|
|
|
57
60
|
# How many days before the rotation of the item would you like to be notified
|
|
@@ -138,6 +141,7 @@ module Akeyless
|
|
|
138
141
|
:'item_custom_fields' => :'item-custom-fields',
|
|
139
142
|
:'json' => :'json',
|
|
140
143
|
:'key' => :'key',
|
|
144
|
+
:'lock_during_sra_session' => :'lock-during-sra-session',
|
|
141
145
|
:'max_versions' => :'max-versions',
|
|
142
146
|
:'name' => :'name',
|
|
143
147
|
:'password_length' => :'password-length',
|
|
@@ -186,6 +190,7 @@ module Akeyless
|
|
|
186
190
|
:'item_custom_fields' => :'Hash<String, String>',
|
|
187
191
|
:'json' => :'Boolean',
|
|
188
192
|
:'key' => :'String',
|
|
193
|
+
:'lock_during_sra_session' => :'String',
|
|
189
194
|
:'max_versions' => :'String',
|
|
190
195
|
:'name' => :'String',
|
|
191
196
|
:'password_length' => :'String',
|
|
@@ -280,6 +285,10 @@ module Akeyless
|
|
|
280
285
|
self.key = attributes[:'key']
|
|
281
286
|
end
|
|
282
287
|
|
|
288
|
+
if attributes.key?(:'lock_during_sra_session')
|
|
289
|
+
self.lock_during_sra_session = attributes[:'lock_during_sra_session']
|
|
290
|
+
end
|
|
291
|
+
|
|
283
292
|
if attributes.key?(:'max_versions')
|
|
284
293
|
self.max_versions = attributes[:'max_versions']
|
|
285
294
|
end
|
|
@@ -296,8 +305,6 @@ module Akeyless
|
|
|
296
305
|
|
|
297
306
|
if attributes.key?(:'rotate_after_disconnect')
|
|
298
307
|
self.rotate_after_disconnect = attributes[:'rotate_after_disconnect']
|
|
299
|
-
else
|
|
300
|
-
self.rotate_after_disconnect = 'false'
|
|
301
308
|
end
|
|
302
309
|
|
|
303
310
|
if attributes.key?(:'rotation_event_in')
|
|
@@ -454,6 +461,7 @@ module Akeyless
|
|
|
454
461
|
item_custom_fields == o.item_custom_fields &&
|
|
455
462
|
json == o.json &&
|
|
456
463
|
key == o.key &&
|
|
464
|
+
lock_during_sra_session == o.lock_during_sra_session &&
|
|
457
465
|
max_versions == o.max_versions &&
|
|
458
466
|
name == o.name &&
|
|
459
467
|
password_length == o.password_length &&
|
|
@@ -493,7 +501,7 @@ module Akeyless
|
|
|
493
501
|
# Calculates hash code according to all attributes.
|
|
494
502
|
# @return [Integer] Hash code
|
|
495
503
|
def hash
|
|
496
|
-
[authentication_credentials, auto_rotate, custom_payload, delete_protection, description, enable_password_policy, item_custom_fields, json, key, max_versions, name, password_length, rotate_after_disconnect, rotation_event_in, rotation_hour, rotation_interval, secure_access_allow_external_user, secure_access_bastion_issuer, secure_access_certificate_issuer, secure_access_enable, secure_access_host, secure_access_rdp_domain, secure_access_rdp_user, secure_access_ssh_user, secure_access_url, secure_access_web, secure_access_web_browsing, secure_access_web_proxy, tags, target_name, timeout_sec, token, uid_token, use_capital_letters, use_lower_letters, use_numbers, use_special_characters].hash
|
|
504
|
+
[authentication_credentials, auto_rotate, custom_payload, delete_protection, description, enable_password_policy, item_custom_fields, json, key, lock_during_sra_session, max_versions, name, password_length, rotate_after_disconnect, rotation_event_in, rotation_hour, rotation_interval, secure_access_allow_external_user, secure_access_bastion_issuer, secure_access_certificate_issuer, secure_access_enable, secure_access_host, secure_access_rdp_domain, secure_access_rdp_user, secure_access_ssh_user, secure_access_url, secure_access_web, secure_access_web_browsing, secure_access_web_proxy, tags, target_name, timeout_sec, token, uid_token, use_capital_letters, use_lower_letters, use_numbers, use_special_characters].hash
|
|
497
505
|
end
|
|
498
506
|
|
|
499
507
|
# Builds the object from hash
|
|
@@ -41,6 +41,9 @@ module Akeyless
|
|
|
41
41
|
# The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
|
|
42
42
|
attr_accessor :key
|
|
43
43
|
|
|
44
|
+
# Lock this secret for read/update while an SRA session is active
|
|
45
|
+
attr_accessor :lock_during_sra_session
|
|
46
|
+
|
|
44
47
|
# Set the maximum number of versions, limited by the account settings defaults.
|
|
45
48
|
attr_accessor :max_versions
|
|
46
49
|
|
|
@@ -50,7 +53,7 @@ module Akeyless
|
|
|
50
53
|
# The length of the password to be generated
|
|
51
54
|
attr_accessor :password_length
|
|
52
55
|
|
|
53
|
-
#
|
|
56
|
+
# StringOrBool accepts JSON strings, booleans, and numbers for backward compatibility with older SDK versions that send boolean values for rotate-after-disconnect.
|
|
54
57
|
attr_accessor :rotate_after_disconnect
|
|
55
58
|
|
|
56
59
|
# rotated-username password (relevant only for rotator-type=ldap)
|
|
@@ -131,6 +134,7 @@ module Akeyless
|
|
|
131
134
|
:'item_custom_fields' => :'item-custom-fields',
|
|
132
135
|
:'json' => :'json',
|
|
133
136
|
:'key' => :'key',
|
|
137
|
+
:'lock_during_sra_session' => :'lock-during-sra-session',
|
|
134
138
|
:'max_versions' => :'max-versions',
|
|
135
139
|
:'name' => :'name',
|
|
136
140
|
:'password_length' => :'password-length',
|
|
@@ -177,6 +181,7 @@ module Akeyless
|
|
|
177
181
|
:'item_custom_fields' => :'Hash<String, String>',
|
|
178
182
|
:'json' => :'Boolean',
|
|
179
183
|
:'key' => :'String',
|
|
184
|
+
:'lock_during_sra_session' => :'String',
|
|
180
185
|
:'max_versions' => :'String',
|
|
181
186
|
:'name' => :'String',
|
|
182
187
|
:'password_length' => :'String',
|
|
@@ -269,6 +274,10 @@ module Akeyless
|
|
|
269
274
|
self.key = attributes[:'key']
|
|
270
275
|
end
|
|
271
276
|
|
|
277
|
+
if attributes.key?(:'lock_during_sra_session')
|
|
278
|
+
self.lock_during_sra_session = attributes[:'lock_during_sra_session']
|
|
279
|
+
end
|
|
280
|
+
|
|
272
281
|
if attributes.key?(:'max_versions')
|
|
273
282
|
self.max_versions = attributes[:'max_versions']
|
|
274
283
|
end
|
|
@@ -285,8 +294,6 @@ module Akeyless
|
|
|
285
294
|
|
|
286
295
|
if attributes.key?(:'rotate_after_disconnect')
|
|
287
296
|
self.rotate_after_disconnect = attributes[:'rotate_after_disconnect']
|
|
288
|
-
else
|
|
289
|
-
self.rotate_after_disconnect = 'false'
|
|
290
297
|
end
|
|
291
298
|
|
|
292
299
|
if attributes.key?(:'rotated_password')
|
|
@@ -442,6 +449,7 @@ module Akeyless
|
|
|
442
449
|
item_custom_fields == o.item_custom_fields &&
|
|
443
450
|
json == o.json &&
|
|
444
451
|
key == o.key &&
|
|
452
|
+
lock_during_sra_session == o.lock_during_sra_session &&
|
|
445
453
|
max_versions == o.max_versions &&
|
|
446
454
|
name == o.name &&
|
|
447
455
|
password_length == o.password_length &&
|
|
@@ -479,7 +487,7 @@ module Akeyless
|
|
|
479
487
|
# Calculates hash code according to all attributes.
|
|
480
488
|
# @return [Integer] Hash code
|
|
481
489
|
def hash
|
|
482
|
-
[provider_type, authentication_credentials, auto_rotate, delete_protection, description, host_provider, item_custom_fields, json, key, max_versions, name, password_length, rotate_after_disconnect, rotated_password, rotated_username, rotation_event_in, rotation_hour, rotation_interval, rotator_type, secure_access_bastion_issuer, secure_access_certificate_issuer, secure_access_enable, secure_access_host, secure_access_rdp_domain, secure_access_url, secure_access_web, secure_access_web_browsing, secure_access_web_proxy, tags, target, target_name, token, uid_token, user_attribute, user_dn].hash
|
|
490
|
+
[provider_type, authentication_credentials, auto_rotate, delete_protection, description, host_provider, item_custom_fields, json, key, lock_during_sra_session, max_versions, name, password_length, rotate_after_disconnect, rotated_password, rotated_username, rotation_event_in, rotation_hour, rotation_interval, rotator_type, secure_access_bastion_issuer, secure_access_certificate_issuer, secure_access_enable, secure_access_host, secure_access_rdp_domain, secure_access_url, secure_access_web, secure_access_web_browsing, secure_access_web_proxy, tags, target, target_name, token, uid_token, user_attribute, user_dn].hash
|
|
483
491
|
end
|
|
484
492
|
|
|
485
493
|
# Builds the object from hash
|
|
@@ -36,6 +36,9 @@ module Akeyless
|
|
|
36
36
|
# The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
|
|
37
37
|
attr_accessor :key
|
|
38
38
|
|
|
39
|
+
# Lock this secret for read/update while an SRA session is active
|
|
40
|
+
attr_accessor :lock_during_sra_session
|
|
41
|
+
|
|
39
42
|
# Set the maximum number of versions, limited by the account settings defaults.
|
|
40
43
|
attr_accessor :max_versions
|
|
41
44
|
|
|
@@ -45,7 +48,7 @@ module Akeyless
|
|
|
45
48
|
# The length of the password to be generated
|
|
46
49
|
attr_accessor :password_length
|
|
47
50
|
|
|
48
|
-
#
|
|
51
|
+
# StringOrBool accepts JSON strings, booleans, and numbers for backward compatibility with older SDK versions that send boolean values for rotate-after-disconnect.
|
|
49
52
|
attr_accessor :rotate_after_disconnect
|
|
50
53
|
|
|
51
54
|
# rotated-username password (relevant only for rotator-type=password)
|
|
@@ -106,6 +109,7 @@ module Akeyless
|
|
|
106
109
|
:'item_custom_fields' => :'item-custom-fields',
|
|
107
110
|
:'json' => :'json',
|
|
108
111
|
:'key' => :'key',
|
|
112
|
+
:'lock_during_sra_session' => :'lock-during-sra-session',
|
|
109
113
|
:'max_versions' => :'max-versions',
|
|
110
114
|
:'name' => :'name',
|
|
111
115
|
:'password_length' => :'password-length',
|
|
@@ -144,6 +148,7 @@ module Akeyless
|
|
|
144
148
|
:'item_custom_fields' => :'Hash<String, String>',
|
|
145
149
|
:'json' => :'Boolean',
|
|
146
150
|
:'key' => :'String',
|
|
151
|
+
:'lock_during_sra_session' => :'String',
|
|
147
152
|
:'max_versions' => :'String',
|
|
148
153
|
:'name' => :'String',
|
|
149
154
|
:'password_length' => :'String',
|
|
@@ -222,6 +227,10 @@ module Akeyless
|
|
|
222
227
|
self.key = attributes[:'key']
|
|
223
228
|
end
|
|
224
229
|
|
|
230
|
+
if attributes.key?(:'lock_during_sra_session')
|
|
231
|
+
self.lock_during_sra_session = attributes[:'lock_during_sra_session']
|
|
232
|
+
end
|
|
233
|
+
|
|
225
234
|
if attributes.key?(:'max_versions')
|
|
226
235
|
self.max_versions = attributes[:'max_versions']
|
|
227
236
|
end
|
|
@@ -238,8 +247,6 @@ module Akeyless
|
|
|
238
247
|
|
|
239
248
|
if attributes.key?(:'rotate_after_disconnect')
|
|
240
249
|
self.rotate_after_disconnect = attributes[:'rotate_after_disconnect']
|
|
241
|
-
else
|
|
242
|
-
self.rotate_after_disconnect = 'false'
|
|
243
250
|
end
|
|
244
251
|
|
|
245
252
|
if attributes.key?(:'rotated_password')
|
|
@@ -361,6 +368,7 @@ module Akeyless
|
|
|
361
368
|
item_custom_fields == o.item_custom_fields &&
|
|
362
369
|
json == o.json &&
|
|
363
370
|
key == o.key &&
|
|
371
|
+
lock_during_sra_session == o.lock_during_sra_session &&
|
|
364
372
|
max_versions == o.max_versions &&
|
|
365
373
|
name == o.name &&
|
|
366
374
|
password_length == o.password_length &&
|
|
@@ -392,7 +400,7 @@ module Akeyless
|
|
|
392
400
|
# Calculates hash code according to all attributes.
|
|
393
401
|
# @return [Integer] Hash code
|
|
394
402
|
def hash
|
|
395
|
-
[authentication_credentials, auto_rotate, delete_protection, description, item_custom_fields, json, key, max_versions, name, password_length, rotate_after_disconnect, rotated_password, rotated_username, rotation_event_in, rotation_hour, rotation_interval, rotator_type, secure_access_bastion_issuer, secure_access_certificate_issuer, secure_access_db_name, secure_access_enable, secure_access_host, secure_access_web, tags, target_name, token, uid_token].hash
|
|
403
|
+
[authentication_credentials, auto_rotate, delete_protection, description, item_custom_fields, json, key, lock_during_sra_session, max_versions, name, password_length, rotate_after_disconnect, rotated_password, rotated_username, rotation_event_in, rotation_hour, rotation_interval, rotator_type, secure_access_bastion_issuer, secure_access_certificate_issuer, secure_access_db_name, secure_access_enable, secure_access_host, secure_access_web, tags, target_name, token, uid_token].hash
|
|
396
404
|
end
|
|
397
405
|
|
|
398
406
|
# Builds the object from hash
|