akeyless 5.0.38 → 5.0.40
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/LICENSE +190 -0
- data/README.md +27 -2
- data/akeyless.gemspec +1 -1
- data/docs/AccountGeneralSettings.md +2 -0
- data/docs/AliCloudTargetDetails.md +28 -0
- data/docs/AssocTargetItem.md +17 -1
- data/docs/AuthMethodAccessInfo.md +2 -0
- data/docs/AuthMethodCreateOIDC.md +8 -0
- data/docs/AuthMethodCreateOutput.md +3 -1
- data/docs/AuthMethodCreateSAML.md +8 -0
- data/docs/AuthMethodUpdateOIDC.md +8 -0
- data/docs/AuthMethodUpdateOutput.md +3 -1
- data/docs/AuthMethodUpdateSAML.md +8 -0
- data/docs/ClientEvent.md +26 -0
- data/docs/ClientEventOutput.md +18 -0
- data/docs/Connect.md +2 -0
- data/docs/CreateEventForwarder.md +1 -1
- data/docs/CreateLdapTarget.md +3 -1
- data/docs/CreatePKICertIssuer.md +6 -0
- data/docs/CreateUSC.md +2 -0
- data/docs/DSProducerDetails.md +2 -0
- data/docs/DigiCertTargetDetails.md +8 -0
- data/docs/DynamicSecretCreateEks.md +3 -1
- data/docs/DynamicSecretCreateGke.md +3 -1
- data/docs/DynamicSecretCreateK8s.md +3 -1
- data/docs/DynamicSecretUpdateEks.md +3 -1
- data/docs/DynamicSecretUpdateGke.md +3 -1
- data/docs/DynamicSecretUpdateK8s.md +3 -1
- data/docs/EventForwarderCreateEmail.md +2 -2
- 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 +2 -2
- 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/GatewayCreateAllowedAccess.md +1 -1
- data/docs/GatewayCreateMigration.md +2 -0
- data/docs/GatewayCreateProducerEks.md +3 -1
- data/docs/GatewayCreateProducerGke.md +3 -1
- data/docs/GatewayCreateProducerNativeK8S.md +3 -1
- data/docs/GatewayUpdateAllowedAccess.md +1 -1
- data/docs/GatewayUpdateMigration.md +2 -0
- data/docs/GatewayUpdateProducerEks.md +3 -1
- data/docs/GatewayUpdateProducerGke.md +3 -1
- data/docs/GatewayUpdateProducerNativeK8S.md +3 -1
- data/docs/GenerateIntermediateCA.md +48 -0
- data/docs/GenerateIntermediateCAOutput.md +26 -0
- data/docs/GetGroupOutput.md +13 -1
- data/docs/GetScimStatus.md +24 -0
- data/docs/GoogleTrustTargetDetails.md +8 -0
- data/docs/GrantedRole.md +20 -0
- data/docs/Group.md +13 -1
- data/docs/InjectorCertificateEvent.md +28 -0
- data/docs/Item.md +2 -0
- data/docs/LdapTargetDetails.md +3 -1
- data/docs/LetsEncryptTargetDetails.md +8 -0
- data/docs/ListSRASessions.md +2 -0
- data/docs/ListSraSessionsOutput.md +3 -3
- data/docs/ListTargets.md +1 -1
- data/docs/LockItem.md +1 -1
- data/docs/MigrationGeneral.md +6 -0
- data/docs/PKICertificateIssueDetails.md +4 -0
- data/docs/RequestAccess.md +2 -0
- data/docs/RotatedSecretCreateAliCloud.md +90 -0
- data/docs/RotatedSecretCreateAzure.md +1 -1
- data/docs/RotatedSecretCreateOkta.md +82 -0
- data/docs/RotatedSecretUpdateAliCloud.md +92 -0
- data/docs/RotatedSecretUpdateAzure.md +1 -1
- data/docs/RotatedSecretUpdateOkta.md +84 -0
- data/docs/ScimSettings.md +30 -0
- data/docs/ScimStatus.md +42 -0
- data/docs/Target.md +2 -0
- data/docs/TargetCreateAliCloud.md +52 -0
- data/docs/TargetCreateDigiCert.md +8 -0
- data/docs/TargetCreateGoogleTrust.md +8 -0
- data/docs/TargetCreateLdap.md +3 -1
- data/docs/TargetCreateLetsEncrypt.md +8 -0
- data/docs/TargetList.md +1 -1
- data/docs/TargetTypeDetailsInput.md +2 -0
- data/docs/TargetUpdateAliCloud.md +56 -0
- data/docs/TargetUpdateDigiCert.md +8 -0
- data/docs/TargetUpdateGoogleTrust.md +8 -0
- data/docs/TargetUpdateLdap.md +3 -1
- data/docs/TargetUpdateLetsEncrypt.md +8 -0
- data/docs/UpdateItem.md +3 -1
- data/docs/UpdateLdapTarget.md +3 -1
- data/docs/UpdatePKICertIssuer.md +6 -0
- data/docs/UpdateRotatedSecret.md +3 -1
- data/docs/UscCreate.md +3 -1
- data/docs/UscDelete.md +4 -0
- data/docs/UscGet.md +4 -0
- data/docs/UscList.md +4 -0
- data/docs/UscUpdate.md +4 -0
- data/docs/V2Api.md +579 -9
- data/lib/akeyless/api/v2_api.rb +585 -5
- data/lib/akeyless/models/account_general_settings.rb +13 -1
- data/lib/akeyless/models/ali_cloud_target_details.rb +259 -0
- data/lib/akeyless/models/assoc_target_item.rb +86 -2
- data/lib/akeyless/models/attribute_type_and_value.rb +1 -1
- data/lib/akeyless/models/auth_method_access_info.rb +10 -1
- data/lib/akeyless/models/auth_method_create_oidc.rb +41 -1
- data/lib/akeyless/models/auth_method_create_output.rb +14 -4
- data/lib/akeyless/models/auth_method_create_saml.rb +41 -1
- data/lib/akeyless/models/auth_method_update_oidc.rb +41 -1
- data/lib/akeyless/models/auth_method_update_output.rb +14 -4
- data/lib/akeyless/models/auth_method_update_saml.rb +41 -1
- data/lib/akeyless/models/client_event.rb +256 -0
- data/lib/akeyless/models/client_event_output.rb +214 -0
- data/lib/akeyless/models/connect.rb +11 -1
- data/lib/akeyless/models/create_event_forwarder.rb +1 -1
- data/lib/akeyless/models/create_ldap_target.rb +14 -4
- data/lib/akeyless/models/create_mcp_secret_bearer_token.rb +3 -0
- data/lib/akeyless/models/create_mcp_secret_o_auth_auth_code.rb +3 -0
- data/lib/akeyless/models/create_mcp_secret_o_auth_client_creds.rb +3 -0
- data/lib/akeyless/models/create_pki_cert_issuer.rb +31 -1
- data/lib/akeyless/models/create_secret.rb +3 -0
- data/lib/akeyless/models/create_usc.rb +11 -1
- data/lib/akeyless/models/digi_cert_target_details.rb +43 -1
- data/lib/akeyless/models/ds_producer_details.rb +10 -1
- data/lib/akeyless/models/dynamic_secret_create_eks.rb +12 -2
- data/lib/akeyless/models/dynamic_secret_create_gke.rb +12 -2
- data/lib/akeyless/models/dynamic_secret_create_k8s.rb +12 -2
- data/lib/akeyless/models/dynamic_secret_update_eks.rb +12 -2
- data/lib/akeyless/models/dynamic_secret_update_gke.rb +12 -2
- data/lib/akeyless/models/dynamic_secret_update_k8s.rb +12 -2
- data/lib/akeyless/models/event_forwarder_create_email.rb +2 -2
- data/lib/akeyless/models/event_forwarder_create_service_now.rb +1 -1
- data/lib/akeyless/models/event_forwarder_create_slack.rb +1 -1
- data/lib/akeyless/models/event_forwarder_create_teams.rb +1 -1
- data/lib/akeyless/models/event_forwarder_create_webhook.rb +1 -1
- data/lib/akeyless/models/event_forwarder_update_email.rb +2 -2
- data/lib/akeyless/models/event_forwarder_update_service_now.rb +1 -1
- data/lib/akeyless/models/event_forwarder_update_slack.rb +1 -1
- data/lib/akeyless/models/event_forwarder_update_teams.rb +1 -1
- data/lib/akeyless/models/event_forwarder_update_webhook.rb +1 -1
- data/lib/akeyless/models/gateway_create_allowed_access.rb +1 -1
- data/lib/akeyless/models/gateway_create_migration.rb +12 -1
- data/lib/akeyless/models/gateway_create_producer_artifactory.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_aws.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_azure.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_cassandra.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_chef.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_custom.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_dockerhub.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_eks.rb +16 -2
- data/lib/akeyless/models/gateway_create_producer_gcp.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_github.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_gke.rb +16 -2
- data/lib/akeyless/models/gateway_create_producer_hana_db.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_ldap.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_mongo.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_mssql.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_my_sql.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_native_k8_s.rb +16 -2
- data/lib/akeyless/models/gateway_create_producer_oracle_db.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_ping.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_postgre_sql.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_rabbit_mq.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_rdp.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_redis.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_redshift.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_snowflake.rb +4 -0
- data/lib/akeyless/models/gateway_create_producer_venafi.rb +4 -0
- data/lib/akeyless/models/gateway_delete_producer.rb +4 -0
- data/lib/akeyless/models/gateway_get_producer.rb +4 -0
- data/lib/akeyless/models/gateway_get_tmp_users.rb +4 -0
- data/lib/akeyless/models/gateway_revoke_tmp_users.rb +4 -0
- data/lib/akeyless/models/gateway_start_producer.rb +4 -0
- data/lib/akeyless/models/gateway_stop_producer.rb +4 -0
- data/lib/akeyless/models/gateway_update_allowed_access.rb +1 -1
- data/lib/akeyless/models/gateway_update_migration.rb +12 -1
- data/lib/akeyless/models/gateway_update_producer_artifactory.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_aws.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_azure.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_cassandra.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_chef.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_custom.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_dockerhub.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_eks.rb +16 -2
- data/lib/akeyless/models/gateway_update_producer_gcp.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_github.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_gke.rb +16 -2
- data/lib/akeyless/models/gateway_update_producer_hana_db.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_ldap.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_mongo.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_mssql.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_my_sql.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_native_k8_s.rb +16 -2
- data/lib/akeyless/models/gateway_update_producer_oracle_db.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_ping.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_postgre_sql.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_rabbit_mq.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_rdp.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_redis.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_redshift.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_snowflake.rb +4 -0
- data/lib/akeyless/models/gateway_update_producer_venafi.rb +4 -0
- data/lib/akeyless/models/gateway_update_tmp_users.rb +4 -0
- data/lib/akeyless/models/generate_intermediate_ca.rb +379 -0
- data/lib/akeyless/models/generate_intermediate_ca_output.rb +250 -0
- data/lib/akeyless/models/get_group_output.rb +63 -4
- data/lib/akeyless/models/get_scim_status.rb +254 -0
- data/lib/akeyless/models/google_trust_target_details.rb +43 -1
- data/lib/akeyless/models/granted_role.rb +224 -0
- data/lib/akeyless/models/group.rb +63 -4
- data/lib/akeyless/models/injector_certificate_event.rb +259 -0
- data/lib/akeyless/models/item.rb +10 -1
- data/lib/akeyless/models/ldap_target_details.rb +13 -4
- data/lib/akeyless/models/lets_encrypt_target_details.rb +43 -1
- data/lib/akeyless/models/list_sra_sessions.rb +12 -2
- data/lib/akeyless/models/list_sra_sessions_output.rb +3 -0
- data/lib/akeyless/models/list_targets.rb +1 -1
- data/lib/akeyless/models/lock_item.rb +1 -1
- data/lib/akeyless/models/migration_general.rb +28 -1
- data/lib/akeyless/models/pki_certificate_issue_details.rb +21 -1
- data/lib/akeyless/models/request_access.rb +11 -1
- data/lib/akeyless/models/rotated_secret_create_ali_cloud.rb +605 -0
- data/lib/akeyless/models/rotated_secret_create_azure.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_okta.rb +556 -0
- data/lib/akeyless/models/rotated_secret_update_ali_cloud.rb +605 -0
- data/lib/akeyless/models/rotated_secret_update_azure.rb +1 -1
- data/lib/akeyless/models/rotated_secret_update_okta.rb +563 -0
- data/lib/akeyless/models/scim_settings.rb +271 -0
- data/lib/akeyless/models/scim_status.rb +323 -0
- data/lib/akeyless/models/target.rb +10 -1
- data/lib/akeyless/models/target_create_ali_cloud.rb +394 -0
- data/lib/akeyless/models/target_create_digi_cert.rb +43 -1
- data/lib/akeyless/models/target_create_google_trust.rb +43 -1
- data/lib/akeyless/models/target_create_ldap.rb +14 -4
- data/lib/akeyless/models/target_create_lets_encrypt.rb +43 -1
- data/lib/akeyless/models/target_list.rb +1 -1
- data/lib/akeyless/models/target_type_details_input.rb +10 -1
- data/lib/akeyless/models/target_update_ali_cloud.rb +414 -0
- data/lib/akeyless/models/target_update_digi_cert.rb +43 -1
- data/lib/akeyless/models/target_update_google_trust.rb +43 -1
- data/lib/akeyless/models/target_update_ldap.rb +14 -4
- data/lib/akeyless/models/target_update_lets_encrypt.rb +43 -1
- data/lib/akeyless/models/update_item.rb +23 -2
- data/lib/akeyless/models/update_ldap_target.rb +14 -4
- data/lib/akeyless/models/update_mcp_secret_bearer_token.rb +3 -0
- data/lib/akeyless/models/update_mcp_secret_o_auth_auth_code.rb +3 -0
- data/lib/akeyless/models/update_mcp_secret_o_auth_client_creds.rb +3 -0
- data/lib/akeyless/models/update_pki_cert_issuer.rb +31 -1
- data/lib/akeyless/models/update_rotated_secret.rb +20 -2
- data/lib/akeyless/models/usc_create.rb +12 -2
- data/lib/akeyless/models/usc_delete.rb +21 -1
- data/lib/akeyless/models/usc_get.rb +21 -1
- data/lib/akeyless/models/usc_list.rb +21 -1
- data/lib/akeyless/models/usc_update.rb +21 -1
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +16 -0
- data/spec/models/ali_cloud_target_details_spec.rb +66 -0
- data/spec/models/client_event_output_spec.rb +36 -0
- data/spec/models/client_event_spec.rb +60 -0
- data/spec/models/generate_intermediate_ca_output_spec.rb +60 -0
- data/spec/models/generate_intermediate_ca_spec.rb +126 -0
- data/spec/models/get_scim_status_spec.rb +54 -0
- data/spec/models/granted_role_spec.rb +42 -0
- data/spec/models/injector_certificate_event_spec.rb +66 -0
- data/spec/models/rotated_secret_create_ali_cloud_spec.rb +252 -0
- data/spec/models/rotated_secret_create_okta_spec.rb +228 -0
- data/spec/models/rotated_secret_update_ali_cloud_spec.rb +258 -0
- data/spec/models/rotated_secret_update_okta_spec.rb +234 -0
- data/spec/models/scim_settings_spec.rb +72 -0
- data/spec/models/scim_status_spec.rb +108 -0
- data/spec/models/target_create_ali_cloud_spec.rb +138 -0
- data/spec/models/target_update_ali_cloud_spec.rb +150 -0
- metadata +75 -10
|
@@ -24,9 +24,21 @@ module Akeyless
|
|
|
24
24
|
# Description of the object
|
|
25
25
|
attr_accessor :description
|
|
26
26
|
|
|
27
|
+
# Fixed wait after TXT publish (e.g. 30s, 2m). If omitted with pre-check on, no extra sleep (polling only). If omitted with --dns-skip-precheck, gateway uses 30s. DNS challenge only
|
|
28
|
+
attr_accessor :dns_propagation_wait
|
|
29
|
+
|
|
30
|
+
# Custom DNS resolvers (ip:port) for DNS-01. Repeat for multiple. If omitted, Lego uses /etc/resolv.conf or Google Public DNS. DNS challenge only
|
|
31
|
+
attr_accessor :dns_resolvers
|
|
32
|
+
|
|
33
|
+
# Skip DNS TXT pre-check before CA validation. If --dns-propagation-wait is omitted and this flag is set, gateway waits 30s before CA validation. DNS challenge only
|
|
34
|
+
attr_accessor :dns_skip_precheck
|
|
35
|
+
|
|
27
36
|
# Name of existing cloud target for DNS credentials. Required when acme-challenge=dns. Supported: AWS, Azure, GCP, Cloudflare targets
|
|
28
37
|
attr_accessor :dns_target_creds
|
|
29
38
|
|
|
39
|
+
# Per-query DNS lookup timeout during pre-check (e.g. 10s), not total poll time. If omitted with pre-check on, Lego library default applies (10s per query on Linux). Ignored when --dns-skip-precheck is set. DNS challenge only
|
|
40
|
+
attr_accessor :dns_timeout
|
|
41
|
+
|
|
30
42
|
# Cloudflare DNS zone identifier. Required when dns-target-creds points to Cloudflare target
|
|
31
43
|
attr_accessor :dns_zone
|
|
32
44
|
|
|
@@ -79,7 +91,11 @@ module Akeyless
|
|
|
79
91
|
:'acme_challenge' => :'acme-challenge',
|
|
80
92
|
:'delete_protection' => :'delete_protection',
|
|
81
93
|
:'description' => :'description',
|
|
94
|
+
:'dns_propagation_wait' => :'dns-propagation-wait',
|
|
95
|
+
:'dns_resolvers' => :'dns-resolvers',
|
|
96
|
+
:'dns_skip_precheck' => :'dns-skip-precheck',
|
|
82
97
|
:'dns_target_creds' => :'dns-target-creds',
|
|
98
|
+
:'dns_timeout' => :'dns-timeout',
|
|
83
99
|
:'dns_zone' => :'dns-zone',
|
|
84
100
|
:'email' => :'email',
|
|
85
101
|
:'gcp_project' => :'gcp-project',
|
|
@@ -110,7 +126,11 @@ module Akeyless
|
|
|
110
126
|
:'acme_challenge' => :'String',
|
|
111
127
|
:'delete_protection' => :'String',
|
|
112
128
|
:'description' => :'String',
|
|
129
|
+
:'dns_propagation_wait' => :'String',
|
|
130
|
+
:'dns_resolvers' => :'Array<String>',
|
|
131
|
+
:'dns_skip_precheck' => :'Boolean',
|
|
113
132
|
:'dns_target_creds' => :'String',
|
|
133
|
+
:'dns_timeout' => :'String',
|
|
114
134
|
:'dns_zone' => :'String',
|
|
115
135
|
:'email' => :'String',
|
|
116
136
|
:'gcp_project' => :'String',
|
|
@@ -165,10 +185,28 @@ module Akeyless
|
|
|
165
185
|
self.description = attributes[:'description']
|
|
166
186
|
end
|
|
167
187
|
|
|
188
|
+
if attributes.key?(:'dns_propagation_wait')
|
|
189
|
+
self.dns_propagation_wait = attributes[:'dns_propagation_wait']
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
if attributes.key?(:'dns_resolvers')
|
|
193
|
+
if (value = attributes[:'dns_resolvers']).is_a?(Array)
|
|
194
|
+
self.dns_resolvers = value
|
|
195
|
+
end
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
if attributes.key?(:'dns_skip_precheck')
|
|
199
|
+
self.dns_skip_precheck = attributes[:'dns_skip_precheck']
|
|
200
|
+
end
|
|
201
|
+
|
|
168
202
|
if attributes.key?(:'dns_target_creds')
|
|
169
203
|
self.dns_target_creds = attributes[:'dns_target_creds']
|
|
170
204
|
end
|
|
171
205
|
|
|
206
|
+
if attributes.key?(:'dns_timeout')
|
|
207
|
+
self.dns_timeout = attributes[:'dns_timeout']
|
|
208
|
+
end
|
|
209
|
+
|
|
172
210
|
if attributes.key?(:'dns_zone')
|
|
173
211
|
self.dns_zone = attributes[:'dns_zone']
|
|
174
212
|
end
|
|
@@ -277,7 +315,11 @@ module Akeyless
|
|
|
277
315
|
acme_challenge == o.acme_challenge &&
|
|
278
316
|
delete_protection == o.delete_protection &&
|
|
279
317
|
description == o.description &&
|
|
318
|
+
dns_propagation_wait == o.dns_propagation_wait &&
|
|
319
|
+
dns_resolvers == o.dns_resolvers &&
|
|
320
|
+
dns_skip_precheck == o.dns_skip_precheck &&
|
|
280
321
|
dns_target_creds == o.dns_target_creds &&
|
|
322
|
+
dns_timeout == o.dns_timeout &&
|
|
281
323
|
dns_zone == o.dns_zone &&
|
|
282
324
|
email == o.email &&
|
|
283
325
|
gcp_project == o.gcp_project &&
|
|
@@ -305,7 +347,7 @@ module Akeyless
|
|
|
305
347
|
# Calculates hash code according to all attributes.
|
|
306
348
|
# @return [Integer] Hash code
|
|
307
349
|
def hash
|
|
308
|
-
[acme_challenge, delete_protection, description, dns_target_creds, dns_zone, email, gcp_project, hosted_zone, json, key, lets_encrypt_url, lock_on_read, lock_ttl, max_versions, name, resource_group, rotate_on_unlock, timeout, token, uid_token].hash
|
|
350
|
+
[acme_challenge, delete_protection, description, dns_propagation_wait, dns_resolvers, dns_skip_precheck, dns_target_creds, dns_timeout, dns_zone, email, gcp_project, hosted_zone, json, key, lets_encrypt_url, lock_on_read, lock_ttl, max_versions, name, resource_group, rotate_on_unlock, timeout, token, uid_token].hash
|
|
309
351
|
end
|
|
310
352
|
|
|
311
353
|
# Builds the object from hash
|
|
@@ -28,7 +28,7 @@ module Akeyless
|
|
|
28
28
|
# Authentication token (see `/auth` and `/configure`)
|
|
29
29
|
attr_accessor :token
|
|
30
30
|
|
|
31
|
-
# The target types list . In case it is empty, all types of targets will be returned. options: [hanadb cassandra aws ssh gke eks mysql mongodb snowflake mssql redshift artifactory azure rabbitmq k8s venafi gcp oracle dockerhub cloudflare ldap github chef web salesforce postgres]
|
|
31
|
+
# The target types list . In case it is empty, all types of targets will be returned. options: [hanadb cassandra aws alicloud ssh gke eks mysql mongodb snowflake mssql redshift artifactory azure rabbitmq k8s venafi gcp oracle dockerhub cloudflare ldap github chef web salesforce postgres]
|
|
32
32
|
attr_accessor :type
|
|
33
33
|
|
|
34
34
|
# The universal identity token, Required only for universal_identity authentication
|
|
@@ -17,6 +17,8 @@ module Akeyless
|
|
|
17
17
|
class TargetTypeDetailsInput
|
|
18
18
|
attr_accessor :aerospike_target_details
|
|
19
19
|
|
|
20
|
+
attr_accessor :alicloud_target_details
|
|
21
|
+
|
|
20
22
|
attr_accessor :anthropic_target_details
|
|
21
23
|
|
|
22
24
|
attr_accessor :artifactory_target_details
|
|
@@ -107,6 +109,7 @@ module Akeyless
|
|
|
107
109
|
def self.attribute_map
|
|
108
110
|
{
|
|
109
111
|
:'aerospike_target_details' => :'aerospike_target_details',
|
|
112
|
+
:'alicloud_target_details' => :'alicloud_target_details',
|
|
110
113
|
:'anthropic_target_details' => :'anthropic_target_details',
|
|
111
114
|
:'artifactory_target_details' => :'artifactory_target_details',
|
|
112
115
|
:'aws_target_details' => :'aws_target_details',
|
|
@@ -162,6 +165,7 @@ module Akeyless
|
|
|
162
165
|
def self.openapi_types
|
|
163
166
|
{
|
|
164
167
|
:'aerospike_target_details' => :'AerospikeTargetDetails',
|
|
168
|
+
:'alicloud_target_details' => :'AliCloudTargetDetails',
|
|
165
169
|
:'anthropic_target_details' => :'AnthropicTargetDetails',
|
|
166
170
|
:'artifactory_target_details' => :'ArtifactoryTargetDetails',
|
|
167
171
|
:'aws_target_details' => :'AWSTargetDetails',
|
|
@@ -233,6 +237,10 @@ module Akeyless
|
|
|
233
237
|
self.aerospike_target_details = attributes[:'aerospike_target_details']
|
|
234
238
|
end
|
|
235
239
|
|
|
240
|
+
if attributes.key?(:'alicloud_target_details')
|
|
241
|
+
self.alicloud_target_details = attributes[:'alicloud_target_details']
|
|
242
|
+
end
|
|
243
|
+
|
|
236
244
|
if attributes.key?(:'anthropic_target_details')
|
|
237
245
|
self.anthropic_target_details = attributes[:'anthropic_target_details']
|
|
238
246
|
end
|
|
@@ -427,6 +435,7 @@ module Akeyless
|
|
|
427
435
|
return true if self.equal?(o)
|
|
428
436
|
self.class == o.class &&
|
|
429
437
|
aerospike_target_details == o.aerospike_target_details &&
|
|
438
|
+
alicloud_target_details == o.alicloud_target_details &&
|
|
430
439
|
anthropic_target_details == o.anthropic_target_details &&
|
|
431
440
|
artifactory_target_details == o.artifactory_target_details &&
|
|
432
441
|
aws_target_details == o.aws_target_details &&
|
|
@@ -481,7 +490,7 @@ module Akeyless
|
|
|
481
490
|
# Calculates hash code according to all attributes.
|
|
482
491
|
# @return [Integer] Hash code
|
|
483
492
|
def hash
|
|
484
|
-
[aerospike_target_details, anthropic_target_details, artifactory_target_details, aws_target_details, azure_target_details, bedrock_target_details, chef_target_details, cloudflare_target_details, custom_dns_target_details, custom_target_details, db_target_details, digicert_target_details, dockerhub_target_details, eks_target_details, f5_big_ip_target_details, gcp_target_details, gemini_target_details, github_target_details, gitlab_target_details, gke_target_details, globalsign_atlas_target_details, globalsign_target_details, godaddy_target_details, google_trust_target_details, grok_target_details, hashi_vault_target_details, keycloak_target_details, ldap_target_details, letsencrypt_target_details, linked_target_details, mongo_db_target_details, native_k8s_target_details, okta_target_details, openai_target_details, ping_target_details, rabbit_mq_target_details, salesforce_target_details, sectigo_target_details, splunk_target_details, ssh_target_details, venafi_target_details, web_target_details, windows_target_details, zerossl_target_details].hash
|
|
493
|
+
[aerospike_target_details, alicloud_target_details, anthropic_target_details, artifactory_target_details, aws_target_details, azure_target_details, bedrock_target_details, chef_target_details, cloudflare_target_details, custom_dns_target_details, custom_target_details, db_target_details, digicert_target_details, dockerhub_target_details, eks_target_details, f5_big_ip_target_details, gcp_target_details, gemini_target_details, github_target_details, gitlab_target_details, gke_target_details, globalsign_atlas_target_details, globalsign_target_details, godaddy_target_details, google_trust_target_details, grok_target_details, hashi_vault_target_details, keycloak_target_details, ldap_target_details, letsencrypt_target_details, linked_target_details, mongo_db_target_details, native_k8s_target_details, okta_target_details, openai_target_details, ping_target_details, rabbit_mq_target_details, salesforce_target_details, sectigo_target_details, splunk_target_details, ssh_target_details, venafi_target_details, web_target_details, windows_target_details, zerossl_target_details].hash
|
|
485
494
|
end
|
|
486
495
|
|
|
487
496
|
# Builds the object from hash
|
|
@@ -0,0 +1,414 @@
|
|
|
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 TargetUpdateAliCloud
|
|
18
|
+
# AliCloud RAM access key secret
|
|
19
|
+
attr_accessor :access_key
|
|
20
|
+
|
|
21
|
+
# AliCloud RAM access key ID
|
|
22
|
+
attr_accessor :access_key_id
|
|
23
|
+
|
|
24
|
+
# Protection from accidental deletion of this object [true/false]
|
|
25
|
+
attr_accessor :delete_protection
|
|
26
|
+
|
|
27
|
+
# Description of the object
|
|
28
|
+
attr_accessor :description
|
|
29
|
+
|
|
30
|
+
# A unique auto-generated value used in your AliCloud account when configuring the RAM role trust policy to securely delegate access to Akeyless. Relevant only when using GW cloud ID
|
|
31
|
+
attr_accessor :generate_external_id
|
|
32
|
+
|
|
33
|
+
# Set output format to JSON
|
|
34
|
+
attr_accessor :json
|
|
35
|
+
|
|
36
|
+
# Whether to keep previous version [true/false]. If not set, use default according to account settings
|
|
37
|
+
attr_accessor :keep_prev_version
|
|
38
|
+
|
|
39
|
+
# The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
|
|
40
|
+
attr_accessor :key
|
|
41
|
+
|
|
42
|
+
# Lock this secret after each successful value read
|
|
43
|
+
attr_accessor :lock_on_read
|
|
44
|
+
|
|
45
|
+
# Lock TTL in minutes
|
|
46
|
+
attr_accessor :lock_ttl
|
|
47
|
+
|
|
48
|
+
# Set the maximum number of versions, limited by the account settings defaults.
|
|
49
|
+
attr_accessor :max_versions
|
|
50
|
+
|
|
51
|
+
# Target name
|
|
52
|
+
attr_accessor :name
|
|
53
|
+
|
|
54
|
+
# New target name
|
|
55
|
+
attr_accessor :new_name
|
|
56
|
+
|
|
57
|
+
# AliCloud region. Selects the regional STS endpoint. If empty, the global STS endpoint is used
|
|
58
|
+
attr_accessor :region
|
|
59
|
+
|
|
60
|
+
# AliCloud RAM role ARN that the Gateway will assume in your AliCloud account (acs:ram::<account-id>:role/<role-name>), relevant only when using external ID
|
|
61
|
+
attr_accessor :role_arn
|
|
62
|
+
|
|
63
|
+
# Rotate this secret after it is unlocked
|
|
64
|
+
attr_accessor :rotate_on_unlock
|
|
65
|
+
|
|
66
|
+
# Required only for temporary security credentials retrieved using STS
|
|
67
|
+
attr_accessor :session_token
|
|
68
|
+
|
|
69
|
+
# Authentication token (see `/auth` and `/configure`)
|
|
70
|
+
attr_accessor :token
|
|
71
|
+
|
|
72
|
+
# The universal identity token, Required only for universal_identity authentication
|
|
73
|
+
attr_accessor :uid_token
|
|
74
|
+
|
|
75
|
+
# Use the Gateway cloud identity
|
|
76
|
+
attr_accessor :use_gw_cloud_identity
|
|
77
|
+
|
|
78
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
79
|
+
def self.attribute_map
|
|
80
|
+
{
|
|
81
|
+
:'access_key' => :'access-key',
|
|
82
|
+
:'access_key_id' => :'access-key-id',
|
|
83
|
+
:'delete_protection' => :'delete_protection',
|
|
84
|
+
:'description' => :'description',
|
|
85
|
+
:'generate_external_id' => :'generate-external-id',
|
|
86
|
+
:'json' => :'json',
|
|
87
|
+
:'keep_prev_version' => :'keep-prev-version',
|
|
88
|
+
:'key' => :'key',
|
|
89
|
+
:'lock_on_read' => :'lock-on-read',
|
|
90
|
+
:'lock_ttl' => :'lock-ttl',
|
|
91
|
+
:'max_versions' => :'max-versions',
|
|
92
|
+
:'name' => :'name',
|
|
93
|
+
:'new_name' => :'new-name',
|
|
94
|
+
:'region' => :'region',
|
|
95
|
+
:'role_arn' => :'role-arn',
|
|
96
|
+
:'rotate_on_unlock' => :'rotate-on-unlock',
|
|
97
|
+
:'session_token' => :'session-token',
|
|
98
|
+
:'token' => :'token',
|
|
99
|
+
:'uid_token' => :'uid-token',
|
|
100
|
+
:'use_gw_cloud_identity' => :'use-gw-cloud-identity'
|
|
101
|
+
}
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Returns all the JSON keys this model knows about
|
|
105
|
+
def self.acceptable_attributes
|
|
106
|
+
attribute_map.values
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Attribute type mapping.
|
|
110
|
+
def self.openapi_types
|
|
111
|
+
{
|
|
112
|
+
:'access_key' => :'String',
|
|
113
|
+
:'access_key_id' => :'String',
|
|
114
|
+
:'delete_protection' => :'String',
|
|
115
|
+
:'description' => :'String',
|
|
116
|
+
:'generate_external_id' => :'Boolean',
|
|
117
|
+
:'json' => :'Boolean',
|
|
118
|
+
:'keep_prev_version' => :'String',
|
|
119
|
+
:'key' => :'String',
|
|
120
|
+
:'lock_on_read' => :'String',
|
|
121
|
+
:'lock_ttl' => :'String',
|
|
122
|
+
:'max_versions' => :'String',
|
|
123
|
+
:'name' => :'String',
|
|
124
|
+
:'new_name' => :'String',
|
|
125
|
+
:'region' => :'String',
|
|
126
|
+
:'role_arn' => :'String',
|
|
127
|
+
:'rotate_on_unlock' => :'String',
|
|
128
|
+
:'session_token' => :'String',
|
|
129
|
+
:'token' => :'String',
|
|
130
|
+
:'uid_token' => :'String',
|
|
131
|
+
:'use_gw_cloud_identity' => :'Boolean'
|
|
132
|
+
}
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# List of attributes with nullable: true
|
|
136
|
+
def self.openapi_nullable
|
|
137
|
+
Set.new([
|
|
138
|
+
])
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# Initializes the object
|
|
142
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
143
|
+
def initialize(attributes = {})
|
|
144
|
+
if (!attributes.is_a?(Hash))
|
|
145
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::TargetUpdateAliCloud` initialize method"
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
149
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
150
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
151
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::TargetUpdateAliCloud`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
152
|
+
end
|
|
153
|
+
h[k.to_sym] = v
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
if attributes.key?(:'access_key')
|
|
157
|
+
self.access_key = attributes[:'access_key']
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
if attributes.key?(:'access_key_id')
|
|
161
|
+
self.access_key_id = attributes[:'access_key_id']
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
if attributes.key?(:'delete_protection')
|
|
165
|
+
self.delete_protection = attributes[:'delete_protection']
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
if attributes.key?(:'description')
|
|
169
|
+
self.description = attributes[:'description']
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
if attributes.key?(:'generate_external_id')
|
|
173
|
+
self.generate_external_id = attributes[:'generate_external_id']
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
if attributes.key?(:'json')
|
|
177
|
+
self.json = attributes[:'json']
|
|
178
|
+
else
|
|
179
|
+
self.json = false
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
if attributes.key?(:'keep_prev_version')
|
|
183
|
+
self.keep_prev_version = attributes[:'keep_prev_version']
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
if attributes.key?(:'key')
|
|
187
|
+
self.key = attributes[:'key']
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
if attributes.key?(:'lock_on_read')
|
|
191
|
+
self.lock_on_read = attributes[:'lock_on_read']
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
if attributes.key?(:'lock_ttl')
|
|
195
|
+
self.lock_ttl = attributes[:'lock_ttl']
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
if attributes.key?(:'max_versions')
|
|
199
|
+
self.max_versions = attributes[:'max_versions']
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
if attributes.key?(:'name')
|
|
203
|
+
self.name = attributes[:'name']
|
|
204
|
+
else
|
|
205
|
+
self.name = nil
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
if attributes.key?(:'new_name')
|
|
209
|
+
self.new_name = attributes[:'new_name']
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
if attributes.key?(:'region')
|
|
213
|
+
self.region = attributes[:'region']
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
if attributes.key?(:'role_arn')
|
|
217
|
+
self.role_arn = attributes[:'role_arn']
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
if attributes.key?(:'rotate_on_unlock')
|
|
221
|
+
self.rotate_on_unlock = attributes[:'rotate_on_unlock']
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
if attributes.key?(:'session_token')
|
|
225
|
+
self.session_token = attributes[:'session_token']
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
if attributes.key?(:'token')
|
|
229
|
+
self.token = attributes[:'token']
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
if attributes.key?(:'uid_token')
|
|
233
|
+
self.uid_token = attributes[:'uid_token']
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
if attributes.key?(:'use_gw_cloud_identity')
|
|
237
|
+
self.use_gw_cloud_identity = attributes[:'use_gw_cloud_identity']
|
|
238
|
+
end
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
242
|
+
# @return Array for valid properties with the reasons
|
|
243
|
+
def list_invalid_properties
|
|
244
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
245
|
+
invalid_properties = Array.new
|
|
246
|
+
if @name.nil?
|
|
247
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
invalid_properties
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
# Check to see if the all the properties in the model are valid
|
|
254
|
+
# @return true if the model is valid
|
|
255
|
+
def valid?
|
|
256
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
257
|
+
return false if @name.nil?
|
|
258
|
+
true
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
# Checks equality by comparing each attribute.
|
|
262
|
+
# @param [Object] Object to be compared
|
|
263
|
+
def ==(o)
|
|
264
|
+
return true if self.equal?(o)
|
|
265
|
+
self.class == o.class &&
|
|
266
|
+
access_key == o.access_key &&
|
|
267
|
+
access_key_id == o.access_key_id &&
|
|
268
|
+
delete_protection == o.delete_protection &&
|
|
269
|
+
description == o.description &&
|
|
270
|
+
generate_external_id == o.generate_external_id &&
|
|
271
|
+
json == o.json &&
|
|
272
|
+
keep_prev_version == o.keep_prev_version &&
|
|
273
|
+
key == o.key &&
|
|
274
|
+
lock_on_read == o.lock_on_read &&
|
|
275
|
+
lock_ttl == o.lock_ttl &&
|
|
276
|
+
max_versions == o.max_versions &&
|
|
277
|
+
name == o.name &&
|
|
278
|
+
new_name == o.new_name &&
|
|
279
|
+
region == o.region &&
|
|
280
|
+
role_arn == o.role_arn &&
|
|
281
|
+
rotate_on_unlock == o.rotate_on_unlock &&
|
|
282
|
+
session_token == o.session_token &&
|
|
283
|
+
token == o.token &&
|
|
284
|
+
uid_token == o.uid_token &&
|
|
285
|
+
use_gw_cloud_identity == o.use_gw_cloud_identity
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
# @see the `==` method
|
|
289
|
+
# @param [Object] Object to be compared
|
|
290
|
+
def eql?(o)
|
|
291
|
+
self == o
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
# Calculates hash code according to all attributes.
|
|
295
|
+
# @return [Integer] Hash code
|
|
296
|
+
def hash
|
|
297
|
+
[access_key, access_key_id, delete_protection, description, generate_external_id, json, keep_prev_version, key, lock_on_read, lock_ttl, max_versions, name, new_name, region, role_arn, rotate_on_unlock, session_token, token, uid_token, use_gw_cloud_identity].hash
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
# Builds the object from hash
|
|
301
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
302
|
+
# @return [Object] Returns the model itself
|
|
303
|
+
def self.build_from_hash(attributes)
|
|
304
|
+
return nil unless attributes.is_a?(Hash)
|
|
305
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
306
|
+
transformed_hash = {}
|
|
307
|
+
openapi_types.each_pair do |key, type|
|
|
308
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
309
|
+
transformed_hash["#{key}"] = nil
|
|
310
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
311
|
+
# check to ensure the input is an array given that the attribute
|
|
312
|
+
# is documented as an array but the input is not
|
|
313
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
314
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
315
|
+
end
|
|
316
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
317
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
318
|
+
end
|
|
319
|
+
end
|
|
320
|
+
new(transformed_hash)
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
# Deserializes the data based on type
|
|
324
|
+
# @param string type Data type
|
|
325
|
+
# @param string value Value to be deserialized
|
|
326
|
+
# @return [Object] Deserialized data
|
|
327
|
+
def self._deserialize(type, value)
|
|
328
|
+
case type.to_sym
|
|
329
|
+
when :Time
|
|
330
|
+
Time.parse(value)
|
|
331
|
+
when :Date
|
|
332
|
+
Date.parse(value)
|
|
333
|
+
when :String
|
|
334
|
+
value.to_s
|
|
335
|
+
when :Integer
|
|
336
|
+
value.to_i
|
|
337
|
+
when :Float
|
|
338
|
+
value.to_f
|
|
339
|
+
when :Boolean
|
|
340
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
341
|
+
true
|
|
342
|
+
else
|
|
343
|
+
false
|
|
344
|
+
end
|
|
345
|
+
when :Object
|
|
346
|
+
# generic object (usually a Hash), return directly
|
|
347
|
+
value
|
|
348
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
349
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
350
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
351
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
352
|
+
k_type = Regexp.last_match[:k_type]
|
|
353
|
+
v_type = Regexp.last_match[:v_type]
|
|
354
|
+
{}.tap do |hash|
|
|
355
|
+
value.each do |k, v|
|
|
356
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
357
|
+
end
|
|
358
|
+
end
|
|
359
|
+
else # model
|
|
360
|
+
# models (e.g. Pet) or oneOf
|
|
361
|
+
klass = Akeyless.const_get(type)
|
|
362
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
363
|
+
end
|
|
364
|
+
end
|
|
365
|
+
|
|
366
|
+
# Returns the string representation of the object
|
|
367
|
+
# @return [String] String presentation of the object
|
|
368
|
+
def to_s
|
|
369
|
+
to_hash.to_s
|
|
370
|
+
end
|
|
371
|
+
|
|
372
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
373
|
+
# @return [Hash] Returns the object in the form of hash
|
|
374
|
+
def to_body
|
|
375
|
+
to_hash
|
|
376
|
+
end
|
|
377
|
+
|
|
378
|
+
# Returns the object in the form of hash
|
|
379
|
+
# @return [Hash] Returns the object in the form of hash
|
|
380
|
+
def to_hash
|
|
381
|
+
hash = {}
|
|
382
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
383
|
+
value = self.send(attr)
|
|
384
|
+
if value.nil?
|
|
385
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
386
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
hash[param] = _to_hash(value)
|
|
390
|
+
end
|
|
391
|
+
hash
|
|
392
|
+
end
|
|
393
|
+
|
|
394
|
+
# Outputs non-array value in the form of hash
|
|
395
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
396
|
+
# @param [Object] value Any valid value
|
|
397
|
+
# @return [Hash] Returns the value in the form of hash
|
|
398
|
+
def _to_hash(value)
|
|
399
|
+
if value.is_a?(Array)
|
|
400
|
+
value.compact.map { |v| _to_hash(v) }
|
|
401
|
+
elsif value.is_a?(Hash)
|
|
402
|
+
{}.tap do |hash|
|
|
403
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
404
|
+
end
|
|
405
|
+
elsif value.respond_to? :to_hash
|
|
406
|
+
value.to_hash
|
|
407
|
+
else
|
|
408
|
+
value
|
|
409
|
+
end
|
|
410
|
+
end
|
|
411
|
+
|
|
412
|
+
end
|
|
413
|
+
|
|
414
|
+
end
|
|
@@ -28,9 +28,21 @@ module Akeyless
|
|
|
28
28
|
# DigiCert ACME endpoint selector. Options: [us-production/eu-production/us-demo/eu-demo]
|
|
29
29
|
attr_accessor :digicert_url
|
|
30
30
|
|
|
31
|
+
# Fixed wait after TXT publish (e.g. 30s, 2m). If omitted with pre-check on, no extra sleep (polling only). If omitted with --dns-skip-precheck, gateway uses 30s. DNS challenge only
|
|
32
|
+
attr_accessor :dns_propagation_wait
|
|
33
|
+
|
|
34
|
+
# Custom DNS resolvers (ip:port) for DNS-01. Repeat for multiple. If omitted, Lego uses /etc/resolv.conf or Google Public DNS. DNS challenge only
|
|
35
|
+
attr_accessor :dns_resolvers
|
|
36
|
+
|
|
37
|
+
# Skip DNS TXT pre-check before CA validation. If --dns-propagation-wait is omitted and this flag is set, gateway waits 30s before CA validation. DNS challenge only
|
|
38
|
+
attr_accessor :dns_skip_precheck
|
|
39
|
+
|
|
31
40
|
# Name of existing cloud target for DNS credentials. Required when challenge type is dns. Supported providers: AWS, Azure, GCP, Cloudflare
|
|
32
41
|
attr_accessor :dns_target_creds
|
|
33
42
|
|
|
43
|
+
# Per-query DNS lookup timeout during pre-check (e.g. 10s), not total poll time. If omitted with pre-check on, Lego library default applies (10s per query on Linux). Ignored when --dns-skip-precheck is set. DNS challenge only
|
|
44
|
+
attr_accessor :dns_timeout
|
|
45
|
+
|
|
34
46
|
# Cloudflare DNS zone identifier. Required when DNS credentials target is Cloudflare
|
|
35
47
|
attr_accessor :dns_zone
|
|
36
48
|
|
|
@@ -95,7 +107,11 @@ module Akeyless
|
|
|
95
107
|
:'delete_protection' => :'delete_protection',
|
|
96
108
|
:'description' => :'description',
|
|
97
109
|
:'digicert_url' => :'digicert-url',
|
|
110
|
+
:'dns_propagation_wait' => :'dns-propagation-wait',
|
|
111
|
+
:'dns_resolvers' => :'dns-resolvers',
|
|
112
|
+
:'dns_skip_precheck' => :'dns-skip-precheck',
|
|
98
113
|
:'dns_target_creds' => :'dns-target-creds',
|
|
114
|
+
:'dns_timeout' => :'dns-timeout',
|
|
99
115
|
:'dns_zone' => :'dns-zone',
|
|
100
116
|
:'eab_hmac_key' => :'eab-hmac-key',
|
|
101
117
|
:'eab_key_id' => :'eab-key-id',
|
|
@@ -130,7 +146,11 @@ module Akeyless
|
|
|
130
146
|
:'delete_protection' => :'String',
|
|
131
147
|
:'description' => :'String',
|
|
132
148
|
:'digicert_url' => :'String',
|
|
149
|
+
:'dns_propagation_wait' => :'String',
|
|
150
|
+
:'dns_resolvers' => :'Array<String>',
|
|
151
|
+
:'dns_skip_precheck' => :'Boolean',
|
|
133
152
|
:'dns_target_creds' => :'String',
|
|
153
|
+
:'dns_timeout' => :'String',
|
|
134
154
|
:'dns_zone' => :'String',
|
|
135
155
|
:'eab_hmac_key' => :'String',
|
|
136
156
|
:'eab_key_id' => :'String',
|
|
@@ -194,10 +214,28 @@ module Akeyless
|
|
|
194
214
|
self.digicert_url = 'us-production'
|
|
195
215
|
end
|
|
196
216
|
|
|
217
|
+
if attributes.key?(:'dns_propagation_wait')
|
|
218
|
+
self.dns_propagation_wait = attributes[:'dns_propagation_wait']
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
if attributes.key?(:'dns_resolvers')
|
|
222
|
+
if (value = attributes[:'dns_resolvers']).is_a?(Array)
|
|
223
|
+
self.dns_resolvers = value
|
|
224
|
+
end
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
if attributes.key?(:'dns_skip_precheck')
|
|
228
|
+
self.dns_skip_precheck = attributes[:'dns_skip_precheck']
|
|
229
|
+
end
|
|
230
|
+
|
|
197
231
|
if attributes.key?(:'dns_target_creds')
|
|
198
232
|
self.dns_target_creds = attributes[:'dns_target_creds']
|
|
199
233
|
end
|
|
200
234
|
|
|
235
|
+
if attributes.key?(:'dns_timeout')
|
|
236
|
+
self.dns_timeout = attributes[:'dns_timeout']
|
|
237
|
+
end
|
|
238
|
+
|
|
201
239
|
if attributes.key?(:'dns_zone')
|
|
202
240
|
self.dns_zone = attributes[:'dns_zone']
|
|
203
241
|
end
|
|
@@ -317,7 +355,11 @@ module Akeyless
|
|
|
317
355
|
delete_protection == o.delete_protection &&
|
|
318
356
|
description == o.description &&
|
|
319
357
|
digicert_url == o.digicert_url &&
|
|
358
|
+
dns_propagation_wait == o.dns_propagation_wait &&
|
|
359
|
+
dns_resolvers == o.dns_resolvers &&
|
|
360
|
+
dns_skip_precheck == o.dns_skip_precheck &&
|
|
320
361
|
dns_target_creds == o.dns_target_creds &&
|
|
362
|
+
dns_timeout == o.dns_timeout &&
|
|
321
363
|
dns_zone == o.dns_zone &&
|
|
322
364
|
eab_hmac_key == o.eab_hmac_key &&
|
|
323
365
|
eab_key_id == o.eab_key_id &&
|
|
@@ -348,7 +390,7 @@ module Akeyless
|
|
|
348
390
|
# Calculates hash code according to all attributes.
|
|
349
391
|
# @return [Integer] Hash code
|
|
350
392
|
def hash
|
|
351
|
-
[acme_challenge, delete_protection, description, digicert_url, dns_target_creds, dns_zone, eab_hmac_key, eab_key_id, email, gcp_project, hosted_zone, json, keep_prev_version, key, lock_on_read, lock_ttl, max_versions, name, new_name, resource_group, rotate_on_unlock, timeout, token, uid_token].hash
|
|
393
|
+
[acme_challenge, delete_protection, description, digicert_url, dns_propagation_wait, dns_resolvers, dns_skip_precheck, dns_target_creds, dns_timeout, dns_zone, eab_hmac_key, eab_key_id, email, gcp_project, hosted_zone, json, keep_prev_version, key, lock_on_read, lock_ttl, max_versions, name, new_name, resource_group, rotate_on_unlock, timeout, token, uid_token].hash
|
|
352
394
|
end
|
|
353
395
|
|
|
354
396
|
# Builds the object from hash
|