akeyless 5.0.3 → 5.0.5
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 +11 -2
- data/docs/AWSGatewayCloudIdentityExternalIdOpt.md +22 -0
- data/docs/AWSTargetDetails.md +2 -0
- data/docs/AccountGeneralSettings.md +6 -0
- data/docs/AzureTargetDetails.md +2 -0
- data/docs/CertificateExpirationEventsSettings.md +20 -0
- data/docs/CreateAWSTarget.md +4 -0
- data/docs/CreatePKICertIssuer.md +3 -1
- data/docs/DSProducerDetails.md +14 -0
- data/docs/DynamicSecretCreateArtifactory.md +2 -0
- data/docs/DynamicSecretCreateAws.md +4 -0
- data/docs/DynamicSecretCreateAzure.md +4 -0
- data/docs/DynamicSecretCreateCassandra.md +2 -0
- data/docs/DynamicSecretCreateChef.md +2 -0
- data/docs/DynamicSecretCreateGcp.md +2 -0
- data/docs/DynamicSecretCreateHanaDb.md +4 -0
- data/docs/DynamicSecretCreateK8s.md +2 -0
- data/docs/DynamicSecretCreateLdap.md +2 -0
- data/docs/DynamicSecretCreateMongoDb.md +4 -0
- data/docs/DynamicSecretCreateMsSql.md +4 -0
- data/docs/DynamicSecretCreateMySql.md +4 -0
- data/docs/DynamicSecretCreateOracleDb.md +2 -0
- data/docs/DynamicSecretCreatePostgreSql.md +4 -0
- data/docs/DynamicSecretCreateRdp.md +2 -0
- data/docs/DynamicSecretCreateRedis.md +2 -0
- data/docs/DynamicSecretCreateRedshift.md +2 -0
- data/docs/DynamicSecretCreateSnowflake.md +6 -0
- data/docs/DynamicSecretUpdateArtifactory.md +2 -0
- data/docs/DynamicSecretUpdateAws.md +4 -0
- data/docs/DynamicSecretUpdateAzure.md +4 -0
- data/docs/DynamicSecretUpdateCassandra.md +2 -0
- data/docs/DynamicSecretUpdateChef.md +2 -0
- data/docs/DynamicSecretUpdateGcp.md +2 -0
- data/docs/DynamicSecretUpdateHanaDb.md +4 -0
- data/docs/DynamicSecretUpdateK8s.md +2 -0
- data/docs/DynamicSecretUpdateLdap.md +2 -0
- data/docs/DynamicSecretUpdateMongoDb.md +4 -0
- data/docs/DynamicSecretUpdateMsSql.md +4 -0
- data/docs/DynamicSecretUpdateMySql.md +4 -0
- data/docs/DynamicSecretUpdateOracleDb.md +2 -0
- data/docs/DynamicSecretUpdatePostgreSql.md +4 -0
- data/docs/DynamicSecretUpdateRdp.md +2 -0
- data/docs/DynamicSecretUpdateRedis.md +2 -0
- data/docs/DynamicSecretUpdateRedshift.md +2 -0
- data/docs/DynamicSecretUpdateSnowflake.md +6 -0
- data/docs/GatewayCreateProducerArtifactory.md +2 -0
- data/docs/GatewayCreateProducerAws.md +4 -0
- data/docs/GatewayCreateProducerAzure.md +4 -0
- data/docs/GatewayCreateProducerCassandra.md +2 -0
- data/docs/GatewayCreateProducerChef.md +2 -0
- data/docs/GatewayCreateProducerGcp.md +2 -0
- data/docs/GatewayCreateProducerHanaDb.md +4 -0
- data/docs/GatewayCreateProducerLdap.md +2 -0
- data/docs/GatewayCreateProducerMSSQL.md +4 -0
- data/docs/GatewayCreateProducerMongo.md +4 -0
- data/docs/GatewayCreateProducerMySQL.md +4 -0
- data/docs/GatewayCreateProducerNativeK8S.md +2 -0
- data/docs/GatewayCreateProducerOracleDb.md +2 -0
- data/docs/GatewayCreateProducerPostgreSQL.md +4 -0
- data/docs/GatewayCreateProducerRdp.md +2 -0
- data/docs/GatewayCreateProducerRedis.md +2 -0
- data/docs/GatewayCreateProducerRedshift.md +2 -0
- data/docs/GatewayCreateProducerSnowflake.md +6 -0
- data/docs/GatewayDetailsForItemReplyObj.md +2 -0
- data/docs/GatewayUpdateProducerArtifactory.md +2 -0
- data/docs/GatewayUpdateProducerAws.md +4 -0
- data/docs/GatewayUpdateProducerAzure.md +4 -0
- data/docs/GatewayUpdateProducerCassandra.md +2 -0
- data/docs/GatewayUpdateProducerChef.md +2 -0
- data/docs/GatewayUpdateProducerGcp.md +2 -0
- data/docs/GatewayUpdateProducerHanaDb.md +4 -0
- data/docs/GatewayUpdateProducerLdap.md +2 -0
- data/docs/GatewayUpdateProducerMSSQL.md +4 -0
- data/docs/GatewayUpdateProducerMongo.md +4 -0
- data/docs/GatewayUpdateProducerMySQL.md +4 -0
- data/docs/GatewayUpdateProducerNativeK8S.md +2 -0
- data/docs/GatewayUpdateProducerOracleDb.md +2 -0
- data/docs/GatewayUpdateProducerPostgreSQL.md +4 -0
- data/docs/GatewayUpdateProducerRdp.md +2 -0
- data/docs/GatewayUpdateProducerRedis.md +2 -0
- data/docs/GatewayUpdateProducerRedshift.md +2 -0
- data/docs/GatewayUpdateProducerSnowflake.md +6 -0
- data/docs/GcpTargetDetails.md +2 -0
- data/docs/ItemUSCSyncAssociation.md +1 -1
- data/docs/ItemVersion.md +4 -0
- data/docs/ListItemsInPathOutput.md +2 -0
- data/docs/ListItemsOutput.md +2 -0
- data/docs/PKICertificateIssueDetails.md +2 -0
- data/docs/RotatedSecretCreateAws.md +5 -1
- data/docs/RotatedSecretCreateAzure.md +12 -0
- data/docs/RotatedSecretCreateCustom.md +11 -1
- data/docs/RotatedSecretCreateGcp.md +6 -0
- data/docs/RotatedSecretCreateSnowflake.md +6 -2
- data/docs/RotatedSecretDeleteSyncOutput.md +20 -0
- data/docs/RotatedSecretDetailsInfo.md +8 -0
- data/docs/RotatedSecretSync.md +2 -0
- data/docs/RotatedSecretUpdateAws.md +5 -1
- data/docs/RotatedSecretUpdateAzure.md +12 -0
- data/docs/RotatedSecretUpdateCustom.md +11 -1
- data/docs/RotatedSecretUpdateGcp.md +6 -0
- data/docs/RotatedSecretUpdateSnowflake.md +5 -1
- data/docs/SecretSyncOutput.md +22 -0
- data/docs/StaticSecretDeleteSync.md +26 -0
- data/docs/StaticSecretDeleteSyncOutput.md +20 -0
- data/docs/StaticSecretSync.md +30 -0
- data/docs/TargetCreateAws.md +4 -0
- data/docs/TargetItemVersion.md +4 -0
- data/docs/TargetUpdateAws.md +4 -0
- data/docs/UpdateAWSTarget.md +4 -0
- data/docs/UpdateAccountSettings.md +8 -0
- data/docs/UpdatePKICertIssuer.md +3 -1
- data/docs/UscCreate.md +2 -0
- data/docs/UscSyncInfo.md +26 -0
- data/docs/UscUpdate.md +2 -0
- data/docs/V2Api.md +130 -4
- data/lib/akeyless/api/v2_api.rb +131 -3
- data/lib/akeyless/models/account_general_settings.rb +28 -1
- data/lib/akeyless/models/aws_gateway_cloud_identity_external_id_opt.rb +232 -0
- data/lib/akeyless/models/aws_target_details.rb +10 -1
- data/lib/akeyless/models/azure_target_details.rb +10 -1
- data/lib/akeyless/models/certificate_expiration_events_settings.rb +226 -0
- data/lib/akeyless/models/create_aws_target.rb +21 -1
- data/lib/akeyless/models/create_pki_cert_issuer.rb +12 -2
- data/lib/akeyless/models/ds_producer_details.rb +64 -1
- data/lib/akeyless/models/dynamic_secret_create_artifactory.rb +11 -1
- data/lib/akeyless/models/dynamic_secret_create_aws.rb +21 -1
- data/lib/akeyless/models/dynamic_secret_create_azure.rb +21 -1
- data/lib/akeyless/models/dynamic_secret_create_cassandra.rb +11 -1
- data/lib/akeyless/models/dynamic_secret_create_chef.rb +11 -1
- data/lib/akeyless/models/dynamic_secret_create_gcp.rb +11 -1
- data/lib/akeyless/models/dynamic_secret_create_hana_db.rb +21 -1
- data/lib/akeyless/models/dynamic_secret_create_k8s.rb +11 -1
- data/lib/akeyless/models/dynamic_secret_create_ldap.rb +11 -1
- data/lib/akeyless/models/dynamic_secret_create_mongo_db.rb +21 -1
- data/lib/akeyless/models/dynamic_secret_create_ms_sql.rb +21 -1
- data/lib/akeyless/models/dynamic_secret_create_my_sql.rb +21 -1
- data/lib/akeyless/models/dynamic_secret_create_oracle_db.rb +11 -1
- data/lib/akeyless/models/dynamic_secret_create_postgre_sql.rb +21 -1
- data/lib/akeyless/models/dynamic_secret_create_rdp.rb +11 -1
- data/lib/akeyless/models/dynamic_secret_create_redis.rb +11 -1
- data/lib/akeyless/models/dynamic_secret_create_redshift.rb +11 -1
- data/lib/akeyless/models/dynamic_secret_create_snowflake.rb +32 -1
- data/lib/akeyless/models/dynamic_secret_update_artifactory.rb +11 -1
- data/lib/akeyless/models/dynamic_secret_update_aws.rb +21 -1
- data/lib/akeyless/models/dynamic_secret_update_azure.rb +21 -1
- data/lib/akeyless/models/dynamic_secret_update_cassandra.rb +11 -1
- data/lib/akeyless/models/dynamic_secret_update_chef.rb +11 -1
- data/lib/akeyless/models/dynamic_secret_update_gcp.rb +11 -1
- data/lib/akeyless/models/dynamic_secret_update_hana_db.rb +21 -1
- data/lib/akeyless/models/dynamic_secret_update_k8s.rb +11 -1
- data/lib/akeyless/models/dynamic_secret_update_ldap.rb +11 -1
- data/lib/akeyless/models/dynamic_secret_update_mongo_db.rb +21 -1
- data/lib/akeyless/models/dynamic_secret_update_ms_sql.rb +21 -1
- data/lib/akeyless/models/dynamic_secret_update_my_sql.rb +21 -1
- data/lib/akeyless/models/dynamic_secret_update_oracle_db.rb +11 -1
- data/lib/akeyless/models/dynamic_secret_update_postgre_sql.rb +21 -1
- data/lib/akeyless/models/dynamic_secret_update_rdp.rb +11 -1
- data/lib/akeyless/models/dynamic_secret_update_redis.rb +11 -1
- data/lib/akeyless/models/dynamic_secret_update_redshift.rb +11 -1
- data/lib/akeyless/models/dynamic_secret_update_snowflake.rb +32 -1
- data/lib/akeyless/models/gateway_create_producer_artifactory.rb +11 -1
- data/lib/akeyless/models/gateway_create_producer_aws.rb +21 -1
- data/lib/akeyless/models/gateway_create_producer_azure.rb +21 -1
- data/lib/akeyless/models/gateway_create_producer_cassandra.rb +11 -1
- data/lib/akeyless/models/gateway_create_producer_chef.rb +11 -1
- data/lib/akeyless/models/gateway_create_producer_gcp.rb +11 -1
- data/lib/akeyless/models/gateway_create_producer_hana_db.rb +21 -1
- data/lib/akeyless/models/gateway_create_producer_ldap.rb +11 -1
- data/lib/akeyless/models/gateway_create_producer_mongo.rb +21 -1
- data/lib/akeyless/models/gateway_create_producer_mssql.rb +21 -1
- data/lib/akeyless/models/gateway_create_producer_my_sql.rb +21 -1
- data/lib/akeyless/models/gateway_create_producer_native_k8_s.rb +11 -1
- data/lib/akeyless/models/gateway_create_producer_oracle_db.rb +11 -1
- data/lib/akeyless/models/gateway_create_producer_postgre_sql.rb +21 -1
- data/lib/akeyless/models/gateway_create_producer_rdp.rb +11 -1
- data/lib/akeyless/models/gateway_create_producer_redis.rb +11 -1
- data/lib/akeyless/models/gateway_create_producer_redshift.rb +11 -1
- data/lib/akeyless/models/gateway_create_producer_snowflake.rb +32 -1
- data/lib/akeyless/models/gateway_details_for_item_reply_obj.rb +10 -1
- data/lib/akeyless/models/gateway_update_producer_artifactory.rb +11 -1
- data/lib/akeyless/models/gateway_update_producer_aws.rb +21 -1
- data/lib/akeyless/models/gateway_update_producer_azure.rb +21 -1
- data/lib/akeyless/models/gateway_update_producer_cassandra.rb +11 -1
- data/lib/akeyless/models/gateway_update_producer_chef.rb +11 -1
- data/lib/akeyless/models/gateway_update_producer_gcp.rb +11 -1
- data/lib/akeyless/models/gateway_update_producer_hana_db.rb +21 -1
- data/lib/akeyless/models/gateway_update_producer_ldap.rb +11 -1
- data/lib/akeyless/models/gateway_update_producer_mongo.rb +21 -1
- data/lib/akeyless/models/gateway_update_producer_mssql.rb +21 -1
- data/lib/akeyless/models/gateway_update_producer_my_sql.rb +21 -1
- data/lib/akeyless/models/gateway_update_producer_native_k8_s.rb +11 -1
- data/lib/akeyless/models/gateway_update_producer_oracle_db.rb +11 -1
- data/lib/akeyless/models/gateway_update_producer_postgre_sql.rb +21 -1
- data/lib/akeyless/models/gateway_update_producer_rdp.rb +11 -1
- data/lib/akeyless/models/gateway_update_producer_redis.rb +11 -1
- data/lib/akeyless/models/gateway_update_producer_redshift.rb +11 -1
- data/lib/akeyless/models/gateway_update_producer_snowflake.rb +32 -1
- data/lib/akeyless/models/gcp_target_details.rb +10 -1
- data/lib/akeyless/models/item_usc_sync_association.rb +1 -1
- data/lib/akeyless/models/item_version.rb +19 -1
- data/lib/akeyless/models/list_items_in_path_output.rb +10 -1
- data/lib/akeyless/models/list_items_output.rb +10 -1
- data/lib/akeyless/models/pki_certificate_issue_details.rb +10 -1
- data/lib/akeyless/models/rotated_secret_create_aws.rb +22 -2
- data/lib/akeyless/models/rotated_secret_create_azure.rb +63 -1
- data/lib/akeyless/models/rotated_secret_create_custom.rb +54 -4
- data/lib/akeyless/models/rotated_secret_create_gcp.rb +31 -1
- data/lib/akeyless/models/rotated_secret_create_snowflake.rb +23 -3
- data/lib/akeyless/models/rotated_secret_delete_sync_output.rb +223 -0
- data/lib/akeyless/models/rotated_secret_details_info.rb +37 -1
- data/lib/akeyless/models/rotated_secret_sync.rb +11 -1
- data/lib/akeyless/models/rotated_secret_update_aws.rb +22 -2
- data/lib/akeyless/models/rotated_secret_update_azure.rb +63 -1
- data/lib/akeyless/models/rotated_secret_update_custom.rb +54 -4
- data/lib/akeyless/models/rotated_secret_update_gcp.rb +31 -1
- data/lib/akeyless/models/rotated_secret_update_snowflake.rb +22 -2
- data/lib/akeyless/models/secret_sync_output.rb +232 -0
- data/lib/akeyless/models/static_secret_delete_sync.rb +271 -0
- data/lib/akeyless/models/static_secret_delete_sync_output.rb +223 -0
- data/lib/akeyless/models/static_secret_sync.rb +284 -0
- data/lib/akeyless/models/target_create_aws.rb +21 -1
- data/lib/akeyless/models/target_item_version.rb +19 -1
- data/lib/akeyless/models/target_update_aws.rb +21 -1
- data/lib/akeyless/models/update_account_settings.rb +43 -1
- data/lib/akeyless/models/update_aws_target.rb +21 -1
- data/lib/akeyless/models/update_pki_cert_issuer.rb +12 -2
- data/lib/akeyless/models/usc_create.rb +11 -1
- data/lib/akeyless/models/usc_sync_info.rb +250 -0
- data/lib/akeyless/models/usc_update.rb +11 -1
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +8 -1
- data/spec/models/aws_gateway_cloud_identity_external_id_opt_spec.rb +48 -0
- data/spec/models/certificate_expiration_events_settings_spec.rb +42 -0
- data/spec/models/rotated_secret_delete_sync_output_spec.rb +42 -0
- data/spec/models/secret_sync_output_spec.rb +48 -0
- data/spec/models/static_secret_delete_sync_output_spec.rb +42 -0
- data/spec/models/static_secret_delete_sync_spec.rb +60 -0
- data/spec/models/static_secret_sync_spec.rb +72 -0
- data/spec/models/usc_sync_info_spec.rb +60 -0
- metadata +1089 -1057
@@ -30,6 +30,9 @@ module Akeyless
|
|
30
30
|
# Country
|
31
31
|
attr_accessor :country
|
32
32
|
|
33
|
+
# How many days before the expiration of the certificate would you like to be notified. To specify multiple events, use argument multiple times: --default-certificate-expiration-notification-days 1 --default-certificate-expiration-notification-days 5
|
34
|
+
attr_accessor :default_certificate_expiration_notification_days
|
35
|
+
|
33
36
|
# Set the account default key based on the DFC key name. Use \"set-original-akeyless-default-key\" to revert to using the original default key of the account.
|
34
37
|
attr_accessor :default_key_name
|
35
38
|
|
@@ -48,6 +51,9 @@ module Akeyless
|
|
48
51
|
# Set a maximum ttl for dynamic secrets [true/false]
|
49
52
|
attr_accessor :dynamic_secret_max_ttl_enable
|
50
53
|
|
54
|
+
# How many days before the expiration of the certificate would you like to be notified. [true/false]
|
55
|
+
attr_accessor :enable_default_certificate_expiration_event
|
56
|
+
|
51
57
|
# Enable sharing items [true/false]
|
52
58
|
attr_accessor :enable_item_sharing
|
53
59
|
|
@@ -60,6 +66,12 @@ module Akeyless
|
|
60
66
|
# A default list of comma-separated CIDR block that acts as a trusted Gateway entity.
|
61
67
|
attr_accessor :gw_bound_ips
|
62
68
|
|
69
|
+
# Hide personal folder, if set - users will not be able to use personal folder [true/false]
|
70
|
+
attr_accessor :hide_personal_folder
|
71
|
+
|
72
|
+
# Hide static secret's password type [true/false]
|
73
|
+
attr_accessor :hide_static_password
|
74
|
+
|
63
75
|
# Characters that cannot be used for items/targets/roles/auths/event_forwarder names. Empty string will enforce nothing.
|
64
76
|
attr_accessor :invalid_characters
|
65
77
|
|
@@ -149,16 +161,20 @@ module Akeyless
|
|
149
161
|
:'city' => :'city',
|
150
162
|
:'company_name' => :'company-name',
|
151
163
|
:'country' => :'country',
|
164
|
+
:'default_certificate_expiration_notification_days' => :'default-certificate-expiration-notification-days',
|
152
165
|
:'default_key_name' => :'default-key-name',
|
153
166
|
:'default_share_link_ttl_minutes' => :'default-share-link-ttl-minutes',
|
154
167
|
:'default_versioning' => :'default-versioning',
|
155
168
|
:'dp_enable_classic_key_protection' => :'dp-enable-classic-key-protection',
|
156
169
|
:'dynamic_secret_max_ttl' => :'dynamic-secret-max-ttl',
|
157
170
|
:'dynamic_secret_max_ttl_enable' => :'dynamic-secret-max-ttl-enable',
|
171
|
+
:'enable_default_certificate_expiration_event' => :'enable-default-certificate-expiration-event',
|
158
172
|
:'enable_item_sharing' => :'enable-item-sharing',
|
159
173
|
:'enable_password_expiration' => :'enable-password-expiration',
|
160
174
|
:'force_new_versions' => :'force-new-versions',
|
161
175
|
:'gw_bound_ips' => :'gw-bound-ips',
|
176
|
+
:'hide_personal_folder' => :'hide-personal-folder',
|
177
|
+
:'hide_static_password' => :'hide-static-password',
|
162
178
|
:'invalid_characters' => :'invalid-characters',
|
163
179
|
:'item_type' => :'item-type',
|
164
180
|
:'items_deletion_protection' => :'items-deletion-protection',
|
@@ -202,16 +218,20 @@ module Akeyless
|
|
202
218
|
:'city' => :'String',
|
203
219
|
:'company_name' => :'String',
|
204
220
|
:'country' => :'String',
|
221
|
+
:'default_certificate_expiration_notification_days' => :'Array<String>',
|
205
222
|
:'default_key_name' => :'String',
|
206
223
|
:'default_share_link_ttl_minutes' => :'String',
|
207
224
|
:'default_versioning' => :'String',
|
208
225
|
:'dp_enable_classic_key_protection' => :'String',
|
209
226
|
:'dynamic_secret_max_ttl' => :'Integer',
|
210
227
|
:'dynamic_secret_max_ttl_enable' => :'String',
|
228
|
+
:'enable_default_certificate_expiration_event' => :'String',
|
211
229
|
:'enable_item_sharing' => :'String',
|
212
230
|
:'enable_password_expiration' => :'String',
|
213
231
|
:'force_new_versions' => :'String',
|
214
232
|
:'gw_bound_ips' => :'Array<String>',
|
233
|
+
:'hide_personal_folder' => :'String',
|
234
|
+
:'hide_static_password' => :'String',
|
215
235
|
:'invalid_characters' => :'String',
|
216
236
|
:'item_type' => :'String',
|
217
237
|
:'items_deletion_protection' => :'String',
|
@@ -285,6 +305,12 @@ module Akeyless
|
|
285
305
|
self.country = attributes[:'country']
|
286
306
|
end
|
287
307
|
|
308
|
+
if attributes.key?(:'default_certificate_expiration_notification_days')
|
309
|
+
if (value = attributes[:'default_certificate_expiration_notification_days']).is_a?(Array)
|
310
|
+
self.default_certificate_expiration_notification_days = value
|
311
|
+
end
|
312
|
+
end
|
313
|
+
|
288
314
|
if attributes.key?(:'default_key_name')
|
289
315
|
self.default_key_name = attributes[:'default_key_name']
|
290
316
|
end
|
@@ -309,6 +335,10 @@ module Akeyless
|
|
309
335
|
self.dynamic_secret_max_ttl_enable = attributes[:'dynamic_secret_max_ttl_enable']
|
310
336
|
end
|
311
337
|
|
338
|
+
if attributes.key?(:'enable_default_certificate_expiration_event')
|
339
|
+
self.enable_default_certificate_expiration_event = attributes[:'enable_default_certificate_expiration_event']
|
340
|
+
end
|
341
|
+
|
312
342
|
if attributes.key?(:'enable_item_sharing')
|
313
343
|
self.enable_item_sharing = attributes[:'enable_item_sharing']
|
314
344
|
end
|
@@ -327,6 +357,14 @@ module Akeyless
|
|
327
357
|
end
|
328
358
|
end
|
329
359
|
|
360
|
+
if attributes.key?(:'hide_personal_folder')
|
361
|
+
self.hide_personal_folder = attributes[:'hide_personal_folder']
|
362
|
+
end
|
363
|
+
|
364
|
+
if attributes.key?(:'hide_static_password')
|
365
|
+
self.hide_static_password = attributes[:'hide_static_password']
|
366
|
+
end
|
367
|
+
|
330
368
|
if attributes.key?(:'invalid_characters')
|
331
369
|
self.invalid_characters = attributes[:'invalid_characters']
|
332
370
|
else
|
@@ -465,16 +503,20 @@ module Akeyless
|
|
465
503
|
city == o.city &&
|
466
504
|
company_name == o.company_name &&
|
467
505
|
country == o.country &&
|
506
|
+
default_certificate_expiration_notification_days == o.default_certificate_expiration_notification_days &&
|
468
507
|
default_key_name == o.default_key_name &&
|
469
508
|
default_share_link_ttl_minutes == o.default_share_link_ttl_minutes &&
|
470
509
|
default_versioning == o.default_versioning &&
|
471
510
|
dp_enable_classic_key_protection == o.dp_enable_classic_key_protection &&
|
472
511
|
dynamic_secret_max_ttl == o.dynamic_secret_max_ttl &&
|
473
512
|
dynamic_secret_max_ttl_enable == o.dynamic_secret_max_ttl_enable &&
|
513
|
+
enable_default_certificate_expiration_event == o.enable_default_certificate_expiration_event &&
|
474
514
|
enable_item_sharing == o.enable_item_sharing &&
|
475
515
|
enable_password_expiration == o.enable_password_expiration &&
|
476
516
|
force_new_versions == o.force_new_versions &&
|
477
517
|
gw_bound_ips == o.gw_bound_ips &&
|
518
|
+
hide_personal_folder == o.hide_personal_folder &&
|
519
|
+
hide_static_password == o.hide_static_password &&
|
478
520
|
invalid_characters == o.invalid_characters &&
|
479
521
|
item_type == o.item_type &&
|
480
522
|
items_deletion_protection == o.items_deletion_protection &&
|
@@ -513,7 +555,7 @@ module Akeyless
|
|
513
555
|
# Calculates hash code according to all attributes.
|
514
556
|
# @return [Integer] Hash code
|
515
557
|
def hash
|
516
|
-
[address, bound_ips, city, company_name, country, default_key_name, default_share_link_ttl_minutes, default_versioning, dp_enable_classic_key_protection, dynamic_secret_max_ttl, dynamic_secret_max_ttl_enable, enable_item_sharing, enable_password_expiration, force_new_versions, gw_bound_ips, invalid_characters, item_type, items_deletion_protection, json, jwt_ttl_default, jwt_ttl_max, jwt_ttl_min, lock_bound_ips, lock_default_key, lock_gw_bound_ips, max_rotation_interval, max_rotation_interval_enable, max_versions, password_expiration_days, password_expiration_notification_days, password_length, phone, postal_code, token, uid_token, usage_event_enable, usage_event_interval, usage_event_object_type, use_capital_letters, use_lower_letters, use_numbers, use_special_characters].hash
|
558
|
+
[address, bound_ips, city, company_name, country, default_certificate_expiration_notification_days, default_key_name, default_share_link_ttl_minutes, default_versioning, dp_enable_classic_key_protection, dynamic_secret_max_ttl, dynamic_secret_max_ttl_enable, enable_default_certificate_expiration_event, enable_item_sharing, enable_password_expiration, force_new_versions, gw_bound_ips, hide_personal_folder, hide_static_password, invalid_characters, item_type, items_deletion_protection, json, jwt_ttl_default, jwt_ttl_max, jwt_ttl_min, lock_bound_ips, lock_default_key, lock_gw_bound_ips, max_rotation_interval, max_rotation_interval_enable, max_versions, password_expiration_days, password_expiration_notification_days, password_length, phone, postal_code, token, uid_token, usage_event_enable, usage_event_interval, usage_event_object_type, use_capital_letters, use_lower_letters, use_numbers, use_special_characters].hash
|
517
559
|
end
|
518
560
|
|
519
561
|
# Builds the object from hash
|
@@ -28,6 +28,9 @@ module Akeyless
|
|
28
28
|
# Description of the object
|
29
29
|
attr_accessor :description
|
30
30
|
|
31
|
+
# A unique auto-generated value used in your AWS account when configuring your AWS IAM role to securely delegate access to Akeyless. Relevant only when using GW cloud ID
|
32
|
+
attr_accessor :generate_external_id
|
33
|
+
|
31
34
|
# Set output format to JSON
|
32
35
|
attr_accessor :json
|
33
36
|
|
@@ -49,6 +52,9 @@ module Akeyless
|
|
49
52
|
# AWS region
|
50
53
|
attr_accessor :region
|
51
54
|
|
55
|
+
# AWS IAM role identifier that Gateway will assume in your AWS account, relevant only when using external ID
|
56
|
+
attr_accessor :role_arn
|
57
|
+
|
52
58
|
# Required only for temporary security credentials retrieved using STS
|
53
59
|
attr_accessor :session_token
|
54
60
|
|
@@ -71,6 +77,7 @@ module Akeyless
|
|
71
77
|
:'access_key_id' => :'access-key-id',
|
72
78
|
:'comment' => :'comment',
|
73
79
|
:'description' => :'description',
|
80
|
+
:'generate_external_id' => :'generate-external-id',
|
74
81
|
:'json' => :'json',
|
75
82
|
:'keep_prev_version' => :'keep-prev-version',
|
76
83
|
:'key' => :'key',
|
@@ -78,6 +85,7 @@ module Akeyless
|
|
78
85
|
:'name' => :'name',
|
79
86
|
:'new_name' => :'new-name',
|
80
87
|
:'region' => :'region',
|
88
|
+
:'role_arn' => :'role-arn',
|
81
89
|
:'session_token' => :'session-token',
|
82
90
|
:'token' => :'token',
|
83
91
|
:'uid_token' => :'uid-token',
|
@@ -98,6 +106,7 @@ module Akeyless
|
|
98
106
|
:'access_key_id' => :'String',
|
99
107
|
:'comment' => :'String',
|
100
108
|
:'description' => :'String',
|
109
|
+
:'generate_external_id' => :'Boolean',
|
101
110
|
:'json' => :'Boolean',
|
102
111
|
:'keep_prev_version' => :'String',
|
103
112
|
:'key' => :'String',
|
@@ -105,6 +114,7 @@ module Akeyless
|
|
105
114
|
:'name' => :'String',
|
106
115
|
:'new_name' => :'String',
|
107
116
|
:'region' => :'String',
|
117
|
+
:'role_arn' => :'String',
|
108
118
|
:'session_token' => :'String',
|
109
119
|
:'token' => :'String',
|
110
120
|
:'uid_token' => :'String',
|
@@ -154,6 +164,10 @@ module Akeyless
|
|
154
164
|
self.description = attributes[:'description']
|
155
165
|
end
|
156
166
|
|
167
|
+
if attributes.key?(:'generate_external_id')
|
168
|
+
self.generate_external_id = attributes[:'generate_external_id']
|
169
|
+
end
|
170
|
+
|
157
171
|
if attributes.key?(:'json')
|
158
172
|
self.json = attributes[:'json']
|
159
173
|
else
|
@@ -188,6 +202,10 @@ module Akeyless
|
|
188
202
|
self.region = 'us-east-2'
|
189
203
|
end
|
190
204
|
|
205
|
+
if attributes.key?(:'role_arn')
|
206
|
+
self.role_arn = attributes[:'role_arn']
|
207
|
+
end
|
208
|
+
|
191
209
|
if attributes.key?(:'session_token')
|
192
210
|
self.session_token = attributes[:'session_token']
|
193
211
|
end
|
@@ -248,6 +266,7 @@ module Akeyless
|
|
248
266
|
access_key_id == o.access_key_id &&
|
249
267
|
comment == o.comment &&
|
250
268
|
description == o.description &&
|
269
|
+
generate_external_id == o.generate_external_id &&
|
251
270
|
json == o.json &&
|
252
271
|
keep_prev_version == o.keep_prev_version &&
|
253
272
|
key == o.key &&
|
@@ -255,6 +274,7 @@ module Akeyless
|
|
255
274
|
name == o.name &&
|
256
275
|
new_name == o.new_name &&
|
257
276
|
region == o.region &&
|
277
|
+
role_arn == o.role_arn &&
|
258
278
|
session_token == o.session_token &&
|
259
279
|
token == o.token &&
|
260
280
|
uid_token == o.uid_token &&
|
@@ -271,7 +291,7 @@ module Akeyless
|
|
271
291
|
# Calculates hash code according to all attributes.
|
272
292
|
# @return [Integer] Hash code
|
273
293
|
def hash
|
274
|
-
[access_key, access_key_id, comment, description, json, keep_prev_version, key, max_versions, name, new_name, region, session_token, token, uid_token, update_version, use_gw_cloud_identity].hash
|
294
|
+
[access_key, access_key_id, comment, description, generate_external_id, json, keep_prev_version, key, max_versions, name, new_name, region, role_arn, session_token, token, uid_token, update_version, use_gw_cloud_identity].hash
|
275
295
|
end
|
276
296
|
|
277
297
|
# Builds the object from hash
|
@@ -24,7 +24,7 @@ module Akeyless
|
|
24
24
|
# If set, will allow copying the extra extensions from the csr file (if given)
|
25
25
|
attr_accessor :allow_copy_ext_from_csr
|
26
26
|
|
27
|
-
# If set, clients can request certificates for subdomains
|
27
|
+
# If set, clients can request certificates for subdomains of the allowed domains
|
28
28
|
attr_accessor :allow_subdomains
|
29
29
|
|
30
30
|
# A list of the allowed domains that clients can request to be included in the certificate (in a comma-delimited list)
|
@@ -69,6 +69,9 @@ module Akeyless
|
|
69
69
|
# A path in which to save generated certificates
|
70
70
|
attr_accessor :destination_path
|
71
71
|
|
72
|
+
# If set, generation of wildcard certificates will be disabled.
|
73
|
+
attr_accessor :disable_wildcards
|
74
|
+
|
72
75
|
# If set, the cert issuer will support the acme protocol
|
73
76
|
attr_accessor :enable_acme
|
74
77
|
|
@@ -168,6 +171,7 @@ module Akeyless
|
|
168
171
|
:'delete_protection' => :'delete_protection',
|
169
172
|
:'description' => :'description',
|
170
173
|
:'destination_path' => :'destination-path',
|
174
|
+
:'disable_wildcards' => :'disable-wildcards',
|
171
175
|
:'enable_acme' => :'enable-acme',
|
172
176
|
:'expiration_event_in' => :'expiration-event-in',
|
173
177
|
:'gw_cluster_url' => :'gw-cluster-url',
|
@@ -223,6 +227,7 @@ module Akeyless
|
|
223
227
|
:'delete_protection' => :'String',
|
224
228
|
:'description' => :'String',
|
225
229
|
:'destination_path' => :'String',
|
230
|
+
:'disable_wildcards' => :'Boolean',
|
226
231
|
:'enable_acme' => :'Boolean',
|
227
232
|
:'expiration_event_in' => :'Array<String>',
|
228
233
|
:'gw_cluster_url' => :'String',
|
@@ -349,6 +354,10 @@ module Akeyless
|
|
349
354
|
self.destination_path = attributes[:'destination_path']
|
350
355
|
end
|
351
356
|
|
357
|
+
if attributes.key?(:'disable_wildcards')
|
358
|
+
self.disable_wildcards = attributes[:'disable_wildcards']
|
359
|
+
end
|
360
|
+
|
352
361
|
if attributes.key?(:'enable_acme')
|
353
362
|
self.enable_acme = attributes[:'enable_acme']
|
354
363
|
end
|
@@ -516,6 +525,7 @@ module Akeyless
|
|
516
525
|
delete_protection == o.delete_protection &&
|
517
526
|
description == o.description &&
|
518
527
|
destination_path == o.destination_path &&
|
528
|
+
disable_wildcards == o.disable_wildcards &&
|
519
529
|
enable_acme == o.enable_acme &&
|
520
530
|
expiration_event_in == o.expiration_event_in &&
|
521
531
|
gw_cluster_url == o.gw_cluster_url &&
|
@@ -553,7 +563,7 @@ module Akeyless
|
|
553
563
|
# Calculates hash code according to all attributes.
|
554
564
|
# @return [Integer] Hash code
|
555
565
|
def hash
|
556
|
-
[add_tag, allow_any_name, allow_copy_ext_from_csr, allow_subdomains, allowed_domains, allowed_extra_extensions, allowed_ip_sans, allowed_uri_sans, auto_renew, client_flag, code_signing_flag, country, create_private_crl, create_public_crl, critical_key_usage, delete_protection, description, destination_path, enable_acme, expiration_event_in, gw_cluster_url, is_ca, json, key_usage, locality, max_path_len, metadata, name, new_name, not_enforce_hostnames, not_require_cn, organizational_units, organizations, postal_code, protect_certificates, province, rm_tag, scheduled_renew, server_flag, signer_key_name, street_address, token, ttl, uid_token].hash
|
566
|
+
[add_tag, allow_any_name, allow_copy_ext_from_csr, allow_subdomains, allowed_domains, allowed_extra_extensions, allowed_ip_sans, allowed_uri_sans, auto_renew, client_flag, code_signing_flag, country, create_private_crl, create_public_crl, critical_key_usage, delete_protection, description, destination_path, disable_wildcards, enable_acme, expiration_event_in, gw_cluster_url, is_ca, json, key_usage, locality, max_path_len, metadata, name, new_name, not_enforce_hostnames, not_require_cn, organizational_units, organizations, postal_code, protect_certificates, province, rm_tag, scheduled_renew, server_flag, signer_key_name, street_address, token, ttl, uid_token].hash
|
557
567
|
end
|
558
568
|
|
559
569
|
# Builds the object from hash
|
@@ -30,6 +30,9 @@ module Akeyless
|
|
30
30
|
|
31
31
|
attr_accessor :object_type
|
32
32
|
|
33
|
+
# Optional, the passphrase that protects the private key within the pfx certificate (Relevant only for Azure KV certificates)
|
34
|
+
attr_accessor :pfx_password
|
35
|
+
|
33
36
|
# Name for the new universal secrets
|
34
37
|
attr_accessor :secret_name
|
35
38
|
|
@@ -56,6 +59,7 @@ module Akeyless
|
|
56
59
|
:'json' => :'json',
|
57
60
|
:'namespace' => :'namespace',
|
58
61
|
:'object_type' => :'object-type',
|
62
|
+
:'pfx_password' => :'pfx-password',
|
59
63
|
:'secret_name' => :'secret-name',
|
60
64
|
:'tags' => :'tags',
|
61
65
|
:'token' => :'token',
|
@@ -78,6 +82,7 @@ module Akeyless
|
|
78
82
|
:'json' => :'Boolean',
|
79
83
|
:'namespace' => :'String',
|
80
84
|
:'object_type' => :'String',
|
85
|
+
:'pfx_password' => :'String',
|
81
86
|
:'secret_name' => :'String',
|
82
87
|
:'tags' => :'Hash<String, String>',
|
83
88
|
:'token' => :'String',
|
@@ -130,6 +135,10 @@ module Akeyless
|
|
130
135
|
self.object_type = attributes[:'object_type']
|
131
136
|
end
|
132
137
|
|
138
|
+
if attributes.key?(:'pfx_password')
|
139
|
+
self.pfx_password = attributes[:'pfx_password']
|
140
|
+
end
|
141
|
+
|
133
142
|
if attributes.key?(:'secret_name')
|
134
143
|
self.secret_name = attributes[:'secret_name']
|
135
144
|
else
|
@@ -203,6 +212,7 @@ module Akeyless
|
|
203
212
|
json == o.json &&
|
204
213
|
namespace == o.namespace &&
|
205
214
|
object_type == o.object_type &&
|
215
|
+
pfx_password == o.pfx_password &&
|
206
216
|
secret_name == o.secret_name &&
|
207
217
|
tags == o.tags &&
|
208
218
|
token == o.token &&
|
@@ -220,7 +230,7 @@ module Akeyless
|
|
220
230
|
# Calculates hash code according to all attributes.
|
221
231
|
# @return [Integer] Hash code
|
222
232
|
def hash
|
223
|
-
[binary_value, description, json, namespace, object_type, secret_name, tags, token, uid_token, usc_name, value].hash
|
233
|
+
[binary_value, description, json, namespace, object_type, pfx_password, secret_name, tags, token, uid_token, usc_name, value].hash
|
224
234
|
end
|
225
235
|
|
226
236
|
# Builds the object from hash
|
@@ -0,0 +1,250 @@
|
|
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 UscSyncInfo
|
18
|
+
attr_accessor :jq_secret_filter
|
19
|
+
|
20
|
+
attr_accessor :last_error
|
21
|
+
|
22
|
+
attr_accessor :namespace
|
23
|
+
|
24
|
+
attr_accessor :secret_id
|
25
|
+
|
26
|
+
attr_accessor :secret_name
|
27
|
+
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
29
|
+
def self.attribute_map
|
30
|
+
{
|
31
|
+
:'jq_secret_filter' => :'jq_secret_filter',
|
32
|
+
:'last_error' => :'last_error',
|
33
|
+
:'namespace' => :'namespace',
|
34
|
+
:'secret_id' => :'secret_id',
|
35
|
+
:'secret_name' => :'secret_name'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# Returns all the JSON keys this model knows about
|
40
|
+
def self.acceptable_attributes
|
41
|
+
attribute_map.values
|
42
|
+
end
|
43
|
+
|
44
|
+
# Attribute type mapping.
|
45
|
+
def self.openapi_types
|
46
|
+
{
|
47
|
+
:'jq_secret_filter' => :'String',
|
48
|
+
:'last_error' => :'String',
|
49
|
+
:'namespace' => :'String',
|
50
|
+
:'secret_id' => :'String',
|
51
|
+
:'secret_name' => :'String'
|
52
|
+
}
|
53
|
+
end
|
54
|
+
|
55
|
+
# List of attributes with nullable: true
|
56
|
+
def self.openapi_nullable
|
57
|
+
Set.new([
|
58
|
+
])
|
59
|
+
end
|
60
|
+
|
61
|
+
# Initializes the object
|
62
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
63
|
+
def initialize(attributes = {})
|
64
|
+
if (!attributes.is_a?(Hash))
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::UscSyncInfo` initialize method"
|
66
|
+
end
|
67
|
+
|
68
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
69
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
70
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
71
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::UscSyncInfo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
72
|
+
end
|
73
|
+
h[k.to_sym] = v
|
74
|
+
}
|
75
|
+
|
76
|
+
if attributes.key?(:'jq_secret_filter')
|
77
|
+
self.jq_secret_filter = attributes[:'jq_secret_filter']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes.key?(:'last_error')
|
81
|
+
self.last_error = attributes[:'last_error']
|
82
|
+
end
|
83
|
+
|
84
|
+
if attributes.key?(:'namespace')
|
85
|
+
self.namespace = attributes[:'namespace']
|
86
|
+
end
|
87
|
+
|
88
|
+
if attributes.key?(:'secret_id')
|
89
|
+
self.secret_id = attributes[:'secret_id']
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes.key?(:'secret_name')
|
93
|
+
self.secret_name = attributes[:'secret_name']
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
98
|
+
# @return Array for valid properties with the reasons
|
99
|
+
def list_invalid_properties
|
100
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
101
|
+
invalid_properties = Array.new
|
102
|
+
invalid_properties
|
103
|
+
end
|
104
|
+
|
105
|
+
# Check to see if the all the properties in the model are valid
|
106
|
+
# @return true if the model is valid
|
107
|
+
def valid?
|
108
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
109
|
+
true
|
110
|
+
end
|
111
|
+
|
112
|
+
# Checks equality by comparing each attribute.
|
113
|
+
# @param [Object] Object to be compared
|
114
|
+
def ==(o)
|
115
|
+
return true if self.equal?(o)
|
116
|
+
self.class == o.class &&
|
117
|
+
jq_secret_filter == o.jq_secret_filter &&
|
118
|
+
last_error == o.last_error &&
|
119
|
+
namespace == o.namespace &&
|
120
|
+
secret_id == o.secret_id &&
|
121
|
+
secret_name == o.secret_name
|
122
|
+
end
|
123
|
+
|
124
|
+
# @see the `==` method
|
125
|
+
# @param [Object] Object to be compared
|
126
|
+
def eql?(o)
|
127
|
+
self == o
|
128
|
+
end
|
129
|
+
|
130
|
+
# Calculates hash code according to all attributes.
|
131
|
+
# @return [Integer] Hash code
|
132
|
+
def hash
|
133
|
+
[jq_secret_filter, last_error, namespace, secret_id, secret_name].hash
|
134
|
+
end
|
135
|
+
|
136
|
+
# Builds the object from hash
|
137
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
138
|
+
# @return [Object] Returns the model itself
|
139
|
+
def self.build_from_hash(attributes)
|
140
|
+
return nil unless attributes.is_a?(Hash)
|
141
|
+
attributes = attributes.transform_keys(&:to_sym)
|
142
|
+
transformed_hash = {}
|
143
|
+
openapi_types.each_pair do |key, type|
|
144
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
145
|
+
transformed_hash["#{key}"] = nil
|
146
|
+
elsif type =~ /\AArray<(.*)>/i
|
147
|
+
# check to ensure the input is an array given that the attribute
|
148
|
+
# is documented as an array but the input is not
|
149
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
150
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
151
|
+
end
|
152
|
+
elsif !attributes[attribute_map[key]].nil?
|
153
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
154
|
+
end
|
155
|
+
end
|
156
|
+
new(transformed_hash)
|
157
|
+
end
|
158
|
+
|
159
|
+
# Deserializes the data based on type
|
160
|
+
# @param string type Data type
|
161
|
+
# @param string value Value to be deserialized
|
162
|
+
# @return [Object] Deserialized data
|
163
|
+
def self._deserialize(type, value)
|
164
|
+
case type.to_sym
|
165
|
+
when :Time
|
166
|
+
Time.parse(value)
|
167
|
+
when :Date
|
168
|
+
Date.parse(value)
|
169
|
+
when :String
|
170
|
+
value.to_s
|
171
|
+
when :Integer
|
172
|
+
value.to_i
|
173
|
+
when :Float
|
174
|
+
value.to_f
|
175
|
+
when :Boolean
|
176
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
177
|
+
true
|
178
|
+
else
|
179
|
+
false
|
180
|
+
end
|
181
|
+
when :Object
|
182
|
+
# generic object (usually a Hash), return directly
|
183
|
+
value
|
184
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
185
|
+
inner_type = Regexp.last_match[:inner_type]
|
186
|
+
value.map { |v| _deserialize(inner_type, v) }
|
187
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
188
|
+
k_type = Regexp.last_match[:k_type]
|
189
|
+
v_type = Regexp.last_match[:v_type]
|
190
|
+
{}.tap do |hash|
|
191
|
+
value.each do |k, v|
|
192
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
193
|
+
end
|
194
|
+
end
|
195
|
+
else # model
|
196
|
+
# models (e.g. Pet) or oneOf
|
197
|
+
klass = Akeyless.const_get(type)
|
198
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
202
|
+
# Returns the string representation of the object
|
203
|
+
# @return [String] String presentation of the object
|
204
|
+
def to_s
|
205
|
+
to_hash.to_s
|
206
|
+
end
|
207
|
+
|
208
|
+
# to_body is an alias to to_hash (backward compatibility)
|
209
|
+
# @return [Hash] Returns the object in the form of hash
|
210
|
+
def to_body
|
211
|
+
to_hash
|
212
|
+
end
|
213
|
+
|
214
|
+
# Returns the object in the form of hash
|
215
|
+
# @return [Hash] Returns the object in the form of hash
|
216
|
+
def to_hash
|
217
|
+
hash = {}
|
218
|
+
self.class.attribute_map.each_pair do |attr, param|
|
219
|
+
value = self.send(attr)
|
220
|
+
if value.nil?
|
221
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
222
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
223
|
+
end
|
224
|
+
|
225
|
+
hash[param] = _to_hash(value)
|
226
|
+
end
|
227
|
+
hash
|
228
|
+
end
|
229
|
+
|
230
|
+
# Outputs non-array value in the form of hash
|
231
|
+
# For object, use to_hash. Otherwise, just return the value
|
232
|
+
# @param [Object] value Any valid value
|
233
|
+
# @return [Hash] Returns the value in the form of hash
|
234
|
+
def _to_hash(value)
|
235
|
+
if value.is_a?(Array)
|
236
|
+
value.compact.map { |v| _to_hash(v) }
|
237
|
+
elsif value.is_a?(Hash)
|
238
|
+
{}.tap do |hash|
|
239
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
240
|
+
end
|
241
|
+
elsif value.respond_to? :to_hash
|
242
|
+
value.to_hash
|
243
|
+
else
|
244
|
+
value
|
245
|
+
end
|
246
|
+
end
|
247
|
+
|
248
|
+
end
|
249
|
+
|
250
|
+
end
|
@@ -28,6 +28,9 @@ module Akeyless
|
|
28
28
|
# The namespace (relevant for Hashi vault target)
|
29
29
|
attr_accessor :namespace
|
30
30
|
|
31
|
+
# Optional, the passphrase that protects the private key within the pfx certificate (Relevant only for Azure KV certificates)
|
32
|
+
attr_accessor :pfx_password
|
33
|
+
|
31
34
|
# The universal secrets id (or name, for AWS, Azure, K8s or Hashi vault targets) to update
|
32
35
|
attr_accessor :secret_id
|
33
36
|
|
@@ -53,6 +56,7 @@ module Akeyless
|
|
53
56
|
:'description' => :'description',
|
54
57
|
:'json' => :'json',
|
55
58
|
:'namespace' => :'namespace',
|
59
|
+
:'pfx_password' => :'pfx-password',
|
56
60
|
:'secret_id' => :'secret-id',
|
57
61
|
:'tags' => :'tags',
|
58
62
|
:'token' => :'token',
|
@@ -74,6 +78,7 @@ module Akeyless
|
|
74
78
|
:'description' => :'String',
|
75
79
|
:'json' => :'Boolean',
|
76
80
|
:'namespace' => :'String',
|
81
|
+
:'pfx_password' => :'String',
|
77
82
|
:'secret_id' => :'String',
|
78
83
|
:'tags' => :'Hash<String, String>',
|
79
84
|
:'token' => :'String',
|
@@ -122,6 +127,10 @@ module Akeyless
|
|
122
127
|
self.namespace = attributes[:'namespace']
|
123
128
|
end
|
124
129
|
|
130
|
+
if attributes.key?(:'pfx_password')
|
131
|
+
self.pfx_password = attributes[:'pfx_password']
|
132
|
+
end
|
133
|
+
|
125
134
|
if attributes.key?(:'secret_id')
|
126
135
|
self.secret_id = attributes[:'secret_id']
|
127
136
|
else
|
@@ -194,6 +203,7 @@ module Akeyless
|
|
194
203
|
description == o.description &&
|
195
204
|
json == o.json &&
|
196
205
|
namespace == o.namespace &&
|
206
|
+
pfx_password == o.pfx_password &&
|
197
207
|
secret_id == o.secret_id &&
|
198
208
|
tags == o.tags &&
|
199
209
|
token == o.token &&
|
@@ -211,7 +221,7 @@ module Akeyless
|
|
211
221
|
# Calculates hash code according to all attributes.
|
212
222
|
# @return [Integer] Hash code
|
213
223
|
def hash
|
214
|
-
[binary_value, description, json, namespace, secret_id, tags, token, uid_token, usc_name, value].hash
|
224
|
+
[binary_value, description, json, namespace, pfx_password, secret_id, tags, token, uid_token, usc_name, value].hash
|
215
225
|
end
|
216
226
|
|
217
227
|
# Builds the object from hash
|
data/lib/akeyless/version.rb
CHANGED