akeyless 3.1.0 → 3.1.2
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 +24 -1
- data/docs/AssocTargetItem.md +2 -0
- data/docs/CreateCertificate.md +40 -0
- data/docs/CreateCertificateOutput.md +18 -0
- 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/CreateRotatedSecret.md +3 -1
- data/docs/CreateSSHCertIssuer.md +3 -1
- data/docs/CreateSecret.md +3 -1
- data/docs/CreateTokenizer.md +3 -1
- data/docs/DSProducerDetails.md +8 -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/GatewayCreateProducerSnowflake.md +4 -0
- data/docs/GatewayUpdateItem.md +3 -1
- data/docs/GatewayUpdateProducerSnowflake.md +4 -0
- data/docs/GatewayUpdateTlsCert.md +26 -0
- data/docs/GatewayUpdateTlsCertOutput.md +18 -0
- data/docs/GenCustomerFragment.md +4 -2
- data/docs/GetCertificateValue.md +26 -0
- data/docs/GetCertificateValueOutput.md +20 -0
- data/docs/ListSRABastions.md +2 -0
- data/docs/RotateKey.md +2 -0
- data/docs/SignGPG.md +32 -0
- data/docs/SignGPGOutput.md +18 -0
- data/docs/TargetTypeDetailsInput.md +4 -0
- data/docs/UpdateCertificateOutput.md +18 -0
- data/docs/UpdateCertificateValue.md +32 -0
- data/docs/UpdateDBTarget.md +4 -0
- data/docs/UpdateItem.md +3 -1
- data/docs/UpdatePKICertIssuer.md +3 -1
- data/docs/UpdateRotatedSecret.md +3 -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 +339 -0
- data/lib/akeyless/models/create_certificate_output.rb +219 -0
- 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_pki_cert_issuer.rb +12 -2
- data/lib/akeyless/models/create_rotated_secret.rb +12 -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 +40 -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_snowflake.rb +22 -2
- data/lib/akeyless/models/gateway_update_item.rb +14 -2
- data/lib/akeyless/models/gateway_update_producer_snowflake.rb +22 -2
- data/lib/akeyless/models/gateway_update_tls_cert.rb +261 -0
- data/lib/akeyless/models/gateway_update_tls_cert_output.rb +219 -0
- data/lib/akeyless/models/gen_customer_fragment.rb +15 -5
- data/lib/akeyless/models/get_certificate_value.rb +265 -0
- data/lib/akeyless/models/get_certificate_value_output.rb +228 -0
- data/lib/akeyless/models/list_sra_bastions.rb +10 -1
- data/lib/akeyless/models/rotate_key.rb +11 -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 +20 -1
- data/lib/akeyless/models/update_certificate_output.rb +219 -0
- data/lib/akeyless/models/update_certificate_value.rb +297 -0
- data/lib/akeyless/models/update_db_target.rb +21 -1
- data/lib/akeyless/models/update_item.rb +14 -2
- data/lib/akeyless/models/update_pki_cert_issuer.rb +12 -2
- data/lib/akeyless/models/update_rotated_secret.rb +14 -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 +15 -0
- data/spec/models/create_certificate_output_spec.rb +34 -0
- data/spec/models/create_certificate_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_update_tls_cert_output_spec.rb +34 -0
- data/spec/models/gateway_update_tls_cert_spec.rb +58 -0
- data/spec/models/get_certificate_value_output_spec.rb +40 -0
- data/spec/models/get_certificate_value_spec.rb +58 -0
- data/spec/models/sign_gpg_output_spec.rb +34 -0
- data/spec/models/sign_gpg_spec.rb +76 -0
- data/spec/models/update_certificate_output_spec.rb +34 -0
- data/spec/models/update_certificate_value_spec.rb +76 -0
- data/spec/models/verify_gpg_spec.rb +76 -0
- metadata +600 -540
|
@@ -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 UpdateCertificateOutput
|
|
18
|
+
attr_accessor :name
|
|
19
|
+
|
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
|
+
def self.attribute_map
|
|
22
|
+
{
|
|
23
|
+
:'name' => :'name'
|
|
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
|
+
:'name' => :'String'
|
|
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::UpdateCertificateOutput` 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::UpdateCertificateOutput`. 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?(:'name')
|
|
61
|
+
self.name = attributes[:'name']
|
|
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
|
+
name == o.name
|
|
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
|
+
[name].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
|
|
@@ -0,0 +1,297 @@
|
|
|
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 UpdateCertificateValue
|
|
18
|
+
# Content of the certificate PEM in a Base64 format.
|
|
19
|
+
attr_accessor :certificate_data
|
|
20
|
+
|
|
21
|
+
# How many days before the expiration of the certificate would you like to be notified.
|
|
22
|
+
attr_accessor :expiration_event_in
|
|
23
|
+
|
|
24
|
+
# Set output format to JSON
|
|
25
|
+
attr_accessor :json
|
|
26
|
+
|
|
27
|
+
# The name of a key to use to encrypt the certificate's key (if empty, the account default protectionKey key will be used)
|
|
28
|
+
attr_accessor :key
|
|
29
|
+
|
|
30
|
+
# Content of the certificate's private key PEM in a Base64 format.
|
|
31
|
+
attr_accessor :key_data
|
|
32
|
+
|
|
33
|
+
# Certificate name
|
|
34
|
+
attr_accessor :name
|
|
35
|
+
|
|
36
|
+
# Authentication token (see `/auth` and `/configure`)
|
|
37
|
+
attr_accessor :token
|
|
38
|
+
|
|
39
|
+
# The universal identity token, Required only for universal_identity authentication
|
|
40
|
+
attr_accessor :uid_token
|
|
41
|
+
|
|
42
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
43
|
+
def self.attribute_map
|
|
44
|
+
{
|
|
45
|
+
:'certificate_data' => :'certificate-data',
|
|
46
|
+
:'expiration_event_in' => :'expiration-event-in',
|
|
47
|
+
:'json' => :'json',
|
|
48
|
+
:'key' => :'key',
|
|
49
|
+
:'key_data' => :'key-data',
|
|
50
|
+
:'name' => :'name',
|
|
51
|
+
:'token' => :'token',
|
|
52
|
+
:'uid_token' => :'uid-token'
|
|
53
|
+
}
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Returns all the JSON keys this model knows about
|
|
57
|
+
def self.acceptable_attributes
|
|
58
|
+
attribute_map.values
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Attribute type mapping.
|
|
62
|
+
def self.openapi_types
|
|
63
|
+
{
|
|
64
|
+
:'certificate_data' => :'String',
|
|
65
|
+
:'expiration_event_in' => :'Array<String>',
|
|
66
|
+
:'json' => :'Boolean',
|
|
67
|
+
:'key' => :'String',
|
|
68
|
+
:'key_data' => :'String',
|
|
69
|
+
:'name' => :'String',
|
|
70
|
+
:'token' => :'String',
|
|
71
|
+
:'uid_token' => :'String'
|
|
72
|
+
}
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# List of attributes with nullable: true
|
|
76
|
+
def self.openapi_nullable
|
|
77
|
+
Set.new([
|
|
78
|
+
])
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Initializes the object
|
|
82
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
83
|
+
def initialize(attributes = {})
|
|
84
|
+
if (!attributes.is_a?(Hash))
|
|
85
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::UpdateCertificateValue` initialize method"
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
89
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
90
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
91
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::UpdateCertificateValue`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
92
|
+
end
|
|
93
|
+
h[k.to_sym] = v
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'certificate_data')
|
|
97
|
+
self.certificate_data = attributes[:'certificate_data']
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if attributes.key?(:'expiration_event_in')
|
|
101
|
+
if (value = attributes[:'expiration_event_in']).is_a?(Array)
|
|
102
|
+
self.expiration_event_in = value
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if attributes.key?(:'json')
|
|
107
|
+
self.json = attributes[:'json']
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if attributes.key?(:'key')
|
|
111
|
+
self.key = attributes[:'key']
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if attributes.key?(:'key_data')
|
|
115
|
+
self.key_data = attributes[:'key_data']
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
if attributes.key?(:'name')
|
|
119
|
+
self.name = attributes[:'name']
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if attributes.key?(:'token')
|
|
123
|
+
self.token = attributes[:'token']
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
if attributes.key?(:'uid_token')
|
|
127
|
+
self.uid_token = attributes[:'uid_token']
|
|
128
|
+
end
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
132
|
+
# @return Array for valid properties with the reasons
|
|
133
|
+
def list_invalid_properties
|
|
134
|
+
invalid_properties = Array.new
|
|
135
|
+
if @name.nil?
|
|
136
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
invalid_properties
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# Check to see if the all the properties in the model are valid
|
|
143
|
+
# @return true if the model is valid
|
|
144
|
+
def valid?
|
|
145
|
+
return false if @name.nil?
|
|
146
|
+
true
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Checks equality by comparing each attribute.
|
|
150
|
+
# @param [Object] Object to be compared
|
|
151
|
+
def ==(o)
|
|
152
|
+
return true if self.equal?(o)
|
|
153
|
+
self.class == o.class &&
|
|
154
|
+
certificate_data == o.certificate_data &&
|
|
155
|
+
expiration_event_in == o.expiration_event_in &&
|
|
156
|
+
json == o.json &&
|
|
157
|
+
key == o.key &&
|
|
158
|
+
key_data == o.key_data &&
|
|
159
|
+
name == o.name &&
|
|
160
|
+
token == o.token &&
|
|
161
|
+
uid_token == o.uid_token
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# @see the `==` method
|
|
165
|
+
# @param [Object] Object to be compared
|
|
166
|
+
def eql?(o)
|
|
167
|
+
self == o
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# Calculates hash code according to all attributes.
|
|
171
|
+
# @return [Integer] Hash code
|
|
172
|
+
def hash
|
|
173
|
+
[certificate_data, expiration_event_in, json, key, key_data, name, token, uid_token].hash
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# Builds the object from hash
|
|
177
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
178
|
+
# @return [Object] Returns the model itself
|
|
179
|
+
def self.build_from_hash(attributes)
|
|
180
|
+
new.build_from_hash(attributes)
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
# Builds the object from hash
|
|
184
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
185
|
+
# @return [Object] Returns the model itself
|
|
186
|
+
def build_from_hash(attributes)
|
|
187
|
+
return nil unless attributes.is_a?(Hash)
|
|
188
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
189
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
190
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
191
|
+
self.send("#{key}=", nil)
|
|
192
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
193
|
+
# check to ensure the input is an array given that the attribute
|
|
194
|
+
# is documented as an array but the input is not
|
|
195
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
196
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
197
|
+
end
|
|
198
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
199
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
200
|
+
end
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
self
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# Deserializes the data based on type
|
|
207
|
+
# @param string type Data type
|
|
208
|
+
# @param string value Value to be deserialized
|
|
209
|
+
# @return [Object] Deserialized data
|
|
210
|
+
def _deserialize(type, value)
|
|
211
|
+
case type.to_sym
|
|
212
|
+
when :Time
|
|
213
|
+
Time.parse(value)
|
|
214
|
+
when :Date
|
|
215
|
+
Date.parse(value)
|
|
216
|
+
when :String
|
|
217
|
+
value.to_s
|
|
218
|
+
when :Integer
|
|
219
|
+
value.to_i
|
|
220
|
+
when :Float
|
|
221
|
+
value.to_f
|
|
222
|
+
when :Boolean
|
|
223
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
224
|
+
true
|
|
225
|
+
else
|
|
226
|
+
false
|
|
227
|
+
end
|
|
228
|
+
when :Object
|
|
229
|
+
# generic object (usually a Hash), return directly
|
|
230
|
+
value
|
|
231
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
232
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
233
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
234
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
235
|
+
k_type = Regexp.last_match[:k_type]
|
|
236
|
+
v_type = Regexp.last_match[:v_type]
|
|
237
|
+
{}.tap do |hash|
|
|
238
|
+
value.each do |k, v|
|
|
239
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
240
|
+
end
|
|
241
|
+
end
|
|
242
|
+
else # model
|
|
243
|
+
# models (e.g. Pet) or oneOf
|
|
244
|
+
klass = Akeyless.const_get(type)
|
|
245
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
246
|
+
end
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
# Returns the string representation of the object
|
|
250
|
+
# @return [String] String presentation of the object
|
|
251
|
+
def to_s
|
|
252
|
+
to_hash.to_s
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
256
|
+
# @return [Hash] Returns the object in the form of hash
|
|
257
|
+
def to_body
|
|
258
|
+
to_hash
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
# Returns the object in the form of hash
|
|
262
|
+
# @return [Hash] Returns the object in the form of hash
|
|
263
|
+
def to_hash
|
|
264
|
+
hash = {}
|
|
265
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
266
|
+
value = self.send(attr)
|
|
267
|
+
if value.nil?
|
|
268
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
269
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
hash[param] = _to_hash(value)
|
|
273
|
+
end
|
|
274
|
+
hash
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
# Outputs non-array value in the form of hash
|
|
278
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
279
|
+
# @param [Object] value Any valid value
|
|
280
|
+
# @return [Hash] Returns the value in the form of hash
|
|
281
|
+
def _to_hash(value)
|
|
282
|
+
if value.is_a?(Array)
|
|
283
|
+
value.compact.map { |v| _to_hash(v) }
|
|
284
|
+
elsif value.is_a?(Hash)
|
|
285
|
+
{}.tap do |hash|
|
|
286
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
287
|
+
end
|
|
288
|
+
elsif value.respond_to? :to_hash
|
|
289
|
+
value.to_hash
|
|
290
|
+
else
|
|
291
|
+
value
|
|
292
|
+
end
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
end
|
|
@@ -69,6 +69,12 @@ module Akeyless
|
|
|
69
69
|
|
|
70
70
|
attr_accessor :snowflake_account
|
|
71
71
|
|
|
72
|
+
# RSA Private key (base64 encoded)
|
|
73
|
+
attr_accessor :snowflake_api_private_key
|
|
74
|
+
|
|
75
|
+
# The Private key passphrase
|
|
76
|
+
attr_accessor :snowflake_api_private_key_password
|
|
77
|
+
|
|
72
78
|
# SSL connection mode
|
|
73
79
|
attr_accessor :ssl
|
|
74
80
|
|
|
@@ -110,6 +116,8 @@ module Akeyless
|
|
|
110
116
|
:'port' => :'port',
|
|
111
117
|
:'pwd' => :'pwd',
|
|
112
118
|
:'snowflake_account' => :'snowflake-account',
|
|
119
|
+
:'snowflake_api_private_key' => :'snowflake-api-private-key',
|
|
120
|
+
:'snowflake_api_private_key_password' => :'snowflake-api-private-key-password',
|
|
113
121
|
:'ssl' => :'ssl',
|
|
114
122
|
:'ssl_certificate' => :'ssl-certificate',
|
|
115
123
|
:'token' => :'token',
|
|
@@ -148,6 +156,8 @@ module Akeyless
|
|
|
148
156
|
:'port' => :'String',
|
|
149
157
|
:'pwd' => :'String',
|
|
150
158
|
:'snowflake_account' => :'String',
|
|
159
|
+
:'snowflake_api_private_key' => :'String',
|
|
160
|
+
:'snowflake_api_private_key_password' => :'String',
|
|
151
161
|
:'ssl' => :'Boolean',
|
|
152
162
|
:'ssl_certificate' => :'String',
|
|
153
163
|
:'token' => :'String',
|
|
@@ -262,6 +272,14 @@ module Akeyless
|
|
|
262
272
|
self.snowflake_account = attributes[:'snowflake_account']
|
|
263
273
|
end
|
|
264
274
|
|
|
275
|
+
if attributes.key?(:'snowflake_api_private_key')
|
|
276
|
+
self.snowflake_api_private_key = attributes[:'snowflake_api_private_key']
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
if attributes.key?(:'snowflake_api_private_key_password')
|
|
280
|
+
self.snowflake_api_private_key_password = attributes[:'snowflake_api_private_key_password']
|
|
281
|
+
end
|
|
282
|
+
|
|
265
283
|
if attributes.key?(:'ssl')
|
|
266
284
|
self.ssl = attributes[:'ssl']
|
|
267
285
|
end
|
|
@@ -336,6 +354,8 @@ module Akeyless
|
|
|
336
354
|
port == o.port &&
|
|
337
355
|
pwd == o.pwd &&
|
|
338
356
|
snowflake_account == o.snowflake_account &&
|
|
357
|
+
snowflake_api_private_key == o.snowflake_api_private_key &&
|
|
358
|
+
snowflake_api_private_key_password == o.snowflake_api_private_key_password &&
|
|
339
359
|
ssl == o.ssl &&
|
|
340
360
|
ssl_certificate == o.ssl_certificate &&
|
|
341
361
|
token == o.token &&
|
|
@@ -353,7 +373,7 @@ module Akeyless
|
|
|
353
373
|
# Calculates hash code according to all attributes.
|
|
354
374
|
# @return [Integer] Hash code
|
|
355
375
|
def hash
|
|
356
|
-
[comment, db_name, db_server_certificates, db_server_name, db_type, host, json, keep_prev_version, key, mongodb_atlas, mongodb_atlas_api_private_key, mongodb_atlas_api_public_key, mongodb_atlas_project_id, mongodb_default_auth_db, mongodb_uri_options, name, new_name, oracle_service_name, port, pwd, snowflake_account, ssl, ssl_certificate, token, uid_token, update_version, user_name].hash
|
|
376
|
+
[comment, db_name, db_server_certificates, db_server_name, db_type, host, json, keep_prev_version, key, mongodb_atlas, mongodb_atlas_api_private_key, mongodb_atlas_api_public_key, mongodb_atlas_project_id, mongodb_default_auth_db, mongodb_uri_options, name, new_name, oracle_service_name, port, pwd, snowflake_account, snowflake_api_private_key, snowflake_api_private_key_password, ssl, ssl_certificate, token, uid_token, update_version, user_name].hash
|
|
357
377
|
end
|
|
358
378
|
|
|
359
379
|
# Builds the object from hash
|
|
@@ -26,13 +26,16 @@ module Akeyless
|
|
|
26
26
|
|
|
27
27
|
attr_accessor :delete_protection
|
|
28
28
|
|
|
29
|
+
# Description of the object
|
|
30
|
+
attr_accessor :description
|
|
31
|
+
|
|
29
32
|
# Set output format to JSON
|
|
30
33
|
attr_accessor :json
|
|
31
34
|
|
|
32
35
|
# Current item name
|
|
33
36
|
attr_accessor :name
|
|
34
37
|
|
|
35
|
-
#
|
|
38
|
+
# Deprecated - use description
|
|
36
39
|
attr_accessor :new_metadata
|
|
37
40
|
|
|
38
41
|
# New item name
|
|
@@ -102,6 +105,7 @@ module Akeyless
|
|
|
102
105
|
:'add_tag' => :'add-tag',
|
|
103
106
|
:'cert_file_data' => :'cert-file-data',
|
|
104
107
|
:'delete_protection' => :'delete_protection',
|
|
108
|
+
:'description' => :'description',
|
|
105
109
|
:'json' => :'json',
|
|
106
110
|
:'name' => :'name',
|
|
107
111
|
:'new_metadata' => :'new-metadata',
|
|
@@ -148,6 +152,7 @@ module Akeyless
|
|
|
148
152
|
:'add_tag' => :'Array<String>',
|
|
149
153
|
:'cert_file_data' => :'String',
|
|
150
154
|
:'delete_protection' => :'String',
|
|
155
|
+
:'description' => :'String',
|
|
151
156
|
:'json' => :'Boolean',
|
|
152
157
|
:'name' => :'String',
|
|
153
158
|
:'new_metadata' => :'String',
|
|
@@ -223,6 +228,12 @@ module Akeyless
|
|
|
223
228
|
self.delete_protection = attributes[:'delete_protection']
|
|
224
229
|
end
|
|
225
230
|
|
|
231
|
+
if attributes.key?(:'description')
|
|
232
|
+
self.description = attributes[:'description']
|
|
233
|
+
else
|
|
234
|
+
self.description = 'default_metadata'
|
|
235
|
+
end
|
|
236
|
+
|
|
226
237
|
if attributes.key?(:'json')
|
|
227
238
|
self.json = attributes[:'json']
|
|
228
239
|
end
|
|
@@ -385,6 +396,7 @@ module Akeyless
|
|
|
385
396
|
add_tag == o.add_tag &&
|
|
386
397
|
cert_file_data == o.cert_file_data &&
|
|
387
398
|
delete_protection == o.delete_protection &&
|
|
399
|
+
description == o.description &&
|
|
388
400
|
json == o.json &&
|
|
389
401
|
name == o.name &&
|
|
390
402
|
new_metadata == o.new_metadata &&
|
|
@@ -427,7 +439,7 @@ module Akeyless
|
|
|
427
439
|
# Calculates hash code according to all attributes.
|
|
428
440
|
# @return [Integer] Hash code
|
|
429
441
|
def hash
|
|
430
|
-
[accessibility, add_tag, cert_file_data, delete_protection, json, name, new_metadata, new_name, rm_tag, 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_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
|
|
442
|
+
[accessibility, add_tag, cert_file_data, delete_protection, description, json, name, new_metadata, new_name, rm_tag, 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_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
|
|
431
443
|
end
|
|
432
444
|
|
|
433
445
|
# Builds the object from hash
|
|
@@ -39,6 +39,9 @@ module Akeyless
|
|
|
39
39
|
# A comma-separated list of the country that will be set in the issued certificate
|
|
40
40
|
attr_accessor :country
|
|
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 the locality 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
|
|
@@ -107,6 +110,7 @@ module Akeyless
|
|
|
107
110
|
:'client_flag' => :'client-flag',
|
|
108
111
|
:'code_signing_flag' => :'code-signing-flag',
|
|
109
112
|
:'country' => :'country',
|
|
113
|
+
:'description' => :'description',
|
|
110
114
|
:'json' => :'json',
|
|
111
115
|
:'key_usage' => :'key-usage',
|
|
112
116
|
:'locality' => :'locality',
|
|
@@ -145,6 +149,7 @@ module Akeyless
|
|
|
145
149
|
:'client_flag' => :'Boolean',
|
|
146
150
|
:'code_signing_flag' => :'Boolean',
|
|
147
151
|
:'country' => :'String',
|
|
152
|
+
:'description' => :'String',
|
|
148
153
|
:'json' => :'Boolean',
|
|
149
154
|
:'key_usage' => :'String',
|
|
150
155
|
:'locality' => :'String',
|
|
@@ -222,6 +227,10 @@ module Akeyless
|
|
|
222
227
|
self.country = attributes[:'country']
|
|
223
228
|
end
|
|
224
229
|
|
|
230
|
+
if attributes.key?(:'description')
|
|
231
|
+
self.description = attributes[:'description']
|
|
232
|
+
end
|
|
233
|
+
|
|
225
234
|
if attributes.key?(:'json')
|
|
226
235
|
self.json = attributes[:'json']
|
|
227
236
|
end
|
|
@@ -344,6 +353,7 @@ module Akeyless
|
|
|
344
353
|
client_flag == o.client_flag &&
|
|
345
354
|
code_signing_flag == o.code_signing_flag &&
|
|
346
355
|
country == o.country &&
|
|
356
|
+
description == o.description &&
|
|
347
357
|
json == o.json &&
|
|
348
358
|
key_usage == o.key_usage &&
|
|
349
359
|
locality == o.locality &&
|
|
@@ -374,7 +384,7 @@ module Akeyless
|
|
|
374
384
|
# Calculates hash code according to all attributes.
|
|
375
385
|
# @return [Integer] Hash code
|
|
376
386
|
def hash
|
|
377
|
-
[add_tag, allow_any_name, allow_subdomains, allowed_domains, allowed_uri_sans, client_flag, code_signing_flag, country, json, key_usage, locality, metadata, name, new_name, not_enforce_hostnames, not_require_cn, organizational_units, organizations, postal_code, province, rm_tag, server_flag, signer_key_name, street_address, token, ttl, uid_token].hash
|
|
387
|
+
[add_tag, allow_any_name, allow_subdomains, allowed_domains, allowed_uri_sans, client_flag, code_signing_flag, country, description, json, key_usage, locality, metadata, name, new_name, not_enforce_hostnames, not_require_cn, organizational_units, organizations, postal_code, province, rm_tag, server_flag, signer_key_name, street_address, token, ttl, uid_token].hash
|
|
378
388
|
end
|
|
379
389
|
|
|
380
390
|
# Builds the object from hash
|