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
|
@@ -64,6 +64,27 @@ module Akeyless
|
|
|
64
64
|
# The universal identity token, Required only for universal_identity authentication
|
|
65
65
|
attr_accessor :uid_token
|
|
66
66
|
|
|
67
|
+
# Use the Gateway's cloud identity (Anthropic Workload Identity Federation) instead of an API key
|
|
68
|
+
attr_accessor :use_gw_cloud_identity
|
|
69
|
+
|
|
70
|
+
# Identifier URI (api://<app-id>) of the Entra app registration for the Claude API audience, required with the azure source
|
|
71
|
+
attr_accessor :wif_azure_audience
|
|
72
|
+
|
|
73
|
+
# Federation rule ID (fdrl_...), required with use-gw-cloud-identity
|
|
74
|
+
attr_accessor :wif_federation_rule_id
|
|
75
|
+
|
|
76
|
+
# Where the Gateway reads its identity token: file (default), gcp, aws or azure
|
|
77
|
+
attr_accessor :wif_identity_token_source
|
|
78
|
+
|
|
79
|
+
# Anthropic organization ID (UUID), required with use-gw-cloud-identity
|
|
80
|
+
attr_accessor :wif_organization_id
|
|
81
|
+
|
|
82
|
+
# Claude service account ID (svac_...), required with use-gw-cloud-identity
|
|
83
|
+
attr_accessor :wif_service_account_id
|
|
84
|
+
|
|
85
|
+
# Workspace ID (wrkspc_...), needed only when the federation rule covers more than one workspace
|
|
86
|
+
attr_accessor :wif_workspace_id
|
|
87
|
+
|
|
67
88
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
68
89
|
def self.attribute_map
|
|
69
90
|
{
|
|
@@ -82,7 +103,14 @@ module Akeyless
|
|
|
82
103
|
:'new_name' => :'new-name',
|
|
83
104
|
:'rotate_on_unlock' => :'rotate-on-unlock',
|
|
84
105
|
:'token' => :'token',
|
|
85
|
-
:'uid_token' => :'uid-token'
|
|
106
|
+
:'uid_token' => :'uid-token',
|
|
107
|
+
:'use_gw_cloud_identity' => :'use-gw-cloud-identity',
|
|
108
|
+
:'wif_azure_audience' => :'wif-azure-audience',
|
|
109
|
+
:'wif_federation_rule_id' => :'wif-federation-rule-id',
|
|
110
|
+
:'wif_identity_token_source' => :'wif-identity-token-source',
|
|
111
|
+
:'wif_organization_id' => :'wif-organization-id',
|
|
112
|
+
:'wif_service_account_id' => :'wif-service-account-id',
|
|
113
|
+
:'wif_workspace_id' => :'wif-workspace-id'
|
|
86
114
|
}
|
|
87
115
|
end
|
|
88
116
|
|
|
@@ -109,7 +137,14 @@ module Akeyless
|
|
|
109
137
|
:'new_name' => :'String',
|
|
110
138
|
:'rotate_on_unlock' => :'String',
|
|
111
139
|
:'token' => :'String',
|
|
112
|
-
:'uid_token' => :'String'
|
|
140
|
+
:'uid_token' => :'String',
|
|
141
|
+
:'use_gw_cloud_identity' => :'Boolean',
|
|
142
|
+
:'wif_azure_audience' => :'String',
|
|
143
|
+
:'wif_federation_rule_id' => :'String',
|
|
144
|
+
:'wif_identity_token_source' => :'String',
|
|
145
|
+
:'wif_organization_id' => :'String',
|
|
146
|
+
:'wif_service_account_id' => :'String',
|
|
147
|
+
:'wif_workspace_id' => :'String'
|
|
113
148
|
}
|
|
114
149
|
end
|
|
115
150
|
|
|
@@ -207,6 +242,34 @@ module Akeyless
|
|
|
207
242
|
if attributes.key?(:'uid_token')
|
|
208
243
|
self.uid_token = attributes[:'uid_token']
|
|
209
244
|
end
|
|
245
|
+
|
|
246
|
+
if attributes.key?(:'use_gw_cloud_identity')
|
|
247
|
+
self.use_gw_cloud_identity = attributes[:'use_gw_cloud_identity']
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
if attributes.key?(:'wif_azure_audience')
|
|
251
|
+
self.wif_azure_audience = attributes[:'wif_azure_audience']
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
if attributes.key?(:'wif_federation_rule_id')
|
|
255
|
+
self.wif_federation_rule_id = attributes[:'wif_federation_rule_id']
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
if attributes.key?(:'wif_identity_token_source')
|
|
259
|
+
self.wif_identity_token_source = attributes[:'wif_identity_token_source']
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
if attributes.key?(:'wif_organization_id')
|
|
263
|
+
self.wif_organization_id = attributes[:'wif_organization_id']
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
if attributes.key?(:'wif_service_account_id')
|
|
267
|
+
self.wif_service_account_id = attributes[:'wif_service_account_id']
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
if attributes.key?(:'wif_workspace_id')
|
|
271
|
+
self.wif_workspace_id = attributes[:'wif_workspace_id']
|
|
272
|
+
end
|
|
210
273
|
end
|
|
211
274
|
|
|
212
275
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -249,7 +312,14 @@ module Akeyless
|
|
|
249
312
|
new_name == o.new_name &&
|
|
250
313
|
rotate_on_unlock == o.rotate_on_unlock &&
|
|
251
314
|
token == o.token &&
|
|
252
|
-
uid_token == o.uid_token
|
|
315
|
+
uid_token == o.uid_token &&
|
|
316
|
+
use_gw_cloud_identity == o.use_gw_cloud_identity &&
|
|
317
|
+
wif_azure_audience == o.wif_azure_audience &&
|
|
318
|
+
wif_federation_rule_id == o.wif_federation_rule_id &&
|
|
319
|
+
wif_identity_token_source == o.wif_identity_token_source &&
|
|
320
|
+
wif_organization_id == o.wif_organization_id &&
|
|
321
|
+
wif_service_account_id == o.wif_service_account_id &&
|
|
322
|
+
wif_workspace_id == o.wif_workspace_id
|
|
253
323
|
end
|
|
254
324
|
|
|
255
325
|
# @see the `==` method
|
|
@@ -261,7 +331,7 @@ module Akeyless
|
|
|
261
331
|
# Calculates hash code according to all attributes.
|
|
262
332
|
# @return [Integer] Hash code
|
|
263
333
|
def hash
|
|
264
|
-
[anthropic_url, api_key, delete_protection, description, json, keep_prev_version, key, lock_on_read, lock_ttl, max_versions, name, new_comment, new_name, rotate_on_unlock, token, uid_token].hash
|
|
334
|
+
[anthropic_url, api_key, delete_protection, description, json, keep_prev_version, key, lock_on_read, lock_ttl, max_versions, name, new_comment, new_name, rotate_on_unlock, token, uid_token, use_gw_cloud_identity, wif_azure_audience, wif_federation_rule_id, wif_identity_token_source, wif_organization_id, wif_service_account_id, wif_workspace_id].hash
|
|
265
335
|
end
|
|
266
336
|
|
|
267
337
|
# Builds the object from hash
|
|
@@ -0,0 +1,496 @@
|
|
|
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 TargetUpdateAtlassian
|
|
18
|
+
# Atlassian auth type: oauth, service_account_token or user_api_token on cloud, pat on data center
|
|
19
|
+
attr_accessor :atlassian_auth_type
|
|
20
|
+
|
|
21
|
+
# Optional Automation REST API key (Jira settings > System > Automation > API keys); the automation API refuses an account token, so without it the automation rules are reported as not read
|
|
22
|
+
attr_accessor :atlassian_automation_key
|
|
23
|
+
|
|
24
|
+
# CA certificate (base64-encoded PEM) of a Data Center site signed by a private CA
|
|
25
|
+
attr_accessor :atlassian_ca_certificate
|
|
26
|
+
|
|
27
|
+
# Atlassian OAuth 2.0 service account client ID
|
|
28
|
+
attr_accessor :atlassian_client_id
|
|
29
|
+
|
|
30
|
+
# Atlassian OAuth 2.0 service account client secret
|
|
31
|
+
attr_accessor :atlassian_client_secret
|
|
32
|
+
|
|
33
|
+
# Atlassian Cloud ID of the site (resolved from the site URL when empty)
|
|
34
|
+
attr_accessor :atlassian_cloud_id
|
|
35
|
+
|
|
36
|
+
# Confluence Data Center personal access token
|
|
37
|
+
attr_accessor :atlassian_confluence_token
|
|
38
|
+
|
|
39
|
+
# Confluence Data Center base URL
|
|
40
|
+
attr_accessor :atlassian_confluence_url
|
|
41
|
+
|
|
42
|
+
# Atlassian deployment type: cloud or data_center (inferred from the URL when empty)
|
|
43
|
+
attr_accessor :atlassian_deployment_type
|
|
44
|
+
|
|
45
|
+
# Atlassian account email paired with a user API token
|
|
46
|
+
attr_accessor :atlassian_email
|
|
47
|
+
|
|
48
|
+
# Jira Data Center personal access token
|
|
49
|
+
attr_accessor :atlassian_jira_token
|
|
50
|
+
|
|
51
|
+
# Jira Data Center base URL
|
|
52
|
+
attr_accessor :atlassian_jira_url
|
|
53
|
+
|
|
54
|
+
# Atlassian products to connect to on cloud: jira, confluence or both (default both)
|
|
55
|
+
attr_accessor :atlassian_products
|
|
56
|
+
|
|
57
|
+
# Atlassian Cloud service account API token or user API token
|
|
58
|
+
attr_accessor :atlassian_token
|
|
59
|
+
|
|
60
|
+
# Atlassian Cloud site base URL (https://<site>.atlassian.net)
|
|
61
|
+
attr_accessor :atlassian_url
|
|
62
|
+
|
|
63
|
+
# Protection from accidental deletion of this object [true/false]
|
|
64
|
+
attr_accessor :delete_protection
|
|
65
|
+
|
|
66
|
+
# Description of the object
|
|
67
|
+
attr_accessor :description
|
|
68
|
+
|
|
69
|
+
# Set output format to JSON
|
|
70
|
+
attr_accessor :json
|
|
71
|
+
|
|
72
|
+
# Whether to keep previous version [true/false]. If not set, use default according to account settings
|
|
73
|
+
attr_accessor :keep_prev_version
|
|
74
|
+
|
|
75
|
+
# The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
|
|
76
|
+
attr_accessor :key
|
|
77
|
+
|
|
78
|
+
# Lock this secret after each successful value read
|
|
79
|
+
attr_accessor :lock_on_read
|
|
80
|
+
|
|
81
|
+
# Lock TTL in minutes
|
|
82
|
+
attr_accessor :lock_ttl
|
|
83
|
+
|
|
84
|
+
# Set the maximum number of versions, limited by the account settings defaults.
|
|
85
|
+
attr_accessor :max_versions
|
|
86
|
+
|
|
87
|
+
# Target name
|
|
88
|
+
attr_accessor :name
|
|
89
|
+
|
|
90
|
+
# New target name
|
|
91
|
+
attr_accessor :new_name
|
|
92
|
+
|
|
93
|
+
# Rotate this secret after it is unlocked
|
|
94
|
+
attr_accessor :rotate_on_unlock
|
|
95
|
+
|
|
96
|
+
# Authentication token (see `/auth` and `/configure`)
|
|
97
|
+
attr_accessor :token
|
|
98
|
+
|
|
99
|
+
# The universal identity token, Required only for universal_identity authentication
|
|
100
|
+
attr_accessor :uid_token
|
|
101
|
+
|
|
102
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
103
|
+
def self.attribute_map
|
|
104
|
+
{
|
|
105
|
+
:'atlassian_auth_type' => :'atlassian-auth-type',
|
|
106
|
+
:'atlassian_automation_key' => :'atlassian-automation-key',
|
|
107
|
+
:'atlassian_ca_certificate' => :'atlassian-ca-certificate',
|
|
108
|
+
:'atlassian_client_id' => :'atlassian-client-id',
|
|
109
|
+
:'atlassian_client_secret' => :'atlassian-client-secret',
|
|
110
|
+
:'atlassian_cloud_id' => :'atlassian-cloud-id',
|
|
111
|
+
:'atlassian_confluence_token' => :'atlassian-confluence-token',
|
|
112
|
+
:'atlassian_confluence_url' => :'atlassian-confluence-url',
|
|
113
|
+
:'atlassian_deployment_type' => :'atlassian-deployment-type',
|
|
114
|
+
:'atlassian_email' => :'atlassian-email',
|
|
115
|
+
:'atlassian_jira_token' => :'atlassian-jira-token',
|
|
116
|
+
:'atlassian_jira_url' => :'atlassian-jira-url',
|
|
117
|
+
:'atlassian_products' => :'atlassian-products',
|
|
118
|
+
:'atlassian_token' => :'atlassian-token',
|
|
119
|
+
:'atlassian_url' => :'atlassian-url',
|
|
120
|
+
:'delete_protection' => :'delete_protection',
|
|
121
|
+
:'description' => :'description',
|
|
122
|
+
:'json' => :'json',
|
|
123
|
+
:'keep_prev_version' => :'keep-prev-version',
|
|
124
|
+
:'key' => :'key',
|
|
125
|
+
:'lock_on_read' => :'lock-on-read',
|
|
126
|
+
:'lock_ttl' => :'lock-ttl',
|
|
127
|
+
:'max_versions' => :'max-versions',
|
|
128
|
+
:'name' => :'name',
|
|
129
|
+
:'new_name' => :'new-name',
|
|
130
|
+
:'rotate_on_unlock' => :'rotate-on-unlock',
|
|
131
|
+
:'token' => :'token',
|
|
132
|
+
:'uid_token' => :'uid-token'
|
|
133
|
+
}
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Returns all the JSON keys this model knows about
|
|
137
|
+
def self.acceptable_attributes
|
|
138
|
+
attribute_map.values
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# Attribute type mapping.
|
|
142
|
+
def self.openapi_types
|
|
143
|
+
{
|
|
144
|
+
:'atlassian_auth_type' => :'String',
|
|
145
|
+
:'atlassian_automation_key' => :'String',
|
|
146
|
+
:'atlassian_ca_certificate' => :'String',
|
|
147
|
+
:'atlassian_client_id' => :'String',
|
|
148
|
+
:'atlassian_client_secret' => :'String',
|
|
149
|
+
:'atlassian_cloud_id' => :'String',
|
|
150
|
+
:'atlassian_confluence_token' => :'String',
|
|
151
|
+
:'atlassian_confluence_url' => :'String',
|
|
152
|
+
:'atlassian_deployment_type' => :'String',
|
|
153
|
+
:'atlassian_email' => :'String',
|
|
154
|
+
:'atlassian_jira_token' => :'String',
|
|
155
|
+
:'atlassian_jira_url' => :'String',
|
|
156
|
+
:'atlassian_products' => :'Array<String>',
|
|
157
|
+
:'atlassian_token' => :'String',
|
|
158
|
+
:'atlassian_url' => :'String',
|
|
159
|
+
:'delete_protection' => :'String',
|
|
160
|
+
:'description' => :'String',
|
|
161
|
+
:'json' => :'Boolean',
|
|
162
|
+
:'keep_prev_version' => :'String',
|
|
163
|
+
:'key' => :'String',
|
|
164
|
+
:'lock_on_read' => :'String',
|
|
165
|
+
:'lock_ttl' => :'String',
|
|
166
|
+
:'max_versions' => :'String',
|
|
167
|
+
:'name' => :'String',
|
|
168
|
+
:'new_name' => :'String',
|
|
169
|
+
:'rotate_on_unlock' => :'String',
|
|
170
|
+
:'token' => :'String',
|
|
171
|
+
:'uid_token' => :'String'
|
|
172
|
+
}
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# List of attributes with nullable: true
|
|
176
|
+
def self.openapi_nullable
|
|
177
|
+
Set.new([
|
|
178
|
+
])
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# Initializes the object
|
|
182
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
183
|
+
def initialize(attributes = {})
|
|
184
|
+
if (!attributes.is_a?(Hash))
|
|
185
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::TargetUpdateAtlassian` initialize method"
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
189
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
190
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
191
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::TargetUpdateAtlassian`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
192
|
+
end
|
|
193
|
+
h[k.to_sym] = v
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
if attributes.key?(:'atlassian_auth_type')
|
|
197
|
+
self.atlassian_auth_type = attributes[:'atlassian_auth_type']
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
if attributes.key?(:'atlassian_automation_key')
|
|
201
|
+
self.atlassian_automation_key = attributes[:'atlassian_automation_key']
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
if attributes.key?(:'atlassian_ca_certificate')
|
|
205
|
+
self.atlassian_ca_certificate = attributes[:'atlassian_ca_certificate']
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
if attributes.key?(:'atlassian_client_id')
|
|
209
|
+
self.atlassian_client_id = attributes[:'atlassian_client_id']
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
if attributes.key?(:'atlassian_client_secret')
|
|
213
|
+
self.atlassian_client_secret = attributes[:'atlassian_client_secret']
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
if attributes.key?(:'atlassian_cloud_id')
|
|
217
|
+
self.atlassian_cloud_id = attributes[:'atlassian_cloud_id']
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
if attributes.key?(:'atlassian_confluence_token')
|
|
221
|
+
self.atlassian_confluence_token = attributes[:'atlassian_confluence_token']
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
if attributes.key?(:'atlassian_confluence_url')
|
|
225
|
+
self.atlassian_confluence_url = attributes[:'atlassian_confluence_url']
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
if attributes.key?(:'atlassian_deployment_type')
|
|
229
|
+
self.atlassian_deployment_type = attributes[:'atlassian_deployment_type']
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
if attributes.key?(:'atlassian_email')
|
|
233
|
+
self.atlassian_email = attributes[:'atlassian_email']
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
if attributes.key?(:'atlassian_jira_token')
|
|
237
|
+
self.atlassian_jira_token = attributes[:'atlassian_jira_token']
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
if attributes.key?(:'atlassian_jira_url')
|
|
241
|
+
self.atlassian_jira_url = attributes[:'atlassian_jira_url']
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
if attributes.key?(:'atlassian_products')
|
|
245
|
+
if (value = attributes[:'atlassian_products']).is_a?(Array)
|
|
246
|
+
self.atlassian_products = value
|
|
247
|
+
end
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
if attributes.key?(:'atlassian_token')
|
|
251
|
+
self.atlassian_token = attributes[:'atlassian_token']
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
if attributes.key?(:'atlassian_url')
|
|
255
|
+
self.atlassian_url = attributes[:'atlassian_url']
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
if attributes.key?(:'delete_protection')
|
|
259
|
+
self.delete_protection = attributes[:'delete_protection']
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
if attributes.key?(:'description')
|
|
263
|
+
self.description = attributes[:'description']
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
if attributes.key?(:'json')
|
|
267
|
+
self.json = attributes[:'json']
|
|
268
|
+
else
|
|
269
|
+
self.json = false
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
if attributes.key?(:'keep_prev_version')
|
|
273
|
+
self.keep_prev_version = attributes[:'keep_prev_version']
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
if attributes.key?(:'key')
|
|
277
|
+
self.key = attributes[:'key']
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
if attributes.key?(:'lock_on_read')
|
|
281
|
+
self.lock_on_read = attributes[:'lock_on_read']
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
if attributes.key?(:'lock_ttl')
|
|
285
|
+
self.lock_ttl = attributes[:'lock_ttl']
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
if attributes.key?(:'max_versions')
|
|
289
|
+
self.max_versions = attributes[:'max_versions']
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
if attributes.key?(:'name')
|
|
293
|
+
self.name = attributes[:'name']
|
|
294
|
+
else
|
|
295
|
+
self.name = nil
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
if attributes.key?(:'new_name')
|
|
299
|
+
self.new_name = attributes[:'new_name']
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
if attributes.key?(:'rotate_on_unlock')
|
|
303
|
+
self.rotate_on_unlock = attributes[:'rotate_on_unlock']
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
if attributes.key?(:'token')
|
|
307
|
+
self.token = attributes[:'token']
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
if attributes.key?(:'uid_token')
|
|
311
|
+
self.uid_token = attributes[:'uid_token']
|
|
312
|
+
end
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
316
|
+
# @return Array for valid properties with the reasons
|
|
317
|
+
def list_invalid_properties
|
|
318
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
319
|
+
invalid_properties = Array.new
|
|
320
|
+
if @name.nil?
|
|
321
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
invalid_properties
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
# Check to see if the all the properties in the model are valid
|
|
328
|
+
# @return true if the model is valid
|
|
329
|
+
def valid?
|
|
330
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
331
|
+
return false if @name.nil?
|
|
332
|
+
true
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
# Checks equality by comparing each attribute.
|
|
336
|
+
# @param [Object] Object to be compared
|
|
337
|
+
def ==(o)
|
|
338
|
+
return true if self.equal?(o)
|
|
339
|
+
self.class == o.class &&
|
|
340
|
+
atlassian_auth_type == o.atlassian_auth_type &&
|
|
341
|
+
atlassian_automation_key == o.atlassian_automation_key &&
|
|
342
|
+
atlassian_ca_certificate == o.atlassian_ca_certificate &&
|
|
343
|
+
atlassian_client_id == o.atlassian_client_id &&
|
|
344
|
+
atlassian_client_secret == o.atlassian_client_secret &&
|
|
345
|
+
atlassian_cloud_id == o.atlassian_cloud_id &&
|
|
346
|
+
atlassian_confluence_token == o.atlassian_confluence_token &&
|
|
347
|
+
atlassian_confluence_url == o.atlassian_confluence_url &&
|
|
348
|
+
atlassian_deployment_type == o.atlassian_deployment_type &&
|
|
349
|
+
atlassian_email == o.atlassian_email &&
|
|
350
|
+
atlassian_jira_token == o.atlassian_jira_token &&
|
|
351
|
+
atlassian_jira_url == o.atlassian_jira_url &&
|
|
352
|
+
atlassian_products == o.atlassian_products &&
|
|
353
|
+
atlassian_token == o.atlassian_token &&
|
|
354
|
+
atlassian_url == o.atlassian_url &&
|
|
355
|
+
delete_protection == o.delete_protection &&
|
|
356
|
+
description == o.description &&
|
|
357
|
+
json == o.json &&
|
|
358
|
+
keep_prev_version == o.keep_prev_version &&
|
|
359
|
+
key == o.key &&
|
|
360
|
+
lock_on_read == o.lock_on_read &&
|
|
361
|
+
lock_ttl == o.lock_ttl &&
|
|
362
|
+
max_versions == o.max_versions &&
|
|
363
|
+
name == o.name &&
|
|
364
|
+
new_name == o.new_name &&
|
|
365
|
+
rotate_on_unlock == o.rotate_on_unlock &&
|
|
366
|
+
token == o.token &&
|
|
367
|
+
uid_token == o.uid_token
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
# @see the `==` method
|
|
371
|
+
# @param [Object] Object to be compared
|
|
372
|
+
def eql?(o)
|
|
373
|
+
self == o
|
|
374
|
+
end
|
|
375
|
+
|
|
376
|
+
# Calculates hash code according to all attributes.
|
|
377
|
+
# @return [Integer] Hash code
|
|
378
|
+
def hash
|
|
379
|
+
[atlassian_auth_type, atlassian_automation_key, atlassian_ca_certificate, atlassian_client_id, atlassian_client_secret, atlassian_cloud_id, atlassian_confluence_token, atlassian_confluence_url, atlassian_deployment_type, atlassian_email, atlassian_jira_token, atlassian_jira_url, atlassian_products, atlassian_token, atlassian_url, delete_protection, description, json, keep_prev_version, key, lock_on_read, lock_ttl, max_versions, name, new_name, rotate_on_unlock, token, uid_token].hash
|
|
380
|
+
end
|
|
381
|
+
|
|
382
|
+
# Builds the object from hash
|
|
383
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
384
|
+
# @return [Object] Returns the model itself
|
|
385
|
+
def self.build_from_hash(attributes)
|
|
386
|
+
return nil unless attributes.is_a?(Hash)
|
|
387
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
388
|
+
transformed_hash = {}
|
|
389
|
+
openapi_types.each_pair do |key, type|
|
|
390
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
391
|
+
transformed_hash["#{key}"] = nil
|
|
392
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
393
|
+
# check to ensure the input is an array given that the attribute
|
|
394
|
+
# is documented as an array but the input is not
|
|
395
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
396
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
397
|
+
end
|
|
398
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
399
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
400
|
+
end
|
|
401
|
+
end
|
|
402
|
+
new(transformed_hash)
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
# Deserializes the data based on type
|
|
406
|
+
# @param string type Data type
|
|
407
|
+
# @param string value Value to be deserialized
|
|
408
|
+
# @return [Object] Deserialized data
|
|
409
|
+
def self._deserialize(type, value)
|
|
410
|
+
case type.to_sym
|
|
411
|
+
when :Time
|
|
412
|
+
Time.parse(value)
|
|
413
|
+
when :Date
|
|
414
|
+
Date.parse(value)
|
|
415
|
+
when :String
|
|
416
|
+
value.to_s
|
|
417
|
+
when :Integer
|
|
418
|
+
value.to_i
|
|
419
|
+
when :Float
|
|
420
|
+
value.to_f
|
|
421
|
+
when :Boolean
|
|
422
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
423
|
+
true
|
|
424
|
+
else
|
|
425
|
+
false
|
|
426
|
+
end
|
|
427
|
+
when :Object
|
|
428
|
+
# generic object (usually a Hash), return directly
|
|
429
|
+
value
|
|
430
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
431
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
432
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
433
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
434
|
+
k_type = Regexp.last_match[:k_type]
|
|
435
|
+
v_type = Regexp.last_match[:v_type]
|
|
436
|
+
{}.tap do |hash|
|
|
437
|
+
value.each do |k, v|
|
|
438
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
439
|
+
end
|
|
440
|
+
end
|
|
441
|
+
else # model
|
|
442
|
+
# models (e.g. Pet) or oneOf
|
|
443
|
+
klass = Akeyless.const_get(type)
|
|
444
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
445
|
+
end
|
|
446
|
+
end
|
|
447
|
+
|
|
448
|
+
# Returns the string representation of the object
|
|
449
|
+
# @return [String] String presentation of the object
|
|
450
|
+
def to_s
|
|
451
|
+
to_hash.to_s
|
|
452
|
+
end
|
|
453
|
+
|
|
454
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
455
|
+
# @return [Hash] Returns the object in the form of hash
|
|
456
|
+
def to_body
|
|
457
|
+
to_hash
|
|
458
|
+
end
|
|
459
|
+
|
|
460
|
+
# Returns the object in the form of hash
|
|
461
|
+
# @return [Hash] Returns the object in the form of hash
|
|
462
|
+
def to_hash
|
|
463
|
+
hash = {}
|
|
464
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
465
|
+
value = self.send(attr)
|
|
466
|
+
if value.nil?
|
|
467
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
468
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
469
|
+
end
|
|
470
|
+
|
|
471
|
+
hash[param] = _to_hash(value)
|
|
472
|
+
end
|
|
473
|
+
hash
|
|
474
|
+
end
|
|
475
|
+
|
|
476
|
+
# Outputs non-array value in the form of hash
|
|
477
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
478
|
+
# @param [Object] value Any valid value
|
|
479
|
+
# @return [Hash] Returns the value in the form of hash
|
|
480
|
+
def _to_hash(value)
|
|
481
|
+
if value.is_a?(Array)
|
|
482
|
+
value.compact.map { |v| _to_hash(v) }
|
|
483
|
+
elsif value.is_a?(Hash)
|
|
484
|
+
{}.tap do |hash|
|
|
485
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
486
|
+
end
|
|
487
|
+
elsif value.respond_to? :to_hash
|
|
488
|
+
value.to_hash
|
|
489
|
+
else
|
|
490
|
+
value
|
|
491
|
+
end
|
|
492
|
+
end
|
|
493
|
+
|
|
494
|
+
end
|
|
495
|
+
|
|
496
|
+
end
|
|
@@ -19,6 +19,9 @@ module Akeyless
|
|
|
19
19
|
# ACME challenge type. Options: [dns]
|
|
20
20
|
attr_accessor :acme_challenge
|
|
21
21
|
|
|
22
|
+
# DigiCert CertCentral API key. Optional - when set, certificate renewal reissues the existing DigiCert order instead of placing a new (billable) order. DNS challenge and production endpoints only. On target update pass it again to keep it, omitting it clears it
|
|
23
|
+
attr_accessor :cert_central_api_key
|
|
24
|
+
|
|
22
25
|
# Protection from accidental deletion of this object [true/false]
|
|
23
26
|
attr_accessor :delete_protection
|
|
24
27
|
|
|
@@ -104,6 +107,7 @@ module Akeyless
|
|
|
104
107
|
def self.attribute_map
|
|
105
108
|
{
|
|
106
109
|
:'acme_challenge' => :'acme-challenge',
|
|
110
|
+
:'cert_central_api_key' => :'cert-central-api-key',
|
|
107
111
|
:'delete_protection' => :'delete_protection',
|
|
108
112
|
:'description' => :'description',
|
|
109
113
|
:'digicert_url' => :'digicert-url',
|
|
@@ -143,6 +147,7 @@ module Akeyless
|
|
|
143
147
|
def self.openapi_types
|
|
144
148
|
{
|
|
145
149
|
:'acme_challenge' => :'String',
|
|
150
|
+
:'cert_central_api_key' => :'String',
|
|
146
151
|
:'delete_protection' => :'String',
|
|
147
152
|
:'description' => :'String',
|
|
148
153
|
:'digicert_url' => :'String',
|
|
@@ -200,6 +205,10 @@ module Akeyless
|
|
|
200
205
|
self.acme_challenge = 'dns'
|
|
201
206
|
end
|
|
202
207
|
|
|
208
|
+
if attributes.key?(:'cert_central_api_key')
|
|
209
|
+
self.cert_central_api_key = attributes[:'cert_central_api_key']
|
|
210
|
+
end
|
|
211
|
+
|
|
203
212
|
if attributes.key?(:'delete_protection')
|
|
204
213
|
self.delete_protection = attributes[:'delete_protection']
|
|
205
214
|
end
|
|
@@ -352,6 +361,7 @@ module Akeyless
|
|
|
352
361
|
return true if self.equal?(o)
|
|
353
362
|
self.class == o.class &&
|
|
354
363
|
acme_challenge == o.acme_challenge &&
|
|
364
|
+
cert_central_api_key == o.cert_central_api_key &&
|
|
355
365
|
delete_protection == o.delete_protection &&
|
|
356
366
|
description == o.description &&
|
|
357
367
|
digicert_url == o.digicert_url &&
|
|
@@ -390,7 +400,7 @@ module Akeyless
|
|
|
390
400
|
# Calculates hash code according to all attributes.
|
|
391
401
|
# @return [Integer] Hash code
|
|
392
402
|
def 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
|
|
403
|
+
[acme_challenge, cert_central_api_key, 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
|
|
394
404
|
end
|
|
395
405
|
|
|
396
406
|
# Builds the object from hash
|