akeyless 5.0.38 → 5.0.39
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 +13 -2
- data/docs/AssocTargetItem.md +5 -1
- data/docs/ClientEvent.md +26 -0
- data/docs/ClientEventOutput.md +18 -0
- data/docs/Connect.md +2 -0
- data/docs/CreateEventForwarder.md +1 -1
- data/docs/CreateLdapTarget.md +3 -1
- data/docs/CreatePKICertIssuer.md +6 -0
- data/docs/DSProducerDetails.md +2 -0
- data/docs/DigiCertTargetDetails.md +8 -0
- data/docs/EventForwarderCreateEmail.md +1 -1
- data/docs/EventForwarderCreateServiceNow.md +1 -1
- data/docs/EventForwarderCreateSlack.md +1 -1
- data/docs/EventForwarderCreateTeams.md +1 -1
- data/docs/EventForwarderCreateWebhook.md +1 -1
- data/docs/EventForwarderUpdateEmail.md +1 -1
- data/docs/EventForwarderUpdateServiceNow.md +1 -1
- data/docs/EventForwarderUpdateSlack.md +1 -1
- data/docs/EventForwarderUpdateTeams.md +1 -1
- data/docs/EventForwarderUpdateWebhook.md +1 -1
- data/docs/GatewayCreateAllowedAccess.md +1 -1
- data/docs/GatewayUpdateAllowedAccess.md +1 -1
- data/docs/GenerateIntermediateCA.md +48 -0
- data/docs/GenerateIntermediateCAOutput.md +26 -0
- data/docs/GoogleTrustTargetDetails.md +8 -0
- data/docs/InjectorCertificateEvent.md +28 -0
- data/docs/Item.md +2 -0
- data/docs/LdapTargetDetails.md +3 -1
- data/docs/LetsEncryptTargetDetails.md +8 -0
- data/docs/ListSRASessions.md +2 -0
- data/docs/ListSraSessionsOutput.md +3 -3
- data/docs/LockItem.md +1 -1
- data/docs/MigrationGeneral.md +6 -0
- data/docs/PKICertificateIssueDetails.md +4 -0
- data/docs/RequestAccess.md +2 -0
- data/docs/RotatedSecretCreateOkta.md +82 -0
- data/docs/RotatedSecretUpdateOkta.md +84 -0
- data/docs/Target.md +2 -0
- data/docs/TargetCreateDigiCert.md +8 -0
- data/docs/TargetCreateGoogleTrust.md +8 -0
- data/docs/TargetCreateLdap.md +3 -1
- data/docs/TargetCreateLetsEncrypt.md +8 -0
- data/docs/TargetUpdateDigiCert.md +8 -0
- data/docs/TargetUpdateGoogleTrust.md +8 -0
- data/docs/TargetUpdateLdap.md +3 -1
- data/docs/TargetUpdateLetsEncrypt.md +8 -0
- data/docs/UpdateLdapTarget.md +3 -1
- data/docs/UpdatePKICertIssuer.md +6 -0
- data/docs/V2Api.md +257 -3
- data/lib/akeyless/api/v2_api.rb +260 -0
- data/lib/akeyless/models/assoc_target_item.rb +24 -2
- data/lib/akeyless/models/client_event.rb +256 -0
- data/lib/akeyless/models/client_event_output.rb +214 -0
- data/lib/akeyless/models/connect.rb +11 -1
- data/lib/akeyless/models/create_event_forwarder.rb +1 -1
- data/lib/akeyless/models/create_ldap_target.rb +14 -4
- data/lib/akeyless/models/create_pki_cert_issuer.rb +31 -1
- data/lib/akeyless/models/digi_cert_target_details.rb +43 -1
- data/lib/akeyless/models/ds_producer_details.rb +10 -1
- data/lib/akeyless/models/event_forwarder_create_email.rb +1 -1
- data/lib/akeyless/models/event_forwarder_create_service_now.rb +1 -1
- data/lib/akeyless/models/event_forwarder_create_slack.rb +1 -1
- data/lib/akeyless/models/event_forwarder_create_teams.rb +1 -1
- data/lib/akeyless/models/event_forwarder_create_webhook.rb +1 -1
- data/lib/akeyless/models/event_forwarder_update_email.rb +1 -1
- data/lib/akeyless/models/event_forwarder_update_service_now.rb +1 -1
- data/lib/akeyless/models/event_forwarder_update_slack.rb +1 -1
- data/lib/akeyless/models/event_forwarder_update_teams.rb +1 -1
- data/lib/akeyless/models/event_forwarder_update_webhook.rb +1 -1
- data/lib/akeyless/models/gateway_create_allowed_access.rb +1 -1
- data/lib/akeyless/models/gateway_update_allowed_access.rb +1 -1
- data/lib/akeyless/models/generate_intermediate_ca.rb +379 -0
- data/lib/akeyless/models/generate_intermediate_ca_output.rb +250 -0
- data/lib/akeyless/models/google_trust_target_details.rb +43 -1
- data/lib/akeyless/models/injector_certificate_event.rb +259 -0
- data/lib/akeyless/models/item.rb +10 -1
- data/lib/akeyless/models/ldap_target_details.rb +13 -4
- data/lib/akeyless/models/lets_encrypt_target_details.rb +43 -1
- data/lib/akeyless/models/list_sra_sessions.rb +12 -2
- data/lib/akeyless/models/list_sra_sessions_output.rb +3 -0
- data/lib/akeyless/models/lock_item.rb +1 -1
- data/lib/akeyless/models/migration_general.rb +28 -1
- data/lib/akeyless/models/pki_certificate_issue_details.rb +21 -1
- data/lib/akeyless/models/request_access.rb +11 -1
- data/lib/akeyless/models/rotated_secret_create_okta.rb +556 -0
- data/lib/akeyless/models/rotated_secret_update_okta.rb +563 -0
- data/lib/akeyless/models/target.rb +10 -1
- data/lib/akeyless/models/target_create_digi_cert.rb +43 -1
- data/lib/akeyless/models/target_create_google_trust.rb +43 -1
- data/lib/akeyless/models/target_create_ldap.rb +14 -4
- data/lib/akeyless/models/target_create_lets_encrypt.rb +43 -1
- data/lib/akeyless/models/target_update_digi_cert.rb +43 -1
- data/lib/akeyless/models/target_update_google_trust.rb +43 -1
- data/lib/akeyless/models/target_update_ldap.rb +14 -4
- data/lib/akeyless/models/target_update_lets_encrypt.rb +43 -1
- data/lib/akeyless/models/update_ldap_target.rb +14 -4
- data/lib/akeyless/models/update_pki_cert_issuer.rb +31 -1
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +7 -0
- data/spec/models/client_event_output_spec.rb +36 -0
- data/spec/models/client_event_spec.rb +60 -0
- data/spec/models/generate_intermediate_ca_output_spec.rb +60 -0
- data/spec/models/generate_intermediate_ca_spec.rb +126 -0
- data/spec/models/injector_certificate_event_spec.rb +66 -0
- data/spec/models/rotated_secret_create_okta_spec.rb +228 -0
- data/spec/models/rotated_secret_update_okta_spec.rb +234 -0
- metadata +30 -2
|
@@ -28,11 +28,23 @@ module Akeyless
|
|
|
28
28
|
# ACMEChallengeType defines ACME challenge type for Let's Encrypt
|
|
29
29
|
attr_accessor :challenge_type
|
|
30
30
|
|
|
31
|
+
# A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years.
|
|
32
|
+
attr_accessor :dns_propagation_wait
|
|
33
|
+
|
|
34
|
+
# Custom recursive DNS resolvers (ip:port) for propagation checks.
|
|
35
|
+
attr_accessor :dns_resolvers
|
|
36
|
+
|
|
37
|
+
# Skip authoritative nameserver propagation pre-check.
|
|
38
|
+
attr_accessor :dns_skip_precheck
|
|
39
|
+
|
|
31
40
|
# Name of DNS target (transient field - not stored in DB) Used by CLI to pass DNS target name to SDK for creating target_object_assoc Retrieved from target_object_assoc when reading target Required when ChallengeType is \"dns\"
|
|
32
41
|
attr_accessor :dns_target_name
|
|
33
42
|
|
|
34
43
|
attr_accessor :dns_target_type
|
|
35
44
|
|
|
45
|
+
# A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years.
|
|
46
|
+
attr_accessor :dns_timeout
|
|
47
|
+
|
|
36
48
|
# Cloudflare zone identifier Required when DNSTargetType is Cloudflare
|
|
37
49
|
attr_accessor :dns_zone
|
|
38
50
|
|
|
@@ -64,8 +76,12 @@ module Akeyless
|
|
|
64
76
|
:'account_url' => :'account_url',
|
|
65
77
|
:'acme_environment' => :'acme_environment',
|
|
66
78
|
:'challenge_type' => :'challenge_type',
|
|
79
|
+
:'dns_propagation_wait' => :'dns_propagation_wait',
|
|
80
|
+
:'dns_resolvers' => :'dns_resolvers',
|
|
81
|
+
:'dns_skip_precheck' => :'dns_skip_precheck',
|
|
67
82
|
:'dns_target_name' => :'dns_target_name',
|
|
68
83
|
:'dns_target_type' => :'dns_target_type',
|
|
84
|
+
:'dns_timeout' => :'dns_timeout',
|
|
69
85
|
:'dns_zone' => :'dns_zone',
|
|
70
86
|
:'eab_hmac_key' => :'eab_hmac_key',
|
|
71
87
|
:'eab_key_id' => :'eab_key_id',
|
|
@@ -89,8 +105,12 @@ module Akeyless
|
|
|
89
105
|
:'account_url' => :'String',
|
|
90
106
|
:'acme_environment' => :'String',
|
|
91
107
|
:'challenge_type' => :'String',
|
|
108
|
+
:'dns_propagation_wait' => :'Integer',
|
|
109
|
+
:'dns_resolvers' => :'Array<String>',
|
|
110
|
+
:'dns_skip_precheck' => :'Boolean',
|
|
92
111
|
:'dns_target_name' => :'String',
|
|
93
112
|
:'dns_target_type' => :'String',
|
|
113
|
+
:'dns_timeout' => :'Integer',
|
|
94
114
|
:'dns_zone' => :'String',
|
|
95
115
|
:'eab_hmac_key' => :'String',
|
|
96
116
|
:'eab_key_id' => :'String',
|
|
@@ -139,6 +159,20 @@ module Akeyless
|
|
|
139
159
|
self.challenge_type = attributes[:'challenge_type']
|
|
140
160
|
end
|
|
141
161
|
|
|
162
|
+
if attributes.key?(:'dns_propagation_wait')
|
|
163
|
+
self.dns_propagation_wait = attributes[:'dns_propagation_wait']
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
if attributes.key?(:'dns_resolvers')
|
|
167
|
+
if (value = attributes[:'dns_resolvers']).is_a?(Array)
|
|
168
|
+
self.dns_resolvers = value
|
|
169
|
+
end
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
if attributes.key?(:'dns_skip_precheck')
|
|
173
|
+
self.dns_skip_precheck = attributes[:'dns_skip_precheck']
|
|
174
|
+
end
|
|
175
|
+
|
|
142
176
|
if attributes.key?(:'dns_target_name')
|
|
143
177
|
self.dns_target_name = attributes[:'dns_target_name']
|
|
144
178
|
end
|
|
@@ -147,6 +181,10 @@ module Akeyless
|
|
|
147
181
|
self.dns_target_type = attributes[:'dns_target_type']
|
|
148
182
|
end
|
|
149
183
|
|
|
184
|
+
if attributes.key?(:'dns_timeout')
|
|
185
|
+
self.dns_timeout = attributes[:'dns_timeout']
|
|
186
|
+
end
|
|
187
|
+
|
|
150
188
|
if attributes.key?(:'dns_zone')
|
|
151
189
|
self.dns_zone = attributes[:'dns_zone']
|
|
152
190
|
end
|
|
@@ -204,8 +242,12 @@ module Akeyless
|
|
|
204
242
|
account_url == o.account_url &&
|
|
205
243
|
acme_environment == o.acme_environment &&
|
|
206
244
|
challenge_type == o.challenge_type &&
|
|
245
|
+
dns_propagation_wait == o.dns_propagation_wait &&
|
|
246
|
+
dns_resolvers == o.dns_resolvers &&
|
|
247
|
+
dns_skip_precheck == o.dns_skip_precheck &&
|
|
207
248
|
dns_target_name == o.dns_target_name &&
|
|
208
249
|
dns_target_type == o.dns_target_type &&
|
|
250
|
+
dns_timeout == o.dns_timeout &&
|
|
209
251
|
dns_zone == o.dns_zone &&
|
|
210
252
|
eab_hmac_key == o.eab_hmac_key &&
|
|
211
253
|
eab_key_id == o.eab_key_id &&
|
|
@@ -225,7 +267,7 @@ module Akeyless
|
|
|
225
267
|
# Calculates hash code according to all attributes.
|
|
226
268
|
# @return [Integer] Hash code
|
|
227
269
|
def hash
|
|
228
|
-
[account_key_pem, account_url, acme_environment, challenge_type, dns_target_name, dns_target_type, dns_zone, eab_hmac_key, eab_key_id, email, gcp_project, hosted_zone, resource_group, timeout].hash
|
|
270
|
+
[account_key_pem, account_url, acme_environment, challenge_type, dns_propagation_wait, dns_resolvers, dns_skip_precheck, dns_target_name, dns_target_type, dns_timeout, dns_zone, eab_hmac_key, eab_key_id, email, gcp_project, hosted_zone, resource_group, timeout].hash
|
|
229
271
|
end
|
|
230
272
|
|
|
231
273
|
# Builds the object from hash
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Akeyless API
|
|
3
|
+
|
|
4
|
+
#The purpose of this application is to provide access to Akeyless API.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 3.0
|
|
7
|
+
Contact: support@akeyless.io
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.10.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Akeyless
|
|
17
|
+
class InjectorCertificateEvent
|
|
18
|
+
attr_accessor :fingerprint_sha256
|
|
19
|
+
|
|
20
|
+
attr_accessor :injector_name
|
|
21
|
+
|
|
22
|
+
attr_accessor :injector_namespace
|
|
23
|
+
|
|
24
|
+
attr_accessor :installation_id
|
|
25
|
+
|
|
26
|
+
attr_accessor :not_after
|
|
27
|
+
|
|
28
|
+
attr_accessor :threshold
|
|
29
|
+
|
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
|
+
def self.attribute_map
|
|
32
|
+
{
|
|
33
|
+
:'fingerprint_sha256' => :'fingerprint-sha256',
|
|
34
|
+
:'injector_name' => :'injector-name',
|
|
35
|
+
:'injector_namespace' => :'injector-namespace',
|
|
36
|
+
:'installation_id' => :'installation-id',
|
|
37
|
+
:'not_after' => :'not-after',
|
|
38
|
+
:'threshold' => :'threshold'
|
|
39
|
+
}
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Returns all the JSON keys this model knows about
|
|
43
|
+
def self.acceptable_attributes
|
|
44
|
+
attribute_map.values
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Attribute type mapping.
|
|
48
|
+
def self.openapi_types
|
|
49
|
+
{
|
|
50
|
+
:'fingerprint_sha256' => :'String',
|
|
51
|
+
:'injector_name' => :'String',
|
|
52
|
+
:'injector_namespace' => :'String',
|
|
53
|
+
:'installation_id' => :'String',
|
|
54
|
+
:'not_after' => :'Time',
|
|
55
|
+
:'threshold' => :'String'
|
|
56
|
+
}
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# List of attributes with nullable: true
|
|
60
|
+
def self.openapi_nullable
|
|
61
|
+
Set.new([
|
|
62
|
+
])
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# Initializes the object
|
|
66
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
67
|
+
def initialize(attributes = {})
|
|
68
|
+
if (!attributes.is_a?(Hash))
|
|
69
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::InjectorCertificateEvent` initialize method"
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
73
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
74
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
75
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::InjectorCertificateEvent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
76
|
+
end
|
|
77
|
+
h[k.to_sym] = v
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
if attributes.key?(:'fingerprint_sha256')
|
|
81
|
+
self.fingerprint_sha256 = attributes[:'fingerprint_sha256']
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
if attributes.key?(:'injector_name')
|
|
85
|
+
self.injector_name = attributes[:'injector_name']
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
if attributes.key?(:'injector_namespace')
|
|
89
|
+
self.injector_namespace = attributes[:'injector_namespace']
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
if attributes.key?(:'installation_id')
|
|
93
|
+
self.installation_id = attributes[:'installation_id']
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'not_after')
|
|
97
|
+
self.not_after = attributes[:'not_after']
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if attributes.key?(:'threshold')
|
|
101
|
+
self.threshold = attributes[:'threshold']
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
106
|
+
# @return Array for valid properties with the reasons
|
|
107
|
+
def list_invalid_properties
|
|
108
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
109
|
+
invalid_properties = Array.new
|
|
110
|
+
invalid_properties
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# Check to see if the all the properties in the model are valid
|
|
114
|
+
# @return true if the model is valid
|
|
115
|
+
def valid?
|
|
116
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
117
|
+
true
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# Checks equality by comparing each attribute.
|
|
121
|
+
# @param [Object] Object to be compared
|
|
122
|
+
def ==(o)
|
|
123
|
+
return true if self.equal?(o)
|
|
124
|
+
self.class == o.class &&
|
|
125
|
+
fingerprint_sha256 == o.fingerprint_sha256 &&
|
|
126
|
+
injector_name == o.injector_name &&
|
|
127
|
+
injector_namespace == o.injector_namespace &&
|
|
128
|
+
installation_id == o.installation_id &&
|
|
129
|
+
not_after == o.not_after &&
|
|
130
|
+
threshold == o.threshold
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# @see the `==` method
|
|
134
|
+
# @param [Object] Object to be compared
|
|
135
|
+
def eql?(o)
|
|
136
|
+
self == o
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# Calculates hash code according to all attributes.
|
|
140
|
+
# @return [Integer] Hash code
|
|
141
|
+
def hash
|
|
142
|
+
[fingerprint_sha256, injector_name, injector_namespace, installation_id, not_after, threshold].hash
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
# Builds the object from hash
|
|
146
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
147
|
+
# @return [Object] Returns the model itself
|
|
148
|
+
def self.build_from_hash(attributes)
|
|
149
|
+
return nil unless attributes.is_a?(Hash)
|
|
150
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
151
|
+
transformed_hash = {}
|
|
152
|
+
openapi_types.each_pair do |key, type|
|
|
153
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
154
|
+
transformed_hash["#{key}"] = nil
|
|
155
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
156
|
+
# check to ensure the input is an array given that the attribute
|
|
157
|
+
# is documented as an array but the input is not
|
|
158
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
159
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
160
|
+
end
|
|
161
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
162
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
163
|
+
end
|
|
164
|
+
end
|
|
165
|
+
new(transformed_hash)
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Deserializes the data based on type
|
|
169
|
+
# @param string type Data type
|
|
170
|
+
# @param string value Value to be deserialized
|
|
171
|
+
# @return [Object] Deserialized data
|
|
172
|
+
def self._deserialize(type, value)
|
|
173
|
+
case type.to_sym
|
|
174
|
+
when :Time
|
|
175
|
+
Time.parse(value)
|
|
176
|
+
when :Date
|
|
177
|
+
Date.parse(value)
|
|
178
|
+
when :String
|
|
179
|
+
value.to_s
|
|
180
|
+
when :Integer
|
|
181
|
+
value.to_i
|
|
182
|
+
when :Float
|
|
183
|
+
value.to_f
|
|
184
|
+
when :Boolean
|
|
185
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
186
|
+
true
|
|
187
|
+
else
|
|
188
|
+
false
|
|
189
|
+
end
|
|
190
|
+
when :Object
|
|
191
|
+
# generic object (usually a Hash), return directly
|
|
192
|
+
value
|
|
193
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
194
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
195
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
196
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
197
|
+
k_type = Regexp.last_match[:k_type]
|
|
198
|
+
v_type = Regexp.last_match[:v_type]
|
|
199
|
+
{}.tap do |hash|
|
|
200
|
+
value.each do |k, v|
|
|
201
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
202
|
+
end
|
|
203
|
+
end
|
|
204
|
+
else # model
|
|
205
|
+
# models (e.g. Pet) or oneOf
|
|
206
|
+
klass = Akeyless.const_get(type)
|
|
207
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
208
|
+
end
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
# Returns the string representation of the object
|
|
212
|
+
# @return [String] String presentation of the object
|
|
213
|
+
def to_s
|
|
214
|
+
to_hash.to_s
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
218
|
+
# @return [Hash] Returns the object in the form of hash
|
|
219
|
+
def to_body
|
|
220
|
+
to_hash
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
# Returns the object in the form of hash
|
|
224
|
+
# @return [Hash] Returns the object in the form of hash
|
|
225
|
+
def to_hash
|
|
226
|
+
hash = {}
|
|
227
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
228
|
+
value = self.send(attr)
|
|
229
|
+
if value.nil?
|
|
230
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
231
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
hash[param] = _to_hash(value)
|
|
235
|
+
end
|
|
236
|
+
hash
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
# Outputs non-array value in the form of hash
|
|
240
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
241
|
+
# @param [Object] value Any valid value
|
|
242
|
+
# @return [Hash] Returns the value in the form of hash
|
|
243
|
+
def _to_hash(value)
|
|
244
|
+
if value.is_a?(Array)
|
|
245
|
+
value.compact.map { |v| _to_hash(v) }
|
|
246
|
+
elsif value.is_a?(Hash)
|
|
247
|
+
{}.tap do |hash|
|
|
248
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
249
|
+
end
|
|
250
|
+
elsif value.respond_to? :to_hash
|
|
251
|
+
value.to_hash
|
|
252
|
+
else
|
|
253
|
+
value
|
|
254
|
+
end
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
end
|
data/lib/akeyless/models/item.rb
CHANGED
|
@@ -78,6 +78,8 @@ module Akeyless
|
|
|
78
78
|
|
|
79
79
|
attr_accessor :item_versions
|
|
80
80
|
|
|
81
|
+
attr_accessor :last_access_request_status
|
|
82
|
+
|
|
81
83
|
attr_accessor :last_rotation_date
|
|
82
84
|
|
|
83
85
|
attr_accessor :last_version
|
|
@@ -141,6 +143,7 @@ module Akeyless
|
|
|
141
143
|
:'item_targets_assoc' => :'item_targets_assoc',
|
|
142
144
|
:'item_type' => :'item_type',
|
|
143
145
|
:'item_versions' => :'item_versions',
|
|
146
|
+
:'last_access_request_status' => :'last_access_request_status',
|
|
144
147
|
:'last_rotation_date' => :'last_rotation_date',
|
|
145
148
|
:'last_version' => :'last_version',
|
|
146
149
|
:'linked_details' => :'linked_details',
|
|
@@ -197,6 +200,7 @@ module Akeyless
|
|
|
197
200
|
:'item_targets_assoc' => :'Array<ItemTargetAssociation>',
|
|
198
201
|
:'item_type' => :'String',
|
|
199
202
|
:'item_versions' => :'Array<ItemVersion>',
|
|
203
|
+
:'last_access_request_status' => :'String',
|
|
200
204
|
:'last_rotation_date' => :'Time',
|
|
201
205
|
:'last_version' => :'Integer',
|
|
202
206
|
:'linked_details' => :'LinkedDetails',
|
|
@@ -371,6 +375,10 @@ module Akeyless
|
|
|
371
375
|
end
|
|
372
376
|
end
|
|
373
377
|
|
|
378
|
+
if attributes.key?(:'last_access_request_status')
|
|
379
|
+
self.last_access_request_status = attributes[:'last_access_request_status']
|
|
380
|
+
end
|
|
381
|
+
|
|
374
382
|
if attributes.key?(:'last_rotation_date')
|
|
375
383
|
self.last_rotation_date = attributes[:'last_rotation_date']
|
|
376
384
|
end
|
|
@@ -483,6 +491,7 @@ module Akeyless
|
|
|
483
491
|
item_targets_assoc == o.item_targets_assoc &&
|
|
484
492
|
item_type == o.item_type &&
|
|
485
493
|
item_versions == o.item_versions &&
|
|
494
|
+
last_access_request_status == o.last_access_request_status &&
|
|
486
495
|
last_rotation_date == o.last_rotation_date &&
|
|
487
496
|
last_version == o.last_version &&
|
|
488
497
|
linked_details == o.linked_details &&
|
|
@@ -508,7 +517,7 @@ module Akeyless
|
|
|
508
517
|
# Calculates hash code according to all attributes.
|
|
509
518
|
# @return [Integer] Hash code
|
|
510
519
|
def hash
|
|
511
|
-
[access_date, access_date_display, access_request_status, auto_rotate, bastion_details, cert_issuer_signer_key_name, certificate_issue_details, certificates, client_permissions, creation_date, customer_fragment_id, delete_protection, deletion_date, display_id, file_download, gateway_details, is_access_request_enabled, is_enabled, item_accessibility, item_custom_fields_details, item_general_info, item_id, item_metadata, item_name, item_size, item_state, item_sub_type, item_tags, item_targets_assoc, item_type, item_versions, last_rotation_date, last_version, linked_details, locking_info, modification_date, next_rotation_date, protection_key_name, protection_key_type, public_value, rotation_interval, shared_by, target_versions, usc_sync_associated_items, with_customer_fragment].hash
|
|
520
|
+
[access_date, access_date_display, access_request_status, auto_rotate, bastion_details, cert_issuer_signer_key_name, certificate_issue_details, certificates, client_permissions, creation_date, customer_fragment_id, delete_protection, deletion_date, display_id, file_download, gateway_details, is_access_request_enabled, is_enabled, item_accessibility, item_custom_fields_details, item_general_info, item_id, item_metadata, item_name, item_size, item_state, item_sub_type, item_tags, item_targets_assoc, item_type, item_versions, last_access_request_status, last_rotation_date, last_version, linked_details, locking_info, modification_date, next_rotation_date, protection_key_name, protection_key_type, public_value, rotation_interval, shared_by, target_versions, usc_sync_associated_items, with_customer_fragment].hash
|
|
512
521
|
end
|
|
513
522
|
|
|
514
523
|
# Builds the object from hash
|
|
@@ -30,6 +30,8 @@ module Akeyless
|
|
|
30
30
|
|
|
31
31
|
attr_accessor :ldap_url
|
|
32
32
|
|
|
33
|
+
attr_accessor :ldap_username
|
|
34
|
+
|
|
33
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
36
|
def self.attribute_map
|
|
35
37
|
{
|
|
@@ -39,7 +41,8 @@ module Akeyless
|
|
|
39
41
|
:'ldap_bind_password' => :'ldap_bind_password',
|
|
40
42
|
:'ldap_certificate' => :'ldap_certificate',
|
|
41
43
|
:'ldap_token_expiration' => :'ldap_token_expiration',
|
|
42
|
-
:'ldap_url' => :'ldap_url'
|
|
44
|
+
:'ldap_url' => :'ldap_url',
|
|
45
|
+
:'ldap_username' => :'ldap_username'
|
|
43
46
|
}
|
|
44
47
|
end
|
|
45
48
|
|
|
@@ -57,7 +60,8 @@ module Akeyless
|
|
|
57
60
|
:'ldap_bind_password' => :'String',
|
|
58
61
|
:'ldap_certificate' => :'String',
|
|
59
62
|
:'ldap_token_expiration' => :'String',
|
|
60
|
-
:'ldap_url' => :'String'
|
|
63
|
+
:'ldap_url' => :'String',
|
|
64
|
+
:'ldap_username' => :'String'
|
|
61
65
|
}
|
|
62
66
|
end
|
|
63
67
|
|
|
@@ -109,6 +113,10 @@ module Akeyless
|
|
|
109
113
|
if attributes.key?(:'ldap_url')
|
|
110
114
|
self.ldap_url = attributes[:'ldap_url']
|
|
111
115
|
end
|
|
116
|
+
|
|
117
|
+
if attributes.key?(:'ldap_username')
|
|
118
|
+
self.ldap_username = attributes[:'ldap_username']
|
|
119
|
+
end
|
|
112
120
|
end
|
|
113
121
|
|
|
114
122
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -137,7 +145,8 @@ module Akeyless
|
|
|
137
145
|
ldap_bind_password == o.ldap_bind_password &&
|
|
138
146
|
ldap_certificate == o.ldap_certificate &&
|
|
139
147
|
ldap_token_expiration == o.ldap_token_expiration &&
|
|
140
|
-
ldap_url == o.ldap_url
|
|
148
|
+
ldap_url == o.ldap_url &&
|
|
149
|
+
ldap_username == o.ldap_username
|
|
141
150
|
end
|
|
142
151
|
|
|
143
152
|
# @see the `==` method
|
|
@@ -149,7 +158,7 @@ module Akeyless
|
|
|
149
158
|
# Calculates hash code according to all attributes.
|
|
150
159
|
# @return [Integer] Hash code
|
|
151
160
|
def hash
|
|
152
|
-
[implementation_type, ldap_audience, ldap_bind_dn, ldap_bind_password, ldap_certificate, ldap_token_expiration, ldap_url].hash
|
|
161
|
+
[implementation_type, ldap_audience, ldap_bind_dn, ldap_bind_password, ldap_certificate, ldap_token_expiration, ldap_url, ldap_username].hash
|
|
153
162
|
end
|
|
154
163
|
|
|
155
164
|
# Builds the object from hash
|
|
@@ -28,11 +28,23 @@ module Akeyless
|
|
|
28
28
|
# ACMEChallengeType defines ACME challenge type for Let's Encrypt
|
|
29
29
|
attr_accessor :challenge_type
|
|
30
30
|
|
|
31
|
+
# A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years.
|
|
32
|
+
attr_accessor :dns_propagation_wait
|
|
33
|
+
|
|
34
|
+
# Custom recursive DNS resolvers (ip:port) for propagation checks.
|
|
35
|
+
attr_accessor :dns_resolvers
|
|
36
|
+
|
|
37
|
+
# Skip authoritative nameserver propagation pre-check.
|
|
38
|
+
attr_accessor :dns_skip_precheck
|
|
39
|
+
|
|
31
40
|
# Name of DNS target (transient field - not stored in DB) Used by CLI to pass DNS target name to SDK for creating target_object_assoc Retrieved from target_object_assoc when reading target Required when ChallengeType is \"dns\"
|
|
32
41
|
attr_accessor :dns_target_name
|
|
33
42
|
|
|
34
43
|
attr_accessor :dns_target_type
|
|
35
44
|
|
|
45
|
+
# A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years.
|
|
46
|
+
attr_accessor :dns_timeout
|
|
47
|
+
|
|
36
48
|
# Cloudflare zone identifier Required when DNSTargetType is Cloudflare
|
|
37
49
|
attr_accessor :dns_zone
|
|
38
50
|
|
|
@@ -58,8 +70,12 @@ module Akeyless
|
|
|
58
70
|
:'account_url' => :'account_url',
|
|
59
71
|
:'acme_environment' => :'acme_environment',
|
|
60
72
|
:'challenge_type' => :'challenge_type',
|
|
73
|
+
:'dns_propagation_wait' => :'dns_propagation_wait',
|
|
74
|
+
:'dns_resolvers' => :'dns_resolvers',
|
|
75
|
+
:'dns_skip_precheck' => :'dns_skip_precheck',
|
|
61
76
|
:'dns_target_name' => :'dns_target_name',
|
|
62
77
|
:'dns_target_type' => :'dns_target_type',
|
|
78
|
+
:'dns_timeout' => :'dns_timeout',
|
|
63
79
|
:'dns_zone' => :'dns_zone',
|
|
64
80
|
:'email' => :'email',
|
|
65
81
|
:'gcp_project' => :'gcp_project',
|
|
@@ -81,8 +97,12 @@ module Akeyless
|
|
|
81
97
|
:'account_url' => :'String',
|
|
82
98
|
:'acme_environment' => :'String',
|
|
83
99
|
:'challenge_type' => :'String',
|
|
100
|
+
:'dns_propagation_wait' => :'Integer',
|
|
101
|
+
:'dns_resolvers' => :'Array<String>',
|
|
102
|
+
:'dns_skip_precheck' => :'Boolean',
|
|
84
103
|
:'dns_target_name' => :'String',
|
|
85
104
|
:'dns_target_type' => :'String',
|
|
105
|
+
:'dns_timeout' => :'Integer',
|
|
86
106
|
:'dns_zone' => :'String',
|
|
87
107
|
:'email' => :'String',
|
|
88
108
|
:'gcp_project' => :'String',
|
|
@@ -129,6 +149,20 @@ module Akeyless
|
|
|
129
149
|
self.challenge_type = attributes[:'challenge_type']
|
|
130
150
|
end
|
|
131
151
|
|
|
152
|
+
if attributes.key?(:'dns_propagation_wait')
|
|
153
|
+
self.dns_propagation_wait = attributes[:'dns_propagation_wait']
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
if attributes.key?(:'dns_resolvers')
|
|
157
|
+
if (value = attributes[:'dns_resolvers']).is_a?(Array)
|
|
158
|
+
self.dns_resolvers = value
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
if attributes.key?(:'dns_skip_precheck')
|
|
163
|
+
self.dns_skip_precheck = attributes[:'dns_skip_precheck']
|
|
164
|
+
end
|
|
165
|
+
|
|
132
166
|
if attributes.key?(:'dns_target_name')
|
|
133
167
|
self.dns_target_name = attributes[:'dns_target_name']
|
|
134
168
|
end
|
|
@@ -137,6 +171,10 @@ module Akeyless
|
|
|
137
171
|
self.dns_target_type = attributes[:'dns_target_type']
|
|
138
172
|
end
|
|
139
173
|
|
|
174
|
+
if attributes.key?(:'dns_timeout')
|
|
175
|
+
self.dns_timeout = attributes[:'dns_timeout']
|
|
176
|
+
end
|
|
177
|
+
|
|
140
178
|
if attributes.key?(:'dns_zone')
|
|
141
179
|
self.dns_zone = attributes[:'dns_zone']
|
|
142
180
|
end
|
|
@@ -186,8 +224,12 @@ module Akeyless
|
|
|
186
224
|
account_url == o.account_url &&
|
|
187
225
|
acme_environment == o.acme_environment &&
|
|
188
226
|
challenge_type == o.challenge_type &&
|
|
227
|
+
dns_propagation_wait == o.dns_propagation_wait &&
|
|
228
|
+
dns_resolvers == o.dns_resolvers &&
|
|
229
|
+
dns_skip_precheck == o.dns_skip_precheck &&
|
|
189
230
|
dns_target_name == o.dns_target_name &&
|
|
190
231
|
dns_target_type == o.dns_target_type &&
|
|
232
|
+
dns_timeout == o.dns_timeout &&
|
|
191
233
|
dns_zone == o.dns_zone &&
|
|
192
234
|
email == o.email &&
|
|
193
235
|
gcp_project == o.gcp_project &&
|
|
@@ -205,7 +247,7 @@ module Akeyless
|
|
|
205
247
|
# Calculates hash code according to all attributes.
|
|
206
248
|
# @return [Integer] Hash code
|
|
207
249
|
def hash
|
|
208
|
-
[account_key_pem, account_url, acme_environment, challenge_type, dns_target_name, dns_target_type, dns_zone, email, gcp_project, hosted_zone, resource_group, timeout].hash
|
|
250
|
+
[account_key_pem, account_url, acme_environment, challenge_type, dns_propagation_wait, dns_resolvers, dns_skip_precheck, dns_target_name, dns_target_type, dns_timeout, dns_zone, email, gcp_project, hosted_zone, resource_group, timeout].hash
|
|
209
251
|
end
|
|
210
252
|
|
|
211
253
|
# Builds the object from hash
|
|
@@ -14,11 +14,14 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Akeyless
|
|
17
|
-
# listSRASessions is a command that returns sra sessions
|
|
17
|
+
# listSRASessions is a command that returns the sra sessions the caller is entitled to see
|
|
18
18
|
class ListSRASessions
|
|
19
19
|
# Set output format to JSON
|
|
20
20
|
attr_accessor :json
|
|
21
21
|
|
|
22
|
+
# Next page reference
|
|
23
|
+
attr_accessor :pagination_token
|
|
24
|
+
|
|
22
25
|
# session resource type. In case it is empty, all resources type will be returned. options: [mysql, k8s, ssh, mongodb, mssql, postgres, aws, eks, gke, rdp]
|
|
23
26
|
attr_accessor :resource_type
|
|
24
27
|
|
|
@@ -35,6 +38,7 @@ module Akeyless
|
|
|
35
38
|
def self.attribute_map
|
|
36
39
|
{
|
|
37
40
|
:'json' => :'json',
|
|
41
|
+
:'pagination_token' => :'pagination-token',
|
|
38
42
|
:'resource_type' => :'resource-type',
|
|
39
43
|
:'status_type' => :'status-type',
|
|
40
44
|
:'token' => :'token',
|
|
@@ -51,6 +55,7 @@ module Akeyless
|
|
|
51
55
|
def self.openapi_types
|
|
52
56
|
{
|
|
53
57
|
:'json' => :'Boolean',
|
|
58
|
+
:'pagination_token' => :'String',
|
|
54
59
|
:'resource_type' => :'Array<String>',
|
|
55
60
|
:'status_type' => :'Array<String>',
|
|
56
61
|
:'token' => :'String',
|
|
@@ -85,6 +90,10 @@ module Akeyless
|
|
|
85
90
|
self.json = false
|
|
86
91
|
end
|
|
87
92
|
|
|
93
|
+
if attributes.key?(:'pagination_token')
|
|
94
|
+
self.pagination_token = attributes[:'pagination_token']
|
|
95
|
+
end
|
|
96
|
+
|
|
88
97
|
if attributes.key?(:'resource_type')
|
|
89
98
|
if (value = attributes[:'resource_type']).is_a?(Array)
|
|
90
99
|
self.resource_type = value
|
|
@@ -127,6 +136,7 @@ module Akeyless
|
|
|
127
136
|
return true if self.equal?(o)
|
|
128
137
|
self.class == o.class &&
|
|
129
138
|
json == o.json &&
|
|
139
|
+
pagination_token == o.pagination_token &&
|
|
130
140
|
resource_type == o.resource_type &&
|
|
131
141
|
status_type == o.status_type &&
|
|
132
142
|
token == o.token &&
|
|
@@ -142,7 +152,7 @@ module Akeyless
|
|
|
142
152
|
# Calculates hash code according to all attributes.
|
|
143
153
|
# @return [Integer] Hash code
|
|
144
154
|
def hash
|
|
145
|
-
[json, resource_type, status_type, token, uid_token].hash
|
|
155
|
+
[json, pagination_token, resource_type, status_type, token, uid_token].hash
|
|
146
156
|
end
|
|
147
157
|
|
|
148
158
|
# Builds the object from hash
|
|
@@ -15,10 +15,13 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Akeyless
|
|
17
17
|
class ListSraSessionsOutput
|
|
18
|
+
# Gateways whose sessions the caller may see in full. Omitted when the request asks for own sessions only, and when it carries a pagination token
|
|
18
19
|
attr_accessor :allowed_gateways
|
|
19
20
|
|
|
21
|
+
# Cursor for the following page, sent back as the pagination token. Empty when the result set is exhausted, so stop when it is empty rather than waiting for the field to disappear
|
|
20
22
|
attr_accessor :next_page
|
|
21
23
|
|
|
24
|
+
# The requested page of sessions, newest first by start time then session id
|
|
22
25
|
attr_accessor :sessions
|
|
23
26
|
|
|
24
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|