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
|
@@ -0,0 +1,332 @@
|
|
|
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
|
+
# provision-on-rotation provisions this target after a successful key rotation and is only supported for rotator type key-rotator. Omit the flag to keep the current value.
|
|
18
|
+
class RotatedSecretProvisionUpdate
|
|
19
|
+
# Set output format to JSON
|
|
20
|
+
attr_accessor :json
|
|
21
|
+
|
|
22
|
+
# Rotated secret name
|
|
23
|
+
attr_accessor :name
|
|
24
|
+
|
|
25
|
+
# New target name when retargeting the provisioning association
|
|
26
|
+
attr_accessor :new_target_name
|
|
27
|
+
|
|
28
|
+
# Passphrase used to encrypt the private key file (omit to keep current; requires Read)
|
|
29
|
+
attr_accessor :private_key_passphrase
|
|
30
|
+
|
|
31
|
+
# Remote path for the private key (omit to keep current)
|
|
32
|
+
attr_accessor :private_key_remote_path
|
|
33
|
+
|
|
34
|
+
# Keys to provision: public-key or private-key (omit to keep current)
|
|
35
|
+
attr_accessor :provision_keys
|
|
36
|
+
|
|
37
|
+
# When true, provision keys to this target after a successful key rotation. Only supported for rotator type key-rotator. Omit to keep the current value. Set false to turn it off.
|
|
38
|
+
attr_accessor :provision_on_rotation
|
|
39
|
+
|
|
40
|
+
# Remote path for the public key (omit to keep current)
|
|
41
|
+
attr_accessor :public_key_remote_path
|
|
42
|
+
|
|
43
|
+
# Target name of the provisioning association to update
|
|
44
|
+
attr_accessor :target_name
|
|
45
|
+
|
|
46
|
+
# Authentication token (see `/auth` and `/configure`)
|
|
47
|
+
attr_accessor :token
|
|
48
|
+
|
|
49
|
+
# The universal identity token, Required only for universal_identity authentication
|
|
50
|
+
attr_accessor :uid_token
|
|
51
|
+
|
|
52
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
53
|
+
def self.attribute_map
|
|
54
|
+
{
|
|
55
|
+
:'json' => :'json',
|
|
56
|
+
:'name' => :'name',
|
|
57
|
+
:'new_target_name' => :'new-target-name',
|
|
58
|
+
:'private_key_passphrase' => :'private-key-passphrase',
|
|
59
|
+
:'private_key_remote_path' => :'private-key-remote-path',
|
|
60
|
+
:'provision_keys' => :'provision-keys',
|
|
61
|
+
:'provision_on_rotation' => :'provision-on-rotation',
|
|
62
|
+
:'public_key_remote_path' => :'public-key-remote-path',
|
|
63
|
+
:'target_name' => :'target-name',
|
|
64
|
+
:'token' => :'token',
|
|
65
|
+
:'uid_token' => :'uid-token'
|
|
66
|
+
}
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# Returns all the JSON keys this model knows about
|
|
70
|
+
def self.acceptable_attributes
|
|
71
|
+
attribute_map.values
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Attribute type mapping.
|
|
75
|
+
def self.openapi_types
|
|
76
|
+
{
|
|
77
|
+
:'json' => :'Boolean',
|
|
78
|
+
:'name' => :'String',
|
|
79
|
+
:'new_target_name' => :'String',
|
|
80
|
+
:'private_key_passphrase' => :'String',
|
|
81
|
+
:'private_key_remote_path' => :'String',
|
|
82
|
+
:'provision_keys' => :'String',
|
|
83
|
+
:'provision_on_rotation' => :'Boolean',
|
|
84
|
+
:'public_key_remote_path' => :'String',
|
|
85
|
+
:'target_name' => :'String',
|
|
86
|
+
:'token' => :'String',
|
|
87
|
+
:'uid_token' => :'String'
|
|
88
|
+
}
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# List of attributes with nullable: true
|
|
92
|
+
def self.openapi_nullable
|
|
93
|
+
Set.new([
|
|
94
|
+
])
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Initializes the object
|
|
98
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
99
|
+
def initialize(attributes = {})
|
|
100
|
+
if (!attributes.is_a?(Hash))
|
|
101
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::RotatedSecretProvisionUpdate` initialize method"
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
105
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
106
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
107
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::RotatedSecretProvisionUpdate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
108
|
+
end
|
|
109
|
+
h[k.to_sym] = v
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
if attributes.key?(:'json')
|
|
113
|
+
self.json = attributes[:'json']
|
|
114
|
+
else
|
|
115
|
+
self.json = false
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
if attributes.key?(:'name')
|
|
119
|
+
self.name = attributes[:'name']
|
|
120
|
+
else
|
|
121
|
+
self.name = nil
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
if attributes.key?(:'new_target_name')
|
|
125
|
+
self.new_target_name = attributes[:'new_target_name']
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
if attributes.key?(:'private_key_passphrase')
|
|
129
|
+
self.private_key_passphrase = attributes[:'private_key_passphrase']
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
if attributes.key?(:'private_key_remote_path')
|
|
133
|
+
self.private_key_remote_path = attributes[:'private_key_remote_path']
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
if attributes.key?(:'provision_keys')
|
|
137
|
+
self.provision_keys = attributes[:'provision_keys']
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
if attributes.key?(:'provision_on_rotation')
|
|
141
|
+
self.provision_on_rotation = attributes[:'provision_on_rotation']
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
if attributes.key?(:'public_key_remote_path')
|
|
145
|
+
self.public_key_remote_path = attributes[:'public_key_remote_path']
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
if attributes.key?(:'target_name')
|
|
149
|
+
self.target_name = attributes[:'target_name']
|
|
150
|
+
else
|
|
151
|
+
self.target_name = nil
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
if attributes.key?(:'token')
|
|
155
|
+
self.token = attributes[:'token']
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
if attributes.key?(:'uid_token')
|
|
159
|
+
self.uid_token = attributes[:'uid_token']
|
|
160
|
+
end
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
164
|
+
# @return Array for valid properties with the reasons
|
|
165
|
+
def list_invalid_properties
|
|
166
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
167
|
+
invalid_properties = Array.new
|
|
168
|
+
if @name.nil?
|
|
169
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
if @target_name.nil?
|
|
173
|
+
invalid_properties.push('invalid value for "target_name", target_name cannot be nil.')
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
invalid_properties
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# Check to see if the all the properties in the model are valid
|
|
180
|
+
# @return true if the model is valid
|
|
181
|
+
def valid?
|
|
182
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
183
|
+
return false if @name.nil?
|
|
184
|
+
return false if @target_name.nil?
|
|
185
|
+
true
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# Checks equality by comparing each attribute.
|
|
189
|
+
# @param [Object] Object to be compared
|
|
190
|
+
def ==(o)
|
|
191
|
+
return true if self.equal?(o)
|
|
192
|
+
self.class == o.class &&
|
|
193
|
+
json == o.json &&
|
|
194
|
+
name == o.name &&
|
|
195
|
+
new_target_name == o.new_target_name &&
|
|
196
|
+
private_key_passphrase == o.private_key_passphrase &&
|
|
197
|
+
private_key_remote_path == o.private_key_remote_path &&
|
|
198
|
+
provision_keys == o.provision_keys &&
|
|
199
|
+
provision_on_rotation == o.provision_on_rotation &&
|
|
200
|
+
public_key_remote_path == o.public_key_remote_path &&
|
|
201
|
+
target_name == o.target_name &&
|
|
202
|
+
token == o.token &&
|
|
203
|
+
uid_token == o.uid_token
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# @see the `==` method
|
|
207
|
+
# @param [Object] Object to be compared
|
|
208
|
+
def eql?(o)
|
|
209
|
+
self == o
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
# Calculates hash code according to all attributes.
|
|
213
|
+
# @return [Integer] Hash code
|
|
214
|
+
def hash
|
|
215
|
+
[json, name, new_target_name, private_key_passphrase, private_key_remote_path, provision_keys, provision_on_rotation, public_key_remote_path, target_name, token, uid_token].hash
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
# Builds the object from hash
|
|
219
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
220
|
+
# @return [Object] Returns the model itself
|
|
221
|
+
def self.build_from_hash(attributes)
|
|
222
|
+
return nil unless attributes.is_a?(Hash)
|
|
223
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
224
|
+
transformed_hash = {}
|
|
225
|
+
openapi_types.each_pair do |key, type|
|
|
226
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
227
|
+
transformed_hash["#{key}"] = nil
|
|
228
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
229
|
+
# check to ensure the input is an array given that the attribute
|
|
230
|
+
# is documented as an array but the input is not
|
|
231
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
232
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
233
|
+
end
|
|
234
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
235
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
236
|
+
end
|
|
237
|
+
end
|
|
238
|
+
new(transformed_hash)
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
# Deserializes the data based on type
|
|
242
|
+
# @param string type Data type
|
|
243
|
+
# @param string value Value to be deserialized
|
|
244
|
+
# @return [Object] Deserialized data
|
|
245
|
+
def self._deserialize(type, value)
|
|
246
|
+
case type.to_sym
|
|
247
|
+
when :Time
|
|
248
|
+
Time.parse(value)
|
|
249
|
+
when :Date
|
|
250
|
+
Date.parse(value)
|
|
251
|
+
when :String
|
|
252
|
+
value.to_s
|
|
253
|
+
when :Integer
|
|
254
|
+
value.to_i
|
|
255
|
+
when :Float
|
|
256
|
+
value.to_f
|
|
257
|
+
when :Boolean
|
|
258
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
259
|
+
true
|
|
260
|
+
else
|
|
261
|
+
false
|
|
262
|
+
end
|
|
263
|
+
when :Object
|
|
264
|
+
# generic object (usually a Hash), return directly
|
|
265
|
+
value
|
|
266
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
267
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
268
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
269
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
270
|
+
k_type = Regexp.last_match[:k_type]
|
|
271
|
+
v_type = Regexp.last_match[:v_type]
|
|
272
|
+
{}.tap do |hash|
|
|
273
|
+
value.each do |k, v|
|
|
274
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
275
|
+
end
|
|
276
|
+
end
|
|
277
|
+
else # model
|
|
278
|
+
# models (e.g. Pet) or oneOf
|
|
279
|
+
klass = Akeyless.const_get(type)
|
|
280
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
281
|
+
end
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
# Returns the string representation of the object
|
|
285
|
+
# @return [String] String presentation of the object
|
|
286
|
+
def to_s
|
|
287
|
+
to_hash.to_s
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
291
|
+
# @return [Hash] Returns the object in the form of hash
|
|
292
|
+
def to_body
|
|
293
|
+
to_hash
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
# Returns the object in the form of hash
|
|
297
|
+
# @return [Hash] Returns the object in the form of hash
|
|
298
|
+
def to_hash
|
|
299
|
+
hash = {}
|
|
300
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
301
|
+
value = self.send(attr)
|
|
302
|
+
if value.nil?
|
|
303
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
304
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
hash[param] = _to_hash(value)
|
|
308
|
+
end
|
|
309
|
+
hash
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
# Outputs non-array value in the form of hash
|
|
313
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
314
|
+
# @param [Object] value Any valid value
|
|
315
|
+
# @return [Hash] Returns the value in the form of hash
|
|
316
|
+
def _to_hash(value)
|
|
317
|
+
if value.is_a?(Array)
|
|
318
|
+
value.compact.map { |v| _to_hash(v) }
|
|
319
|
+
elsif value.is_a?(Hash)
|
|
320
|
+
{}.tap do |hash|
|
|
321
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
322
|
+
end
|
|
323
|
+
elsif value.respond_to? :to_hash
|
|
324
|
+
value.to_hash
|
|
325
|
+
else
|
|
326
|
+
value
|
|
327
|
+
end
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
end
|
|
@@ -55,6 +55,27 @@ module Akeyless
|
|
|
55
55
|
# The universal identity token, Required only for universal_identity authentication
|
|
56
56
|
attr_accessor :uid_token
|
|
57
57
|
|
|
58
|
+
# Use the Gateway's cloud identity (Anthropic Workload Identity Federation) instead of an API key
|
|
59
|
+
attr_accessor :use_gw_cloud_identity
|
|
60
|
+
|
|
61
|
+
# Identifier URI (api://<app-id>) of the Entra app registration for the Claude API audience, required with the azure source
|
|
62
|
+
attr_accessor :wif_azure_audience
|
|
63
|
+
|
|
64
|
+
# Federation rule ID (fdrl_...), required with use-gw-cloud-identity
|
|
65
|
+
attr_accessor :wif_federation_rule_id
|
|
66
|
+
|
|
67
|
+
# Where the Gateway reads its identity token: file (default), gcp, aws or azure
|
|
68
|
+
attr_accessor :wif_identity_token_source
|
|
69
|
+
|
|
70
|
+
# Anthropic organization ID (UUID), required with use-gw-cloud-identity
|
|
71
|
+
attr_accessor :wif_organization_id
|
|
72
|
+
|
|
73
|
+
# Claude service account ID (svac_...), required with use-gw-cloud-identity
|
|
74
|
+
attr_accessor :wif_service_account_id
|
|
75
|
+
|
|
76
|
+
# Workspace ID (wrkspc_...), needed only when the federation rule covers more than one workspace
|
|
77
|
+
attr_accessor :wif_workspace_id
|
|
78
|
+
|
|
58
79
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
59
80
|
def self.attribute_map
|
|
60
81
|
{
|
|
@@ -70,7 +91,14 @@ module Akeyless
|
|
|
70
91
|
:'name' => :'name',
|
|
71
92
|
:'rotate_on_unlock' => :'rotate-on-unlock',
|
|
72
93
|
:'token' => :'token',
|
|
73
|
-
:'uid_token' => :'uid-token'
|
|
94
|
+
:'uid_token' => :'uid-token',
|
|
95
|
+
:'use_gw_cloud_identity' => :'use-gw-cloud-identity',
|
|
96
|
+
:'wif_azure_audience' => :'wif-azure-audience',
|
|
97
|
+
:'wif_federation_rule_id' => :'wif-federation-rule-id',
|
|
98
|
+
:'wif_identity_token_source' => :'wif-identity-token-source',
|
|
99
|
+
:'wif_organization_id' => :'wif-organization-id',
|
|
100
|
+
:'wif_service_account_id' => :'wif-service-account-id',
|
|
101
|
+
:'wif_workspace_id' => :'wif-workspace-id'
|
|
74
102
|
}
|
|
75
103
|
end
|
|
76
104
|
|
|
@@ -94,7 +122,14 @@ module Akeyless
|
|
|
94
122
|
:'name' => :'String',
|
|
95
123
|
:'rotate_on_unlock' => :'String',
|
|
96
124
|
:'token' => :'String',
|
|
97
|
-
:'uid_token' => :'String'
|
|
125
|
+
:'uid_token' => :'String',
|
|
126
|
+
:'use_gw_cloud_identity' => :'Boolean',
|
|
127
|
+
:'wif_azure_audience' => :'String',
|
|
128
|
+
:'wif_federation_rule_id' => :'String',
|
|
129
|
+
:'wif_identity_token_source' => :'String',
|
|
130
|
+
:'wif_organization_id' => :'String',
|
|
131
|
+
:'wif_service_account_id' => :'String',
|
|
132
|
+
:'wif_workspace_id' => :'String'
|
|
98
133
|
}
|
|
99
134
|
end
|
|
100
135
|
|
|
@@ -176,6 +211,34 @@ module Akeyless
|
|
|
176
211
|
if attributes.key?(:'uid_token')
|
|
177
212
|
self.uid_token = attributes[:'uid_token']
|
|
178
213
|
end
|
|
214
|
+
|
|
215
|
+
if attributes.key?(:'use_gw_cloud_identity')
|
|
216
|
+
self.use_gw_cloud_identity = attributes[:'use_gw_cloud_identity']
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
if attributes.key?(:'wif_azure_audience')
|
|
220
|
+
self.wif_azure_audience = attributes[:'wif_azure_audience']
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
if attributes.key?(:'wif_federation_rule_id')
|
|
224
|
+
self.wif_federation_rule_id = attributes[:'wif_federation_rule_id']
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
if attributes.key?(:'wif_identity_token_source')
|
|
228
|
+
self.wif_identity_token_source = attributes[:'wif_identity_token_source']
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
if attributes.key?(:'wif_organization_id')
|
|
232
|
+
self.wif_organization_id = attributes[:'wif_organization_id']
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
if attributes.key?(:'wif_service_account_id')
|
|
236
|
+
self.wif_service_account_id = attributes[:'wif_service_account_id']
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
if attributes.key?(:'wif_workspace_id')
|
|
240
|
+
self.wif_workspace_id = attributes[:'wif_workspace_id']
|
|
241
|
+
end
|
|
179
242
|
end
|
|
180
243
|
|
|
181
244
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -215,7 +278,14 @@ module Akeyless
|
|
|
215
278
|
name == o.name &&
|
|
216
279
|
rotate_on_unlock == o.rotate_on_unlock &&
|
|
217
280
|
token == o.token &&
|
|
218
|
-
uid_token == o.uid_token
|
|
281
|
+
uid_token == o.uid_token &&
|
|
282
|
+
use_gw_cloud_identity == o.use_gw_cloud_identity &&
|
|
283
|
+
wif_azure_audience == o.wif_azure_audience &&
|
|
284
|
+
wif_federation_rule_id == o.wif_federation_rule_id &&
|
|
285
|
+
wif_identity_token_source == o.wif_identity_token_source &&
|
|
286
|
+
wif_organization_id == o.wif_organization_id &&
|
|
287
|
+
wif_service_account_id == o.wif_service_account_id &&
|
|
288
|
+
wif_workspace_id == o.wif_workspace_id
|
|
219
289
|
end
|
|
220
290
|
|
|
221
291
|
# @see the `==` method
|
|
@@ -227,7 +297,7 @@ module Akeyless
|
|
|
227
297
|
# Calculates hash code according to all attributes.
|
|
228
298
|
# @return [Integer] Hash code
|
|
229
299
|
def hash
|
|
230
|
-
[anthropic_url, api_key, delete_protection, description, json, key, lock_on_read, lock_ttl, max_versions, name, rotate_on_unlock, token, uid_token].hash
|
|
300
|
+
[anthropic_url, api_key, delete_protection, description, json, key, lock_on_read, lock_ttl, max_versions, 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
|
|
231
301
|
end
|
|
232
302
|
|
|
233
303
|
# Builds the object from hash
|