akeyless 4.2.3 → 4.2.4
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 +43 -2
- data/docs/AccountGeneralSettings.md +2 -0
- data/docs/AwsStorage.md +28 -0
- data/docs/AzureStorage.md +28 -0
- data/docs/BastionConfigReplyObj.md +28 -0
- data/docs/BastionGlobalConf.md +24 -0
- data/docs/Configure.md +8 -0
- data/docs/Connect.md +2 -2
- data/docs/CreateClassicKey.md +8 -0
- data/docs/CreateDFCKey.md +8 -0
- data/docs/DynamicSecretUpdateArtifactory.md +1 -1
- data/docs/DynamicSecretUpdateAws.md +1 -1
- data/docs/DynamicSecretUpdateAzure.md +1 -1
- data/docs/DynamicSecretUpdateCassandra.md +1 -1
- data/docs/DynamicSecretUpdateChef.md +1 -1
- data/docs/DynamicSecretUpdateCustom.md +1 -1
- data/docs/DynamicSecretUpdateDockerhub.md +1 -1
- data/docs/DynamicSecretUpdateEks.md +1 -1
- data/docs/DynamicSecretUpdateGcp.md +1 -1
- data/docs/DynamicSecretUpdateGithub.md +1 -1
- data/docs/DynamicSecretUpdateGitlab.md +1 -1
- data/docs/DynamicSecretUpdateGke.md +1 -1
- data/docs/DynamicSecretUpdateGoogleWorkspace.md +1 -1
- data/docs/DynamicSecretUpdateHanaDb.md +1 -1
- data/docs/DynamicSecretUpdateK8s.md +1 -1
- data/docs/DynamicSecretUpdateLdap.md +1 -1
- data/docs/DynamicSecretUpdateMongoDb.md +1 -1
- data/docs/DynamicSecretUpdateMsSql.md +1 -1
- data/docs/DynamicSecretUpdateMySql.md +1 -1
- data/docs/DynamicSecretUpdateOracleDb.md +1 -1
- data/docs/DynamicSecretUpdatePing.md +1 -1
- data/docs/DynamicSecretUpdateVenafi.md +1 -1
- data/docs/EmailPassAccessRules.md +3 -1
- data/docs/EventForwarderCreateEmail.md +2 -2
- data/docs/EventForwarderCreateServiceNow.md +1 -1
- data/docs/EventForwarderCreateSlack.md +1 -1
- data/docs/EventForwarderCreateWebhook.md +1 -1
- data/docs/EventForwarderUpdateEmail.md +2 -2
- data/docs/EventForwarderUpdateServiceNow.md +1 -1
- data/docs/EventForwarderUpdateSlack.md +1 -1
- data/docs/EventForwarderUpdateWebhook.md +1 -1
- data/docs/GatewayGetRemoteAccess.md +22 -0
- data/docs/GatewayUpdateItem.md +2 -0
- data/docs/GatewayUpdateRemoteAccess.md +36 -0
- data/docs/GatewayUpdateRemoteAccessRdpRecordings.md +46 -0
- data/docs/GwUpdateRemoteAccessSessionLogsAwsS3.md +42 -0
- data/docs/GwUpdateRemoteAccessSessionLogsAzureAnalytics.md +32 -0
- data/docs/GwUpdateRemoteAccessSessionLogsDatadog.md +38 -0
- data/docs/GwUpdateRemoteAccessSessionLogsElasticsearch.md +48 -0
- data/docs/GwUpdateRemoteAccessSessionLogsGoogleChronicle.md +36 -0
- data/docs/GwUpdateRemoteAccessSessionLogsLogstash.md +36 -0
- data/docs/GwUpdateRemoteAccessSessionLogsLogzIo.md +32 -0
- data/docs/GwUpdateRemoteAccessSessionLogsSplunk.md +42 -0
- data/docs/GwUpdateRemoteAccessSessionLogsStdout.md +28 -0
- data/docs/GwUpdateRemoteAccessSessionLogsSumologic.md +34 -0
- data/docs/GwUpdateRemoteAccessSessionLogsSyslog.md +40 -0
- data/docs/ItemGeneralInfo.md +4 -0
- data/docs/NextAutoRotationEvent.md +18 -0
- data/docs/PasswordExpirationInfo.md +24 -0
- data/docs/ResetAccessKey.md +24 -0
- data/docs/ResetAuthMethodAccessKeyOutput.md +18 -0
- data/docs/RollbackSecret.md +2 -0
- data/docs/RotatedSecretCreateAws.md +2 -0
- data/docs/RotatedSecretCreateAzure.md +2 -0
- data/docs/RotatedSecretCreateCassandra.md +2 -0
- data/docs/RotatedSecretCreateCustom.md +2 -0
- data/docs/RotatedSecretCreateDockerhub.md +2 -0
- data/docs/RotatedSecretCreateGcp.md +2 -0
- data/docs/RotatedSecretCreateHanadb.md +2 -0
- data/docs/RotatedSecretCreateLdap.md +2 -0
- data/docs/RotatedSecretCreateMongodb.md +2 -0
- data/docs/RotatedSecretCreateMssql.md +2 -0
- data/docs/RotatedSecretCreateMysql.md +2 -0
- data/docs/RotatedSecretCreateOracledb.md +2 -0
- data/docs/RotatedSecretCreatePostgresql.md +2 -0
- data/docs/RotatedSecretCreateRedis.md +2 -0
- data/docs/RotatedSecretCreateRedshift.md +2 -0
- data/docs/RotatedSecretCreateSnowflake.md +2 -0
- data/docs/RotatedSecretCreateSsh.md +2 -0
- data/docs/RotatedSecretCreateWindows.md +2 -0
- data/docs/RotatedSecretUpdateAws.md +2 -0
- data/docs/RotatedSecretUpdateAzure.md +2 -0
- data/docs/RotatedSecretUpdateCassandra.md +2 -0
- data/docs/RotatedSecretUpdateCustom.md +2 -0
- data/docs/RotatedSecretUpdateDockerhub.md +2 -0
- data/docs/RotatedSecretUpdateGcp.md +2 -0
- data/docs/RotatedSecretUpdateHanadb.md +2 -0
- data/docs/RotatedSecretUpdateLdap.md +2 -0
- data/docs/RotatedSecretUpdateMongodb.md +2 -0
- data/docs/RotatedSecretUpdateMssql.md +2 -0
- data/docs/RotatedSecretUpdateMysql.md +2 -0
- data/docs/RotatedSecretUpdateOracledb.md +2 -0
- data/docs/RotatedSecretUpdatePostgresql.md +2 -0
- data/docs/RotatedSecretUpdateRedis.md +2 -0
- data/docs/RotatedSecretUpdateRedshift.md +2 -0
- data/docs/RotatedSecretUpdateSnowflake.md +2 -0
- data/docs/RotatedSecretUpdateSsh.md +2 -0
- data/docs/RotatedSecretUpdateWindows.md +2 -0
- data/docs/SshBastionConf.md +24 -0
- data/docs/SshBastionSessionTermination.md +26 -0
- data/docs/UpdateAccountSettings.md +6 -0
- data/docs/UpdateItem.md +2 -0
- data/docs/UpdateRotationSettings.md +2 -0
- data/docs/UpdateTarget.md +1 -1
- data/docs/UploadRSA.md +2 -0
- data/docs/V2Api.md +880 -1
- data/docs/WebBastionConf.md +20 -0
- data/docs/WebBastionGuacamole.md +18 -0
- data/docs/WebBastionRdpRecord.md +22 -0
- data/lib/akeyless/api/v2_api.rb +886 -1
- data/lib/akeyless/models/account_general_settings.rb +10 -1
- data/lib/akeyless/models/aws_storage.rb +260 -0
- data/lib/akeyless/models/azure_storage.rb +260 -0
- data/lib/akeyless/models/bastion_config_reply_obj.rb +259 -0
- data/lib/akeyless/models/bastion_global_conf.rb +243 -0
- data/lib/akeyless/models/configure.rb +41 -1
- data/lib/akeyless/models/connect.rb +11 -11
- data/lib/akeyless/models/create_classic_key.rb +45 -1
- data/lib/akeyless/models/create_dfc_key.rb +45 -1
- data/lib/akeyless/models/dynamic_secret_update_artifactory.rb +1 -1
- data/lib/akeyless/models/dynamic_secret_update_aws.rb +1 -1
- data/lib/akeyless/models/dynamic_secret_update_azure.rb +1 -1
- data/lib/akeyless/models/dynamic_secret_update_cassandra.rb +1 -1
- data/lib/akeyless/models/dynamic_secret_update_chef.rb +1 -1
- data/lib/akeyless/models/dynamic_secret_update_custom.rb +1 -1
- data/lib/akeyless/models/dynamic_secret_update_dockerhub.rb +1 -1
- data/lib/akeyless/models/dynamic_secret_update_eks.rb +1 -1
- data/lib/akeyless/models/dynamic_secret_update_gcp.rb +1 -1
- data/lib/akeyless/models/dynamic_secret_update_github.rb +1 -1
- data/lib/akeyless/models/dynamic_secret_update_gitlab.rb +1 -1
- data/lib/akeyless/models/dynamic_secret_update_gke.rb +1 -1
- data/lib/akeyless/models/dynamic_secret_update_google_workspace.rb +1 -1
- data/lib/akeyless/models/dynamic_secret_update_hana_db.rb +1 -1
- data/lib/akeyless/models/dynamic_secret_update_k8s.rb +1 -1
- data/lib/akeyless/models/dynamic_secret_update_ldap.rb +1 -1
- data/lib/akeyless/models/dynamic_secret_update_mongo_db.rb +1 -1
- data/lib/akeyless/models/dynamic_secret_update_ms_sql.rb +1 -1
- data/lib/akeyless/models/dynamic_secret_update_my_sql.rb +1 -1
- data/lib/akeyless/models/dynamic_secret_update_oracle_db.rb +1 -1
- data/lib/akeyless/models/dynamic_secret_update_ping.rb +1 -1
- data/lib/akeyless/models/dynamic_secret_update_venafi.rb +1 -1
- data/lib/akeyless/models/email_pass_access_rules.rb +14 -4
- data/lib/akeyless/models/event_forwarder_create_email.rb +2 -2
- data/lib/akeyless/models/event_forwarder_create_service_now.rb +1 -1
- data/lib/akeyless/models/event_forwarder_create_slack.rb +1 -1
- data/lib/akeyless/models/event_forwarder_create_webhook.rb +1 -1
- data/lib/akeyless/models/event_forwarder_update_email.rb +2 -2
- data/lib/akeyless/models/event_forwarder_update_service_now.rb +1 -1
- data/lib/akeyless/models/event_forwarder_update_slack.rb +1 -1
- data/lib/akeyless/models/event_forwarder_update_webhook.rb +1 -1
- data/lib/akeyless/models/gateway_get_remote_access.rb +238 -0
- data/lib/akeyless/models/gateway_update_item.rb +13 -1
- data/lib/akeyless/models/gateway_update_remote_access.rb +318 -0
- data/lib/akeyless/models/gateway_update_remote_access_rdp_recordings.rb +358 -0
- data/lib/akeyless/models/gw_update_remote_access_session_logs_aws_s3.rb +346 -0
- data/lib/akeyless/models/gw_update_remote_access_session_logs_azure_analytics.rb +294 -0
- data/lib/akeyless/models/gw_update_remote_access_session_logs_datadog.rb +330 -0
- data/lib/akeyless/models/gw_update_remote_access_session_logs_elasticsearch.rb +376 -0
- data/lib/akeyless/models/gw_update_remote_access_session_logs_google_chronicle.rb +314 -0
- data/lib/akeyless/models/gw_update_remote_access_session_logs_logstash.rb +316 -0
- data/lib/akeyless/models/gw_update_remote_access_session_logs_logz_io.rb +294 -0
- data/lib/akeyless/models/gw_update_remote_access_session_logs_splunk.rb +350 -0
- data/lib/akeyless/models/gw_update_remote_access_session_logs_stdout.rb +274 -0
- data/lib/akeyless/models/gw_update_remote_access_session_logs_sumologic.rb +308 -0
- data/lib/akeyless/models/gw_update_remote_access_session_logs_syslog.rb +342 -0
- data/lib/akeyless/models/item_general_info.rb +23 -1
- data/lib/akeyless/models/next_auto_rotation_event.rb +214 -0
- data/lib/akeyless/models/password_expiration_info.rb +242 -0
- data/lib/akeyless/models/reset_access_key.rb +255 -0
- data/lib/akeyless/models/reset_auth_method_access_key_output.rb +215 -0
- data/lib/akeyless/models/rollback_secret.rb +13 -1
- data/lib/akeyless/models/rotated_secret_create_aws.rb +13 -1
- data/lib/akeyless/models/rotated_secret_create_azure.rb +13 -1
- data/lib/akeyless/models/rotated_secret_create_cassandra.rb +13 -1
- data/lib/akeyless/models/rotated_secret_create_custom.rb +13 -1
- data/lib/akeyless/models/rotated_secret_create_dockerhub.rb +13 -1
- data/lib/akeyless/models/rotated_secret_create_gcp.rb +13 -1
- data/lib/akeyless/models/rotated_secret_create_hanadb.rb +13 -1
- data/lib/akeyless/models/rotated_secret_create_ldap.rb +13 -1
- data/lib/akeyless/models/rotated_secret_create_mongodb.rb +13 -1
- data/lib/akeyless/models/rotated_secret_create_mssql.rb +13 -1
- data/lib/akeyless/models/rotated_secret_create_mysql.rb +13 -1
- data/lib/akeyless/models/rotated_secret_create_oracledb.rb +13 -1
- data/lib/akeyless/models/rotated_secret_create_postgresql.rb +13 -1
- data/lib/akeyless/models/rotated_secret_create_redis.rb +13 -1
- data/lib/akeyless/models/rotated_secret_create_redshift.rb +13 -1
- data/lib/akeyless/models/rotated_secret_create_snowflake.rb +13 -1
- data/lib/akeyless/models/rotated_secret_create_ssh.rb +13 -1
- data/lib/akeyless/models/rotated_secret_create_windows.rb +13 -1
- data/lib/akeyless/models/rotated_secret_update_aws.rb +13 -1
- data/lib/akeyless/models/rotated_secret_update_azure.rb +13 -1
- data/lib/akeyless/models/rotated_secret_update_cassandra.rb +13 -1
- data/lib/akeyless/models/rotated_secret_update_custom.rb +13 -1
- data/lib/akeyless/models/rotated_secret_update_dockerhub.rb +13 -1
- data/lib/akeyless/models/rotated_secret_update_gcp.rb +13 -1
- data/lib/akeyless/models/rotated_secret_update_hanadb.rb +13 -1
- data/lib/akeyless/models/rotated_secret_update_ldap.rb +13 -1
- data/lib/akeyless/models/rotated_secret_update_mongodb.rb +13 -1
- data/lib/akeyless/models/rotated_secret_update_mssql.rb +13 -1
- data/lib/akeyless/models/rotated_secret_update_mysql.rb +13 -1
- data/lib/akeyless/models/rotated_secret_update_oracledb.rb +13 -1
- data/lib/akeyless/models/rotated_secret_update_postgresql.rb +13 -1
- data/lib/akeyless/models/rotated_secret_update_redis.rb +13 -1
- data/lib/akeyless/models/rotated_secret_update_redshift.rb +13 -1
- data/lib/akeyless/models/rotated_secret_update_snowflake.rb +13 -1
- data/lib/akeyless/models/rotated_secret_update_ssh.rb +13 -1
- data/lib/akeyless/models/rotated_secret_update_windows.rb +13 -1
- data/lib/akeyless/models/ssh_bastion_conf.rb +241 -0
- data/lib/akeyless/models/ssh_bastion_session_termination.rb +250 -0
- data/lib/akeyless/models/update_account_settings.rb +31 -1
- data/lib/akeyless/models/update_item.rb +13 -1
- data/lib/akeyless/models/update_rotation_settings.rb +13 -1
- data/lib/akeyless/models/update_target.rb +1 -1
- data/lib/akeyless/models/upload_rsa.rb +13 -1
- data/lib/akeyless/models/web_bastion_conf.rb +223 -0
- data/lib/akeyless/models/web_bastion_guacamole.rb +214 -0
- data/lib/akeyless/models/web_bastion_rdp_record.rb +232 -0
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +27 -0
- data/spec/models/aws_storage_spec.rb +66 -0
- data/spec/models/azure_storage_spec.rb +66 -0
- data/spec/models/bastion_config_reply_obj_spec.rb +66 -0
- data/spec/models/bastion_global_conf_spec.rb +54 -0
- data/spec/models/gateway_get_remote_access_spec.rb +48 -0
- data/spec/models/gateway_update_remote_access_rdp_recordings_spec.rb +120 -0
- data/spec/models/gateway_update_remote_access_spec.rb +90 -0
- data/spec/models/gw_update_remote_access_session_logs_aws_s3_spec.rb +108 -0
- data/spec/models/gw_update_remote_access_session_logs_azure_analytics_spec.rb +78 -0
- data/spec/models/gw_update_remote_access_session_logs_datadog_spec.rb +96 -0
- data/spec/models/gw_update_remote_access_session_logs_elasticsearch_spec.rb +126 -0
- data/spec/models/gw_update_remote_access_session_logs_google_chronicle_spec.rb +90 -0
- data/spec/models/gw_update_remote_access_session_logs_logstash_spec.rb +90 -0
- data/spec/models/gw_update_remote_access_session_logs_logz_io_spec.rb +78 -0
- data/spec/models/gw_update_remote_access_session_logs_splunk_spec.rb +108 -0
- data/spec/models/gw_update_remote_access_session_logs_stdout_spec.rb +66 -0
- data/spec/models/gw_update_remote_access_session_logs_sumologic_spec.rb +84 -0
- data/spec/models/gw_update_remote_access_session_logs_syslog_spec.rb +102 -0
- data/spec/models/next_auto_rotation_event_spec.rb +36 -0
- data/spec/models/password_expiration_info_spec.rb +54 -0
- data/spec/models/reset_access_key_spec.rb +54 -0
- data/spec/models/reset_auth_method_access_key_output_spec.rb +36 -0
- data/spec/models/ssh_bastion_conf_spec.rb +54 -0
- data/spec/models/ssh_bastion_session_termination_spec.rb +60 -0
- data/spec/models/web_bastion_conf_spec.rb +42 -0
- data/spec/models/web_bastion_guacamole_spec.rb +36 -0
- data/spec/models/web_bastion_rdp_record_spec.rb +48 -0
- metadata +1089 -981
|
@@ -0,0 +1,255 @@
|
|
|
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: 2.0
|
|
7
|
+
Contact: support@akeyless.io
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.9.0-SNAPSHOT
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Akeyless
|
|
17
|
+
# resetAccessKey is a command that resets an access key
|
|
18
|
+
class ResetAccessKey
|
|
19
|
+
# Set output format to JSON
|
|
20
|
+
attr_accessor :json
|
|
21
|
+
|
|
22
|
+
# Auth Method name
|
|
23
|
+
attr_accessor :name
|
|
24
|
+
|
|
25
|
+
# Authentication token (see `/auth` and `/configure`)
|
|
26
|
+
attr_accessor :token
|
|
27
|
+
|
|
28
|
+
# The universal identity token, Required only for universal_identity authentication
|
|
29
|
+
attr_accessor :uid_token
|
|
30
|
+
|
|
31
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
32
|
+
def self.attribute_map
|
|
33
|
+
{
|
|
34
|
+
:'json' => :'json',
|
|
35
|
+
:'name' => :'name',
|
|
36
|
+
:'token' => :'token',
|
|
37
|
+
:'uid_token' => :'uid-token'
|
|
38
|
+
}
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Returns all the JSON keys this model knows about
|
|
42
|
+
def self.acceptable_attributes
|
|
43
|
+
attribute_map.values
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Attribute type mapping.
|
|
47
|
+
def self.openapi_types
|
|
48
|
+
{
|
|
49
|
+
:'json' => :'Boolean',
|
|
50
|
+
:'name' => :'String',
|
|
51
|
+
:'token' => :'String',
|
|
52
|
+
:'uid_token' => :'String'
|
|
53
|
+
}
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# List of attributes with nullable: true
|
|
57
|
+
def self.openapi_nullable
|
|
58
|
+
Set.new([
|
|
59
|
+
])
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Initializes the object
|
|
63
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
64
|
+
def initialize(attributes = {})
|
|
65
|
+
if (!attributes.is_a?(Hash))
|
|
66
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::ResetAccessKey` initialize method"
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
70
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
71
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
72
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::ResetAccessKey`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
73
|
+
end
|
|
74
|
+
h[k.to_sym] = v
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'json')
|
|
78
|
+
self.json = attributes[:'json']
|
|
79
|
+
else
|
|
80
|
+
self.json = false
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
if attributes.key?(:'name')
|
|
84
|
+
self.name = attributes[:'name']
|
|
85
|
+
else
|
|
86
|
+
self.name = nil
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
if attributes.key?(:'token')
|
|
90
|
+
self.token = attributes[:'token']
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
if attributes.key?(:'uid_token')
|
|
94
|
+
self.uid_token = attributes[:'uid_token']
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
99
|
+
# @return Array for valid properties with the reasons
|
|
100
|
+
def list_invalid_properties
|
|
101
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
102
|
+
invalid_properties = Array.new
|
|
103
|
+
if @name.nil?
|
|
104
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
invalid_properties
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Check to see if the all the properties in the model are valid
|
|
111
|
+
# @return true if the model is valid
|
|
112
|
+
def valid?
|
|
113
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
114
|
+
return false if @name.nil?
|
|
115
|
+
true
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# Checks equality by comparing each attribute.
|
|
119
|
+
# @param [Object] Object to be compared
|
|
120
|
+
def ==(o)
|
|
121
|
+
return true if self.equal?(o)
|
|
122
|
+
self.class == o.class &&
|
|
123
|
+
json == o.json &&
|
|
124
|
+
name == o.name &&
|
|
125
|
+
token == o.token &&
|
|
126
|
+
uid_token == o.uid_token
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# @see the `==` method
|
|
130
|
+
# @param [Object] Object to be compared
|
|
131
|
+
def eql?(o)
|
|
132
|
+
self == o
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Calculates hash code according to all attributes.
|
|
136
|
+
# @return [Integer] Hash code
|
|
137
|
+
def hash
|
|
138
|
+
[json, name, token, uid_token].hash
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# Builds the object from hash
|
|
142
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
143
|
+
# @return [Object] Returns the model itself
|
|
144
|
+
def self.build_from_hash(attributes)
|
|
145
|
+
return nil unless attributes.is_a?(Hash)
|
|
146
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
147
|
+
transformed_hash = {}
|
|
148
|
+
openapi_types.each_pair do |key, type|
|
|
149
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
150
|
+
transformed_hash["#{key}"] = nil
|
|
151
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
152
|
+
# check to ensure the input is an array given that the attribute
|
|
153
|
+
# is documented as an array but the input is not
|
|
154
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
155
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
156
|
+
end
|
|
157
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
158
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
new(transformed_hash)
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# Deserializes the data based on type
|
|
165
|
+
# @param string type Data type
|
|
166
|
+
# @param string value Value to be deserialized
|
|
167
|
+
# @return [Object] Deserialized data
|
|
168
|
+
def self._deserialize(type, value)
|
|
169
|
+
case type.to_sym
|
|
170
|
+
when :Time
|
|
171
|
+
Time.parse(value)
|
|
172
|
+
when :Date
|
|
173
|
+
Date.parse(value)
|
|
174
|
+
when :String
|
|
175
|
+
value.to_s
|
|
176
|
+
when :Integer
|
|
177
|
+
value.to_i
|
|
178
|
+
when :Float
|
|
179
|
+
value.to_f
|
|
180
|
+
when :Boolean
|
|
181
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
182
|
+
true
|
|
183
|
+
else
|
|
184
|
+
false
|
|
185
|
+
end
|
|
186
|
+
when :Object
|
|
187
|
+
# generic object (usually a Hash), return directly
|
|
188
|
+
value
|
|
189
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
190
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
191
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
192
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
193
|
+
k_type = Regexp.last_match[:k_type]
|
|
194
|
+
v_type = Regexp.last_match[:v_type]
|
|
195
|
+
{}.tap do |hash|
|
|
196
|
+
value.each do |k, v|
|
|
197
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
198
|
+
end
|
|
199
|
+
end
|
|
200
|
+
else # model
|
|
201
|
+
# models (e.g. Pet) or oneOf
|
|
202
|
+
klass = Akeyless.const_get(type)
|
|
203
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
204
|
+
end
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
# Returns the string representation of the object
|
|
208
|
+
# @return [String] String presentation of the object
|
|
209
|
+
def to_s
|
|
210
|
+
to_hash.to_s
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
214
|
+
# @return [Hash] Returns the object in the form of hash
|
|
215
|
+
def to_body
|
|
216
|
+
to_hash
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
# Returns the object in the form of hash
|
|
220
|
+
# @return [Hash] Returns the object in the form of hash
|
|
221
|
+
def to_hash
|
|
222
|
+
hash = {}
|
|
223
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
224
|
+
value = self.send(attr)
|
|
225
|
+
if value.nil?
|
|
226
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
227
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
hash[param] = _to_hash(value)
|
|
231
|
+
end
|
|
232
|
+
hash
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
# Outputs non-array value in the form of hash
|
|
236
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
237
|
+
# @param [Object] value Any valid value
|
|
238
|
+
# @return [Hash] Returns the value in the form of hash
|
|
239
|
+
def _to_hash(value)
|
|
240
|
+
if value.is_a?(Array)
|
|
241
|
+
value.compact.map { |v| _to_hash(v) }
|
|
242
|
+
elsif value.is_a?(Hash)
|
|
243
|
+
{}.tap do |hash|
|
|
244
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
245
|
+
end
|
|
246
|
+
elsif value.respond_to? :to_hash
|
|
247
|
+
value.to_hash
|
|
248
|
+
else
|
|
249
|
+
value
|
|
250
|
+
end
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
end
|
|
@@ -0,0 +1,215 @@
|
|
|
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: 2.0
|
|
7
|
+
Contact: support@akeyless.io
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.9.0-SNAPSHOT
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Akeyless
|
|
17
|
+
# ResetAuthMethodAccessKeyOutput defines output of ResetAuthMethodAccessKey operation.
|
|
18
|
+
class ResetAuthMethodAccessKeyOutput
|
|
19
|
+
attr_accessor :access_key
|
|
20
|
+
|
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
|
+
def self.attribute_map
|
|
23
|
+
{
|
|
24
|
+
:'access_key' => :'access_key'
|
|
25
|
+
}
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Returns all the JSON keys this model knows about
|
|
29
|
+
def self.acceptable_attributes
|
|
30
|
+
attribute_map.values
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Attribute type mapping.
|
|
34
|
+
def self.openapi_types
|
|
35
|
+
{
|
|
36
|
+
:'access_key' => :'String'
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# List of attributes with nullable: true
|
|
41
|
+
def self.openapi_nullable
|
|
42
|
+
Set.new([
|
|
43
|
+
])
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Initializes the object
|
|
47
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
48
|
+
def initialize(attributes = {})
|
|
49
|
+
if (!attributes.is_a?(Hash))
|
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::ResetAuthMethodAccessKeyOutput` initialize method"
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
54
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
55
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::ResetAuthMethodAccessKeyOutput`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
57
|
+
end
|
|
58
|
+
h[k.to_sym] = v
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if attributes.key?(:'access_key')
|
|
62
|
+
self.access_key = attributes[:'access_key']
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
67
|
+
# @return Array for valid properties with the reasons
|
|
68
|
+
def list_invalid_properties
|
|
69
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
70
|
+
invalid_properties = Array.new
|
|
71
|
+
invalid_properties
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Check to see if the all the properties in the model are valid
|
|
75
|
+
# @return true if the model is valid
|
|
76
|
+
def valid?
|
|
77
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
78
|
+
true
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Checks equality by comparing each attribute.
|
|
82
|
+
# @param [Object] Object to be compared
|
|
83
|
+
def ==(o)
|
|
84
|
+
return true if self.equal?(o)
|
|
85
|
+
self.class == o.class &&
|
|
86
|
+
access_key == o.access_key
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# @see the `==` method
|
|
90
|
+
# @param [Object] Object to be compared
|
|
91
|
+
def eql?(o)
|
|
92
|
+
self == o
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Calculates hash code according to all attributes.
|
|
96
|
+
# @return [Integer] Hash code
|
|
97
|
+
def hash
|
|
98
|
+
[access_key].hash
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Builds the object from hash
|
|
102
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
103
|
+
# @return [Object] Returns the model itself
|
|
104
|
+
def self.build_from_hash(attributes)
|
|
105
|
+
return nil unless attributes.is_a?(Hash)
|
|
106
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
107
|
+
transformed_hash = {}
|
|
108
|
+
openapi_types.each_pair do |key, type|
|
|
109
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
110
|
+
transformed_hash["#{key}"] = nil
|
|
111
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
112
|
+
# check to ensure the input is an array given that the attribute
|
|
113
|
+
# is documented as an array but the input is not
|
|
114
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
115
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
116
|
+
end
|
|
117
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
118
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
new(transformed_hash)
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# Deserializes the data based on type
|
|
125
|
+
# @param string type Data type
|
|
126
|
+
# @param string value Value to be deserialized
|
|
127
|
+
# @return [Object] Deserialized data
|
|
128
|
+
def self._deserialize(type, value)
|
|
129
|
+
case type.to_sym
|
|
130
|
+
when :Time
|
|
131
|
+
Time.parse(value)
|
|
132
|
+
when :Date
|
|
133
|
+
Date.parse(value)
|
|
134
|
+
when :String
|
|
135
|
+
value.to_s
|
|
136
|
+
when :Integer
|
|
137
|
+
value.to_i
|
|
138
|
+
when :Float
|
|
139
|
+
value.to_f
|
|
140
|
+
when :Boolean
|
|
141
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
142
|
+
true
|
|
143
|
+
else
|
|
144
|
+
false
|
|
145
|
+
end
|
|
146
|
+
when :Object
|
|
147
|
+
# generic object (usually a Hash), return directly
|
|
148
|
+
value
|
|
149
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
150
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
151
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
152
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
153
|
+
k_type = Regexp.last_match[:k_type]
|
|
154
|
+
v_type = Regexp.last_match[:v_type]
|
|
155
|
+
{}.tap do |hash|
|
|
156
|
+
value.each do |k, v|
|
|
157
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
158
|
+
end
|
|
159
|
+
end
|
|
160
|
+
else # model
|
|
161
|
+
# models (e.g. Pet) or oneOf
|
|
162
|
+
klass = Akeyless.const_get(type)
|
|
163
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
# Returns the string representation of the object
|
|
168
|
+
# @return [String] String presentation of the object
|
|
169
|
+
def to_s
|
|
170
|
+
to_hash.to_s
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
174
|
+
# @return [Hash] Returns the object in the form of hash
|
|
175
|
+
def to_body
|
|
176
|
+
to_hash
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# Returns the object in the form of hash
|
|
180
|
+
# @return [Hash] Returns the object in the form of hash
|
|
181
|
+
def to_hash
|
|
182
|
+
hash = {}
|
|
183
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
184
|
+
value = self.send(attr)
|
|
185
|
+
if value.nil?
|
|
186
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
187
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
hash[param] = _to_hash(value)
|
|
191
|
+
end
|
|
192
|
+
hash
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
# Outputs non-array value in the form of hash
|
|
196
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
197
|
+
# @param [Object] value Any valid value
|
|
198
|
+
# @return [Hash] Returns the value in the form of hash
|
|
199
|
+
def _to_hash(value)
|
|
200
|
+
if value.is_a?(Array)
|
|
201
|
+
value.compact.map { |v| _to_hash(v) }
|
|
202
|
+
elsif value.is_a?(Hash)
|
|
203
|
+
{}.tap do |hash|
|
|
204
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
205
|
+
end
|
|
206
|
+
elsif value.respond_to? :to_hash
|
|
207
|
+
value.to_hash
|
|
208
|
+
else
|
|
209
|
+
value
|
|
210
|
+
end
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
end
|
|
@@ -15,6 +15,9 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Akeyless
|
|
17
17
|
class RollbackSecret
|
|
18
|
+
# for personal password manager
|
|
19
|
+
attr_accessor :accessibility
|
|
20
|
+
|
|
18
21
|
# Set output format to JSON
|
|
19
22
|
attr_accessor :json
|
|
20
23
|
|
|
@@ -33,6 +36,7 @@ module Akeyless
|
|
|
33
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
37
|
def self.attribute_map
|
|
35
38
|
{
|
|
39
|
+
:'accessibility' => :'accessibility',
|
|
36
40
|
:'json' => :'json',
|
|
37
41
|
:'name' => :'name',
|
|
38
42
|
:'old_version' => :'old-version',
|
|
@@ -49,6 +53,7 @@ module Akeyless
|
|
|
49
53
|
# Attribute type mapping.
|
|
50
54
|
def self.openapi_types
|
|
51
55
|
{
|
|
56
|
+
:'accessibility' => :'String',
|
|
52
57
|
:'json' => :'Boolean',
|
|
53
58
|
:'name' => :'String',
|
|
54
59
|
:'old_version' => :'Integer',
|
|
@@ -78,6 +83,12 @@ module Akeyless
|
|
|
78
83
|
h[k.to_sym] = v
|
|
79
84
|
}
|
|
80
85
|
|
|
86
|
+
if attributes.key?(:'accessibility')
|
|
87
|
+
self.accessibility = attributes[:'accessibility']
|
|
88
|
+
else
|
|
89
|
+
self.accessibility = 'regular'
|
|
90
|
+
end
|
|
91
|
+
|
|
81
92
|
if attributes.key?(:'json')
|
|
82
93
|
self.json = attributes[:'json']
|
|
83
94
|
else
|
|
@@ -135,6 +146,7 @@ module Akeyless
|
|
|
135
146
|
def ==(o)
|
|
136
147
|
return true if self.equal?(o)
|
|
137
148
|
self.class == o.class &&
|
|
149
|
+
accessibility == o.accessibility &&
|
|
138
150
|
json == o.json &&
|
|
139
151
|
name == o.name &&
|
|
140
152
|
old_version == o.old_version &&
|
|
@@ -151,7 +163,7 @@ module Akeyless
|
|
|
151
163
|
# Calculates hash code according to all attributes.
|
|
152
164
|
# @return [Integer] Hash code
|
|
153
165
|
def hash
|
|
154
|
-
[json, name, old_version, token, uid_token].hash
|
|
166
|
+
[accessibility, json, name, old_version, token, uid_token].hash
|
|
155
167
|
end
|
|
156
168
|
|
|
157
169
|
# Builds the object from hash
|
|
@@ -57,6 +57,9 @@ module Akeyless
|
|
|
57
57
|
# Rotate the value of the secret after SRA session ends [true/false]
|
|
58
58
|
attr_accessor :rotate_after_disconnect
|
|
59
59
|
|
|
60
|
+
# How many days before the rotation of the item would you like to be notified
|
|
61
|
+
attr_accessor :rotation_event_in
|
|
62
|
+
|
|
60
63
|
# The Hour of the rotation in UTC
|
|
61
64
|
attr_accessor :rotation_hour
|
|
62
65
|
|
|
@@ -107,6 +110,7 @@ module Akeyless
|
|
|
107
110
|
:'name' => :'name',
|
|
108
111
|
:'password_length' => :'password-length',
|
|
109
112
|
:'rotate_after_disconnect' => :'rotate-after-disconnect',
|
|
113
|
+
:'rotation_event_in' => :'rotation-event-in',
|
|
110
114
|
:'rotation_hour' => :'rotation-hour',
|
|
111
115
|
:'rotation_interval' => :'rotation-interval',
|
|
112
116
|
:'rotator_type' => :'rotator-type',
|
|
@@ -143,6 +147,7 @@ module Akeyless
|
|
|
143
147
|
:'name' => :'String',
|
|
144
148
|
:'password_length' => :'String',
|
|
145
149
|
:'rotate_after_disconnect' => :'String',
|
|
150
|
+
:'rotation_event_in' => :'Array<String>',
|
|
146
151
|
:'rotation_hour' => :'Integer',
|
|
147
152
|
:'rotation_interval' => :'String',
|
|
148
153
|
:'rotator_type' => :'String',
|
|
@@ -244,6 +249,12 @@ module Akeyless
|
|
|
244
249
|
self.rotate_after_disconnect = 'false'
|
|
245
250
|
end
|
|
246
251
|
|
|
252
|
+
if attributes.key?(:'rotation_event_in')
|
|
253
|
+
if (value = attributes[:'rotation_event_in']).is_a?(Array)
|
|
254
|
+
self.rotation_event_in = value
|
|
255
|
+
end
|
|
256
|
+
end
|
|
257
|
+
|
|
247
258
|
if attributes.key?(:'rotation_hour')
|
|
248
259
|
self.rotation_hour = attributes[:'rotation_hour']
|
|
249
260
|
end
|
|
@@ -344,6 +355,7 @@ module Akeyless
|
|
|
344
355
|
name == o.name &&
|
|
345
356
|
password_length == o.password_length &&
|
|
346
357
|
rotate_after_disconnect == o.rotate_after_disconnect &&
|
|
358
|
+
rotation_event_in == o.rotation_event_in &&
|
|
347
359
|
rotation_hour == o.rotation_hour &&
|
|
348
360
|
rotation_interval == o.rotation_interval &&
|
|
349
361
|
rotator_type == o.rotator_type &&
|
|
@@ -366,7 +378,7 @@ module Akeyless
|
|
|
366
378
|
# Calculates hash code according to all attributes.
|
|
367
379
|
# @return [Integer] Hash code
|
|
368
380
|
def hash
|
|
369
|
-
[api_id, api_key, authentication_credentials, auto_rotate, aws_region, delete_protection, description, grace_rotation, json, key, max_versions, name, password_length, rotate_after_disconnect, rotation_hour, rotation_interval, rotator_type, secure_access_aws_account_id, secure_access_aws_native_cli, secure_access_bastion_issuer, secure_access_enable, tags, target_name, token, uid_token].hash
|
|
381
|
+
[api_id, api_key, authentication_credentials, auto_rotate, aws_region, delete_protection, description, grace_rotation, 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_enable, tags, target_name, token, uid_token].hash
|
|
370
382
|
end
|
|
371
383
|
|
|
372
384
|
# Builds the object from hash
|
|
@@ -54,6 +54,9 @@ module Akeyless
|
|
|
54
54
|
# Rotate the value of the secret after SRA session ends [true/false]
|
|
55
55
|
attr_accessor :rotate_after_disconnect
|
|
56
56
|
|
|
57
|
+
# How many days before the rotation of the item would you like to be notified
|
|
58
|
+
attr_accessor :rotation_event_in
|
|
59
|
+
|
|
57
60
|
# The Hour of the rotation in UTC
|
|
58
61
|
attr_accessor :rotation_hour
|
|
59
62
|
|
|
@@ -115,6 +118,7 @@ module Akeyless
|
|
|
115
118
|
:'name' => :'name',
|
|
116
119
|
:'password_length' => :'password-length',
|
|
117
120
|
:'rotate_after_disconnect' => :'rotate-after-disconnect',
|
|
121
|
+
:'rotation_event_in' => :'rotation-event-in',
|
|
118
122
|
:'rotation_hour' => :'rotation-hour',
|
|
119
123
|
:'rotation_interval' => :'rotation-interval',
|
|
120
124
|
:'rotator_type' => :'rotator-type',
|
|
@@ -154,6 +158,7 @@ module Akeyless
|
|
|
154
158
|
:'name' => :'String',
|
|
155
159
|
:'password_length' => :'String',
|
|
156
160
|
:'rotate_after_disconnect' => :'String',
|
|
161
|
+
:'rotation_event_in' => :'Array<String>',
|
|
157
162
|
:'rotation_hour' => :'Integer',
|
|
158
163
|
:'rotation_interval' => :'String',
|
|
159
164
|
:'rotator_type' => :'String',
|
|
@@ -253,6 +258,12 @@ module Akeyless
|
|
|
253
258
|
self.rotate_after_disconnect = 'false'
|
|
254
259
|
end
|
|
255
260
|
|
|
261
|
+
if attributes.key?(:'rotation_event_in')
|
|
262
|
+
if (value = attributes[:'rotation_event_in']).is_a?(Array)
|
|
263
|
+
self.rotation_event_in = value
|
|
264
|
+
end
|
|
265
|
+
end
|
|
266
|
+
|
|
256
267
|
if attributes.key?(:'rotation_hour')
|
|
257
268
|
self.rotation_hour = attributes[:'rotation_hour']
|
|
258
269
|
end
|
|
@@ -374,6 +385,7 @@ module Akeyless
|
|
|
374
385
|
name == o.name &&
|
|
375
386
|
password_length == o.password_length &&
|
|
376
387
|
rotate_after_disconnect == o.rotate_after_disconnect &&
|
|
388
|
+
rotation_event_in == o.rotation_event_in &&
|
|
377
389
|
rotation_hour == o.rotation_hour &&
|
|
378
390
|
rotation_interval == o.rotation_interval &&
|
|
379
391
|
rotator_type == o.rotator_type &&
|
|
@@ -400,7 +412,7 @@ module Akeyless
|
|
|
400
412
|
# Calculates hash code according to all attributes.
|
|
401
413
|
# @return [Integer] Hash code
|
|
402
414
|
def hash
|
|
403
|
-
[api_id, api_key, application_id, authentication_credentials, auto_rotate, delete_protection, description, json, key, max_versions, name, password_length, rotate_after_disconnect, 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
|
|
415
|
+
[api_id, api_key, application_id, authentication_credentials, auto_rotate, delete_protection, description, json, key, max_versions, name, password_length, 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
|
|
404
416
|
end
|
|
405
417
|
|
|
406
418
|
# Builds the object from hash
|
|
@@ -48,6 +48,9 @@ module Akeyless
|
|
|
48
48
|
# username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password)
|
|
49
49
|
attr_accessor :rotated_username
|
|
50
50
|
|
|
51
|
+
# How many days before the rotation of the item would you like to be notified
|
|
52
|
+
attr_accessor :rotation_event_in
|
|
53
|
+
|
|
51
54
|
# The Hour of the rotation in UTC
|
|
52
55
|
attr_accessor :rotation_hour
|
|
53
56
|
|
|
@@ -83,6 +86,7 @@ module Akeyless
|
|
|
83
86
|
:'password_length' => :'password-length',
|
|
84
87
|
:'rotated_password' => :'rotated-password',
|
|
85
88
|
:'rotated_username' => :'rotated-username',
|
|
89
|
+
:'rotation_event_in' => :'rotation-event-in',
|
|
86
90
|
:'rotation_hour' => :'rotation-hour',
|
|
87
91
|
:'rotation_interval' => :'rotation-interval',
|
|
88
92
|
:'rotator_type' => :'rotator-type',
|
|
@@ -112,6 +116,7 @@ module Akeyless
|
|
|
112
116
|
:'password_length' => :'String',
|
|
113
117
|
:'rotated_password' => :'String',
|
|
114
118
|
:'rotated_username' => :'String',
|
|
119
|
+
:'rotation_event_in' => :'Array<String>',
|
|
115
120
|
:'rotation_hour' => :'Integer',
|
|
116
121
|
:'rotation_interval' => :'String',
|
|
117
122
|
:'rotator_type' => :'String',
|
|
@@ -193,6 +198,12 @@ module Akeyless
|
|
|
193
198
|
self.rotated_username = attributes[:'rotated_username']
|
|
194
199
|
end
|
|
195
200
|
|
|
201
|
+
if attributes.key?(:'rotation_event_in')
|
|
202
|
+
if (value = attributes[:'rotation_event_in']).is_a?(Array)
|
|
203
|
+
self.rotation_event_in = value
|
|
204
|
+
end
|
|
205
|
+
end
|
|
206
|
+
|
|
196
207
|
if attributes.key?(:'rotation_hour')
|
|
197
208
|
self.rotation_hour = attributes[:'rotation_hour']
|
|
198
209
|
end
|
|
@@ -274,6 +285,7 @@ module Akeyless
|
|
|
274
285
|
password_length == o.password_length &&
|
|
275
286
|
rotated_password == o.rotated_password &&
|
|
276
287
|
rotated_username == o.rotated_username &&
|
|
288
|
+
rotation_event_in == o.rotation_event_in &&
|
|
277
289
|
rotation_hour == o.rotation_hour &&
|
|
278
290
|
rotation_interval == o.rotation_interval &&
|
|
279
291
|
rotator_type == o.rotator_type &&
|
|
@@ -292,7 +304,7 @@ module Akeyless
|
|
|
292
304
|
# Calculates hash code according to all attributes.
|
|
293
305
|
# @return [Integer] Hash code
|
|
294
306
|
def hash
|
|
295
|
-
[authentication_credentials, auto_rotate, delete_protection, description, json, key, max_versions, name, password_length, rotated_password, rotated_username, rotation_hour, rotation_interval, rotator_type, tags, target_name, token, uid_token].hash
|
|
307
|
+
[authentication_credentials, auto_rotate, delete_protection, description, json, key, max_versions, name, password_length, rotated_password, rotated_username, rotation_event_in, rotation_hour, rotation_interval, rotator_type, tags, target_name, token, uid_token].hash
|
|
296
308
|
end
|
|
297
309
|
|
|
298
310
|
# Builds the object from hash
|