akeyless 3.5.4 → 3.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -2
- data/docs/AssocTargetItem.md +8 -0
- data/docs/Auth.md +4 -0
- data/docs/AuthMethod.md +2 -0
- data/docs/AuthMethodAccessInfo.md +2 -0
- data/docs/CertificateChainInfo.md +4 -0
- data/docs/CertificateVersionInfo.md +22 -0
- data/docs/Configure.md +5 -1
- data/docs/Connect.md +1 -1
- data/docs/CreateAuthMethod.md +2 -0
- data/docs/CreateAuthMethodAWSIAM.md +2 -0
- data/docs/CreateAuthMethodAzureAD.md +3 -1
- 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 +40 -0
- data/docs/CreateAuthMethodOCIOutput.md +18 -0
- data/docs/CreateAuthMethodOIDC.md +2 -0
- data/docs/CreateAuthMethodSAML.md +2 -0
- data/docs/CreateAuthMethodUniversalIdentity.md +2 -0
- data/docs/CreateEventForwarder.md +1 -1
- data/docs/CreateLinkedTarget.md +2 -0
- data/docs/CreateRole.md +4 -0
- data/docs/CreateRotatedSecret.md +7 -1
- data/docs/CreateSSHCertIssuer.md +4 -4
- data/docs/CreateSecret.md +2 -0
- data/docs/GatewayCreateMigration.md +2 -0
- data/docs/GatewayCreateProducerCassandra.md +4 -0
- data/docs/GatewayUpdateItem.md +2 -0
- data/docs/GatewayUpdateMigration.md +2 -0
- data/docs/GatewayUpdateProducerCassandra.md +4 -0
- data/docs/GenerateCsr.md +1 -1
- data/docs/GwClusterIdentity.md +2 -0
- data/docs/ImportPasswords.md +3 -1
- data/docs/ImportPasswordsOutput.md +3 -1
- data/docs/ItemVersion.md +2 -0
- data/docs/OCIAccessRules.md +20 -0
- data/docs/ProvisionCertificate.md +28 -0
- data/docs/ProvisionCertificateOutput.md +24 -0
- data/docs/RenewCertificate.md +28 -0
- data/docs/RenewCertificateOutput.md +28 -0
- data/docs/SecureRemoteAccess.md +2 -0
- data/docs/ServerInventoryPayload.md +2 -0
- data/docs/SetRoleRule.md +1 -1
- data/docs/SignDataWithClassicKey.md +2 -0
- data/docs/SignEcDsa.md +5 -1
- data/docs/SignPKCS1.md +9 -1
- data/docs/SignPKCS1Output.md +1 -1
- data/docs/SignRsaSsaPss.md +5 -1
- data/docs/StaticSecretDetailsInfo.md +2 -0
- data/docs/TargetItemVersion.md +2 -0
- data/docs/UpdateAuthMethod.md +2 -0
- data/docs/UpdateAuthMethodAWSIAM.md +2 -0
- data/docs/UpdateAuthMethodAzureAD.md +3 -1
- 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 +42 -0
- data/docs/UpdateAuthMethodOCIOutput.md +18 -0
- data/docs/UpdateAuthMethodOIDC.md +2 -0
- data/docs/UpdateAuthMethodSAML.md +2 -0
- data/docs/UpdateAuthMethodUniversalIdentity.md +2 -0
- data/docs/UpdateCertificateValue.md +2 -0
- data/docs/UpdateItem.md +6 -0
- data/docs/UpdateLinkedTarget.md +2 -0
- data/docs/UpdateRole.md +4 -0
- data/docs/UpdateSSHCertIssuer.md +3 -3
- data/docs/UpdateSecretVal.md +2 -0
- data/docs/V2Api.md +264 -9
- data/docs/VerifyEcDsa.md +5 -1
- data/docs/VerifyPKCS1.md +9 -1
- data/docs/VerifyRsaSsaPss.md +5 -1
- data/lib/akeyless/api/v2_api.rb +274 -7
- data/lib/akeyless/models/assoc_target_item.rb +43 -1
- data/lib/akeyless/models/auth.rb +25 -1
- data/lib/akeyless/models/auth_method.rb +10 -1
- data/lib/akeyless/models/auth_method_access_info.rb +10 -1
- data/lib/akeyless/models/certificate_chain_info.rb +19 -1
- data/lib/akeyless/models/certificate_version_info.rb +232 -0
- data/lib/akeyless/models/configure.rb +28 -4
- data/lib/akeyless/models/connect.rb +1 -1
- data/lib/akeyless/models/create_auth_method.rb +11 -1
- data/lib/akeyless/models/create_auth_method_awsiam.rb +11 -1
- data/lib/akeyless/models/create_auth_method_azure_ad.rb +12 -2
- data/lib/akeyless/models/create_auth_method_cert.rb +11 -1
- data/lib/akeyless/models/create_auth_method_email.rb +11 -1
- data/lib/akeyless/models/create_auth_method_gcp.rb +11 -1
- data/lib/akeyless/models/create_auth_method_huawei.rb +11 -1
- data/lib/akeyless/models/create_auth_method_k8_s.rb +11 -1
- data/lib/akeyless/models/create_auth_method_ldap.rb +11 -1
- data/lib/akeyless/models/create_auth_method_o_auth2.rb +11 -1
- data/lib/akeyless/models/create_auth_method_oci.rb +359 -0
- data/lib/akeyless/models/create_auth_method_oci_output.rb +214 -0
- data/lib/akeyless/models/create_auth_method_oidc.rb +11 -1
- data/lib/akeyless/models/create_auth_method_saml.rb +11 -1
- data/lib/akeyless/models/create_auth_method_universal_identity.rb +11 -1
- data/lib/akeyless/models/create_event_forwarder.rb +1 -1
- data/lib/akeyless/models/create_linked_target.rb +11 -1
- data/lib/akeyless/models/create_role.rb +21 -1
- data/lib/akeyless/models/create_rotated_secret.rb +35 -2
- data/lib/akeyless/models/create_secret.rb +11 -1
- data/lib/akeyless/models/create_ssh_cert_issuer.rb +9 -9
- data/lib/akeyless/models/gateway_create_migration.rb +11 -1
- data/lib/akeyless/models/gateway_create_producer_cassandra.rb +23 -1
- data/lib/akeyless/models/gateway_update_item.rb +11 -1
- data/lib/akeyless/models/gateway_update_migration.rb +11 -1
- data/lib/akeyless/models/gateway_update_producer_cassandra.rb +23 -1
- data/lib/akeyless/models/generate_csr.rb +1 -1
- data/lib/akeyless/models/gw_cluster_identity.rb +10 -1
- data/lib/akeyless/models/import_passwords.rb +13 -4
- data/lib/akeyless/models/import_passwords_output.rb +13 -4
- data/lib/akeyless/models/item_version.rb +10 -1
- data/lib/akeyless/models/oci_access_rules.rb +226 -0
- data/lib/akeyless/models/provision_certificate.rb +275 -0
- data/lib/akeyless/models/provision_certificate_output.rb +243 -0
- data/lib/akeyless/models/renew_certificate.rb +267 -0
- data/lib/akeyless/models/renew_certificate_output.rb +259 -0
- data/lib/akeyless/models/secure_remote_access.rb +12 -1
- data/lib/akeyless/models/server_inventory_payload.rb +12 -1
- data/lib/akeyless/models/set_role_rule.rb +1 -1
- data/lib/akeyless/models/sign_data_with_classic_key.rb +13 -1
- data/lib/akeyless/models/sign_ec_dsa.rb +24 -4
- data/lib/akeyless/models/sign_pkcs1.rb +44 -4
- data/lib/akeyless/models/sign_pkcs1_output.rb +2 -4
- data/lib/akeyless/models/sign_rsa_ssa_pss.rb +24 -4
- data/lib/akeyless/models/static_secret_details_info.rb +10 -1
- data/lib/akeyless/models/target_item_version.rb +10 -1
- data/lib/akeyless/models/update_auth_method.rb +11 -1
- data/lib/akeyless/models/update_auth_method_awsiam.rb +11 -1
- data/lib/akeyless/models/update_auth_method_azure_ad.rb +12 -2
- data/lib/akeyless/models/update_auth_method_cert.rb +11 -1
- data/lib/akeyless/models/update_auth_method_gcp.rb +11 -1
- data/lib/akeyless/models/update_auth_method_k8_s.rb +11 -1
- data/lib/akeyless/models/update_auth_method_ldap.rb +11 -1
- data/lib/akeyless/models/update_auth_method_o_auth2.rb +11 -1
- data/lib/akeyless/models/update_auth_method_oci.rb +369 -0
- data/lib/akeyless/models/update_auth_method_oci_output.rb +214 -0
- data/lib/akeyless/models/update_auth_method_oidc.rb +11 -1
- data/lib/akeyless/models/update_auth_method_saml.rb +11 -1
- data/lib/akeyless/models/update_auth_method_universal_identity.rb +11 -1
- data/lib/akeyless/models/update_certificate_value.rb +11 -1
- data/lib/akeyless/models/update_item.rb +32 -1
- data/lib/akeyless/models/update_linked_target.rb +11 -1
- data/lib/akeyless/models/update_role.rb +21 -1
- data/lib/akeyless/models/update_secret_val.rb +11 -1
- data/lib/akeyless/models/update_ssh_cert_issuer.rb +8 -8
- data/lib/akeyless/models/verify_ec_dsa.rb +24 -4
- data/lib/akeyless/models/verify_pkcs1.rb +44 -4
- data/lib/akeyless/models/verify_rsa_ssa_pss.rb +24 -4
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +10 -0
- data/spec/models/certificate_version_info_spec.rb +48 -0
- data/spec/models/create_auth_method_oci_output_spec.rb +36 -0
- data/spec/models/create_auth_method_oci_spec.rb +102 -0
- data/spec/models/oci_access_rules_spec.rb +42 -0
- data/spec/models/provision_certificate_output_spec.rb +54 -0
- data/spec/models/provision_certificate_spec.rb +66 -0
- data/spec/models/renew_certificate_output_spec.rb +66 -0
- data/spec/models/renew_certificate_spec.rb +66 -0
- data/spec/models/update_auth_method_oci_output_spec.rb +36 -0
- data/spec/models/update_auth_method_oci_spec.rb +108 -0
- metadata +43 -3
@@ -28,6 +28,9 @@ module Akeyless
|
|
28
28
|
# Deny from the token to rotate
|
29
29
|
attr_accessor :deny_rotate
|
30
30
|
|
31
|
+
# Auth Method description
|
32
|
+
attr_accessor :description
|
33
|
+
|
31
34
|
# if true: enforce role-association must include sub claims
|
32
35
|
attr_accessor :force_sub_claims
|
33
36
|
|
@@ -62,6 +65,7 @@ module Akeyless
|
|
62
65
|
:'bound_ips' => :'bound-ips',
|
63
66
|
:'deny_inheritance' => :'deny-inheritance',
|
64
67
|
:'deny_rotate' => :'deny-rotate',
|
68
|
+
:'description' => :'description',
|
65
69
|
:'force_sub_claims' => :'force-sub-claims',
|
66
70
|
:'gw_bound_ips' => :'gw-bound-ips',
|
67
71
|
:'json' => :'json',
|
@@ -86,6 +90,7 @@ module Akeyless
|
|
86
90
|
:'bound_ips' => :'Array<String>',
|
87
91
|
:'deny_inheritance' => :'Boolean',
|
88
92
|
:'deny_rotate' => :'Boolean',
|
93
|
+
:'description' => :'String',
|
89
94
|
:'force_sub_claims' => :'Boolean',
|
90
95
|
:'gw_bound_ips' => :'Array<String>',
|
91
96
|
:'json' => :'Boolean',
|
@@ -139,6 +144,10 @@ module Akeyless
|
|
139
144
|
self.deny_rotate = attributes[:'deny_rotate']
|
140
145
|
end
|
141
146
|
|
147
|
+
if attributes.key?(:'description')
|
148
|
+
self.description = attributes[:'description']
|
149
|
+
end
|
150
|
+
|
142
151
|
if attributes.key?(:'force_sub_claims')
|
143
152
|
self.force_sub_claims = attributes[:'force_sub_claims']
|
144
153
|
end
|
@@ -215,6 +224,7 @@ module Akeyless
|
|
215
224
|
bound_ips == o.bound_ips &&
|
216
225
|
deny_inheritance == o.deny_inheritance &&
|
217
226
|
deny_rotate == o.deny_rotate &&
|
227
|
+
description == o.description &&
|
218
228
|
force_sub_claims == o.force_sub_claims &&
|
219
229
|
gw_bound_ips == o.gw_bound_ips &&
|
220
230
|
json == o.json &&
|
@@ -235,7 +245,7 @@ module Akeyless
|
|
235
245
|
# Calculates hash code according to all attributes.
|
236
246
|
# @return [Integer] Hash code
|
237
247
|
def hash
|
238
|
-
[access_expires, bound_ips, deny_inheritance, deny_rotate, force_sub_claims, gw_bound_ips, json, jwt_ttl, name, new_name, token, ttl, uid_token].hash
|
248
|
+
[access_expires, bound_ips, deny_inheritance, deny_rotate, description, force_sub_claims, gw_bound_ips, json, jwt_ttl, name, new_name, token, ttl, uid_token].hash
|
239
249
|
end
|
240
250
|
|
241
251
|
# Builds the object from hash
|
@@ -36,6 +36,9 @@ module Akeyless
|
|
36
36
|
# Set output format to JSON
|
37
37
|
attr_accessor :json
|
38
38
|
|
39
|
+
# Whether to keep previous version [true/false]. If not set, use default according to account settings
|
40
|
+
attr_accessor :keep_prev_version
|
41
|
+
|
39
42
|
# The name of a key to use to encrypt the certificate's key (if empty, the account default protectionKey key will be used)
|
40
43
|
attr_accessor :key
|
41
44
|
|
@@ -67,6 +70,7 @@ module Akeyless
|
|
67
70
|
:'expiration_event_in' => :'expiration-event-in',
|
68
71
|
:'format' => :'format',
|
69
72
|
:'json' => :'json',
|
73
|
+
:'keep_prev_version' => :'keep-prev-version',
|
70
74
|
:'key' => :'key',
|
71
75
|
:'key_data' => :'key-data',
|
72
76
|
:'metadata' => :'metadata',
|
@@ -92,6 +96,7 @@ module Akeyless
|
|
92
96
|
:'expiration_event_in' => :'Array<String>',
|
93
97
|
:'format' => :'String',
|
94
98
|
:'json' => :'Boolean',
|
99
|
+
:'keep_prev_version' => :'String',
|
95
100
|
:'key' => :'String',
|
96
101
|
:'key_data' => :'String',
|
97
102
|
:'metadata' => :'String',
|
@@ -157,6 +162,10 @@ module Akeyless
|
|
157
162
|
self.json = false
|
158
163
|
end
|
159
164
|
|
165
|
+
if attributes.key?(:'keep_prev_version')
|
166
|
+
self.keep_prev_version = attributes[:'keep_prev_version']
|
167
|
+
end
|
168
|
+
|
160
169
|
if attributes.key?(:'key')
|
161
170
|
self.key = attributes[:'key']
|
162
171
|
end
|
@@ -222,6 +231,7 @@ module Akeyless
|
|
222
231
|
expiration_event_in == o.expiration_event_in &&
|
223
232
|
format == o.format &&
|
224
233
|
json == o.json &&
|
234
|
+
keep_prev_version == o.keep_prev_version &&
|
225
235
|
key == o.key &&
|
226
236
|
key_data == o.key_data &&
|
227
237
|
metadata == o.metadata &&
|
@@ -240,7 +250,7 @@ module Akeyless
|
|
240
250
|
# Calculates hash code according to all attributes.
|
241
251
|
# @return [Integer] Hash code
|
242
252
|
def hash
|
243
|
-
[add_tag, certificate_data, delete_protection, description, expiration_event_in, format, json, key, key_data, metadata, name, rm_tag, token, uid_token].hash
|
253
|
+
[add_tag, certificate_data, delete_protection, description, expiration_event_in, format, json, keep_prev_version, key, key_data, metadata, name, rm_tag, token, uid_token].hash
|
244
254
|
end
|
245
255
|
|
246
256
|
# Builds the object from hash
|
@@ -15,6 +15,8 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Akeyless
|
17
17
|
class UpdateItem
|
18
|
+
attr_accessor :provider_type
|
19
|
+
|
18
20
|
# for personal password manager
|
19
21
|
attr_accessor :accessibility
|
20
22
|
|
@@ -24,12 +26,18 @@ module Akeyless
|
|
24
26
|
# PEM Certificate in a Base64 format. Used for updating RSA keys' certificates.
|
25
27
|
attr_accessor :cert_file_data
|
26
28
|
|
29
|
+
# Trigger an event when a secret value changed [true/false] (Relevant only for Static Secret)
|
30
|
+
attr_accessor :change_event
|
31
|
+
|
27
32
|
# Protection from accidental deletion of this item [true/false]
|
28
33
|
attr_accessor :delete_protection
|
29
34
|
|
30
35
|
# Description of the object
|
31
36
|
attr_accessor :description
|
32
37
|
|
38
|
+
# Host provider type [explicit/target], Relevant only for Secure Remote Access of ssh cert issuer and ldap rotated secret
|
39
|
+
attr_accessor :host_provider
|
40
|
+
|
33
41
|
# Set output format to JSON
|
34
42
|
attr_accessor :json
|
35
43
|
|
@@ -132,11 +140,14 @@ module Akeyless
|
|
132
140
|
# Attribute mapping from ruby-style variable name to JSON key.
|
133
141
|
def self.attribute_map
|
134
142
|
{
|
143
|
+
:'provider_type' => :'ProviderType',
|
135
144
|
:'accessibility' => :'accessibility',
|
136
145
|
:'add_tag' => :'add-tag',
|
137
146
|
:'cert_file_data' => :'cert-file-data',
|
147
|
+
:'change_event' => :'change-event',
|
138
148
|
:'delete_protection' => :'delete_protection',
|
139
149
|
:'description' => :'description',
|
150
|
+
:'host_provider' => :'host-provider',
|
140
151
|
:'json' => :'json',
|
141
152
|
:'name' => :'name',
|
142
153
|
:'new_metadata' => :'new-metadata',
|
@@ -181,11 +192,14 @@ module Akeyless
|
|
181
192
|
# Attribute type mapping.
|
182
193
|
def self.openapi_types
|
183
194
|
{
|
195
|
+
:'provider_type' => :'String',
|
184
196
|
:'accessibility' => :'String',
|
185
197
|
:'add_tag' => :'Array<String>',
|
186
198
|
:'cert_file_data' => :'String',
|
199
|
+
:'change_event' => :'String',
|
187
200
|
:'delete_protection' => :'String',
|
188
201
|
:'description' => :'String',
|
202
|
+
:'host_provider' => :'String',
|
189
203
|
:'json' => :'Boolean',
|
190
204
|
:'name' => :'String',
|
191
205
|
:'new_metadata' => :'String',
|
@@ -243,6 +257,10 @@ module Akeyless
|
|
243
257
|
h[k.to_sym] = v
|
244
258
|
}
|
245
259
|
|
260
|
+
if attributes.key?(:'provider_type')
|
261
|
+
self.provider_type = attributes[:'provider_type']
|
262
|
+
end
|
263
|
+
|
246
264
|
if attributes.key?(:'accessibility')
|
247
265
|
self.accessibility = attributes[:'accessibility']
|
248
266
|
else
|
@@ -259,6 +277,10 @@ module Akeyless
|
|
259
277
|
self.cert_file_data = attributes[:'cert_file_data']
|
260
278
|
end
|
261
279
|
|
280
|
+
if attributes.key?(:'change_event')
|
281
|
+
self.change_event = attributes[:'change_event']
|
282
|
+
end
|
283
|
+
|
262
284
|
if attributes.key?(:'delete_protection')
|
263
285
|
self.delete_protection = attributes[:'delete_protection']
|
264
286
|
end
|
@@ -269,6 +291,12 @@ module Akeyless
|
|
269
291
|
self.description = 'default_metadata'
|
270
292
|
end
|
271
293
|
|
294
|
+
if attributes.key?(:'host_provider')
|
295
|
+
self.host_provider = attributes[:'host_provider']
|
296
|
+
else
|
297
|
+
self.host_provider = 'explicit'
|
298
|
+
end
|
299
|
+
|
272
300
|
if attributes.key?(:'json')
|
273
301
|
self.json = attributes[:'json']
|
274
302
|
else
|
@@ -447,11 +475,14 @@ module Akeyless
|
|
447
475
|
def ==(o)
|
448
476
|
return true if self.equal?(o)
|
449
477
|
self.class == o.class &&
|
478
|
+
provider_type == o.provider_type &&
|
450
479
|
accessibility == o.accessibility &&
|
451
480
|
add_tag == o.add_tag &&
|
452
481
|
cert_file_data == o.cert_file_data &&
|
482
|
+
change_event == o.change_event &&
|
453
483
|
delete_protection == o.delete_protection &&
|
454
484
|
description == o.description &&
|
485
|
+
host_provider == o.host_provider &&
|
455
486
|
json == o.json &&
|
456
487
|
name == o.name &&
|
457
488
|
new_metadata == o.new_metadata &&
|
@@ -496,7 +527,7 @@ module Akeyless
|
|
496
527
|
# Calculates hash code according to all attributes.
|
497
528
|
# @return [Integer] Hash code
|
498
529
|
def hash
|
499
|
-
[accessibility, add_tag, cert_file_data, delete_protection, description, json, name, new_metadata, new_name, rm_tag, rotate_after_disconnect, secure_access_add_host, secure_access_allow_external_user, secure_access_allow_port_forwading, secure_access_aws_account_id, secure_access_aws_native_cli, secure_access_aws_region, secure_access_bastion_api, secure_access_bastion_issuer, secure_access_bastion_ssh, secure_access_cluster_endpoint, secure_access_dashboard_url, secure_access_db_name, secure_access_db_schema, secure_access_enable, secure_access_host, secure_access_rd_gateway_server, secure_access_rdp_domain, secure_access_rdp_user, secure_access_rm_host, secure_access_ssh_creds, secure_access_ssh_creds_user, secure_access_url, secure_access_use_internal_bastion, secure_access_web_browsing, secure_access_web_proxy, token, uid_token].hash
|
530
|
+
[provider_type, accessibility, add_tag, cert_file_data, change_event, delete_protection, description, host_provider, json, name, new_metadata, new_name, rm_tag, rotate_after_disconnect, secure_access_add_host, secure_access_allow_external_user, secure_access_allow_port_forwading, secure_access_aws_account_id, secure_access_aws_native_cli, secure_access_aws_region, secure_access_bastion_api, secure_access_bastion_issuer, secure_access_bastion_ssh, secure_access_cluster_endpoint, secure_access_dashboard_url, secure_access_db_name, secure_access_db_schema, secure_access_enable, secure_access_host, secure_access_rd_gateway_server, secure_access_rdp_domain, secure_access_rdp_user, secure_access_rm_host, secure_access_ssh_creds, secure_access_ssh_creds_user, secure_access_url, secure_access_use_internal_bastion, secure_access_web_browsing, secure_access_web_proxy, token, uid_token].hash
|
500
531
|
end
|
501
532
|
|
502
533
|
# Builds the object from hash
|
@@ -45,6 +45,9 @@ module Akeyless
|
|
45
45
|
# Authentication token (see `/auth` and `/configure`)
|
46
46
|
attr_accessor :token
|
47
47
|
|
48
|
+
# Specifies the hosts type, relevant only when working without parent target
|
49
|
+
attr_accessor :type
|
50
|
+
|
48
51
|
# The universal identity token, Required only for universal_identity authentication
|
49
52
|
attr_accessor :uid_token
|
50
53
|
|
@@ -61,6 +64,7 @@ module Akeyless
|
|
61
64
|
:'parent_target_name' => :'parent-target-name',
|
62
65
|
:'rm_hosts' => :'rm-hosts',
|
63
66
|
:'token' => :'token',
|
67
|
+
:'type' => :'type',
|
64
68
|
:'uid_token' => :'uid-token'
|
65
69
|
}
|
66
70
|
end
|
@@ -83,6 +87,7 @@ module Akeyless
|
|
83
87
|
:'parent_target_name' => :'String',
|
84
88
|
:'rm_hosts' => :'String',
|
85
89
|
:'token' => :'String',
|
90
|
+
:'type' => :'String',
|
86
91
|
:'uid_token' => :'String'
|
87
92
|
}
|
88
93
|
end
|
@@ -152,6 +157,10 @@ module Akeyless
|
|
152
157
|
self.token = attributes[:'token']
|
153
158
|
end
|
154
159
|
|
160
|
+
if attributes.key?(:'type')
|
161
|
+
self.type = attributes[:'type']
|
162
|
+
end
|
163
|
+
|
155
164
|
if attributes.key?(:'uid_token')
|
156
165
|
self.uid_token = attributes[:'uid_token']
|
157
166
|
end
|
@@ -192,6 +201,7 @@ module Akeyless
|
|
192
201
|
parent_target_name == o.parent_target_name &&
|
193
202
|
rm_hosts == o.rm_hosts &&
|
194
203
|
token == o.token &&
|
204
|
+
type == o.type &&
|
195
205
|
uid_token == o.uid_token
|
196
206
|
end
|
197
207
|
|
@@ -204,7 +214,7 @@ module Akeyless
|
|
204
214
|
# Calculates hash code according to all attributes.
|
205
215
|
# @return [Integer] Hash code
|
206
216
|
def hash
|
207
|
-
[add_hosts, description, hosts, json, keep_prev_version, name, new_name, parent_target_name, rm_hosts, token, uid_token].hash
|
217
|
+
[add_hosts, description, hosts, json, keep_prev_version, name, new_name, parent_target_name, rm_hosts, token, type, uid_token].hash
|
208
218
|
end
|
209
219
|
|
210
220
|
# Builds the object from hash
|
@@ -24,6 +24,12 @@ module Akeyless
|
|
24
24
|
# Description of the object
|
25
25
|
attr_accessor :description
|
26
26
|
|
27
|
+
# Allow this role to view Event Center. Currently only 'none', 'own' and 'all' values are supported
|
28
|
+
attr_accessor :event_center_access
|
29
|
+
|
30
|
+
# Allow this role to manage Event Forwarders. Currently only 'none' and 'all' values are supported.
|
31
|
+
attr_accessor :event_forwarder_access
|
32
|
+
|
27
33
|
# Allow this role to view gw analytics. Currently only 'none', 'own', 'all' values are supported, allowing associated auth methods to view reports produced by the same auth methods.
|
28
34
|
attr_accessor :gw_analytics_access
|
29
35
|
|
@@ -57,6 +63,8 @@ module Akeyless
|
|
57
63
|
:'analytics_access' => :'analytics-access',
|
58
64
|
:'audit_access' => :'audit-access',
|
59
65
|
:'description' => :'description',
|
66
|
+
:'event_center_access' => :'event-center-access',
|
67
|
+
:'event_forwarder_access' => :'event-forwarder-access',
|
60
68
|
:'gw_analytics_access' => :'gw-analytics-access',
|
61
69
|
:'json' => :'json',
|
62
70
|
:'name' => :'name',
|
@@ -80,6 +88,8 @@ module Akeyless
|
|
80
88
|
:'analytics_access' => :'String',
|
81
89
|
:'audit_access' => :'String',
|
82
90
|
:'description' => :'String',
|
91
|
+
:'event_center_access' => :'String',
|
92
|
+
:'event_forwarder_access' => :'String',
|
83
93
|
:'gw_analytics_access' => :'String',
|
84
94
|
:'json' => :'Boolean',
|
85
95
|
:'name' => :'String',
|
@@ -127,6 +137,14 @@ module Akeyless
|
|
127
137
|
self.description = 'default_comment'
|
128
138
|
end
|
129
139
|
|
140
|
+
if attributes.key?(:'event_center_access')
|
141
|
+
self.event_center_access = attributes[:'event_center_access']
|
142
|
+
end
|
143
|
+
|
144
|
+
if attributes.key?(:'event_forwarder_access')
|
145
|
+
self.event_forwarder_access = attributes[:'event_forwarder_access']
|
146
|
+
end
|
147
|
+
|
130
148
|
if attributes.key?(:'gw_analytics_access')
|
131
149
|
self.gw_analytics_access = attributes[:'gw_analytics_access']
|
132
150
|
end
|
@@ -198,6 +216,8 @@ module Akeyless
|
|
198
216
|
analytics_access == o.analytics_access &&
|
199
217
|
audit_access == o.audit_access &&
|
200
218
|
description == o.description &&
|
219
|
+
event_center_access == o.event_center_access &&
|
220
|
+
event_forwarder_access == o.event_forwarder_access &&
|
201
221
|
gw_analytics_access == o.gw_analytics_access &&
|
202
222
|
json == o.json &&
|
203
223
|
name == o.name &&
|
@@ -218,7 +238,7 @@ module Akeyless
|
|
218
238
|
# Calculates hash code according to all attributes.
|
219
239
|
# @return [Integer] Hash code
|
220
240
|
def hash
|
221
|
-
[analytics_access, audit_access, description, gw_analytics_access, json, name, new_comment, new_name, sra_reports_access, token, uid_token, usage_reports_access].hash
|
241
|
+
[analytics_access, audit_access, description, event_center_access, event_forwarder_access, gw_analytics_access, json, name, new_comment, new_name, sra_reports_access, token, uid_token, usage_reports_access].hash
|
222
242
|
end
|
223
243
|
|
224
244
|
# Builds the object from hash
|
@@ -33,6 +33,9 @@ module Akeyless
|
|
33
33
|
# The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
|
34
34
|
attr_accessor :key
|
35
35
|
|
36
|
+
# The last version number before the update
|
37
|
+
attr_accessor :last_version
|
38
|
+
|
36
39
|
# The provided value is a multiline value (separated by '\\n')
|
37
40
|
attr_accessor :multiline
|
38
41
|
|
@@ -66,6 +69,7 @@ module Akeyless
|
|
66
69
|
:'json' => :'json',
|
67
70
|
:'keep_prev_version' => :'keep-prev-version',
|
68
71
|
:'key' => :'key',
|
72
|
+
:'last_version' => :'last-version',
|
69
73
|
:'multiline' => :'multiline',
|
70
74
|
:'name' => :'name',
|
71
75
|
:'new_version' => :'new-version',
|
@@ -91,6 +95,7 @@ module Akeyless
|
|
91
95
|
:'json' => :'Boolean',
|
92
96
|
:'keep_prev_version' => :'String',
|
93
97
|
:'key' => :'String',
|
98
|
+
:'last_version' => :'Integer',
|
94
99
|
:'multiline' => :'Boolean',
|
95
100
|
:'name' => :'String',
|
96
101
|
:'new_version' => :'Boolean',
|
@@ -155,6 +160,10 @@ module Akeyless
|
|
155
160
|
self.key = attributes[:'key']
|
156
161
|
end
|
157
162
|
|
163
|
+
if attributes.key?(:'last_version')
|
164
|
+
self.last_version = attributes[:'last_version']
|
165
|
+
end
|
166
|
+
|
158
167
|
if attributes.key?(:'multiline')
|
159
168
|
self.multiline = attributes[:'multiline']
|
160
169
|
end
|
@@ -228,6 +237,7 @@ module Akeyless
|
|
228
237
|
json == o.json &&
|
229
238
|
keep_prev_version == o.keep_prev_version &&
|
230
239
|
key == o.key &&
|
240
|
+
last_version == o.last_version &&
|
231
241
|
multiline == o.multiline &&
|
232
242
|
name == o.name &&
|
233
243
|
new_version == o.new_version &&
|
@@ -247,7 +257,7 @@ module Akeyless
|
|
247
257
|
# Calculates hash code according to all attributes.
|
248
258
|
# @return [Integer] Hash code
|
249
259
|
def hash
|
250
|
-
[accessibility, custom_field, inject_url, json, keep_prev_version, key, multiline, name, new_version, password, token, uid_token, username, value].hash
|
260
|
+
[accessibility, custom_field, inject_url, json, keep_prev_version, key, last_version, multiline, name, new_version, password, token, uid_token, username, value].hash
|
251
261
|
end
|
252
262
|
|
253
263
|
# Builds the object from hash
|
@@ -15,7 +15,7 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Akeyless
|
17
17
|
class UpdateSSHCertIssuer
|
18
|
-
attr_accessor :
|
18
|
+
attr_accessor :provider_type
|
19
19
|
|
20
20
|
# List of the new tags that will be attached to this item
|
21
21
|
attr_accessor :add_tag
|
@@ -32,7 +32,7 @@ module Akeyless
|
|
32
32
|
# Signed certificates with extensions, e.g permit-port-forwarding=\\\"\\\"
|
33
33
|
attr_accessor :extensions
|
34
34
|
|
35
|
-
# Host provider type [explicit/target]
|
35
|
+
# Host provider type [explicit/target], Relevant only for Secure Remote Access of ssh cert issuer and ldap rotated secret
|
36
36
|
attr_accessor :host_provider
|
37
37
|
|
38
38
|
# Set output format to JSON
|
@@ -86,7 +86,7 @@ module Akeyless
|
|
86
86
|
# Attribute mapping from ruby-style variable name to JSON key.
|
87
87
|
def self.attribute_map
|
88
88
|
{
|
89
|
-
:'
|
89
|
+
:'provider_type' => :'ProviderType',
|
90
90
|
:'add_tag' => :'add-tag',
|
91
91
|
:'allowed_users' => :'allowed-users',
|
92
92
|
:'delete_protection' => :'delete_protection',
|
@@ -120,7 +120,7 @@ module Akeyless
|
|
120
120
|
# Attribute type mapping.
|
121
121
|
def self.openapi_types
|
122
122
|
{
|
123
|
-
:'
|
123
|
+
:'provider_type' => :'String',
|
124
124
|
:'add_tag' => :'Array<String>',
|
125
125
|
:'allowed_users' => :'String',
|
126
126
|
:'delete_protection' => :'String',
|
@@ -167,8 +167,8 @@ module Akeyless
|
|
167
167
|
h[k.to_sym] = v
|
168
168
|
}
|
169
169
|
|
170
|
-
if attributes.key?(:'
|
171
|
-
self.
|
170
|
+
if attributes.key?(:'provider_type')
|
171
|
+
self.provider_type = attributes[:'provider_type']
|
172
172
|
end
|
173
173
|
|
174
174
|
if attributes.key?(:'add_tag')
|
@@ -320,7 +320,7 @@ module Akeyless
|
|
320
320
|
def ==(o)
|
321
321
|
return true if self.equal?(o)
|
322
322
|
self.class == o.class &&
|
323
|
-
|
323
|
+
provider_type == o.provider_type &&
|
324
324
|
add_tag == o.add_tag &&
|
325
325
|
allowed_users == o.allowed_users &&
|
326
326
|
delete_protection == o.delete_protection &&
|
@@ -354,7 +354,7 @@ module Akeyless
|
|
354
354
|
# Calculates hash code according to all attributes.
|
355
355
|
# @return [Integer] Hash code
|
356
356
|
def hash
|
357
|
-
[
|
357
|
+
[provider_type, add_tag, allowed_users, delete_protection, description, extensions, host_provider, json, metadata, name, new_name, principals, rm_tag, secure_access_bastion_api, secure_access_bastion_ssh, secure_access_enable, secure_access_host, secure_access_ssh_creds_user, secure_access_use_internal_bastion, signer_key_name, token, ttl, uid_token].hash
|
358
358
|
end
|
359
359
|
|
360
360
|
# Builds the object from hash
|
@@ -31,6 +31,9 @@ module Akeyless
|
|
31
31
|
# The message to be verified in a base64 format
|
32
32
|
attr_accessor :message
|
33
33
|
|
34
|
+
# Markes that the message is already hashed
|
35
|
+
attr_accessor :prehashed
|
36
|
+
|
34
37
|
# The message's signature
|
35
38
|
attr_accessor :signature
|
36
39
|
|
@@ -40,6 +43,9 @@ module Akeyless
|
|
40
43
|
# The universal identity token, Required only for universal_identity authentication
|
41
44
|
attr_accessor :uid_token
|
42
45
|
|
46
|
+
# The version of the key to use for verification
|
47
|
+
attr_accessor :version
|
48
|
+
|
43
49
|
# Attribute mapping from ruby-style variable name to JSON key.
|
44
50
|
def self.attribute_map
|
45
51
|
{
|
@@ -48,9 +54,11 @@ module Akeyless
|
|
48
54
|
:'json' => :'json',
|
49
55
|
:'key_name' => :'key-name',
|
50
56
|
:'message' => :'message',
|
57
|
+
:'prehashed' => :'prehashed',
|
51
58
|
:'signature' => :'signature',
|
52
59
|
:'token' => :'token',
|
53
|
-
:'uid_token' => :'uid-token'
|
60
|
+
:'uid_token' => :'uid-token',
|
61
|
+
:'version' => :'version'
|
54
62
|
}
|
55
63
|
end
|
56
64
|
|
@@ -67,9 +75,11 @@ module Akeyless
|
|
67
75
|
:'json' => :'Boolean',
|
68
76
|
:'key_name' => :'String',
|
69
77
|
:'message' => :'String',
|
78
|
+
:'prehashed' => :'Boolean',
|
70
79
|
:'signature' => :'String',
|
71
80
|
:'token' => :'String',
|
72
|
-
:'uid_token' => :'String'
|
81
|
+
:'uid_token' => :'String',
|
82
|
+
:'version' => :'Integer'
|
73
83
|
}
|
74
84
|
end
|
75
85
|
|
@@ -118,6 +128,10 @@ module Akeyless
|
|
118
128
|
self.message = nil
|
119
129
|
end
|
120
130
|
|
131
|
+
if attributes.key?(:'prehashed')
|
132
|
+
self.prehashed = attributes[:'prehashed']
|
133
|
+
end
|
134
|
+
|
121
135
|
if attributes.key?(:'signature')
|
122
136
|
self.signature = attributes[:'signature']
|
123
137
|
else
|
@@ -131,6 +145,10 @@ module Akeyless
|
|
131
145
|
if attributes.key?(:'uid_token')
|
132
146
|
self.uid_token = attributes[:'uid_token']
|
133
147
|
end
|
148
|
+
|
149
|
+
if attributes.key?(:'version')
|
150
|
+
self.version = attributes[:'version']
|
151
|
+
end
|
134
152
|
end
|
135
153
|
|
136
154
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -168,9 +186,11 @@ module Akeyless
|
|
168
186
|
json == o.json &&
|
169
187
|
key_name == o.key_name &&
|
170
188
|
message == o.message &&
|
189
|
+
prehashed == o.prehashed &&
|
171
190
|
signature == o.signature &&
|
172
191
|
token == o.token &&
|
173
|
-
uid_token == o.uid_token
|
192
|
+
uid_token == o.uid_token &&
|
193
|
+
version == o.version
|
174
194
|
end
|
175
195
|
|
176
196
|
# @see the `==` method
|
@@ -182,7 +202,7 @@ module Akeyless
|
|
182
202
|
# Calculates hash code according to all attributes.
|
183
203
|
# @return [Integer] Hash code
|
184
204
|
def hash
|
185
|
-
[display_id, item_id, json, key_name, message, signature, token, uid_token].hash
|
205
|
+
[display_id, item_id, json, key_name, message, prehashed, signature, token, uid_token, version].hash
|
186
206
|
end
|
187
207
|
|
188
208
|
# Builds the object from hash
|
@@ -18,6 +18,12 @@ module Akeyless
|
|
18
18
|
# The display id of the key to use in the verification process
|
19
19
|
attr_accessor :display_id
|
20
20
|
|
21
|
+
# HashFunction defines the hash function (e.g. sha-256)
|
22
|
+
attr_accessor :hash_function
|
23
|
+
|
24
|
+
# Select default assumed format for the plaintext message. Currently supported options: [base64]
|
25
|
+
attr_accessor :input_format
|
26
|
+
|
21
27
|
# The item id of the key to use in the verification process
|
22
28
|
attr_accessor :item_id
|
23
29
|
|
@@ -30,6 +36,9 @@ module Akeyless
|
|
30
36
|
# The message to be verified
|
31
37
|
attr_accessor :message
|
32
38
|
|
39
|
+
# Markes that the message is already hashed
|
40
|
+
attr_accessor :prehashed
|
41
|
+
|
33
42
|
# The message's signature
|
34
43
|
attr_accessor :signature
|
35
44
|
|
@@ -39,17 +48,24 @@ module Akeyless
|
|
39
48
|
# The universal identity token, Required only for universal_identity authentication
|
40
49
|
attr_accessor :uid_token
|
41
50
|
|
51
|
+
# The version of the key to use for verification
|
52
|
+
attr_accessor :version
|
53
|
+
|
42
54
|
# Attribute mapping from ruby-style variable name to JSON key.
|
43
55
|
def self.attribute_map
|
44
56
|
{
|
45
57
|
:'display_id' => :'display-id',
|
58
|
+
:'hash_function' => :'hash-function',
|
59
|
+
:'input_format' => :'input-format',
|
46
60
|
:'item_id' => :'item-id',
|
47
61
|
:'json' => :'json',
|
48
62
|
:'key_name' => :'key-name',
|
49
63
|
:'message' => :'message',
|
64
|
+
:'prehashed' => :'prehashed',
|
50
65
|
:'signature' => :'signature',
|
51
66
|
:'token' => :'token',
|
52
|
-
:'uid_token' => :'uid-token'
|
67
|
+
:'uid_token' => :'uid-token',
|
68
|
+
:'version' => :'version'
|
53
69
|
}
|
54
70
|
end
|
55
71
|
|
@@ -62,13 +78,17 @@ module Akeyless
|
|
62
78
|
def self.openapi_types
|
63
79
|
{
|
64
80
|
:'display_id' => :'String',
|
81
|
+
:'hash_function' => :'String',
|
82
|
+
:'input_format' => :'String',
|
65
83
|
:'item_id' => :'Integer',
|
66
84
|
:'json' => :'Boolean',
|
67
85
|
:'key_name' => :'String',
|
68
86
|
:'message' => :'String',
|
87
|
+
:'prehashed' => :'Boolean',
|
69
88
|
:'signature' => :'String',
|
70
89
|
:'token' => :'String',
|
71
|
-
:'uid_token' => :'String'
|
90
|
+
:'uid_token' => :'String',
|
91
|
+
:'version' => :'Integer'
|
72
92
|
}
|
73
93
|
end
|
74
94
|
|
@@ -97,6 +117,14 @@ module Akeyless
|
|
97
117
|
self.display_id = attributes[:'display_id']
|
98
118
|
end
|
99
119
|
|
120
|
+
if attributes.key?(:'hash_function')
|
121
|
+
self.hash_function = attributes[:'hash_function']
|
122
|
+
end
|
123
|
+
|
124
|
+
if attributes.key?(:'input_format')
|
125
|
+
self.input_format = attributes[:'input_format']
|
126
|
+
end
|
127
|
+
|
100
128
|
if attributes.key?(:'item_id')
|
101
129
|
self.item_id = attributes[:'item_id']
|
102
130
|
end
|
@@ -119,6 +147,10 @@ module Akeyless
|
|
119
147
|
self.message = nil
|
120
148
|
end
|
121
149
|
|
150
|
+
if attributes.key?(:'prehashed')
|
151
|
+
self.prehashed = attributes[:'prehashed']
|
152
|
+
end
|
153
|
+
|
122
154
|
if attributes.key?(:'signature')
|
123
155
|
self.signature = attributes[:'signature']
|
124
156
|
else
|
@@ -132,6 +164,10 @@ module Akeyless
|
|
132
164
|
if attributes.key?(:'uid_token')
|
133
165
|
self.uid_token = attributes[:'uid_token']
|
134
166
|
end
|
167
|
+
|
168
|
+
if attributes.key?(:'version')
|
169
|
+
self.version = attributes[:'version']
|
170
|
+
end
|
135
171
|
end
|
136
172
|
|
137
173
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -170,13 +206,17 @@ module Akeyless
|
|
170
206
|
return true if self.equal?(o)
|
171
207
|
self.class == o.class &&
|
172
208
|
display_id == o.display_id &&
|
209
|
+
hash_function == o.hash_function &&
|
210
|
+
input_format == o.input_format &&
|
173
211
|
item_id == o.item_id &&
|
174
212
|
json == o.json &&
|
175
213
|
key_name == o.key_name &&
|
176
214
|
message == o.message &&
|
215
|
+
prehashed == o.prehashed &&
|
177
216
|
signature == o.signature &&
|
178
217
|
token == o.token &&
|
179
|
-
uid_token == o.uid_token
|
218
|
+
uid_token == o.uid_token &&
|
219
|
+
version == o.version
|
180
220
|
end
|
181
221
|
|
182
222
|
# @see the `==` method
|
@@ -188,7 +228,7 @@ module Akeyless
|
|
188
228
|
# Calculates hash code according to all attributes.
|
189
229
|
# @return [Integer] Hash code
|
190
230
|
def hash
|
191
|
-
[display_id, item_id, json, key_name, message, signature, token, uid_token].hash
|
231
|
+
[display_id, hash_function, input_format, item_id, json, key_name, message, prehashed, signature, token, uid_token, version].hash
|
192
232
|
end
|
193
233
|
|
194
234
|
# Builds the object from hash
|