akeyless 3.3.11 → 3.3.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -1
- data/docs/AccessPermissionAssignment.md +20 -0
- data/docs/AuthMethodRoleAssociation.md +2 -0
- data/docs/CreateAuthMethodEmail.md +36 -0
- data/docs/CreateAuthMethodEmailOutput.md +18 -0
- data/docs/CreatePKICertIssuer.md +2 -0
- data/docs/EsmDeleteSecretOutput.md +18 -0
- data/docs/EsmGetSecretOutput.md +2 -0
- data/docs/EsmUpdateSecretOutput.md +2 -0
- data/docs/GoogleChronicleForwardingConfig.md +24 -0
- data/docs/ItemGeneralInfo.md +2 -0
- data/docs/LogForwardingConfigPart.md +2 -0
- data/docs/OidcClientInfo.md +34 -0
- data/docs/UpdatePKICertIssuer.md +2 -0
- data/docs/V2Api.md +319 -4
- data/lib/akeyless/api/v2_api.rb +323 -3
- data/lib/akeyless/models/access_permission_assignment.rb +230 -0
- data/lib/akeyless/models/auth_method_role_association.rb +10 -1
- data/lib/akeyless/models/create_auth_method_email.rb +331 -0
- data/lib/akeyless/models/create_auth_method_email_output.rb +219 -0
- data/lib/akeyless/models/create_pki_cert_issuer.rb +11 -1
- data/lib/akeyless/models/esm_delete_secret_output.rb +219 -0
- data/lib/akeyless/models/esm_get_secret_output.rb +10 -1
- data/lib/akeyless/models/esm_update_secret_output.rb +10 -1
- data/lib/akeyless/models/google_chronicle_forwarding_config.rb +246 -0
- data/lib/akeyless/models/item_general_info.rb +10 -1
- data/lib/akeyless/models/log_forwarding_config_part.rb +10 -1
- data/lib/akeyless/models/oidc_client_info.rb +305 -0
- data/lib/akeyless/models/update_pki_cert_issuer.rb +11 -1
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +6 -0
- data/spec/models/access_permission_assignment_spec.rb +40 -0
- data/spec/models/create_auth_method_email_output_spec.rb +34 -0
- data/spec/models/create_auth_method_email_spec.rb +88 -0
- data/spec/models/esm_delete_secret_output_spec.rb +34 -0
- data/spec/models/google_chronicle_forwarding_config_spec.rb +52 -0
- data/spec/models/oidc_client_info_spec.rb +82 -0
- metadata +649 -625
@@ -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: 7.0.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Akeyless
|
17
|
+
class EsmDeleteSecretOutput
|
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::EsmDeleteSecretOutput` 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::EsmDeleteSecretOutput`. 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
|
@@ -19,6 +19,8 @@ module Akeyless
|
|
19
19
|
|
20
20
|
attr_accessor :metadata
|
21
21
|
|
22
|
+
attr_accessor :name
|
23
|
+
|
22
24
|
attr_accessor :value
|
23
25
|
|
24
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -26,6 +28,7 @@ module Akeyless
|
|
26
28
|
{
|
27
29
|
:'binary_value' => :'binary_value',
|
28
30
|
:'metadata' => :'metadata',
|
31
|
+
:'name' => :'name',
|
29
32
|
:'value' => :'value'
|
30
33
|
}
|
31
34
|
end
|
@@ -40,6 +43,7 @@ module Akeyless
|
|
40
43
|
{
|
41
44
|
:'binary_value' => :'Boolean',
|
42
45
|
:'metadata' => :'Object',
|
46
|
+
:'name' => :'String',
|
43
47
|
:'value' => :'String'
|
44
48
|
}
|
45
49
|
end
|
@@ -73,6 +77,10 @@ module Akeyless
|
|
73
77
|
self.metadata = attributes[:'metadata']
|
74
78
|
end
|
75
79
|
|
80
|
+
if attributes.key?(:'name')
|
81
|
+
self.name = attributes[:'name']
|
82
|
+
end
|
83
|
+
|
76
84
|
if attributes.key?(:'value')
|
77
85
|
self.value = attributes[:'value']
|
78
86
|
end
|
@@ -98,6 +106,7 @@ module Akeyless
|
|
98
106
|
self.class == o.class &&
|
99
107
|
binary_value == o.binary_value &&
|
100
108
|
metadata == o.metadata &&
|
109
|
+
name == o.name &&
|
101
110
|
value == o.value
|
102
111
|
end
|
103
112
|
|
@@ -110,7 +119,7 @@ module Akeyless
|
|
110
119
|
# Calculates hash code according to all attributes.
|
111
120
|
# @return [Integer] Hash code
|
112
121
|
def hash
|
113
|
-
[binary_value, metadata, value].hash
|
122
|
+
[binary_value, metadata, name, value].hash
|
114
123
|
end
|
115
124
|
|
116
125
|
# Builds the object from hash
|
@@ -15,6 +15,8 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Akeyless
|
17
17
|
class EsmUpdateSecretOutput
|
18
|
+
attr_accessor :name
|
19
|
+
|
18
20
|
attr_accessor :secret_id
|
19
21
|
|
20
22
|
attr_accessor :version_id
|
@@ -22,6 +24,7 @@ module Akeyless
|
|
22
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
25
|
def self.attribute_map
|
24
26
|
{
|
27
|
+
:'name' => :'name',
|
25
28
|
:'secret_id' => :'secret_id',
|
26
29
|
:'version_id' => :'version_id'
|
27
30
|
}
|
@@ -35,6 +38,7 @@ module Akeyless
|
|
35
38
|
# Attribute type mapping.
|
36
39
|
def self.openapi_types
|
37
40
|
{
|
41
|
+
:'name' => :'String',
|
38
42
|
:'secret_id' => :'String',
|
39
43
|
:'version_id' => :'String'
|
40
44
|
}
|
@@ -61,6 +65,10 @@ module Akeyless
|
|
61
65
|
h[k.to_sym] = v
|
62
66
|
}
|
63
67
|
|
68
|
+
if attributes.key?(:'name')
|
69
|
+
self.name = attributes[:'name']
|
70
|
+
end
|
71
|
+
|
64
72
|
if attributes.key?(:'secret_id')
|
65
73
|
self.secret_id = attributes[:'secret_id']
|
66
74
|
end
|
@@ -88,6 +96,7 @@ module Akeyless
|
|
88
96
|
def ==(o)
|
89
97
|
return true if self.equal?(o)
|
90
98
|
self.class == o.class &&
|
99
|
+
name == o.name &&
|
91
100
|
secret_id == o.secret_id &&
|
92
101
|
version_id == o.version_id
|
93
102
|
end
|
@@ -101,7 +110,7 @@ module Akeyless
|
|
101
110
|
# Calculates hash code according to all attributes.
|
102
111
|
# @return [Integer] Hash code
|
103
112
|
def hash
|
104
|
-
[secret_id, version_id].hash
|
113
|
+
[name, secret_id, version_id].hash
|
105
114
|
end
|
106
115
|
|
107
116
|
# Builds the object from hash
|
@@ -0,0 +1,246 @@
|
|
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: 7.0.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Akeyless
|
17
|
+
class GoogleChronicleForwardingConfig
|
18
|
+
attr_accessor :customer_id
|
19
|
+
|
20
|
+
attr_accessor :log_type
|
21
|
+
|
22
|
+
attr_accessor :region
|
23
|
+
|
24
|
+
attr_accessor :service_account_key
|
25
|
+
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
27
|
+
def self.attribute_map
|
28
|
+
{
|
29
|
+
:'customer_id' => :'customer_id',
|
30
|
+
:'log_type' => :'log_type',
|
31
|
+
:'region' => :'region',
|
32
|
+
:'service_account_key' => :'service_account_key'
|
33
|
+
}
|
34
|
+
end
|
35
|
+
|
36
|
+
# Returns all the JSON keys this model knows about
|
37
|
+
def self.acceptable_attributes
|
38
|
+
attribute_map.values
|
39
|
+
end
|
40
|
+
|
41
|
+
# Attribute type mapping.
|
42
|
+
def self.openapi_types
|
43
|
+
{
|
44
|
+
:'customer_id' => :'String',
|
45
|
+
:'log_type' => :'String',
|
46
|
+
:'region' => :'String',
|
47
|
+
:'service_account_key' => :'String'
|
48
|
+
}
|
49
|
+
end
|
50
|
+
|
51
|
+
# List of attributes with nullable: true
|
52
|
+
def self.openapi_nullable
|
53
|
+
Set.new([
|
54
|
+
])
|
55
|
+
end
|
56
|
+
|
57
|
+
# Initializes the object
|
58
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
59
|
+
def initialize(attributes = {})
|
60
|
+
if (!attributes.is_a?(Hash))
|
61
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::GoogleChronicleForwardingConfig` initialize method"
|
62
|
+
end
|
63
|
+
|
64
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
66
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
67
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::GoogleChronicleForwardingConfig`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
68
|
+
end
|
69
|
+
h[k.to_sym] = v
|
70
|
+
}
|
71
|
+
|
72
|
+
if attributes.key?(:'customer_id')
|
73
|
+
self.customer_id = attributes[:'customer_id']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.key?(:'log_type')
|
77
|
+
self.log_type = attributes[:'log_type']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes.key?(:'region')
|
81
|
+
self.region = attributes[:'region']
|
82
|
+
end
|
83
|
+
|
84
|
+
if attributes.key?(:'service_account_key')
|
85
|
+
self.service_account_key = attributes[:'service_account_key']
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
90
|
+
# @return Array for valid properties with the reasons
|
91
|
+
def list_invalid_properties
|
92
|
+
invalid_properties = Array.new
|
93
|
+
invalid_properties
|
94
|
+
end
|
95
|
+
|
96
|
+
# Check to see if the all the properties in the model are valid
|
97
|
+
# @return true if the model is valid
|
98
|
+
def valid?
|
99
|
+
true
|
100
|
+
end
|
101
|
+
|
102
|
+
# Checks equality by comparing each attribute.
|
103
|
+
# @param [Object] Object to be compared
|
104
|
+
def ==(o)
|
105
|
+
return true if self.equal?(o)
|
106
|
+
self.class == o.class &&
|
107
|
+
customer_id == o.customer_id &&
|
108
|
+
log_type == o.log_type &&
|
109
|
+
region == o.region &&
|
110
|
+
service_account_key == o.service_account_key
|
111
|
+
end
|
112
|
+
|
113
|
+
# @see the `==` method
|
114
|
+
# @param [Object] Object to be compared
|
115
|
+
def eql?(o)
|
116
|
+
self == o
|
117
|
+
end
|
118
|
+
|
119
|
+
# Calculates hash code according to all attributes.
|
120
|
+
# @return [Integer] Hash code
|
121
|
+
def hash
|
122
|
+
[customer_id, log_type, region, service_account_key].hash
|
123
|
+
end
|
124
|
+
|
125
|
+
# Builds the object from hash
|
126
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
127
|
+
# @return [Object] Returns the model itself
|
128
|
+
def self.build_from_hash(attributes)
|
129
|
+
new.build_from_hash(attributes)
|
130
|
+
end
|
131
|
+
|
132
|
+
# Builds the object from hash
|
133
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
134
|
+
# @return [Object] Returns the model itself
|
135
|
+
def build_from_hash(attributes)
|
136
|
+
return nil unless attributes.is_a?(Hash)
|
137
|
+
attributes = attributes.transform_keys(&:to_sym)
|
138
|
+
self.class.openapi_types.each_pair do |key, type|
|
139
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
140
|
+
self.send("#{key}=", nil)
|
141
|
+
elsif type =~ /\AArray<(.*)>/i
|
142
|
+
# check to ensure the input is an array given that the attribute
|
143
|
+
# is documented as an array but the input is not
|
144
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
145
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
146
|
+
end
|
147
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
148
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
152
|
+
self
|
153
|
+
end
|
154
|
+
|
155
|
+
# Deserializes the data based on type
|
156
|
+
# @param string type Data type
|
157
|
+
# @param string value Value to be deserialized
|
158
|
+
# @return [Object] Deserialized data
|
159
|
+
def _deserialize(type, value)
|
160
|
+
case type.to_sym
|
161
|
+
when :Time
|
162
|
+
Time.parse(value)
|
163
|
+
when :Date
|
164
|
+
Date.parse(value)
|
165
|
+
when :String
|
166
|
+
value.to_s
|
167
|
+
when :Integer
|
168
|
+
value.to_i
|
169
|
+
when :Float
|
170
|
+
value.to_f
|
171
|
+
when :Boolean
|
172
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
173
|
+
true
|
174
|
+
else
|
175
|
+
false
|
176
|
+
end
|
177
|
+
when :Object
|
178
|
+
# generic object (usually a Hash), return directly
|
179
|
+
value
|
180
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
181
|
+
inner_type = Regexp.last_match[:inner_type]
|
182
|
+
value.map { |v| _deserialize(inner_type, v) }
|
183
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
184
|
+
k_type = Regexp.last_match[:k_type]
|
185
|
+
v_type = Regexp.last_match[:v_type]
|
186
|
+
{}.tap do |hash|
|
187
|
+
value.each do |k, v|
|
188
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
189
|
+
end
|
190
|
+
end
|
191
|
+
else # model
|
192
|
+
# models (e.g. Pet) or oneOf
|
193
|
+
klass = Akeyless.const_get(type)
|
194
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
# Returns the string representation of the object
|
199
|
+
# @return [String] String presentation of the object
|
200
|
+
def to_s
|
201
|
+
to_hash.to_s
|
202
|
+
end
|
203
|
+
|
204
|
+
# to_body is an alias to to_hash (backward compatibility)
|
205
|
+
# @return [Hash] Returns the object in the form of hash
|
206
|
+
def to_body
|
207
|
+
to_hash
|
208
|
+
end
|
209
|
+
|
210
|
+
# Returns the object in the form of hash
|
211
|
+
# @return [Hash] Returns the object in the form of hash
|
212
|
+
def to_hash
|
213
|
+
hash = {}
|
214
|
+
self.class.attribute_map.each_pair do |attr, param|
|
215
|
+
value = self.send(attr)
|
216
|
+
if value.nil?
|
217
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
218
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
219
|
+
end
|
220
|
+
|
221
|
+
hash[param] = _to_hash(value)
|
222
|
+
end
|
223
|
+
hash
|
224
|
+
end
|
225
|
+
|
226
|
+
# Outputs non-array value in the form of hash
|
227
|
+
# For object, use to_hash. Otherwise, just return the value
|
228
|
+
# @param [Object] value Any valid value
|
229
|
+
# @return [Hash] Returns the value in the form of hash
|
230
|
+
def _to_hash(value)
|
231
|
+
if value.is_a?(Array)
|
232
|
+
value.compact.map { |v| _to_hash(v) }
|
233
|
+
elsif value.is_a?(Hash)
|
234
|
+
{}.tap do |hash|
|
235
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
236
|
+
end
|
237
|
+
elsif value.respond_to? :to_hash
|
238
|
+
value.to_hash
|
239
|
+
else
|
240
|
+
value
|
241
|
+
end
|
242
|
+
end
|
243
|
+
|
244
|
+
end
|
245
|
+
|
246
|
+
end
|
@@ -31,6 +31,8 @@ module Akeyless
|
|
31
31
|
|
32
32
|
attr_accessor :importer_info
|
33
33
|
|
34
|
+
attr_accessor :oidc_client_info
|
35
|
+
|
34
36
|
attr_accessor :password_policy
|
35
37
|
|
36
38
|
attr_accessor :rotated_secret_details
|
@@ -52,6 +54,7 @@ module Akeyless
|
|
52
54
|
:'display_metadata' => :'display_metadata',
|
53
55
|
:'dynamic_secret_producer_details' => :'dynamic_secret_producer_details',
|
54
56
|
:'importer_info' => :'importer_info',
|
57
|
+
:'oidc_client_info' => :'oidc_client_info',
|
55
58
|
:'password_policy' => :'password_policy',
|
56
59
|
:'rotated_secret_details' => :'rotated_secret_details',
|
57
60
|
:'secure_remote_access_details' => :'secure_remote_access_details',
|
@@ -76,6 +79,7 @@ module Akeyless
|
|
76
79
|
:'display_metadata' => :'String',
|
77
80
|
:'dynamic_secret_producer_details' => :'DynamicSecretProducerInfo',
|
78
81
|
:'importer_info' => :'ImporterInfo',
|
82
|
+
:'oidc_client_info' => :'OidcClientInfo',
|
79
83
|
:'password_policy' => :'PasswordPolicyInfo',
|
80
84
|
:'rotated_secret_details' => :'RotatedSecretDetailsInfo',
|
81
85
|
:'secure_remote_access_details' => :'SecureRemoteAccess',
|
@@ -137,6 +141,10 @@ module Akeyless
|
|
137
141
|
self.importer_info = attributes[:'importer_info']
|
138
142
|
end
|
139
143
|
|
144
|
+
if attributes.key?(:'oidc_client_info')
|
145
|
+
self.oidc_client_info = attributes[:'oidc_client_info']
|
146
|
+
end
|
147
|
+
|
140
148
|
if attributes.key?(:'password_policy')
|
141
149
|
self.password_policy = attributes[:'password_policy']
|
142
150
|
end
|
@@ -184,6 +192,7 @@ module Akeyless
|
|
184
192
|
display_metadata == o.display_metadata &&
|
185
193
|
dynamic_secret_producer_details == o.dynamic_secret_producer_details &&
|
186
194
|
importer_info == o.importer_info &&
|
195
|
+
oidc_client_info == o.oidc_client_info &&
|
187
196
|
password_policy == o.password_policy &&
|
188
197
|
rotated_secret_details == o.rotated_secret_details &&
|
189
198
|
secure_remote_access_details == o.secure_remote_access_details &&
|
@@ -200,7 +209,7 @@ module Akeyless
|
|
200
209
|
# Calculates hash code according to all attributes.
|
201
210
|
# @return [Integer] Hash code
|
202
211
|
def hash
|
203
|
-
[cert_issue_details, certificate_chain_info, certificates_template_info, classic_key_details, cluster_gw_url, display_metadata, dynamic_secret_producer_details, importer_info, password_policy, rotated_secret_details, secure_remote_access_details, static_secret_info, tokenizer_info].hash
|
212
|
+
[cert_issue_details, certificate_chain_info, certificates_template_info, classic_key_details, cluster_gw_url, display_metadata, dynamic_secret_producer_details, importer_info, oidc_client_info, password_policy, rotated_secret_details, secure_remote_access_details, static_secret_info, tokenizer_info].hash
|
204
213
|
end
|
205
214
|
|
206
215
|
# Builds the object from hash
|
@@ -23,6 +23,8 @@ module Akeyless
|
|
23
23
|
|
24
24
|
attr_accessor :elasticsearch_config
|
25
25
|
|
26
|
+
attr_accessor :google_chronicle_config
|
27
|
+
|
26
28
|
attr_accessor :json_output
|
27
29
|
|
28
30
|
attr_accessor :logan_enable
|
@@ -50,6 +52,7 @@ module Akeyless
|
|
50
52
|
:'azure_analytics_config' => :'azure_analytics_config',
|
51
53
|
:'datadog_config' => :'datadog_config',
|
52
54
|
:'elasticsearch_config' => :'elasticsearch_config',
|
55
|
+
:'google_chronicle_config' => :'google_chronicle_config',
|
53
56
|
:'json_output' => :'json_output',
|
54
57
|
:'logan_enable' => :'logan_enable',
|
55
58
|
:'logan_url' => :'logan_url',
|
@@ -75,6 +78,7 @@ module Akeyless
|
|
75
78
|
:'azure_analytics_config' => :'AzureLogAnalyticsForwardingConfig',
|
76
79
|
:'datadog_config' => :'DatadogForwardingConfig',
|
77
80
|
:'elasticsearch_config' => :'ElasticsearchLogForwardingConfig',
|
81
|
+
:'google_chronicle_config' => :'GoogleChronicleForwardingConfig',
|
78
82
|
:'json_output' => :'Boolean',
|
79
83
|
:'logan_enable' => :'Boolean',
|
80
84
|
:'logan_url' => :'String',
|
@@ -125,6 +129,10 @@ module Akeyless
|
|
125
129
|
self.elasticsearch_config = attributes[:'elasticsearch_config']
|
126
130
|
end
|
127
131
|
|
132
|
+
if attributes.key?(:'google_chronicle_config')
|
133
|
+
self.google_chronicle_config = attributes[:'google_chronicle_config']
|
134
|
+
end
|
135
|
+
|
128
136
|
if attributes.key?(:'json_output')
|
129
137
|
self.json_output = attributes[:'json_output']
|
130
138
|
end
|
@@ -188,6 +196,7 @@ module Akeyless
|
|
188
196
|
azure_analytics_config == o.azure_analytics_config &&
|
189
197
|
datadog_config == o.datadog_config &&
|
190
198
|
elasticsearch_config == o.elasticsearch_config &&
|
199
|
+
google_chronicle_config == o.google_chronicle_config &&
|
191
200
|
json_output == o.json_output &&
|
192
201
|
logan_enable == o.logan_enable &&
|
193
202
|
logan_url == o.logan_url &&
|
@@ -209,7 +218,7 @@ module Akeyless
|
|
209
218
|
# Calculates hash code according to all attributes.
|
210
219
|
# @return [Integer] Hash code
|
211
220
|
def hash
|
212
|
-
[aws_s3_config, azure_analytics_config, datadog_config, elasticsearch_config, json_output, logan_enable, logan_url, logstash_config, logz_io_config, pull_interval_sec, splunk_config, sumo_logic_config, syslog_config, target_log_type].hash
|
221
|
+
[aws_s3_config, azure_analytics_config, datadog_config, elasticsearch_config, google_chronicle_config, json_output, logan_enable, logan_url, logstash_config, logz_io_config, pull_interval_sec, splunk_config, sumo_logic_config, syslog_config, target_log_type].hash
|
213
222
|
end
|
214
223
|
|
215
224
|
# Builds the object from hash
|