akeyless 5.0.40 → 5.0.41
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 +20 -1
- data/docs/AccountGeneralSettings.md +2 -0
- data/docs/AnthropicTargetDetails.md +15 -1
- data/docs/AtlassianTargetDetails.md +46 -0
- data/docs/Auth.md +2 -0
- data/docs/AuthMethod.md +2 -0
- data/docs/AuthMethodCreateAliCloud.md +2 -0
- data/docs/AuthMethodCreateApiKey.md +2 -0
- data/docs/AuthMethodCreateAwsIam.md +2 -0
- data/docs/AuthMethodCreateAzureAD.md +2 -0
- data/docs/AuthMethodCreateCert.md +2 -0
- data/docs/AuthMethodCreateEmail.md +2 -0
- data/docs/AuthMethodCreateGcp.md +2 -0
- data/docs/AuthMethodCreateK8s.md +2 -0
- data/docs/AuthMethodCreateKerberos.md +2 -0
- data/docs/AuthMethodCreateLdap.md +2 -0
- data/docs/AuthMethodCreateOCI.md +2 -0
- data/docs/AuthMethodCreateOIDC.md +2 -0
- data/docs/AuthMethodCreateOauth2.md +2 -0
- data/docs/AuthMethodCreateSAML.md +2 -0
- data/docs/AuthMethodCreateUniversalIdentity.md +3 -1
- data/docs/AuthMethodList.md +2 -0
- data/docs/AuthMethodUpdateAliCloud.md +2 -0
- data/docs/AuthMethodUpdateApiKey.md +2 -0
- data/docs/AuthMethodUpdateAwsIam.md +2 -0
- data/docs/AuthMethodUpdateAzureAD.md +2 -0
- data/docs/AuthMethodUpdateCert.md +2 -0
- data/docs/AuthMethodUpdateEmail.md +2 -0
- data/docs/AuthMethodUpdateGcp.md +2 -0
- data/docs/AuthMethodUpdateK8s.md +2 -0
- data/docs/AuthMethodUpdateKerberos.md +2 -0
- data/docs/AuthMethodUpdateLdap.md +2 -0
- data/docs/AuthMethodUpdateOCI.md +2 -0
- data/docs/AuthMethodUpdateOIDC.md +2 -0
- data/docs/AuthMethodUpdateOauth2.md +2 -0
- data/docs/AuthMethodUpdateSAML.md +2 -0
- data/docs/AuthMethodUpdateUniversalIdentity.md +3 -1
- data/docs/CacheConfigPart.md +2 -0
- data/docs/Connect.md +1 -1
- data/docs/CreateAuthMethod.md +2 -0
- data/docs/CreateAuthMethodAWSIAM.md +2 -0
- data/docs/CreateAuthMethodAzureAD.md +2 -0
- data/docs/CreateAuthMethodCert.md +2 -0
- data/docs/CreateAuthMethodEmail.md +2 -0
- data/docs/CreateAuthMethodGCP.md +2 -0
- data/docs/CreateAuthMethodHuawei.md +2 -0
- data/docs/CreateAuthMethodK8S.md +2 -0
- data/docs/CreateAuthMethodLDAP.md +2 -0
- data/docs/CreateAuthMethodOAuth2.md +2 -0
- data/docs/CreateAuthMethodOCI.md +2 -0
- data/docs/CreateAuthMethodOIDC.md +2 -0
- data/docs/CreateAuthMethodSAML.md +2 -0
- data/docs/CreateAuthMethodUniversalIdentity.md +3 -1
- data/docs/CreateEventForwarder.md +1 -1
- data/docs/DSProducerDetails.md +28 -0
- data/docs/DigiCertTargetDetails.md +2 -0
- data/docs/DynamicSecretCreateAliCloud.md +94 -0
- data/docs/DynamicSecretUpdateAliCloud.md +96 -0
- data/docs/EventForwarderCreateEmail.md +1 -1
- data/docs/EventForwarderCreateServiceNow.md +1 -1
- data/docs/EventForwarderCreateSlack.md +1 -1
- data/docs/EventForwarderCreateTeams.md +1 -1
- data/docs/EventForwarderCreateWebhook.md +1 -1
- data/docs/EventForwarderUpdateEmail.md +1 -1
- data/docs/EventForwarderUpdateServiceNow.md +1 -1
- data/docs/EventForwarderUpdateSlack.md +1 -1
- data/docs/EventForwarderUpdateTeams.md +1 -1
- data/docs/EventForwarderUpdateWebhook.md +1 -1
- data/docs/GatewayUpdateCache.md +2 -0
- data/docs/ListAuthMethods.md +2 -0
- data/docs/ProvisionCertificate.md +2 -0
- data/docs/ProvisionCertificateOutput.md +7 -1
- data/docs/ProvisionSSHRotatedSecretOutput.md +24 -0
- data/docs/RotatedSecretDetailsInfo.md +2 -0
- data/docs/RotatedSecretProvisionAssocOutput.md +20 -0
- data/docs/RotatedSecretProvisionCreate.md +36 -0
- data/docs/RotatedSecretProvisionDelete.md +26 -0
- data/docs/RotatedSecretProvisionPush.md +26 -0
- data/docs/RotatedSecretProvisionUpdate.md +38 -0
- data/docs/TargetCreateAnthropic.md +15 -1
- data/docs/TargetCreateAtlassian.md +68 -0
- data/docs/TargetCreateDigiCert.md +2 -0
- data/docs/TargetTypeDetailsInput.md +2 -0
- data/docs/TargetUpdateAnthropic.md +15 -1
- data/docs/TargetUpdateAtlassian.md +72 -0
- data/docs/TargetUpdateDigiCert.md +2 -0
- data/docs/UpdateAccountSettings.md +2 -0
- data/docs/UpdateAuthMethod.md +2 -0
- data/docs/UpdateAuthMethodAWSIAM.md +2 -0
- data/docs/UpdateAuthMethodAzureAD.md +2 -0
- data/docs/UpdateAuthMethodCert.md +2 -0
- data/docs/UpdateAuthMethodGCP.md +2 -0
- data/docs/UpdateAuthMethodK8S.md +2 -0
- data/docs/UpdateAuthMethodLDAP.md +2 -0
- data/docs/UpdateAuthMethodOAuth2.md +2 -0
- data/docs/UpdateAuthMethodOCI.md +2 -0
- data/docs/UpdateAuthMethodOIDC.md +2 -0
- data/docs/UpdateAuthMethodSAML.md +2 -0
- data/docs/UpdateAuthMethodUniversalIdentity.md +3 -1
- data/docs/V2Api.md +504 -0
- data/lib/akeyless/api/v2_api.rb +512 -0
- data/lib/akeyless/models/account_general_settings.rb +11 -1
- data/lib/akeyless/models/anthropic_target_details.rb +74 -4
- data/lib/akeyless/models/atlassian_target_details.rb +346 -0
- data/lib/akeyless/models/auth.rb +11 -1
- data/lib/akeyless/models/auth_method.rb +10 -1
- data/lib/akeyless/models/auth_method_create_ali_cloud.rb +11 -1
- data/lib/akeyless/models/auth_method_create_api_key.rb +11 -1
- data/lib/akeyless/models/auth_method_create_aws_iam.rb +11 -1
- data/lib/akeyless/models/auth_method_create_azure_ad.rb +11 -1
- data/lib/akeyless/models/auth_method_create_cert.rb +11 -1
- data/lib/akeyless/models/auth_method_create_email.rb +11 -1
- data/lib/akeyless/models/auth_method_create_gcp.rb +11 -1
- data/lib/akeyless/models/auth_method_create_k8s.rb +11 -1
- data/lib/akeyless/models/auth_method_create_kerberos.rb +11 -1
- data/lib/akeyless/models/auth_method_create_ldap.rb +11 -1
- data/lib/akeyless/models/auth_method_create_oauth2.rb +11 -1
- data/lib/akeyless/models/auth_method_create_oci.rb +11 -1
- data/lib/akeyless/models/auth_method_create_oidc.rb +11 -1
- data/lib/akeyless/models/auth_method_create_saml.rb +11 -1
- data/lib/akeyless/models/auth_method_create_universal_identity.rb +12 -2
- data/lib/akeyless/models/auth_method_list.rb +11 -1
- data/lib/akeyless/models/auth_method_update_ali_cloud.rb +11 -1
- data/lib/akeyless/models/auth_method_update_api_key.rb +11 -1
- data/lib/akeyless/models/auth_method_update_aws_iam.rb +11 -1
- data/lib/akeyless/models/auth_method_update_azure_ad.rb +11 -1
- data/lib/akeyless/models/auth_method_update_cert.rb +11 -1
- data/lib/akeyless/models/auth_method_update_email.rb +11 -1
- data/lib/akeyless/models/auth_method_update_gcp.rb +11 -1
- data/lib/akeyless/models/auth_method_update_k8s.rb +11 -1
- data/lib/akeyless/models/auth_method_update_kerberos.rb +11 -1
- data/lib/akeyless/models/auth_method_update_ldap.rb +11 -1
- data/lib/akeyless/models/auth_method_update_oauth2.rb +11 -1
- data/lib/akeyless/models/auth_method_update_oci.rb +11 -1
- data/lib/akeyless/models/auth_method_update_oidc.rb +11 -1
- data/lib/akeyless/models/auth_method_update_saml.rb +11 -1
- data/lib/akeyless/models/auth_method_update_universal_identity.rb +12 -2
- data/lib/akeyless/models/cache_config_part.rb +10 -1
- data/lib/akeyless/models/connect.rb +1 -1
- data/lib/akeyless/models/create_auth_method.rb +12 -1
- data/lib/akeyless/models/create_auth_method_awsiam.rb +12 -1
- data/lib/akeyless/models/create_auth_method_azure_ad.rb +12 -1
- data/lib/akeyless/models/create_auth_method_cert.rb +12 -1
- data/lib/akeyless/models/create_auth_method_email.rb +12 -1
- data/lib/akeyless/models/create_auth_method_gcp.rb +12 -1
- data/lib/akeyless/models/create_auth_method_huawei.rb +11 -1
- data/lib/akeyless/models/create_auth_method_k8_s.rb +12 -1
- data/lib/akeyless/models/create_auth_method_ldap.rb +12 -1
- data/lib/akeyless/models/create_auth_method_o_auth2.rb +12 -1
- data/lib/akeyless/models/create_auth_method_oci.rb +12 -1
- data/lib/akeyless/models/create_auth_method_oidc.rb +12 -1
- data/lib/akeyless/models/create_auth_method_saml.rb +12 -1
- data/lib/akeyless/models/create_auth_method_universal_identity.rb +13 -2
- data/lib/akeyless/models/create_event_forwarder.rb +1 -1
- data/lib/akeyless/models/digi_cert_target_details.rb +11 -1
- data/lib/akeyless/models/ds_producer_details.rb +127 -1
- data/lib/akeyless/models/dynamic_secret_create_ali_cloud.rb +625 -0
- data/lib/akeyless/models/dynamic_secret_update_ali_cloud.rb +635 -0
- data/lib/akeyless/models/event_forwarder_create_email.rb +1 -1
- 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_teams.rb +1 -1
- data/lib/akeyless/models/event_forwarder_create_webhook.rb +1 -1
- data/lib/akeyless/models/event_forwarder_update_email.rb +1 -1
- 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_teams.rb +1 -1
- data/lib/akeyless/models/event_forwarder_update_webhook.rb +1 -1
- data/lib/akeyless/models/gateway_update_cache.rb +11 -1
- data/lib/akeyless/models/list_auth_methods.rb +11 -1
- data/lib/akeyless/models/provision_certificate.rb +12 -1
- data/lib/akeyless/models/provision_certificate_output.rb +35 -4
- data/lib/akeyless/models/provision_ssh_rotated_secret_output.rb +243 -0
- data/lib/akeyless/models/rotated_secret_details_info.rb +11 -1
- data/lib/akeyless/models/rotated_secret_provision_assoc_output.rb +223 -0
- data/lib/akeyless/models/rotated_secret_provision_create.rb +322 -0
- data/lib/akeyless/models/rotated_secret_provision_delete.rb +271 -0
- data/lib/akeyless/models/rotated_secret_provision_push.rb +271 -0
- data/lib/akeyless/models/rotated_secret_provision_update.rb +332 -0
- data/lib/akeyless/models/target_create_anthropic.rb +74 -4
- data/lib/akeyless/models/target_create_atlassian.rb +476 -0
- data/lib/akeyless/models/target_create_digi_cert.rb +11 -1
- data/lib/akeyless/models/target_type_details_input.rb +10 -1
- data/lib/akeyless/models/target_update_anthropic.rb +74 -4
- data/lib/akeyless/models/target_update_atlassian.rb +496 -0
- data/lib/akeyless/models/target_update_digi_cert.rb +11 -1
- data/lib/akeyless/models/update_account_settings.rb +11 -1
- data/lib/akeyless/models/update_auth_method.rb +12 -1
- data/lib/akeyless/models/update_auth_method_awsiam.rb +12 -1
- data/lib/akeyless/models/update_auth_method_azure_ad.rb +12 -1
- data/lib/akeyless/models/update_auth_method_cert.rb +12 -1
- data/lib/akeyless/models/update_auth_method_gcp.rb +12 -1
- data/lib/akeyless/models/update_auth_method_k8_s.rb +12 -1
- data/lib/akeyless/models/update_auth_method_ldap.rb +12 -1
- data/lib/akeyless/models/update_auth_method_o_auth2.rb +12 -1
- data/lib/akeyless/models/update_auth_method_oci.rb +12 -1
- data/lib/akeyless/models/update_auth_method_oidc.rb +12 -1
- data/lib/akeyless/models/update_auth_method_saml.rb +12 -1
- data/lib/akeyless/models/update_auth_method_universal_identity.rb +13 -2
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +11 -0
- data/spec/models/atlassian_target_details_spec.rb +120 -0
- data/spec/models/dynamic_secret_create_ali_cloud_spec.rb +264 -0
- data/spec/models/dynamic_secret_update_ali_cloud_spec.rb +270 -0
- data/spec/models/provision_ssh_rotated_secret_output_spec.rb +54 -0
- data/spec/models/rotated_secret_provision_assoc_output_spec.rb +42 -0
- data/spec/models/rotated_secret_provision_create_spec.rb +90 -0
- data/spec/models/rotated_secret_provision_delete_spec.rb +60 -0
- data/spec/models/rotated_secret_provision_push_spec.rb +60 -0
- data/spec/models/rotated_secret_provision_update_spec.rb +96 -0
- data/spec/models/target_create_atlassian_spec.rb +186 -0
- data/spec/models/target_update_atlassian_spec.rb +198 -0
- metadata +59 -15
|
@@ -31,7 +31,7 @@ module Akeyless
|
|
|
31
31
|
# Description of the object
|
|
32
32
|
attr_accessor :description
|
|
33
33
|
|
|
34
|
-
# List of event types to notify about [request-access, access-request-expired, access-request-approved, access-request-denied, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, auth-method-pending-expiration, auth-method-expired, next-automatic-rotation, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated, rate-limiting, usage-report, secret-sync, locked-user, unlocked-user, password-reset]
|
|
34
|
+
# List of event types to notify about [request-access, access-request-expired, access-request-approved, access-request-denied, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, ssh-key-provisioning-success, ssh-key-provisioning-failure, auth-method-pending-expiration, auth-method-expired, next-automatic-rotation, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated, rate-limiting, usage-report, secret-sync, locked-user, unlocked-user, password-reset]
|
|
35
35
|
attr_accessor :event_types
|
|
36
36
|
|
|
37
37
|
# Rate of periodic runner repetition in hours
|
|
@@ -28,7 +28,7 @@ module Akeyless
|
|
|
28
28
|
# Enable/Disable Event Forwarder [true/false]
|
|
29
29
|
attr_accessor :enable
|
|
30
30
|
|
|
31
|
-
# List of event types to notify about [request-access, access-request-expired, access-request-approved, access-request-denied, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, auth-method-pending-expiration, auth-method-expired, next-automatic-rotation, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated, rate-limiting, usage-report, secret-sync, locked-user, unlocked-user, password-reset]
|
|
31
|
+
# List of event types to notify about [request-access, access-request-expired, access-request-approved, access-request-denied, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, ssh-key-provisioning-success, ssh-key-provisioning-failure, auth-method-pending-expiration, auth-method-expired, next-automatic-rotation, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated, rate-limiting, usage-report, secret-sync, locked-user, unlocked-user, password-reset]
|
|
32
32
|
attr_accessor :event_types
|
|
33
33
|
|
|
34
34
|
# Event sources
|
|
@@ -43,7 +43,7 @@ module Akeyless
|
|
|
43
43
|
# Enable/Disable Event Forwarder [true/false]
|
|
44
44
|
attr_accessor :enable
|
|
45
45
|
|
|
46
|
-
# List of event types to notify about [request-access, access-request-expired, access-request-approved, access-request-denied, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, auth-method-pending-expiration, auth-method-expired, next-automatic-rotation, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated, rate-limiting, usage-report, secret-sync, locked-user, unlocked-user, password-reset]
|
|
46
|
+
# List of event types to notify about [request-access, access-request-expired, access-request-approved, access-request-denied, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, ssh-key-provisioning-success, ssh-key-provisioning-failure, auth-method-pending-expiration, auth-method-expired, next-automatic-rotation, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated, rate-limiting, usage-report, secret-sync, locked-user, unlocked-user, password-reset]
|
|
47
47
|
attr_accessor :event_types
|
|
48
48
|
|
|
49
49
|
# Event sources
|
|
@@ -25,7 +25,7 @@ module Akeyless
|
|
|
25
25
|
# Enable/Disable Event Forwarder [true/false]
|
|
26
26
|
attr_accessor :enable
|
|
27
27
|
|
|
28
|
-
# List of event types to notify about [request-access, access-request-expired, access-request-approved, access-request-denied, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, auth-method-pending-expiration, auth-method-expired, next-automatic-rotation, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated, rate-limiting, usage-report, secret-sync, locked-user, unlocked-user, password-reset]
|
|
28
|
+
# List of event types to notify about [request-access, access-request-expired, access-request-approved, access-request-denied, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, ssh-key-provisioning-success, ssh-key-provisioning-failure, auth-method-pending-expiration, auth-method-expired, next-automatic-rotation, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated, rate-limiting, usage-report, secret-sync, locked-user, unlocked-user, password-reset]
|
|
29
29
|
attr_accessor :event_types
|
|
30
30
|
|
|
31
31
|
# Event sources
|
|
@@ -25,7 +25,7 @@ module Akeyless
|
|
|
25
25
|
# Enable/Disable Event Forwarder [true/false]
|
|
26
26
|
attr_accessor :enable
|
|
27
27
|
|
|
28
|
-
# List of event types to notify about [request-access, access-request-expired, access-request-approved, access-request-denied, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, auth-method-pending-expiration, auth-method-expired, next-automatic-rotation, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated, rate-limiting, usage-report, secret-sync, locked-user, unlocked-user, password-reset]
|
|
28
|
+
# List of event types to notify about [request-access, access-request-expired, access-request-approved, access-request-denied, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, ssh-key-provisioning-success, ssh-key-provisioning-failure, auth-method-pending-expiration, auth-method-expired, next-automatic-rotation, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated, rate-limiting, usage-report, secret-sync, locked-user, unlocked-user, password-reset]
|
|
29
29
|
attr_accessor :event_types
|
|
30
30
|
|
|
31
31
|
# Event sources
|
|
@@ -34,7 +34,7 @@ module Akeyless
|
|
|
34
34
|
# Enable/Disable Event Forwarder [true/false]
|
|
35
35
|
attr_accessor :enable
|
|
36
36
|
|
|
37
|
-
# List of event types to notify about [request-access, access-request-expired, access-request-approved, access-request-denied, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, auth-method-pending-expiration, auth-method-expired, next-automatic-rotation, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated, rate-limiting, usage-report, secret-sync, locked-user, unlocked-user, password-reset]
|
|
37
|
+
# List of event types to notify about [request-access, access-request-expired, access-request-approved, access-request-denied, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, ssh-key-provisioning-success, ssh-key-provisioning-failure, auth-method-pending-expiration, auth-method-expired, next-automatic-rotation, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated, rate-limiting, usage-report, secret-sync, locked-user, unlocked-user, password-reset]
|
|
38
38
|
attr_accessor :event_types
|
|
39
39
|
|
|
40
40
|
# Event sources
|
|
@@ -19,6 +19,9 @@ module Akeyless
|
|
|
19
19
|
# Secure backup interval in minutes. To ensure service continuity in case of power cycle and network outage secrets will be backed up periodically per backup interval
|
|
20
20
|
attr_accessor :backup_interval
|
|
21
21
|
|
|
22
|
+
# Serve item metadata (describe-item and classic key details) from an on-demand cache, refreshed after the minimum fetching interval [true/false]
|
|
23
|
+
attr_accessor :cache_item_metadata
|
|
24
|
+
|
|
22
25
|
# Enable cache [true/false]
|
|
23
26
|
attr_accessor :enable_cache
|
|
24
27
|
|
|
@@ -44,6 +47,7 @@ module Akeyless
|
|
|
44
47
|
def self.attribute_map
|
|
45
48
|
{
|
|
46
49
|
:'backup_interval' => :'backup-interval',
|
|
50
|
+
:'cache_item_metadata' => :'cache-item-metadata',
|
|
47
51
|
:'enable_cache' => :'enable-cache',
|
|
48
52
|
:'enable_proactive' => :'enable-proactive',
|
|
49
53
|
:'json' => :'json',
|
|
@@ -63,6 +67,7 @@ module Akeyless
|
|
|
63
67
|
def self.openapi_types
|
|
64
68
|
{
|
|
65
69
|
:'backup_interval' => :'String',
|
|
70
|
+
:'cache_item_metadata' => :'String',
|
|
66
71
|
:'enable_cache' => :'String',
|
|
67
72
|
:'enable_proactive' => :'String',
|
|
68
73
|
:'json' => :'Boolean',
|
|
@@ -100,6 +105,10 @@ module Akeyless
|
|
|
100
105
|
self.backup_interval = '1'
|
|
101
106
|
end
|
|
102
107
|
|
|
108
|
+
if attributes.key?(:'cache_item_metadata')
|
|
109
|
+
self.cache_item_metadata = attributes[:'cache_item_metadata']
|
|
110
|
+
end
|
|
111
|
+
|
|
103
112
|
if attributes.key?(:'enable_cache')
|
|
104
113
|
self.enable_cache = attributes[:'enable_cache']
|
|
105
114
|
end
|
|
@@ -156,6 +165,7 @@ module Akeyless
|
|
|
156
165
|
return true if self.equal?(o)
|
|
157
166
|
self.class == o.class &&
|
|
158
167
|
backup_interval == o.backup_interval &&
|
|
168
|
+
cache_item_metadata == o.cache_item_metadata &&
|
|
159
169
|
enable_cache == o.enable_cache &&
|
|
160
170
|
enable_proactive == o.enable_proactive &&
|
|
161
171
|
json == o.json &&
|
|
@@ -174,7 +184,7 @@ module Akeyless
|
|
|
174
184
|
# Calculates hash code according to all attributes.
|
|
175
185
|
# @return [Integer] Hash code
|
|
176
186
|
def hash
|
|
177
|
-
[backup_interval, enable_cache, enable_proactive, json, minimum_fetch_interval, stale_timeout, token, uid_token].hash
|
|
187
|
+
[backup_interval, cache_item_metadata, enable_cache, enable_proactive, json, minimum_fetch_interval, stale_timeout, token, uid_token].hash
|
|
178
188
|
end
|
|
179
189
|
|
|
180
190
|
# Builds the object from hash
|
|
@@ -22,6 +22,9 @@ module Akeyless
|
|
|
22
22
|
# Set output format to JSON
|
|
23
23
|
attr_accessor :json
|
|
24
24
|
|
|
25
|
+
# Filter by auth method owner or part of it
|
|
26
|
+
attr_accessor :owner
|
|
27
|
+
|
|
25
28
|
# Next page reference
|
|
26
29
|
attr_accessor :pagination_token
|
|
27
30
|
|
|
@@ -39,6 +42,7 @@ module Akeyless
|
|
|
39
42
|
{
|
|
40
43
|
:'filter' => :'filter',
|
|
41
44
|
:'json' => :'json',
|
|
45
|
+
:'owner' => :'owner',
|
|
42
46
|
:'pagination_token' => :'pagination-token',
|
|
43
47
|
:'token' => :'token',
|
|
44
48
|
:'type' => :'type',
|
|
@@ -56,6 +60,7 @@ module Akeyless
|
|
|
56
60
|
{
|
|
57
61
|
:'filter' => :'String',
|
|
58
62
|
:'json' => :'Boolean',
|
|
63
|
+
:'owner' => :'String',
|
|
59
64
|
:'pagination_token' => :'String',
|
|
60
65
|
:'token' => :'String',
|
|
61
66
|
:'type' => :'Array<String>',
|
|
@@ -94,6 +99,10 @@ module Akeyless
|
|
|
94
99
|
self.json = false
|
|
95
100
|
end
|
|
96
101
|
|
|
102
|
+
if attributes.key?(:'owner')
|
|
103
|
+
self.owner = attributes[:'owner']
|
|
104
|
+
end
|
|
105
|
+
|
|
97
106
|
if attributes.key?(:'pagination_token')
|
|
98
107
|
self.pagination_token = attributes[:'pagination_token']
|
|
99
108
|
end
|
|
@@ -135,6 +144,7 @@ module Akeyless
|
|
|
135
144
|
self.class == o.class &&
|
|
136
145
|
filter == o.filter &&
|
|
137
146
|
json == o.json &&
|
|
147
|
+
owner == o.owner &&
|
|
138
148
|
pagination_token == o.pagination_token &&
|
|
139
149
|
token == o.token &&
|
|
140
150
|
type == o.type &&
|
|
@@ -150,7 +160,7 @@ module Akeyless
|
|
|
150
160
|
# Calculates hash code according to all attributes.
|
|
151
161
|
# @return [Integer] Hash code
|
|
152
162
|
def hash
|
|
153
|
-
[filter, json, pagination_token, token, type, uid_token].hash
|
|
163
|
+
[filter, json, owner, pagination_token, token, type, uid_token].hash
|
|
154
164
|
end
|
|
155
165
|
|
|
156
166
|
# Builds the object from hash
|
|
@@ -28,6 +28,8 @@ module Akeyless
|
|
|
28
28
|
# Certificate name
|
|
29
29
|
attr_accessor :name
|
|
30
30
|
|
|
31
|
+
attr_accessor :target_name
|
|
32
|
+
|
|
31
33
|
# Authentication token (see `/auth` and `/configure`)
|
|
32
34
|
attr_accessor :token
|
|
33
35
|
|
|
@@ -41,6 +43,7 @@ module Akeyless
|
|
|
41
43
|
:'item_id' => :'item-id',
|
|
42
44
|
:'json' => :'json',
|
|
43
45
|
:'name' => :'name',
|
|
46
|
+
:'target_name' => :'target-name',
|
|
44
47
|
:'token' => :'token',
|
|
45
48
|
:'uid_token' => :'uid-token'
|
|
46
49
|
}
|
|
@@ -58,6 +61,7 @@ module Akeyless
|
|
|
58
61
|
:'item_id' => :'Integer',
|
|
59
62
|
:'json' => :'Boolean',
|
|
60
63
|
:'name' => :'String',
|
|
64
|
+
:'target_name' => :'String',
|
|
61
65
|
:'token' => :'String',
|
|
62
66
|
:'uid_token' => :'String'
|
|
63
67
|
}
|
|
@@ -104,6 +108,12 @@ module Akeyless
|
|
|
104
108
|
self.name = nil
|
|
105
109
|
end
|
|
106
110
|
|
|
111
|
+
if attributes.key?(:'target_name')
|
|
112
|
+
self.target_name = attributes[:'target_name']
|
|
113
|
+
else
|
|
114
|
+
self.target_name = 'all targets associated with the certificate)'
|
|
115
|
+
end
|
|
116
|
+
|
|
107
117
|
if attributes.key?(:'token')
|
|
108
118
|
self.token = attributes[:'token']
|
|
109
119
|
end
|
|
@@ -142,6 +152,7 @@ module Akeyless
|
|
|
142
152
|
item_id == o.item_id &&
|
|
143
153
|
json == o.json &&
|
|
144
154
|
name == o.name &&
|
|
155
|
+
target_name == o.target_name &&
|
|
145
156
|
token == o.token &&
|
|
146
157
|
uid_token == o.uid_token
|
|
147
158
|
end
|
|
@@ -155,7 +166,7 @@ module Akeyless
|
|
|
155
166
|
# Calculates hash code according to all attributes.
|
|
156
167
|
# @return [Integer] Hash code
|
|
157
168
|
def hash
|
|
158
|
-
[display_id, item_id, json, name, token, uid_token].hash
|
|
169
|
+
[display_id, item_id, json, name, target_name, token, uid_token].hash
|
|
159
170
|
end
|
|
160
171
|
|
|
161
172
|
# Builds the object from hash
|
|
@@ -19,17 +19,28 @@ module Akeyless
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :success_message
|
|
21
21
|
|
|
22
|
+
# AssociationID and TargetName identify the row of a Results entry.
|
|
23
|
+
attr_accessor :association_id
|
|
24
|
+
|
|
22
25
|
attr_accessor :host_names
|
|
23
26
|
|
|
24
27
|
attr_accessor :provisioned_at
|
|
25
28
|
|
|
29
|
+
# Results holds one entry per row. It is set only when several rows were handled; the top-level fields then summarize them.
|
|
30
|
+
attr_accessor :results
|
|
31
|
+
|
|
32
|
+
attr_accessor :target_name
|
|
33
|
+
|
|
26
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
35
|
def self.attribute_map
|
|
28
36
|
{
|
|
29
37
|
:'fail_message' => :'FailMessage',
|
|
30
38
|
:'success_message' => :'SuccessMessage',
|
|
39
|
+
:'association_id' => :'association_id',
|
|
31
40
|
:'host_names' => :'host_names',
|
|
32
|
-
:'provisioned_at' => :'provisioned_at'
|
|
41
|
+
:'provisioned_at' => :'provisioned_at',
|
|
42
|
+
:'results' => :'results',
|
|
43
|
+
:'target_name' => :'target_name'
|
|
33
44
|
}
|
|
34
45
|
end
|
|
35
46
|
|
|
@@ -43,8 +54,11 @@ module Akeyless
|
|
|
43
54
|
{
|
|
44
55
|
:'fail_message' => :'String',
|
|
45
56
|
:'success_message' => :'String',
|
|
57
|
+
:'association_id' => :'String',
|
|
46
58
|
:'host_names' => :'Array<String>',
|
|
47
|
-
:'provisioned_at' => :'Time'
|
|
59
|
+
:'provisioned_at' => :'Time',
|
|
60
|
+
:'results' => :'Array<ProvisionCertificateOutput>',
|
|
61
|
+
:'target_name' => :'String'
|
|
48
62
|
}
|
|
49
63
|
end
|
|
50
64
|
|
|
@@ -77,6 +91,10 @@ module Akeyless
|
|
|
77
91
|
self.success_message = attributes[:'success_message']
|
|
78
92
|
end
|
|
79
93
|
|
|
94
|
+
if attributes.key?(:'association_id')
|
|
95
|
+
self.association_id = attributes[:'association_id']
|
|
96
|
+
end
|
|
97
|
+
|
|
80
98
|
if attributes.key?(:'host_names')
|
|
81
99
|
if (value = attributes[:'host_names']).is_a?(Array)
|
|
82
100
|
self.host_names = value
|
|
@@ -86,6 +104,16 @@ module Akeyless
|
|
|
86
104
|
if attributes.key?(:'provisioned_at')
|
|
87
105
|
self.provisioned_at = attributes[:'provisioned_at']
|
|
88
106
|
end
|
|
107
|
+
|
|
108
|
+
if attributes.key?(:'results')
|
|
109
|
+
if (value = attributes[:'results']).is_a?(Array)
|
|
110
|
+
self.results = value
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if attributes.key?(:'target_name')
|
|
115
|
+
self.target_name = attributes[:'target_name']
|
|
116
|
+
end
|
|
89
117
|
end
|
|
90
118
|
|
|
91
119
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -110,8 +138,11 @@ module Akeyless
|
|
|
110
138
|
self.class == o.class &&
|
|
111
139
|
fail_message == o.fail_message &&
|
|
112
140
|
success_message == o.success_message &&
|
|
141
|
+
association_id == o.association_id &&
|
|
113
142
|
host_names == o.host_names &&
|
|
114
|
-
provisioned_at == o.provisioned_at
|
|
143
|
+
provisioned_at == o.provisioned_at &&
|
|
144
|
+
results == o.results &&
|
|
145
|
+
target_name == o.target_name
|
|
115
146
|
end
|
|
116
147
|
|
|
117
148
|
# @see the `==` method
|
|
@@ -123,7 +154,7 @@ module Akeyless
|
|
|
123
154
|
# Calculates hash code according to all attributes.
|
|
124
155
|
# @return [Integer] Hash code
|
|
125
156
|
def hash
|
|
126
|
-
[fail_message, success_message, host_names, provisioned_at].hash
|
|
157
|
+
[fail_message, success_message, association_id, host_names, provisioned_at, results, target_name].hash
|
|
127
158
|
end
|
|
128
159
|
|
|
129
160
|
# Builds the object from hash
|
|
@@ -0,0 +1,243 @@
|
|
|
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 ProvisionSSHRotatedSecretOutput
|
|
18
|
+
attr_accessor :fail_message
|
|
19
|
+
|
|
20
|
+
attr_accessor :host_names
|
|
21
|
+
|
|
22
|
+
attr_accessor :provisioned_at
|
|
23
|
+
|
|
24
|
+
attr_accessor :success_message
|
|
25
|
+
|
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
|
+
def self.attribute_map
|
|
28
|
+
{
|
|
29
|
+
:'fail_message' => :'fail_message',
|
|
30
|
+
:'host_names' => :'host_names',
|
|
31
|
+
:'provisioned_at' => :'provisioned_at',
|
|
32
|
+
:'success_message' => :'success_message'
|
|
33
|
+
}
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Returns all the JSON keys this model knows about
|
|
37
|
+
def self.acceptable_attributes
|
|
38
|
+
attribute_map.values
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Attribute type mapping.
|
|
42
|
+
def self.openapi_types
|
|
43
|
+
{
|
|
44
|
+
:'fail_message' => :'String',
|
|
45
|
+
:'host_names' => :'Array<String>',
|
|
46
|
+
:'provisioned_at' => :'Time',
|
|
47
|
+
:'success_message' => :'String'
|
|
48
|
+
}
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# List of attributes with nullable: true
|
|
52
|
+
def self.openapi_nullable
|
|
53
|
+
Set.new([
|
|
54
|
+
])
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Initializes the object
|
|
58
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
59
|
+
def initialize(attributes = {})
|
|
60
|
+
if (!attributes.is_a?(Hash))
|
|
61
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::ProvisionSSHRotatedSecretOutput` initialize method"
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
66
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
67
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::ProvisionSSHRotatedSecretOutput`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
68
|
+
end
|
|
69
|
+
h[k.to_sym] = v
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if attributes.key?(:'fail_message')
|
|
73
|
+
self.fail_message = attributes[:'fail_message']
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
if attributes.key?(:'host_names')
|
|
77
|
+
if (value = attributes[:'host_names']).is_a?(Array)
|
|
78
|
+
self.host_names = value
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'provisioned_at')
|
|
83
|
+
self.provisioned_at = attributes[:'provisioned_at']
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'success_message')
|
|
87
|
+
self.success_message = attributes[:'success_message']
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
92
|
+
# @return Array for valid properties with the reasons
|
|
93
|
+
def list_invalid_properties
|
|
94
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
95
|
+
invalid_properties = Array.new
|
|
96
|
+
invalid_properties
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Check to see if the all the properties in the model are valid
|
|
100
|
+
# @return true if the model is valid
|
|
101
|
+
def valid?
|
|
102
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
103
|
+
true
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Checks equality by comparing each attribute.
|
|
107
|
+
# @param [Object] Object to be compared
|
|
108
|
+
def ==(o)
|
|
109
|
+
return true if self.equal?(o)
|
|
110
|
+
self.class == o.class &&
|
|
111
|
+
fail_message == o.fail_message &&
|
|
112
|
+
host_names == o.host_names &&
|
|
113
|
+
provisioned_at == o.provisioned_at &&
|
|
114
|
+
success_message == o.success_message
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# @see the `==` method
|
|
118
|
+
# @param [Object] Object to be compared
|
|
119
|
+
def eql?(o)
|
|
120
|
+
self == o
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Calculates hash code according to all attributes.
|
|
124
|
+
# @return [Integer] Hash code
|
|
125
|
+
def hash
|
|
126
|
+
[fail_message, host_names, provisioned_at, success_message].hash
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Builds the object from hash
|
|
130
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
131
|
+
# @return [Object] Returns the model itself
|
|
132
|
+
def self.build_from_hash(attributes)
|
|
133
|
+
return nil unless attributes.is_a?(Hash)
|
|
134
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
135
|
+
transformed_hash = {}
|
|
136
|
+
openapi_types.each_pair do |key, type|
|
|
137
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
138
|
+
transformed_hash["#{key}"] = nil
|
|
139
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
140
|
+
# check to ensure the input is an array given that the attribute
|
|
141
|
+
# is documented as an array but the input is not
|
|
142
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
143
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
144
|
+
end
|
|
145
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
146
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
147
|
+
end
|
|
148
|
+
end
|
|
149
|
+
new(transformed_hash)
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
# Deserializes the data based on type
|
|
153
|
+
# @param string type Data type
|
|
154
|
+
# @param string value Value to be deserialized
|
|
155
|
+
# @return [Object] Deserialized data
|
|
156
|
+
def self._deserialize(type, value)
|
|
157
|
+
case type.to_sym
|
|
158
|
+
when :Time
|
|
159
|
+
Time.parse(value)
|
|
160
|
+
when :Date
|
|
161
|
+
Date.parse(value)
|
|
162
|
+
when :String
|
|
163
|
+
value.to_s
|
|
164
|
+
when :Integer
|
|
165
|
+
value.to_i
|
|
166
|
+
when :Float
|
|
167
|
+
value.to_f
|
|
168
|
+
when :Boolean
|
|
169
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
170
|
+
true
|
|
171
|
+
else
|
|
172
|
+
false
|
|
173
|
+
end
|
|
174
|
+
when :Object
|
|
175
|
+
# generic object (usually a Hash), return directly
|
|
176
|
+
value
|
|
177
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
178
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
179
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
180
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
181
|
+
k_type = Regexp.last_match[:k_type]
|
|
182
|
+
v_type = Regexp.last_match[:v_type]
|
|
183
|
+
{}.tap do |hash|
|
|
184
|
+
value.each do |k, v|
|
|
185
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
186
|
+
end
|
|
187
|
+
end
|
|
188
|
+
else # model
|
|
189
|
+
# models (e.g. Pet) or oneOf
|
|
190
|
+
klass = Akeyless.const_get(type)
|
|
191
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
# Returns the string representation of the object
|
|
196
|
+
# @return [String] String presentation of the object
|
|
197
|
+
def to_s
|
|
198
|
+
to_hash.to_s
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
202
|
+
# @return [Hash] Returns the object in the form of hash
|
|
203
|
+
def to_body
|
|
204
|
+
to_hash
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
# Returns the object in the form of hash
|
|
208
|
+
# @return [Hash] Returns the object in the form of hash
|
|
209
|
+
def to_hash
|
|
210
|
+
hash = {}
|
|
211
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
212
|
+
value = self.send(attr)
|
|
213
|
+
if value.nil?
|
|
214
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
215
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
hash[param] = _to_hash(value)
|
|
219
|
+
end
|
|
220
|
+
hash
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
# Outputs non-array value in the form of hash
|
|
224
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
225
|
+
# @param [Object] value Any valid value
|
|
226
|
+
# @return [Hash] Returns the value in the form of hash
|
|
227
|
+
def _to_hash(value)
|
|
228
|
+
if value.is_a?(Array)
|
|
229
|
+
value.compact.map { |v| _to_hash(v) }
|
|
230
|
+
elsif value.is_a?(Hash)
|
|
231
|
+
{}.tap do |hash|
|
|
232
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
233
|
+
end
|
|
234
|
+
elsif value.respond_to? :to_hash
|
|
235
|
+
value.to_hash
|
|
236
|
+
else
|
|
237
|
+
value
|
|
238
|
+
end
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
end
|
|
@@ -47,6 +47,9 @@ module Akeyless
|
|
|
47
47
|
|
|
48
48
|
attr_accessor :number_of_versions_to_save
|
|
49
49
|
|
|
50
|
+
# PublicKey is the OpenSSH authorized_keys line for an SSH rotated secret. Stored in the clear on item attributes so describe-item can return it under list permission.
|
|
51
|
+
attr_accessor :public_key
|
|
52
|
+
|
|
50
53
|
attr_accessor :public_key_remote_path
|
|
51
54
|
|
|
52
55
|
attr_accessor :rotation_hour
|
|
@@ -88,6 +91,7 @@ module Akeyless
|
|
|
88
91
|
:'max_versions' => :'max_versions',
|
|
89
92
|
:'next_auto_rotate_type' => :'next_auto_rotate_type',
|
|
90
93
|
:'number_of_versions_to_save' => :'number_of_versions_to_save',
|
|
94
|
+
:'public_key' => :'public_key',
|
|
91
95
|
:'public_key_remote_path' => :'public_key_remote_path',
|
|
92
96
|
:'rotation_hour' => :'rotation_hour',
|
|
93
97
|
:'rotation_interval_min' => :'rotation_interval_min',
|
|
@@ -125,6 +129,7 @@ module Akeyless
|
|
|
125
129
|
:'max_versions' => :'Integer',
|
|
126
130
|
:'next_auto_rotate_type' => :'String',
|
|
127
131
|
:'number_of_versions_to_save' => :'Integer',
|
|
132
|
+
:'public_key' => :'String',
|
|
128
133
|
:'public_key_remote_path' => :'String',
|
|
129
134
|
:'rotation_hour' => :'Integer',
|
|
130
135
|
:'rotation_interval_min' => :'Boolean',
|
|
@@ -222,6 +227,10 @@ module Akeyless
|
|
|
222
227
|
self.number_of_versions_to_save = attributes[:'number_of_versions_to_save']
|
|
223
228
|
end
|
|
224
229
|
|
|
230
|
+
if attributes.key?(:'public_key')
|
|
231
|
+
self.public_key = attributes[:'public_key']
|
|
232
|
+
end
|
|
233
|
+
|
|
225
234
|
if attributes.key?(:'public_key_remote_path')
|
|
226
235
|
self.public_key_remote_path = attributes[:'public_key_remote_path']
|
|
227
236
|
end
|
|
@@ -304,6 +313,7 @@ module Akeyless
|
|
|
304
313
|
max_versions == o.max_versions &&
|
|
305
314
|
next_auto_rotate_type == o.next_auto_rotate_type &&
|
|
306
315
|
number_of_versions_to_save == o.number_of_versions_to_save &&
|
|
316
|
+
public_key == o.public_key &&
|
|
307
317
|
public_key_remote_path == o.public_key_remote_path &&
|
|
308
318
|
rotation_hour == o.rotation_hour &&
|
|
309
319
|
rotation_interval_min == o.rotation_interval_min &&
|
|
@@ -326,7 +336,7 @@ module Akeyless
|
|
|
326
336
|
# Calculates hash code according to all attributes.
|
|
327
337
|
# @return [Integer] Hash code
|
|
328
338
|
def hash
|
|
329
|
-
[aws_user_name, delete_previous_version_in_days, enable_custom_password_policy, grace_rotation, grace_rotation_hour, grace_rotation_interval, grace_rotation_timing, gw_cluster_id, iis_apps_details, key_algorithm, last_rotation_error, managed_by_akeyless, max_versions, next_auto_rotate_type, number_of_versions_to_save, public_key_remote_path, rotation_hour, rotation_interval_min, rotation_statement, rotator_creds_type, rotator_status, rotator_type, same_password, services_details, skip_dry_run, timeout_seconds].hash
|
|
339
|
+
[aws_user_name, delete_previous_version_in_days, enable_custom_password_policy, grace_rotation, grace_rotation_hour, grace_rotation_interval, grace_rotation_timing, gw_cluster_id, iis_apps_details, key_algorithm, last_rotation_error, managed_by_akeyless, max_versions, next_auto_rotate_type, number_of_versions_to_save, public_key, public_key_remote_path, rotation_hour, rotation_interval_min, rotation_statement, rotator_creds_type, rotator_status, rotator_type, same_password, services_details, skip_dry_run, timeout_seconds].hash
|
|
330
340
|
end
|
|
331
341
|
|
|
332
342
|
# Builds the object from hash
|