akeyless 3.1.1 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +23 -1
- data/docs/AssocTargetItem.md +2 -0
- data/docs/CreateCertificate.md +3 -1
- data/docs/CreateClassicKey.md +6 -2
- data/docs/CreateDBTarget.md +4 -0
- data/docs/CreateDFCKey.md +3 -1
- data/docs/CreateDynamicSecret.md +3 -1
- data/docs/CreateKey.md +3 -1
- data/docs/CreatePKICertIssuer.md +3 -1
- data/docs/CreatePingTarget.md +38 -0
- data/docs/CreatePingTargetOutput.md +18 -0
- data/docs/CreateRotatedSecret.md +5 -1
- data/docs/CreateSSHCertIssuer.md +3 -1
- data/docs/CreateSecret.md +3 -1
- data/docs/CreateTokenizer.md +3 -1
- data/docs/DSProducerDetails.md +48 -0
- data/docs/DecryptGPG.md +34 -0
- data/docs/DecryptGPGOutput.md +18 -0
- data/docs/EncryptGPG.md +32 -0
- data/docs/EncryptGPGOutput.md +18 -0
- data/docs/GatewayCreateProducerPing.md +66 -0
- data/docs/GatewayCreateProducerPingOutput.md +18 -0
- data/docs/GatewayCreateProducerSnowflake.md +4 -0
- data/docs/GatewayUpdateItem.md +3 -1
- data/docs/GatewayUpdateProducerPing.md +68 -0
- data/docs/GatewayUpdateProducerPingOutput.md +18 -0
- data/docs/GatewayUpdateProducerSnowflake.md +4 -0
- data/docs/GenCustomerFragment.md +4 -2
- data/docs/GetKubeExecCreds.md +5 -3
- data/docs/GetPKICertificate.md +5 -3
- data/docs/SecureRemoteAccess.md +2 -0
- data/docs/SignGPG.md +32 -0
- data/docs/SignGPGOutput.md +18 -0
- data/docs/TargetTypeDetailsInput.md +14 -0
- data/docs/UpdateDBTarget.md +4 -0
- data/docs/UpdateItem.md +3 -1
- data/docs/UpdatePKICertIssuer.md +3 -1
- data/docs/UpdatePingTarget.md +44 -0
- data/docs/UpdateRotatedSecret.md +5 -1
- data/docs/UpdateSSHCertIssuer.md +3 -1
- data/docs/UploadPKCS12.md +3 -1
- data/docs/UploadRSA.md +3 -1
- data/docs/V2Api.md +504 -0
- data/docs/VerifyGPG.md +32 -0
- data/lib/akeyless/api/v2_api.rb +512 -0
- data/lib/akeyless/models/assoc_target_item.rb +11 -1
- data/lib/akeyless/models/create_certificate.rb +12 -2
- data/lib/akeyless/models/create_classic_key.rb +23 -3
- data/lib/akeyless/models/create_db_target.rb +21 -1
- data/lib/akeyless/models/create_dfc_key.rb +12 -2
- data/lib/akeyless/models/create_dynamic_secret.rb +12 -4
- data/lib/akeyless/models/create_key.rb +12 -2
- data/lib/akeyless/models/create_ping_target.rb +329 -0
- data/lib/akeyless/models/create_ping_target_output.rb +219 -0
- data/lib/akeyless/models/create_pki_cert_issuer.rb +12 -2
- data/lib/akeyless/models/create_rotated_secret.rb +24 -2
- data/lib/akeyless/models/create_secret.rb +12 -2
- data/lib/akeyless/models/create_ssh_cert_issuer.rb +12 -2
- data/lib/akeyless/models/create_tokenizer.rb +12 -2
- data/lib/akeyless/models/decrypt_gpg.rb +310 -0
- data/lib/akeyless/models/decrypt_gpg_output.rb +219 -0
- data/lib/akeyless/models/ds_producer_details.rb +235 -1
- data/lib/akeyless/models/encrypt_gpg.rb +300 -0
- data/lib/akeyless/models/encrypt_gpg_output.rb +219 -0
- data/lib/akeyless/models/gateway_create_producer_ping.rb +482 -0
- data/lib/akeyless/models/gateway_create_producer_ping_output.rb +219 -0
- data/lib/akeyless/models/gateway_create_producer_snowflake.rb +22 -2
- data/lib/akeyless/models/gateway_update_item.rb +14 -2
- data/lib/akeyless/models/gateway_update_producer_ping.rb +492 -0
- data/lib/akeyless/models/gateway_update_producer_ping_output.rb +219 -0
- data/lib/akeyless/models/gateway_update_producer_snowflake.rb +22 -2
- data/lib/akeyless/models/gen_customer_fragment.rb +15 -5
- data/lib/akeyless/models/get_kube_exec_creds.rb +14 -4
- data/lib/akeyless/models/get_pki_certificate.rb +14 -4
- data/lib/akeyless/models/secure_remote_access.rb +10 -1
- data/lib/akeyless/models/sign_gpg.rb +300 -0
- data/lib/akeyless/models/sign_gpg_output.rb +219 -0
- data/lib/akeyless/models/target_type_details_input.rb +65 -1
- data/lib/akeyless/models/update_db_target.rb +21 -1
- data/lib/akeyless/models/update_item.rb +14 -2
- data/lib/akeyless/models/update_ping_target.rb +358 -0
- data/lib/akeyless/models/update_pki_cert_issuer.rb +12 -2
- data/lib/akeyless/models/update_rotated_secret.rb +26 -2
- data/lib/akeyless/models/update_ssh_cert_issuer.rb +12 -2
- data/lib/akeyless/models/upload_pkcs12.rb +12 -2
- data/lib/akeyless/models/upload_rsa.rb +12 -2
- data/lib/akeyless/models/verify_gpg.rb +300 -0
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +14 -0
- data/spec/models/create_ping_target_output_spec.rb +34 -0
- data/spec/models/create_ping_target_spec.rb +94 -0
- data/spec/models/decrypt_gpg_output_spec.rb +34 -0
- data/spec/models/decrypt_gpg_spec.rb +82 -0
- data/spec/models/encrypt_gpg_output_spec.rb +34 -0
- data/spec/models/encrypt_gpg_spec.rb +76 -0
- data/spec/models/gateway_create_producer_ping_output_spec.rb +34 -0
- data/spec/models/gateway_create_producer_ping_spec.rb +178 -0
- data/spec/models/gateway_update_producer_ping_output_spec.rb +34 -0
- data/spec/models/gateway_update_producer_ping_spec.rb +184 -0
- data/spec/models/sign_gpg_output_spec.rb +34 -0
- data/spec/models/sign_gpg_spec.rb +76 -0
- data/spec/models/update_ping_target_spec.rb +112 -0
- data/spec/models/verify_gpg_spec.rb +76 -0
- metadata +609 -553
@@ -0,0 +1,219 @@
|
|
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: 2.0
|
7
|
+
Contact: support@akeyless.io
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.3.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Akeyless
|
17
|
+
class CreatePingTargetOutput
|
18
|
+
attr_accessor :target_id
|
19
|
+
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
21
|
+
def self.attribute_map
|
22
|
+
{
|
23
|
+
:'target_id' => :'target_id'
|
24
|
+
}
|
25
|
+
end
|
26
|
+
|
27
|
+
# Returns all the JSON keys this model knows about
|
28
|
+
def self.acceptable_attributes
|
29
|
+
attribute_map.values
|
30
|
+
end
|
31
|
+
|
32
|
+
# Attribute type mapping.
|
33
|
+
def self.openapi_types
|
34
|
+
{
|
35
|
+
:'target_id' => :'Integer'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# List of attributes with nullable: true
|
40
|
+
def self.openapi_nullable
|
41
|
+
Set.new([
|
42
|
+
])
|
43
|
+
end
|
44
|
+
|
45
|
+
# Initializes the object
|
46
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
47
|
+
def initialize(attributes = {})
|
48
|
+
if (!attributes.is_a?(Hash))
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::CreatePingTargetOutput` initialize method"
|
50
|
+
end
|
51
|
+
|
52
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
53
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::CreatePingTargetOutput`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
|
+
end
|
57
|
+
h[k.to_sym] = v
|
58
|
+
}
|
59
|
+
|
60
|
+
if attributes.key?(:'target_id')
|
61
|
+
self.target_id = attributes[:'target_id']
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
66
|
+
# @return Array for valid properties with the reasons
|
67
|
+
def list_invalid_properties
|
68
|
+
invalid_properties = Array.new
|
69
|
+
invalid_properties
|
70
|
+
end
|
71
|
+
|
72
|
+
# Check to see if the all the properties in the model are valid
|
73
|
+
# @return true if the model is valid
|
74
|
+
def valid?
|
75
|
+
true
|
76
|
+
end
|
77
|
+
|
78
|
+
# Checks equality by comparing each attribute.
|
79
|
+
# @param [Object] Object to be compared
|
80
|
+
def ==(o)
|
81
|
+
return true if self.equal?(o)
|
82
|
+
self.class == o.class &&
|
83
|
+
target_id == o.target_id
|
84
|
+
end
|
85
|
+
|
86
|
+
# @see the `==` method
|
87
|
+
# @param [Object] Object to be compared
|
88
|
+
def eql?(o)
|
89
|
+
self == o
|
90
|
+
end
|
91
|
+
|
92
|
+
# Calculates hash code according to all attributes.
|
93
|
+
# @return [Integer] Hash code
|
94
|
+
def hash
|
95
|
+
[target_id].hash
|
96
|
+
end
|
97
|
+
|
98
|
+
# Builds the object from hash
|
99
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
100
|
+
# @return [Object] Returns the model itself
|
101
|
+
def self.build_from_hash(attributes)
|
102
|
+
new.build_from_hash(attributes)
|
103
|
+
end
|
104
|
+
|
105
|
+
# Builds the object from hash
|
106
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
107
|
+
# @return [Object] Returns the model itself
|
108
|
+
def build_from_hash(attributes)
|
109
|
+
return nil unless attributes.is_a?(Hash)
|
110
|
+
attributes = attributes.transform_keys(&:to_sym)
|
111
|
+
self.class.openapi_types.each_pair do |key, type|
|
112
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
113
|
+
self.send("#{key}=", nil)
|
114
|
+
elsif type =~ /\AArray<(.*)>/i
|
115
|
+
# check to ensure the input is an array given that the attribute
|
116
|
+
# is documented as an array but the input is not
|
117
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
118
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
119
|
+
end
|
120
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
121
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
self
|
126
|
+
end
|
127
|
+
|
128
|
+
# Deserializes the data based on type
|
129
|
+
# @param string type Data type
|
130
|
+
# @param string value Value to be deserialized
|
131
|
+
# @return [Object] Deserialized data
|
132
|
+
def _deserialize(type, value)
|
133
|
+
case type.to_sym
|
134
|
+
when :Time
|
135
|
+
Time.parse(value)
|
136
|
+
when :Date
|
137
|
+
Date.parse(value)
|
138
|
+
when :String
|
139
|
+
value.to_s
|
140
|
+
when :Integer
|
141
|
+
value.to_i
|
142
|
+
when :Float
|
143
|
+
value.to_f
|
144
|
+
when :Boolean
|
145
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
146
|
+
true
|
147
|
+
else
|
148
|
+
false
|
149
|
+
end
|
150
|
+
when :Object
|
151
|
+
# generic object (usually a Hash), return directly
|
152
|
+
value
|
153
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
154
|
+
inner_type = Regexp.last_match[:inner_type]
|
155
|
+
value.map { |v| _deserialize(inner_type, v) }
|
156
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
157
|
+
k_type = Regexp.last_match[:k_type]
|
158
|
+
v_type = Regexp.last_match[:v_type]
|
159
|
+
{}.tap do |hash|
|
160
|
+
value.each do |k, v|
|
161
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
162
|
+
end
|
163
|
+
end
|
164
|
+
else # model
|
165
|
+
# models (e.g. Pet) or oneOf
|
166
|
+
klass = Akeyless.const_get(type)
|
167
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
171
|
+
# Returns the string representation of the object
|
172
|
+
# @return [String] String presentation of the object
|
173
|
+
def to_s
|
174
|
+
to_hash.to_s
|
175
|
+
end
|
176
|
+
|
177
|
+
# to_body is an alias to to_hash (backward compatibility)
|
178
|
+
# @return [Hash] Returns the object in the form of hash
|
179
|
+
def to_body
|
180
|
+
to_hash
|
181
|
+
end
|
182
|
+
|
183
|
+
# Returns the object in the form of hash
|
184
|
+
# @return [Hash] Returns the object in the form of hash
|
185
|
+
def to_hash
|
186
|
+
hash = {}
|
187
|
+
self.class.attribute_map.each_pair do |attr, param|
|
188
|
+
value = self.send(attr)
|
189
|
+
if value.nil?
|
190
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
191
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
192
|
+
end
|
193
|
+
|
194
|
+
hash[param] = _to_hash(value)
|
195
|
+
end
|
196
|
+
hash
|
197
|
+
end
|
198
|
+
|
199
|
+
# Outputs non-array value in the form of hash
|
200
|
+
# For object, use to_hash. Otherwise, just return the value
|
201
|
+
# @param [Object] value Any valid value
|
202
|
+
# @return [Hash] Returns the value in the form of hash
|
203
|
+
def _to_hash(value)
|
204
|
+
if value.is_a?(Array)
|
205
|
+
value.compact.map { |v| _to_hash(v) }
|
206
|
+
elsif value.is_a?(Hash)
|
207
|
+
{}.tap do |hash|
|
208
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
209
|
+
end
|
210
|
+
elsif value.respond_to? :to_hash
|
211
|
+
value.to_hash
|
212
|
+
else
|
213
|
+
value
|
214
|
+
end
|
215
|
+
end
|
216
|
+
|
217
|
+
end
|
218
|
+
|
219
|
+
end
|
@@ -39,6 +39,9 @@ module Akeyless
|
|
39
39
|
# Protection from accidental deletion of this item
|
40
40
|
attr_accessor :delete_protection
|
41
41
|
|
42
|
+
# Description of the object
|
43
|
+
attr_accessor :description
|
44
|
+
|
42
45
|
# Set output format to JSON
|
43
46
|
attr_accessor :json
|
44
47
|
|
@@ -48,7 +51,7 @@ module Akeyless
|
|
48
51
|
# A comma-separated list of localities that will be set in the issued certificate
|
49
52
|
attr_accessor :locality
|
50
53
|
|
51
|
-
#
|
54
|
+
# Deprecated - use description
|
52
55
|
attr_accessor :metadata
|
53
56
|
|
54
57
|
# PKI certificate issuer name
|
@@ -104,6 +107,7 @@ module Akeyless
|
|
104
107
|
:'code_signing_flag' => :'code-signing-flag',
|
105
108
|
:'country' => :'country',
|
106
109
|
:'delete_protection' => :'delete_protection',
|
110
|
+
:'description' => :'description',
|
107
111
|
:'json' => :'json',
|
108
112
|
:'key_usage' => :'key-usage',
|
109
113
|
:'locality' => :'locality',
|
@@ -141,6 +145,7 @@ module Akeyless
|
|
141
145
|
:'code_signing_flag' => :'Boolean',
|
142
146
|
:'country' => :'String',
|
143
147
|
:'delete_protection' => :'String',
|
148
|
+
:'description' => :'String',
|
144
149
|
:'json' => :'Boolean',
|
145
150
|
:'key_usage' => :'String',
|
146
151
|
:'locality' => :'String',
|
@@ -215,6 +220,10 @@ module Akeyless
|
|
215
220
|
self.delete_protection = attributes[:'delete_protection']
|
216
221
|
end
|
217
222
|
|
223
|
+
if attributes.key?(:'description')
|
224
|
+
self.description = attributes[:'description']
|
225
|
+
end
|
226
|
+
|
218
227
|
if attributes.key?(:'json')
|
219
228
|
self.json = attributes[:'json']
|
220
229
|
end
|
@@ -333,6 +342,7 @@ module Akeyless
|
|
333
342
|
code_signing_flag == o.code_signing_flag &&
|
334
343
|
country == o.country &&
|
335
344
|
delete_protection == o.delete_protection &&
|
345
|
+
description == o.description &&
|
336
346
|
json == o.json &&
|
337
347
|
key_usage == o.key_usage &&
|
338
348
|
locality == o.locality &&
|
@@ -362,7 +372,7 @@ module Akeyless
|
|
362
372
|
# Calculates hash code according to all attributes.
|
363
373
|
# @return [Integer] Hash code
|
364
374
|
def hash
|
365
|
-
[allow_any_name, allow_subdomains, allowed_domains, allowed_uri_sans, client_flag, code_signing_flag, country, delete_protection, json, key_usage, locality, metadata, name, not_enforce_hostnames, not_require_cn, organizational_units, organizations, postal_code, province, server_flag, signer_key_name, street_address, tag, token, ttl, uid_token].hash
|
375
|
+
[allow_any_name, allow_subdomains, allowed_domains, allowed_uri_sans, client_flag, code_signing_flag, country, delete_protection, description, json, key_usage, locality, metadata, name, not_enforce_hostnames, not_require_cn, organizational_units, organizations, postal_code, province, server_flag, signer_key_name, street_address, tag, token, ttl, uid_token].hash
|
366
376
|
end
|
367
377
|
|
368
378
|
# Builds the object from hash
|
@@ -35,6 +35,9 @@ module Akeyless
|
|
35
35
|
# Protection from accidental deletion of this item
|
36
36
|
attr_accessor :delete_protection
|
37
37
|
|
38
|
+
# Description of the object
|
39
|
+
attr_accessor :description
|
40
|
+
|
38
41
|
# Base64-encoded service account private key text
|
39
42
|
attr_accessor :gcp_key
|
40
43
|
|
@@ -44,12 +47,15 @@ module Akeyless
|
|
44
47
|
# The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
|
45
48
|
attr_accessor :key
|
46
49
|
|
47
|
-
#
|
50
|
+
# Deprecated - use description
|
48
51
|
attr_accessor :metadata
|
49
52
|
|
50
53
|
# Secret name
|
51
54
|
attr_accessor :name
|
52
55
|
|
56
|
+
# Rotate the value of the secret after SRA session ends
|
57
|
+
attr_accessor :rotate_after_disconnect
|
58
|
+
|
53
59
|
attr_accessor :rotated_password
|
54
60
|
|
55
61
|
attr_accessor :rotated_username
|
@@ -143,11 +149,13 @@ module Akeyless
|
|
143
149
|
:'aws_region' => :'aws-region',
|
144
150
|
:'custom_payload' => :'custom-payload',
|
145
151
|
:'delete_protection' => :'delete_protection',
|
152
|
+
:'description' => :'description',
|
146
153
|
:'gcp_key' => :'gcp-key',
|
147
154
|
:'json' => :'json',
|
148
155
|
:'key' => :'key',
|
149
156
|
:'metadata' => :'metadata',
|
150
157
|
:'name' => :'name',
|
158
|
+
:'rotate_after_disconnect' => :'rotate-after-disconnect',
|
151
159
|
:'rotated_password' => :'rotated-password',
|
152
160
|
:'rotated_username' => :'rotated-username',
|
153
161
|
:'rotation_hour' => :'rotation-hour',
|
@@ -196,11 +204,13 @@ module Akeyless
|
|
196
204
|
:'aws_region' => :'String',
|
197
205
|
:'custom_payload' => :'String',
|
198
206
|
:'delete_protection' => :'String',
|
207
|
+
:'description' => :'String',
|
199
208
|
:'gcp_key' => :'String',
|
200
209
|
:'json' => :'Boolean',
|
201
210
|
:'key' => :'String',
|
202
211
|
:'metadata' => :'String',
|
203
212
|
:'name' => :'String',
|
213
|
+
:'rotate_after_disconnect' => :'String',
|
204
214
|
:'rotated_password' => :'String',
|
205
215
|
:'rotated_username' => :'String',
|
206
216
|
:'rotation_hour' => :'Integer',
|
@@ -288,6 +298,10 @@ module Akeyless
|
|
288
298
|
self.delete_protection = attributes[:'delete_protection']
|
289
299
|
end
|
290
300
|
|
301
|
+
if attributes.key?(:'description')
|
302
|
+
self.description = attributes[:'description']
|
303
|
+
end
|
304
|
+
|
291
305
|
if attributes.key?(:'gcp_key')
|
292
306
|
self.gcp_key = attributes[:'gcp_key']
|
293
307
|
end
|
@@ -308,6 +322,12 @@ module Akeyless
|
|
308
322
|
self.name = attributes[:'name']
|
309
323
|
end
|
310
324
|
|
325
|
+
if attributes.key?(:'rotate_after_disconnect')
|
326
|
+
self.rotate_after_disconnect = attributes[:'rotate_after_disconnect']
|
327
|
+
else
|
328
|
+
self.rotate_after_disconnect = 'false'
|
329
|
+
end
|
330
|
+
|
311
331
|
if attributes.key?(:'rotated_password')
|
312
332
|
self.rotated_password = attributes[:'rotated_password']
|
313
333
|
end
|
@@ -478,11 +498,13 @@ module Akeyless
|
|
478
498
|
aws_region == o.aws_region &&
|
479
499
|
custom_payload == o.custom_payload &&
|
480
500
|
delete_protection == o.delete_protection &&
|
501
|
+
description == o.description &&
|
481
502
|
gcp_key == o.gcp_key &&
|
482
503
|
json == o.json &&
|
483
504
|
key == o.key &&
|
484
505
|
metadata == o.metadata &&
|
485
506
|
name == o.name &&
|
507
|
+
rotate_after_disconnect == o.rotate_after_disconnect &&
|
486
508
|
rotated_password == o.rotated_password &&
|
487
509
|
rotated_username == o.rotated_username &&
|
488
510
|
rotation_hour == o.rotation_hour &&
|
@@ -523,7 +545,7 @@ module Akeyless
|
|
523
545
|
# Calculates hash code according to all attributes.
|
524
546
|
# @return [Integer] Hash code
|
525
547
|
def hash
|
526
|
-
[api_id, api_key, application_id, authentication_credentials, auto_rotate, aws_region, custom_payload, delete_protection, gcp_key, json, key, metadata, name, rotated_password, rotated_username, rotation_hour, rotation_interval, rotator_creds_type, rotator_custom_cmd, rotator_type, secure_access_allow_external_user, secure_access_aws_account_id, secure_access_aws_native_cli, secure_access_bastion_issuer, secure_access_db_name, secure_access_db_schema, secure_access_enable, secure_access_host, secure_access_rdp_domain, secure_access_rdp_user, secure_access_web, secure_access_web_browsing, secure_access_web_proxy, ssh_password, ssh_username, storage_account_key_name, tags, target_name, token, uid_token, user_attribute, user_dn].hash
|
548
|
+
[api_id, api_key, application_id, authentication_credentials, auto_rotate, aws_region, custom_payload, delete_protection, description, gcp_key, json, key, metadata, name, rotate_after_disconnect, rotated_password, rotated_username, rotation_hour, rotation_interval, rotator_creds_type, rotator_custom_cmd, rotator_type, secure_access_allow_external_user, secure_access_aws_account_id, secure_access_aws_native_cli, secure_access_bastion_issuer, secure_access_db_name, secure_access_db_schema, secure_access_enable, secure_access_host, secure_access_rdp_domain, secure_access_rdp_user, secure_access_web, secure_access_web_browsing, secure_access_web_proxy, ssh_password, ssh_username, storage_account_key_name, tags, target_name, token, uid_token, user_attribute, user_dn].hash
|
527
549
|
end
|
528
550
|
|
529
551
|
# Builds the object from hash
|
@@ -21,10 +21,13 @@ module Akeyless
|
|
21
21
|
# Protection from accidental deletion of this item
|
22
22
|
attr_accessor :delete_protection
|
23
23
|
|
24
|
+
# Description of the object
|
25
|
+
attr_accessor :description
|
26
|
+
|
24
27
|
# Set output format to JSON
|
25
28
|
attr_accessor :json
|
26
29
|
|
27
|
-
#
|
30
|
+
# Deprecated - use description
|
28
31
|
attr_accessor :metadata
|
29
32
|
|
30
33
|
# The provided value is a multiline value (separated by '\\n')
|
@@ -84,6 +87,7 @@ module Akeyless
|
|
84
87
|
{
|
85
88
|
:'accessibility' => :'accessibility',
|
86
89
|
:'delete_protection' => :'delete_protection',
|
90
|
+
:'description' => :'description',
|
87
91
|
:'json' => :'json',
|
88
92
|
:'metadata' => :'metadata',
|
89
93
|
:'multiline_value' => :'multiline_value',
|
@@ -119,6 +123,7 @@ module Akeyless
|
|
119
123
|
{
|
120
124
|
:'accessibility' => :'String',
|
121
125
|
:'delete_protection' => :'String',
|
126
|
+
:'description' => :'String',
|
122
127
|
:'json' => :'Boolean',
|
123
128
|
:'metadata' => :'String',
|
124
129
|
:'multiline_value' => :'Boolean',
|
@@ -175,6 +180,10 @@ module Akeyless
|
|
175
180
|
self.delete_protection = attributes[:'delete_protection']
|
176
181
|
end
|
177
182
|
|
183
|
+
if attributes.key?(:'description')
|
184
|
+
self.description = attributes[:'description']
|
185
|
+
end
|
186
|
+
|
178
187
|
if attributes.key?(:'json')
|
179
188
|
self.json = attributes[:'json']
|
180
189
|
end
|
@@ -302,6 +311,7 @@ module Akeyless
|
|
302
311
|
self.class == o.class &&
|
303
312
|
accessibility == o.accessibility &&
|
304
313
|
delete_protection == o.delete_protection &&
|
314
|
+
description == o.description &&
|
305
315
|
json == o.json &&
|
306
316
|
metadata == o.metadata &&
|
307
317
|
multiline_value == o.multiline_value &&
|
@@ -335,7 +345,7 @@ module Akeyless
|
|
335
345
|
# Calculates hash code according to all attributes.
|
336
346
|
# @return [Integer] Hash code
|
337
347
|
def hash
|
338
|
-
[accessibility, delete_protection, json, metadata, multiline_value, name, password_manager_custom_field, password_manager_inject_url, password_manager_password, password_manager_username, protection_key, secure_access_bastion_issuer, secure_access_enable, secure_access_host, secure_access_ssh_creds, secure_access_ssh_user, secure_access_url, secure_access_web_browsing, secure_access_web_proxy, tags, token, type, uid_token, value].hash
|
348
|
+
[accessibility, delete_protection, description, json, metadata, multiline_value, name, password_manager_custom_field, password_manager_inject_url, password_manager_password, password_manager_username, protection_key, secure_access_bastion_issuer, secure_access_enable, secure_access_host, secure_access_ssh_creds, secure_access_ssh_user, secure_access_url, secure_access_web_browsing, secure_access_web_proxy, tags, token, type, uid_token, value].hash
|
339
349
|
end
|
340
350
|
|
341
351
|
# Builds the object from hash
|
@@ -21,13 +21,16 @@ module Akeyless
|
|
21
21
|
# Protection from accidental deletion of this item
|
22
22
|
attr_accessor :delete_protection
|
23
23
|
|
24
|
+
# Description of the object
|
25
|
+
attr_accessor :description
|
26
|
+
|
24
27
|
# Signed certificates with extensions, e.g permit-port-forwarding=\\\"\\\"
|
25
28
|
attr_accessor :extensions
|
26
29
|
|
27
30
|
# Set output format to JSON
|
28
31
|
attr_accessor :json
|
29
32
|
|
30
|
-
#
|
33
|
+
# Deprecated - use description
|
31
34
|
attr_accessor :metadata
|
32
35
|
|
33
36
|
# SSH certificate issuer name
|
@@ -68,6 +71,7 @@ module Akeyless
|
|
68
71
|
{
|
69
72
|
:'allowed_users' => :'allowed-users',
|
70
73
|
:'delete_protection' => :'delete_protection',
|
74
|
+
:'description' => :'description',
|
71
75
|
:'extensions' => :'extensions',
|
72
76
|
:'json' => :'json',
|
73
77
|
:'metadata' => :'metadata',
|
@@ -97,6 +101,7 @@ module Akeyless
|
|
97
101
|
{
|
98
102
|
:'allowed_users' => :'String',
|
99
103
|
:'delete_protection' => :'String',
|
104
|
+
:'description' => :'String',
|
100
105
|
:'extensions' => :'Hash<String, String>',
|
101
106
|
:'json' => :'Boolean',
|
102
107
|
:'metadata' => :'String',
|
@@ -145,6 +150,10 @@ module Akeyless
|
|
145
150
|
self.delete_protection = attributes[:'delete_protection']
|
146
151
|
end
|
147
152
|
|
153
|
+
if attributes.key?(:'description')
|
154
|
+
self.description = attributes[:'description']
|
155
|
+
end
|
156
|
+
|
148
157
|
if attributes.key?(:'extensions')
|
149
158
|
if (value = attributes[:'extensions']).is_a?(Hash)
|
150
159
|
self.extensions = value
|
@@ -256,6 +265,7 @@ module Akeyless
|
|
256
265
|
self.class == o.class &&
|
257
266
|
allowed_users == o.allowed_users &&
|
258
267
|
delete_protection == o.delete_protection &&
|
268
|
+
description == o.description &&
|
259
269
|
extensions == o.extensions &&
|
260
270
|
json == o.json &&
|
261
271
|
metadata == o.metadata &&
|
@@ -283,7 +293,7 @@ module Akeyless
|
|
283
293
|
# Calculates hash code according to all attributes.
|
284
294
|
# @return [Integer] Hash code
|
285
295
|
def hash
|
286
|
-
[allowed_users, delete_protection, extensions, json, metadata, name, principals, 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, tag, token, ttl, uid_token].hash
|
296
|
+
[allowed_users, delete_protection, description, extensions, json, metadata, name, principals, 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, tag, token, ttl, uid_token].hash
|
287
297
|
end
|
288
298
|
|
289
299
|
# Builds the object from hash
|
@@ -25,6 +25,9 @@ module Akeyless
|
|
25
25
|
# Protection from accidental deletion of this item
|
26
26
|
attr_accessor :delete_protection
|
27
27
|
|
28
|
+
# Description of the object
|
29
|
+
attr_accessor :description
|
30
|
+
|
28
31
|
# The Encoding output template to use in regexp vaultless tokenization
|
29
32
|
attr_accessor :encoding_template
|
30
33
|
|
@@ -34,7 +37,7 @@ module Akeyless
|
|
34
37
|
# Set output format to JSON
|
35
38
|
attr_accessor :json
|
36
39
|
|
37
|
-
#
|
40
|
+
# Deprecated - use description
|
38
41
|
attr_accessor :metadata
|
39
42
|
|
40
43
|
# Tokenizer name
|
@@ -67,6 +70,7 @@ module Akeyless
|
|
67
70
|
:'alphabet' => :'alphabet',
|
68
71
|
:'decoding_template' => :'decoding-template',
|
69
72
|
:'delete_protection' => :'delete_protection',
|
73
|
+
:'description' => :'description',
|
70
74
|
:'encoding_template' => :'encoding-template',
|
71
75
|
:'encryption_key_name' => :'encryption-key-name',
|
72
76
|
:'json' => :'json',
|
@@ -93,6 +97,7 @@ module Akeyless
|
|
93
97
|
:'alphabet' => :'String',
|
94
98
|
:'decoding_template' => :'String',
|
95
99
|
:'delete_protection' => :'String',
|
100
|
+
:'description' => :'String',
|
96
101
|
:'encoding_template' => :'String',
|
97
102
|
:'encryption_key_name' => :'String',
|
98
103
|
:'json' => :'Boolean',
|
@@ -141,6 +146,10 @@ module Akeyless
|
|
141
146
|
self.delete_protection = attributes[:'delete_protection']
|
142
147
|
end
|
143
148
|
|
149
|
+
if attributes.key?(:'description')
|
150
|
+
self.description = attributes[:'description']
|
151
|
+
end
|
152
|
+
|
144
153
|
if attributes.key?(:'encoding_template')
|
145
154
|
self.encoding_template = attributes[:'encoding_template']
|
146
155
|
end
|
@@ -228,6 +237,7 @@ module Akeyless
|
|
228
237
|
alphabet == o.alphabet &&
|
229
238
|
decoding_template == o.decoding_template &&
|
230
239
|
delete_protection == o.delete_protection &&
|
240
|
+
description == o.description &&
|
231
241
|
encoding_template == o.encoding_template &&
|
232
242
|
encryption_key_name == o.encryption_key_name &&
|
233
243
|
json == o.json &&
|
@@ -251,7 +261,7 @@ module Akeyless
|
|
251
261
|
# Calculates hash code according to all attributes.
|
252
262
|
# @return [Integer] Hash code
|
253
263
|
def hash
|
254
|
-
[alphabet, decoding_template, delete_protection, encoding_template, encryption_key_name, json, metadata, name, pattern, tag, template_type, token, tokenizer_type, tweak_type, uid_token].hash
|
264
|
+
[alphabet, decoding_template, delete_protection, description, encoding_template, encryption_key_name, json, metadata, name, pattern, tag, template_type, token, tokenizer_type, tweak_type, uid_token].hash
|
255
265
|
end
|
256
266
|
|
257
267
|
# Builds the object from hash
|