akeyless 5.0.21 → 5.0.23
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 +35 -1
- data/docs/AccountGeneralSettings.md +6 -0
- data/docs/ActiveDirectoryPayload.md +6 -0
- data/docs/Auth.md +2 -0
- data/docs/AuthMethodCreateCert.md +2 -0
- data/docs/AuthMethodCreateUniversalIdentity.md +4 -0
- data/docs/AuthMethodUpdateCert.md +2 -0
- data/docs/AuthMethodUpdateUniversalIdentity.md +4 -0
- data/docs/AwsStorage.md +2 -0
- data/docs/AzureADAccessRules.md +2 -0
- data/docs/AzureTargetDetails.md +2 -0
- data/docs/CertAccessRules.md +2 -0
- data/docs/CertificateChainInfo.md +2 -0
- data/docs/Configure.md +2 -0
- data/docs/ConjurMigration.md +20 -0
- data/docs/ConjurPayload.md +24 -0
- data/docs/CreateAuthMethodCert.md +2 -0
- data/docs/CreateAuthMethodUniversalIdentity.md +4 -0
- data/docs/CreateAzureTarget.md +2 -0
- data/docs/CreateRotatedSecret.md +3 -1
- data/docs/CreateSecret.md +2 -0
- data/docs/CreateUSC.md +10 -0
- data/docs/DSProducerDetails.md +2 -0
- data/docs/DefaultAuthMethodSettings.md +20 -0
- data/docs/DeleteRoleRule.md +1 -1
- data/docs/DescribePermissions.md +1 -1
- data/docs/DigiCertTargetDetails.md +42 -0
- data/docs/EsmListSecretsOutput.md +3 -1
- data/docs/GatewayCreateMigration.md +19 -1
- data/docs/GatewayUpdateMigration.md +18 -0
- data/docs/GatewayUpdateRemoteAccessRdpRecordings.md +2 -0
- data/docs/GeneralConfigPart.md +4 -0
- data/docs/GetPKICertificateOutput.md +2 -0
- data/docs/GithubMetadata.md +28 -0
- data/docs/GoogleTrustTargetDetails.md +42 -0
- data/docs/HTTPChallengeInfo.md +26 -0
- data/docs/HashiPayload.md +5 -1
- data/docs/IssuerOverviewInfo.md +22 -0
- data/docs/Item.md +2 -0
- data/docs/ItemGeneralInfo.md +2 -0
- data/docs/ItemLockingSetting.md +20 -0
- data/docs/LockItem.md +28 -0
- data/docs/LockTarget.md +28 -0
- data/docs/LockingInfo.md +24 -0
- data/docs/MigrationStatusReplyObj.md +4 -0
- data/docs/MigrationsConfigPart.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/SecretInfo.md +4 -0
- data/docs/SecureRemoteAccess.md +4 -0
- data/docs/SetRoleRule.md +1 -1
- data/docs/SyncCounters.md +22 -0
- data/docs/Target.md +2 -0
- data/docs/TargetCreateAzure.md +2 -0
- data/docs/TargetCreateDigiCert.md +50 -0
- data/docs/TargetCreateGoogleTrust.md +50 -0
- data/docs/TargetCreateLetsEncrypt.md +1 -1
- data/docs/TargetCreateSplunk.md +3 -1
- data/docs/TargetTypeDetailsInput.md +4 -0
- data/docs/TargetUpdateAzure.md +2 -0
- data/docs/TargetUpdateDigiCert.md +54 -0
- data/docs/TargetUpdateGoogleTrust.md +54 -0
- data/docs/TargetUpdateLetsEncrypt.md +1 -1
- 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/UpdateAuthMethodCert.md +2 -0
- data/docs/UpdateAuthMethodUniversalIdentity.md +4 -0
- data/docs/UpdateAzureTarget.md +2 -0
- data/docs/UpdateItem.md +3 -1
- data/docs/UpdateRotatedSecret.md +3 -1
- data/docs/UscCreate.md +2 -0
- data/docs/UscDelete.md +4 -0
- data/docs/UscGet.md +4 -0
- data/docs/UscListSecretsOutput.md +3 -1
- data/docs/UscUpdate.md +4 -0
- data/docs/V2Api.md +632 -2
- data/docs/ValidateCertificateChallenge.md +30 -0
- data/docs/ValidateCertificateChallengeOutput.md +24 -0
- data/docs/VaultAddress.md +20 -0
- data/docs/VaultAddressOutput.md +20 -0
- data/docs/WebBastionRdpRecord.md +2 -0
- data/lib/akeyless/api/v2_api.rb +640 -0
- data/lib/akeyless/models/account_general_settings.rb +28 -1
- data/lib/akeyless/models/active_directory_payload.rb +30 -1
- data/lib/akeyless/models/auth.rb +13 -1
- data/lib/akeyless/models/auth_method_create_cert.rb +11 -1
- data/lib/akeyless/models/auth_method_create_universal_identity.rb +25 -1
- data/lib/akeyless/models/auth_method_update_cert.rb +11 -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/azure_ad_access_rules.rb +11 -1
- data/lib/akeyless/models/azure_target_details.rb +10 -1
- data/lib/akeyless/models/cert_access_rules.rb +11 -1
- data/lib/akeyless/models/certificate_chain_info.rb +11 -1
- data/lib/akeyless/models/configure.rb +13 -1
- data/lib/akeyless/models/conjur_migration.rb +223 -0
- data/lib/akeyless/models/conjur_payload.rb +241 -0
- data/lib/akeyless/models/create_auth_method_cert.rb +11 -1
- data/lib/akeyless/models/create_auth_method_universal_identity.rb +25 -1
- data/lib/akeyless/models/create_azure_target.rb +13 -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 +54 -1
- data/lib/akeyless/models/default_auth_method_settings.rb +223 -0
- 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 +15 -4
- data/lib/akeyless/models/gateway_create_migration.rb +94 -2
- data/lib/akeyless/models/gateway_update_migration.rb +93 -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/get_pki_certificate_output.rb +10 -1
- data/lib/akeyless/models/github_metadata.rb +259 -0
- data/lib/akeyless/models/google_trust_target_details.rb +335 -0
- data/lib/akeyless/models/hashi_payload.rb +22 -4
- data/lib/akeyless/models/http_challenge_info.rb +251 -0
- data/lib/akeyless/models/issuer_overview_info.rb +232 -0
- 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/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 +19 -1
- data/lib/akeyless/models/migrations_config_part.rb +12 -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/secret_info.rb +19 -1
- data/lib/akeyless/models/secure_remote_access.rb +19 -1
- data/lib/akeyless/models/set_role_rule.rb +1 -1
- data/lib/akeyless/models/sync_counters.rb +233 -0
- data/lib/akeyless/models/target.rb +10 -1
- data/lib/akeyless/models/target_create_azure.rb +13 -1
- data/lib/akeyless/models/target_create_digi_cert.rb +398 -0
- data/lib/akeyless/models/target_create_google_trust.rb +398 -0
- data/lib/akeyless/models/target_create_lets_encrypt.rb +7 -0
- data/lib/akeyless/models/target_create_splunk.rb +11 -1
- data/lib/akeyless/models/target_type_details_input.rb +19 -1
- data/lib/akeyless/models/target_update_azure.rb +13 -1
- data/lib/akeyless/models/target_update_digi_cert.rb +418 -0
- data/lib/akeyless/models/target_update_google_trust.rb +418 -0
- data/lib/akeyless/models/target_update_lets_encrypt.rb +7 -0
- 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_cert.rb +11 -1
- data/lib/akeyless/models/update_auth_method_universal_identity.rb +25 -1
- data/lib/akeyless/models/update_azure_target.rb +13 -1
- data/lib/akeyless/models/update_item.rb +12 -4
- data/lib/akeyless/models/update_rotated_secret.rb +12 -4
- 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_secrets_output.rb +15 -4
- data/lib/akeyless/models/usc_update.rb +20 -1
- data/lib/akeyless/models/validate_certificate_challenge.rb +279 -0
- data/lib/akeyless/models/validate_certificate_challenge_output.rb +242 -0
- data/lib/akeyless/models/vault_address.rb +227 -0
- data/lib/akeyless/models/vault_address_output.rb +223 -0
- data/lib/akeyless/models/web_bastion_rdp_record.rb +10 -1
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +24 -0
- data/spec/models/conjur_migration_spec.rb +42 -0
- data/spec/models/conjur_payload_spec.rb +54 -0
- data/spec/models/default_auth_method_settings_spec.rb +42 -0
- data/spec/models/digi_cert_target_details_spec.rb +108 -0
- data/spec/models/github_metadata_spec.rb +66 -0
- data/spec/models/google_trust_target_details_spec.rb +108 -0
- data/spec/models/http_challenge_info_spec.rb +60 -0
- data/spec/models/issuer_overview_info_spec.rb +48 -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/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
- data/spec/models/validate_certificate_challenge_output_spec.rb +54 -0
- data/spec/models/validate_certificate_challenge_spec.rb +72 -0
- data/spec/models/vault_address_output_spec.rb +42 -0
- data/spec/models/vault_address_spec.rb +42 -0
- metadata +1233 -1134
|
@@ -79,6 +79,9 @@ module Akeyless
|
|
|
79
79
|
# Choose the relevant product type for the auth method [sm, sra, pm, dp, ca]
|
|
80
80
|
attr_accessor :product_type
|
|
81
81
|
|
|
82
|
+
# Require certificate CRL distribution points (CDP) and enforce CRL validation during authentication.
|
|
83
|
+
attr_accessor :require_crl_dp
|
|
84
|
+
|
|
82
85
|
# A list of revoked cert ids
|
|
83
86
|
attr_accessor :revoked_cert_ids
|
|
84
87
|
|
|
@@ -115,6 +118,7 @@ module Akeyless
|
|
|
115
118
|
:'jwt_ttl' => :'jwt-ttl',
|
|
116
119
|
:'name' => :'name',
|
|
117
120
|
:'product_type' => :'product-type',
|
|
121
|
+
:'require_crl_dp' => :'require-crl-dp',
|
|
118
122
|
:'revoked_cert_ids' => :'revoked-cert-ids',
|
|
119
123
|
:'token' => :'token',
|
|
120
124
|
:'uid_token' => :'uid-token',
|
|
@@ -151,6 +155,7 @@ module Akeyless
|
|
|
151
155
|
:'jwt_ttl' => :'Integer',
|
|
152
156
|
:'name' => :'String',
|
|
153
157
|
:'product_type' => :'Array<String>',
|
|
158
|
+
:'require_crl_dp' => :'Boolean',
|
|
154
159
|
:'revoked_cert_ids' => :'Array<String>',
|
|
155
160
|
:'token' => :'String',
|
|
156
161
|
:'uid_token' => :'String',
|
|
@@ -295,6 +300,10 @@ module Akeyless
|
|
|
295
300
|
end
|
|
296
301
|
end
|
|
297
302
|
|
|
303
|
+
if attributes.key?(:'require_crl_dp')
|
|
304
|
+
self.require_crl_dp = attributes[:'require_crl_dp']
|
|
305
|
+
end
|
|
306
|
+
|
|
298
307
|
if attributes.key?(:'revoked_cert_ids')
|
|
299
308
|
if (value = attributes[:'revoked_cert_ids']).is_a?(Array)
|
|
300
309
|
self.revoked_cert_ids = value
|
|
@@ -367,6 +376,7 @@ module Akeyless
|
|
|
367
376
|
jwt_ttl == o.jwt_ttl &&
|
|
368
377
|
name == o.name &&
|
|
369
378
|
product_type == o.product_type &&
|
|
379
|
+
require_crl_dp == o.require_crl_dp &&
|
|
370
380
|
revoked_cert_ids == o.revoked_cert_ids &&
|
|
371
381
|
token == o.token &&
|
|
372
382
|
uid_token == o.uid_token &&
|
|
@@ -382,7 +392,7 @@ module Akeyless
|
|
|
382
392
|
# Calculates hash code according to all attributes.
|
|
383
393
|
# @return [Integer] Hash code
|
|
384
394
|
def hash
|
|
385
|
-
[access_expires, allowed_client_type, allowed_cors, audit_logs_claims, bound_common_names, bound_dns_sans, bound_email_sans, bound_extensions, bound_ips, bound_organizational_units, bound_uri_sans, certificate_data, delete_protection, description, expiration_event_in, force_sub_claims, gw_bound_ips, json, jwt_ttl, name, product_type, revoked_cert_ids, token, uid_token, unique_identifier].hash
|
|
395
|
+
[access_expires, allowed_client_type, allowed_cors, audit_logs_claims, bound_common_names, bound_dns_sans, bound_email_sans, bound_extensions, bound_ips, bound_organizational_units, bound_uri_sans, certificate_data, delete_protection, description, expiration_event_in, force_sub_claims, gw_bound_ips, json, jwt_ttl, name, product_type, require_crl_dp, revoked_cert_ids, token, uid_token, unique_identifier].hash
|
|
386
396
|
end
|
|
387
397
|
|
|
388
398
|
# Builds the object from hash
|
|
@@ -28,6 +28,9 @@ module Akeyless
|
|
|
28
28
|
# A CIDR whitelist with the IPs that the access is restricted to
|
|
29
29
|
attr_accessor :bound_ips
|
|
30
30
|
|
|
31
|
+
# Maximum child token ttl allowed in uid-create-child-token
|
|
32
|
+
attr_accessor :child_ttl_limit
|
|
33
|
+
|
|
31
34
|
# Protection from accidental deletion of this object [true/false]
|
|
32
35
|
attr_accessor :delete_protection
|
|
33
36
|
|
|
@@ -64,6 +67,9 @@ module Akeyless
|
|
|
64
67
|
# Authentication token (see `/auth` and `/configure`)
|
|
65
68
|
attr_accessor :token
|
|
66
69
|
|
|
70
|
+
# Maximum UID tree depth allowed (child of child of ...)
|
|
71
|
+
attr_accessor :tree_length
|
|
72
|
+
|
|
67
73
|
# Token ttl
|
|
68
74
|
attr_accessor :ttl
|
|
69
75
|
|
|
@@ -77,6 +83,7 @@ module Akeyless
|
|
|
77
83
|
:'allowed_client_type' => :'allowed-client-type',
|
|
78
84
|
:'audit_logs_claims' => :'audit-logs-claims',
|
|
79
85
|
:'bound_ips' => :'bound-ips',
|
|
86
|
+
:'child_ttl_limit' => :'child-ttl-limit',
|
|
80
87
|
:'delete_protection' => :'delete_protection',
|
|
81
88
|
:'deny_inheritance' => :'deny-inheritance',
|
|
82
89
|
:'deny_rotate' => :'deny-rotate',
|
|
@@ -89,6 +96,7 @@ module Akeyless
|
|
|
89
96
|
:'name' => :'name',
|
|
90
97
|
:'product_type' => :'product-type',
|
|
91
98
|
:'token' => :'token',
|
|
99
|
+
:'tree_length' => :'tree-length',
|
|
92
100
|
:'ttl' => :'ttl',
|
|
93
101
|
:'uid_token' => :'uid-token'
|
|
94
102
|
}
|
|
@@ -106,6 +114,7 @@ module Akeyless
|
|
|
106
114
|
:'allowed_client_type' => :'Array<String>',
|
|
107
115
|
:'audit_logs_claims' => :'Array<String>',
|
|
108
116
|
:'bound_ips' => :'Array<String>',
|
|
117
|
+
:'child_ttl_limit' => :'Integer',
|
|
109
118
|
:'delete_protection' => :'String',
|
|
110
119
|
:'deny_inheritance' => :'Boolean',
|
|
111
120
|
:'deny_rotate' => :'Boolean',
|
|
@@ -118,6 +127,7 @@ module Akeyless
|
|
|
118
127
|
:'name' => :'String',
|
|
119
128
|
:'product_type' => :'Array<String>',
|
|
120
129
|
:'token' => :'String',
|
|
130
|
+
:'tree_length' => :'Integer',
|
|
121
131
|
:'ttl' => :'Integer',
|
|
122
132
|
:'uid_token' => :'String'
|
|
123
133
|
}
|
|
@@ -168,6 +178,12 @@ module Akeyless
|
|
|
168
178
|
end
|
|
169
179
|
end
|
|
170
180
|
|
|
181
|
+
if attributes.key?(:'child_ttl_limit')
|
|
182
|
+
self.child_ttl_limit = attributes[:'child_ttl_limit']
|
|
183
|
+
else
|
|
184
|
+
self.child_ttl_limit = 43200
|
|
185
|
+
end
|
|
186
|
+
|
|
171
187
|
if attributes.key?(:'delete_protection')
|
|
172
188
|
self.delete_protection = attributes[:'delete_protection']
|
|
173
189
|
end
|
|
@@ -228,6 +244,12 @@ module Akeyless
|
|
|
228
244
|
self.token = attributes[:'token']
|
|
229
245
|
end
|
|
230
246
|
|
|
247
|
+
if attributes.key?(:'tree_length')
|
|
248
|
+
self.tree_length = attributes[:'tree_length']
|
|
249
|
+
else
|
|
250
|
+
self.tree_length = 200
|
|
251
|
+
end
|
|
252
|
+
|
|
231
253
|
if attributes.key?(:'ttl')
|
|
232
254
|
self.ttl = attributes[:'ttl']
|
|
233
255
|
else
|
|
@@ -268,6 +290,7 @@ module Akeyless
|
|
|
268
290
|
allowed_client_type == o.allowed_client_type &&
|
|
269
291
|
audit_logs_claims == o.audit_logs_claims &&
|
|
270
292
|
bound_ips == o.bound_ips &&
|
|
293
|
+
child_ttl_limit == o.child_ttl_limit &&
|
|
271
294
|
delete_protection == o.delete_protection &&
|
|
272
295
|
deny_inheritance == o.deny_inheritance &&
|
|
273
296
|
deny_rotate == o.deny_rotate &&
|
|
@@ -280,6 +303,7 @@ module Akeyless
|
|
|
280
303
|
name == o.name &&
|
|
281
304
|
product_type == o.product_type &&
|
|
282
305
|
token == o.token &&
|
|
306
|
+
tree_length == o.tree_length &&
|
|
283
307
|
ttl == o.ttl &&
|
|
284
308
|
uid_token == o.uid_token
|
|
285
309
|
end
|
|
@@ -293,7 +317,7 @@ module Akeyless
|
|
|
293
317
|
# Calculates hash code according to all attributes.
|
|
294
318
|
# @return [Integer] Hash code
|
|
295
319
|
def hash
|
|
296
|
-
[access_expires, allowed_client_type, audit_logs_claims, bound_ips, delete_protection, deny_inheritance, deny_rotate, description, expiration_event_in, force_sub_claims, gw_bound_ips, json, jwt_ttl, name, product_type, token, ttl, uid_token].hash
|
|
320
|
+
[access_expires, allowed_client_type, audit_logs_claims, bound_ips, child_ttl_limit, delete_protection, deny_inheritance, deny_rotate, description, expiration_event_in, force_sub_claims, gw_bound_ips, json, jwt_ttl, name, product_type, token, tree_length, ttl, uid_token].hash
|
|
297
321
|
end
|
|
298
322
|
|
|
299
323
|
# Builds the object from hash
|
|
@@ -16,6 +16,9 @@ require 'time'
|
|
|
16
16
|
module Akeyless
|
|
17
17
|
# createAzureTarget is a command that creates a new target. [Deprecated: Use target-create-azure command]
|
|
18
18
|
class CreateAzureTarget
|
|
19
|
+
# Azure cloud environment to use. Values: AzureCloud (default), AzureUSGovernment, AzureChinaCloud.
|
|
20
|
+
attr_accessor :azure_cloud
|
|
21
|
+
|
|
19
22
|
# Azure client/application id
|
|
20
23
|
attr_accessor :client_id
|
|
21
24
|
|
|
@@ -67,6 +70,7 @@ module Akeyless
|
|
|
67
70
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
68
71
|
def self.attribute_map
|
|
69
72
|
{
|
|
73
|
+
:'azure_cloud' => :'azure-cloud',
|
|
70
74
|
:'client_id' => :'client-id',
|
|
71
75
|
:'client_secret' => :'client-secret',
|
|
72
76
|
:'comment' => :'comment',
|
|
@@ -94,6 +98,7 @@ module Akeyless
|
|
|
94
98
|
# Attribute type mapping.
|
|
95
99
|
def self.openapi_types
|
|
96
100
|
{
|
|
101
|
+
:'azure_cloud' => :'String',
|
|
97
102
|
:'client_id' => :'String',
|
|
98
103
|
:'client_secret' => :'String',
|
|
99
104
|
:'comment' => :'String',
|
|
@@ -134,6 +139,12 @@ module Akeyless
|
|
|
134
139
|
h[k.to_sym] = v
|
|
135
140
|
}
|
|
136
141
|
|
|
142
|
+
if attributes.key?(:'azure_cloud')
|
|
143
|
+
self.azure_cloud = attributes[:'azure_cloud']
|
|
144
|
+
else
|
|
145
|
+
self.azure_cloud = 'AzureCloud'
|
|
146
|
+
end
|
|
147
|
+
|
|
137
148
|
if attributes.key?(:'client_id')
|
|
138
149
|
self.client_id = attributes[:'client_id']
|
|
139
150
|
end
|
|
@@ -230,6 +241,7 @@ module Akeyless
|
|
|
230
241
|
def ==(o)
|
|
231
242
|
return true if self.equal?(o)
|
|
232
243
|
self.class == o.class &&
|
|
244
|
+
azure_cloud == o.azure_cloud &&
|
|
233
245
|
client_id == o.client_id &&
|
|
234
246
|
client_secret == o.client_secret &&
|
|
235
247
|
comment == o.comment &&
|
|
@@ -257,7 +269,7 @@ module Akeyless
|
|
|
257
269
|
# Calculates hash code according to all attributes.
|
|
258
270
|
# @return [Integer] Hash code
|
|
259
271
|
def hash
|
|
260
|
-
[client_id, client_secret, comment, connection_type, description, json, key, max_versions, name, resource_group_name, resource_name, subscription_id, tenant_id, token, uid_token, use_gw_cloud_identity].hash
|
|
272
|
+
[azure_cloud, client_id, client_secret, comment, connection_type, description, json, key, max_versions, name, resource_group_name, resource_name, subscription_id, tenant_id, token, uid_token, use_gw_cloud_identity].hash
|
|
261
273
|
end
|
|
262
274
|
|
|
263
275
|
# Builds the object from hash
|
|
@@ -66,6 +66,9 @@ module Akeyless
|
|
|
66
66
|
# The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
|
|
67
67
|
attr_accessor :key
|
|
68
68
|
|
|
69
|
+
# Lock this secret for read/update while an SRA session is active
|
|
70
|
+
attr_accessor :lock_during_sra_session
|
|
71
|
+
|
|
69
72
|
# Deprecated - use description
|
|
70
73
|
attr_accessor :metadata
|
|
71
74
|
|
|
@@ -75,7 +78,7 @@ module Akeyless
|
|
|
75
78
|
# The length of the password to be generated
|
|
76
79
|
attr_accessor :password_length
|
|
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
|
# rotated-username password (relevant only for rotator-type=password)
|
|
@@ -199,6 +202,7 @@ module Akeyless
|
|
|
199
202
|
:'host_provider' => :'host-provider',
|
|
200
203
|
:'json' => :'json',
|
|
201
204
|
:'key' => :'key',
|
|
205
|
+
:'lock_during_sra_session' => :'lock-during-sra-session',
|
|
202
206
|
:'metadata' => :'metadata',
|
|
203
207
|
:'name' => :'name',
|
|
204
208
|
:'password_length' => :'password-length',
|
|
@@ -265,6 +269,7 @@ module Akeyless
|
|
|
265
269
|
:'host_provider' => :'String',
|
|
266
270
|
:'json' => :'Boolean',
|
|
267
271
|
:'key' => :'String',
|
|
272
|
+
:'lock_during_sra_session' => :'String',
|
|
268
273
|
:'metadata' => :'String',
|
|
269
274
|
:'name' => :'String',
|
|
270
275
|
:'password_length' => :'String',
|
|
@@ -401,6 +406,10 @@ module Akeyless
|
|
|
401
406
|
self.key = attributes[:'key']
|
|
402
407
|
end
|
|
403
408
|
|
|
409
|
+
if attributes.key?(:'lock_during_sra_session')
|
|
410
|
+
self.lock_during_sra_session = attributes[:'lock_during_sra_session']
|
|
411
|
+
end
|
|
412
|
+
|
|
404
413
|
if attributes.key?(:'metadata')
|
|
405
414
|
self.metadata = attributes[:'metadata']
|
|
406
415
|
end
|
|
@@ -417,8 +426,6 @@ module Akeyless
|
|
|
417
426
|
|
|
418
427
|
if attributes.key?(:'rotate_after_disconnect')
|
|
419
428
|
self.rotate_after_disconnect = attributes[:'rotate_after_disconnect']
|
|
420
|
-
else
|
|
421
|
-
self.rotate_after_disconnect = 'false'
|
|
422
429
|
end
|
|
423
430
|
|
|
424
431
|
if attributes.key?(:'rotated_password')
|
|
@@ -630,6 +637,7 @@ module Akeyless
|
|
|
630
637
|
host_provider == o.host_provider &&
|
|
631
638
|
json == o.json &&
|
|
632
639
|
key == o.key &&
|
|
640
|
+
lock_during_sra_session == o.lock_during_sra_session &&
|
|
633
641
|
metadata == o.metadata &&
|
|
634
642
|
name == o.name &&
|
|
635
643
|
password_length == o.password_length &&
|
|
@@ -679,7 +687,7 @@ module Akeyless
|
|
|
679
687
|
# Calculates hash code according to all attributes.
|
|
680
688
|
# @return [Integer] Hash code
|
|
681
689
|
def hash
|
|
682
|
-
[provider_type, api_id, api_key, application_id, authentication_credentials, auto_rotate, aws_region, custom_payload, delete_protection, description, gcp_key, gcp_service_account_email, gcp_service_account_key_id, grace_rotation, host_provider, json, key, metadata, name, password_length, rotate_after_disconnect, rotated_password, rotated_username, rotation_hour, rotation_interval, rotator_creds_type, rotator_custom_cmd, rotator_type, same_password, secure_access_allow_external_user, secure_access_aws_account_id, secure_access_aws_native_cli, secure_access_bastion_issuer, secure_access_certificate_issuer, secure_access_db_name, secure_access_db_schema, secure_access_disable_concurrent_connections, secure_access_enable, secure_access_host, secure_access_rdp_domain, secure_access_rdp_user, secure_access_url, secure_access_web, secure_access_web_browsing, secure_access_web_proxy, ssh_password, ssh_username, storage_account_key_name, tags, target, target_name, token, uid_token, user_attribute, user_dn].hash
|
|
690
|
+
[provider_type, api_id, api_key, application_id, authentication_credentials, auto_rotate, aws_region, custom_payload, delete_protection, description, gcp_key, gcp_service_account_email, gcp_service_account_key_id, grace_rotation, host_provider, json, key, lock_during_sra_session, metadata, name, password_length, rotate_after_disconnect, rotated_password, rotated_username, rotation_hour, rotation_interval, rotator_creds_type, rotator_custom_cmd, rotator_type, same_password, secure_access_allow_external_user, secure_access_aws_account_id, secure_access_aws_native_cli, secure_access_bastion_issuer, secure_access_certificate_issuer, secure_access_db_name, secure_access_db_schema, secure_access_disable_concurrent_connections, secure_access_enable, secure_access_host, secure_access_rdp_domain, secure_access_rdp_user, secure_access_url, secure_access_web, secure_access_web_browsing, secure_access_web_proxy, ssh_password, ssh_username, storage_account_key_name, tags, target, target_name, token, uid_token, user_attribute, user_dn].hash
|
|
683
691
|
end
|
|
684
692
|
|
|
685
693
|
# Builds the object from hash
|
|
@@ -42,6 +42,9 @@ module Akeyless
|
|
|
42
42
|
# Set output format to JSON
|
|
43
43
|
attr_accessor :json
|
|
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
|
|
|
@@ -122,6 +125,7 @@ module Akeyless
|
|
|
122
125
|
:'inject_url' => :'inject-url',
|
|
123
126
|
:'item_custom_fields' => :'item-custom-fields',
|
|
124
127
|
:'json' => :'json',
|
|
128
|
+
:'lock_during_sra_session' => :'lock-during-sra-session',
|
|
125
129
|
:'max_versions' => :'max-versions',
|
|
126
130
|
:'metadata' => :'metadata',
|
|
127
131
|
:'multiline_value' => :'multiline_value',
|
|
@@ -165,6 +169,7 @@ module Akeyless
|
|
|
165
169
|
:'inject_url' => :'Array<String>',
|
|
166
170
|
:'item_custom_fields' => :'Hash<String, String>',
|
|
167
171
|
:'json' => :'Boolean',
|
|
172
|
+
:'lock_during_sra_session' => :'String',
|
|
168
173
|
:'max_versions' => :'String',
|
|
169
174
|
:'metadata' => :'String',
|
|
170
175
|
:'multiline_value' => :'Boolean',
|
|
@@ -260,6 +265,10 @@ module Akeyless
|
|
|
260
265
|
self.json = false
|
|
261
266
|
end
|
|
262
267
|
|
|
268
|
+
if attributes.key?(:'lock_during_sra_session')
|
|
269
|
+
self.lock_during_sra_session = attributes[:'lock_during_sra_session']
|
|
270
|
+
end
|
|
271
|
+
|
|
263
272
|
if attributes.key?(:'max_versions')
|
|
264
273
|
self.max_versions = attributes[:'max_versions']
|
|
265
274
|
end
|
|
@@ -406,6 +415,7 @@ module Akeyless
|
|
|
406
415
|
inject_url == o.inject_url &&
|
|
407
416
|
item_custom_fields == o.item_custom_fields &&
|
|
408
417
|
json == o.json &&
|
|
418
|
+
lock_during_sra_session == o.lock_during_sra_session &&
|
|
409
419
|
max_versions == o.max_versions &&
|
|
410
420
|
metadata == o.metadata &&
|
|
411
421
|
multiline_value == o.multiline_value &&
|
|
@@ -440,7 +450,7 @@ module Akeyless
|
|
|
440
450
|
# Calculates hash code according to all attributes.
|
|
441
451
|
# @return [Integer] Hash code
|
|
442
452
|
def hash
|
|
443
|
-
[accessibility, change_event, custom_field, delete_protection, description, format, inject_url, item_custom_fields, json, max_versions, metadata, multiline_value, name, password, protection_key, secure_access_bastion_issuer, secure_access_certificate_issuer, secure_access_enable, secure_access_gateway, secure_access_host, secure_access_rdp_user, secure_access_ssh_creds, secure_access_ssh_user, secure_access_url, secure_access_web_browsing, secure_access_web_proxy, tags, token, type, uid_token, username, value].hash
|
|
453
|
+
[accessibility, change_event, custom_field, delete_protection, description, format, inject_url, item_custom_fields, json, lock_during_sra_session, max_versions, metadata, multiline_value, name, password, protection_key, secure_access_bastion_issuer, secure_access_certificate_issuer, secure_access_enable, secure_access_gateway, secure_access_host, secure_access_rdp_user, secure_access_ssh_creds, secure_access_ssh_user, secure_access_url, secure_access_web_browsing, secure_access_web_proxy, tags, token, type, uid_token, username, value].hash
|
|
444
454
|
end
|
|
445
455
|
|
|
446
456
|
# Builds the object from hash
|
|
@@ -25,12 +25,18 @@ module Akeyless
|
|
|
25
25
|
# Description of the Universal Secrets Connector
|
|
26
26
|
attr_accessor :description
|
|
27
27
|
|
|
28
|
+
# The environments in repo-name/environment-name format, comma-separated (only relevant for: github-scope=repository-environment)
|
|
29
|
+
attr_accessor :environment_names
|
|
30
|
+
|
|
28
31
|
# GCP Project ID (Relevant only for GCP targets)
|
|
29
32
|
attr_accessor :gcp_project_id
|
|
30
33
|
|
|
31
34
|
# GCP Secret Manager regions to query for regional secrets (comma-separated, e.g., us-east1,us-west1). Max 12 regions. Required when listing with object-type=regional-secrets.
|
|
32
35
|
attr_accessor :gcp_sm_regions
|
|
33
36
|
|
|
37
|
+
# The scope where secrets will be created, available options: [repository, organization, repository-environment]
|
|
38
|
+
attr_accessor :github_scope
|
|
39
|
+
|
|
34
40
|
# Additional custom fields to associate with the item
|
|
35
41
|
attr_accessor :item_custom_fields
|
|
36
42
|
|
|
@@ -43,6 +49,14 @@ module Akeyless
|
|
|
43
49
|
# Universal Secrets Connector name
|
|
44
50
|
attr_accessor :name
|
|
45
51
|
|
|
52
|
+
# The organization name to create the secret in
|
|
53
|
+
attr_accessor :organization_name
|
|
54
|
+
|
|
55
|
+
attr_accessor :repository_access
|
|
56
|
+
|
|
57
|
+
# The repository names, comma-separated (only relevant for: github-scope=repository)
|
|
58
|
+
attr_accessor :repository_names
|
|
59
|
+
|
|
46
60
|
# List of the tags attached to this Universal Secrets Connector
|
|
47
61
|
attr_accessor :tags
|
|
48
62
|
|
|
@@ -67,12 +81,17 @@ module Akeyless
|
|
|
67
81
|
:'azure_kv_name' => :'azure-kv-name',
|
|
68
82
|
:'delete_protection' => :'delete_protection',
|
|
69
83
|
:'description' => :'description',
|
|
84
|
+
:'environment_names' => :'environment-names',
|
|
70
85
|
:'gcp_project_id' => :'gcp-project-id',
|
|
71
86
|
:'gcp_sm_regions' => :'gcp-sm-regions',
|
|
87
|
+
:'github_scope' => :'github-scope',
|
|
72
88
|
:'item_custom_fields' => :'item-custom-fields',
|
|
73
89
|
:'json' => :'json',
|
|
74
90
|
:'k8s_namespace' => :'k8s-namespace',
|
|
75
91
|
:'name' => :'name',
|
|
92
|
+
:'organization_name' => :'organization-name',
|
|
93
|
+
:'repository_access' => :'repository-access',
|
|
94
|
+
:'repository_names' => :'repository-names',
|
|
76
95
|
:'tags' => :'tags',
|
|
77
96
|
:'target_to_associate' => :'target-to-associate',
|
|
78
97
|
:'token' => :'token',
|
|
@@ -93,12 +112,17 @@ module Akeyless
|
|
|
93
112
|
:'azure_kv_name' => :'String',
|
|
94
113
|
:'delete_protection' => :'String',
|
|
95
114
|
:'description' => :'String',
|
|
115
|
+
:'environment_names' => :'String',
|
|
96
116
|
:'gcp_project_id' => :'String',
|
|
97
117
|
:'gcp_sm_regions' => :'String',
|
|
118
|
+
:'github_scope' => :'String',
|
|
98
119
|
:'item_custom_fields' => :'Hash<String, String>',
|
|
99
120
|
:'json' => :'Boolean',
|
|
100
121
|
:'k8s_namespace' => :'String',
|
|
101
122
|
:'name' => :'String',
|
|
123
|
+
:'organization_name' => :'String',
|
|
124
|
+
:'repository_access' => :'String',
|
|
125
|
+
:'repository_names' => :'String',
|
|
102
126
|
:'tags' => :'Array<String>',
|
|
103
127
|
:'target_to_associate' => :'String',
|
|
104
128
|
:'token' => :'String',
|
|
@@ -141,6 +165,10 @@ module Akeyless
|
|
|
141
165
|
self.description = attributes[:'description']
|
|
142
166
|
end
|
|
143
167
|
|
|
168
|
+
if attributes.key?(:'environment_names')
|
|
169
|
+
self.environment_names = attributes[:'environment_names']
|
|
170
|
+
end
|
|
171
|
+
|
|
144
172
|
if attributes.key?(:'gcp_project_id')
|
|
145
173
|
self.gcp_project_id = attributes[:'gcp_project_id']
|
|
146
174
|
end
|
|
@@ -149,6 +177,12 @@ module Akeyless
|
|
|
149
177
|
self.gcp_sm_regions = attributes[:'gcp_sm_regions']
|
|
150
178
|
end
|
|
151
179
|
|
|
180
|
+
if attributes.key?(:'github_scope')
|
|
181
|
+
self.github_scope = attributes[:'github_scope']
|
|
182
|
+
else
|
|
183
|
+
self.github_scope = 'repository'
|
|
184
|
+
end
|
|
185
|
+
|
|
152
186
|
if attributes.key?(:'item_custom_fields')
|
|
153
187
|
if (value = attributes[:'item_custom_fields']).is_a?(Hash)
|
|
154
188
|
self.item_custom_fields = value
|
|
@@ -171,6 +205,20 @@ module Akeyless
|
|
|
171
205
|
self.name = nil
|
|
172
206
|
end
|
|
173
207
|
|
|
208
|
+
if attributes.key?(:'organization_name')
|
|
209
|
+
self.organization_name = attributes[:'organization_name']
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
if attributes.key?(:'repository_access')
|
|
213
|
+
self.repository_access = attributes[:'repository_access']
|
|
214
|
+
else
|
|
215
|
+
self.repository_access = 'public'
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
if attributes.key?(:'repository_names')
|
|
219
|
+
self.repository_names = attributes[:'repository_names']
|
|
220
|
+
end
|
|
221
|
+
|
|
174
222
|
if attributes.key?(:'tags')
|
|
175
223
|
if (value = attributes[:'tags']).is_a?(Array)
|
|
176
224
|
self.tags = value
|
|
@@ -235,12 +283,17 @@ module Akeyless
|
|
|
235
283
|
azure_kv_name == o.azure_kv_name &&
|
|
236
284
|
delete_protection == o.delete_protection &&
|
|
237
285
|
description == o.description &&
|
|
286
|
+
environment_names == o.environment_names &&
|
|
238
287
|
gcp_project_id == o.gcp_project_id &&
|
|
239
288
|
gcp_sm_regions == o.gcp_sm_regions &&
|
|
289
|
+
github_scope == o.github_scope &&
|
|
240
290
|
item_custom_fields == o.item_custom_fields &&
|
|
241
291
|
json == o.json &&
|
|
242
292
|
k8s_namespace == o.k8s_namespace &&
|
|
243
293
|
name == o.name &&
|
|
294
|
+
organization_name == o.organization_name &&
|
|
295
|
+
repository_access == o.repository_access &&
|
|
296
|
+
repository_names == o.repository_names &&
|
|
244
297
|
tags == o.tags &&
|
|
245
298
|
target_to_associate == o.target_to_associate &&
|
|
246
299
|
token == o.token &&
|
|
@@ -258,7 +311,7 @@ module Akeyless
|
|
|
258
311
|
# Calculates hash code according to all attributes.
|
|
259
312
|
# @return [Integer] Hash code
|
|
260
313
|
def hash
|
|
261
|
-
[azure_kv_name, delete_protection, description, gcp_project_id, gcp_sm_regions, item_custom_fields, json, k8s_namespace, name, tags, target_to_associate, token, uid_token, usc_prefix, use_prefix_as_filter].hash
|
|
314
|
+
[azure_kv_name, delete_protection, description, environment_names, gcp_project_id, gcp_sm_regions, github_scope, item_custom_fields, json, k8s_namespace, name, organization_name, repository_access, repository_names, tags, target_to_associate, token, uid_token, usc_prefix, use_prefix_as_filter].hash
|
|
262
315
|
end
|
|
263
316
|
|
|
264
317
|
# Builds the object from hash
|