akeyless 5.0.6 → 5.0.8
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 +14 -1
- data/docs/Auth.md +4 -0
- data/docs/AuthOutput.md +2 -0
- data/docs/AzureLogAnalyticsForwardingConfig.md +2 -0
- data/docs/CertificateTemplateInfo.md +2 -0
- data/docs/CreateClassicKey.md +3 -1
- data/docs/CreateDFCKey.md +3 -1
- data/docs/CreateKey.md +3 -1
- data/docs/CreateRole.md +2 -0
- data/docs/GatewayCreateAllowedAccess.md +1 -1
- data/docs/GatewayUpdateAllowedAccess.md +1 -1
- data/docs/GatewayUpdateLogForwardingAzureAnalytics.md +2 -0
- data/docs/GatewayUpdateLogForwardingSplunk.md +2 -0
- data/docs/GeminiTargetDetails.md +22 -0
- data/docs/GenerateCsr.md +2 -0
- data/docs/GetCertChallenge.md +22 -0
- data/docs/GetCertChallengeOutput.md +18 -0
- data/docs/GwUpdateRemoteAccessSessionLogsAzureAnalytics.md +2 -0
- data/docs/GwUpdateRemoteAccessSessionLogsSplunk.md +2 -0
- data/docs/OpenAITargetDetails.md +26 -0
- data/docs/PathRule.md +2 -0
- data/docs/ReverseRBACClient.md +2 -0
- data/docs/RoleAuthMethodAssociation.md +2 -0
- data/docs/SharingItemFullInfo.md +2 -0
- data/docs/SplunkLogForwardingConfig.md +2 -0
- data/docs/StaticSecretSync.md +2 -0
- data/docs/TargetCreateGemini.md +36 -0
- data/docs/TargetCreateOpenAI.md +40 -0
- data/docs/TargetItemAssociation.md +2 -0
- data/docs/TargetTypeDetailsInput.md +4 -0
- data/docs/TargetUpdateGemini.md +42 -0
- data/docs/TargetUpdateOpenAI.md +46 -0
- data/docs/UpdateRole.md +2 -0
- data/docs/V2Api.md +315 -0
- data/lib/akeyless/api/v2_api.rb +320 -0
- data/lib/akeyless/models/auth.rb +21 -1
- data/lib/akeyless/models/auth_output.rb +10 -1
- data/lib/akeyless/models/azure_log_analytics_forwarding_config.rb +10 -1
- data/lib/akeyless/models/certificate_template_info.rb +10 -1
- data/lib/akeyless/models/create_classic_key.rb +14 -2
- data/lib/akeyless/models/create_dfc_key.rb +14 -2
- data/lib/akeyless/models/create_key.rb +14 -2
- data/lib/akeyless/models/create_role.rb +11 -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/gateway_update_log_forwarding_azure_analytics.rb +13 -1
- data/lib/akeyless/models/gateway_update_log_forwarding_splunk.rb +13 -1
- data/lib/akeyless/models/gemini_target_details.rb +233 -0
- data/lib/akeyless/models/generate_csr.rb +13 -1
- data/lib/akeyless/models/get_cert_challenge.rb +238 -0
- data/lib/akeyless/models/get_cert_challenge_output.rb +214 -0
- data/lib/akeyless/models/gw_update_remote_access_session_logs_azure_analytics.rb +13 -1
- data/lib/akeyless/models/gw_update_remote_access_session_logs_splunk.rb +13 -1
- data/lib/akeyless/models/open_ai_target_details.rb +251 -0
- data/lib/akeyless/models/path_rule.rb +11 -1
- data/lib/akeyless/models/reverse_rbac_client.rb +10 -1
- data/lib/akeyless/models/role_auth_method_association.rb +10 -1
- data/lib/akeyless/models/sharing_item_full_info.rb +11 -1
- data/lib/akeyless/models/splunk_log_forwarding_config.rb +10 -1
- data/lib/akeyless/models/static_secret_sync.rb +11 -1
- data/lib/akeyless/models/target_create_gemini.rb +317 -0
- data/lib/akeyless/models/target_create_open_ai.rb +337 -0
- data/lib/akeyless/models/target_item_association.rb +10 -1
- data/lib/akeyless/models/target_type_details_input.rb +19 -1
- data/lib/akeyless/models/target_update_gemini.rb +351 -0
- data/lib/akeyless/models/target_update_open_ai.rb +371 -0
- data/lib/akeyless/models/update_role.rb +11 -1
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +8 -0
- data/spec/models/gemini_target_details_spec.rb +48 -0
- data/spec/models/get_cert_challenge_output_spec.rb +36 -0
- data/spec/models/get_cert_challenge_spec.rb +48 -0
- data/spec/models/open_ai_target_details_spec.rb +60 -0
- data/spec/models/target_create_gemini_spec.rb +90 -0
- data/spec/models/target_create_open_ai_spec.rb +102 -0
- data/spec/models/target_update_gemini_spec.rb +108 -0
- data/spec/models/target_update_open_ai_spec.rb +120 -0
- metadata +33 -1
@@ -0,0 +1,251 @@
|
|
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
|
+
# OpenAITargetDetails defines details related to connecting to an OpenAI provider
|
18
|
+
class OpenAITargetDetails
|
19
|
+
attr_accessor :api_key
|
20
|
+
|
21
|
+
attr_accessor :api_key_id
|
22
|
+
|
23
|
+
attr_accessor :model
|
24
|
+
|
25
|
+
attr_accessor :openai_url
|
26
|
+
|
27
|
+
attr_accessor :organization_id
|
28
|
+
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
30
|
+
def self.attribute_map
|
31
|
+
{
|
32
|
+
:'api_key' => :'api_key',
|
33
|
+
:'api_key_id' => :'api_key_id',
|
34
|
+
:'model' => :'model',
|
35
|
+
:'openai_url' => :'openai_url',
|
36
|
+
:'organization_id' => :'organization_id'
|
37
|
+
}
|
38
|
+
end
|
39
|
+
|
40
|
+
# Returns all the JSON keys this model knows about
|
41
|
+
def self.acceptable_attributes
|
42
|
+
attribute_map.values
|
43
|
+
end
|
44
|
+
|
45
|
+
# Attribute type mapping.
|
46
|
+
def self.openapi_types
|
47
|
+
{
|
48
|
+
:'api_key' => :'String',
|
49
|
+
:'api_key_id' => :'String',
|
50
|
+
:'model' => :'String',
|
51
|
+
:'openai_url' => :'String',
|
52
|
+
:'organization_id' => :'String'
|
53
|
+
}
|
54
|
+
end
|
55
|
+
|
56
|
+
# List of attributes with nullable: true
|
57
|
+
def self.openapi_nullable
|
58
|
+
Set.new([
|
59
|
+
])
|
60
|
+
end
|
61
|
+
|
62
|
+
# Initializes the object
|
63
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
64
|
+
def initialize(attributes = {})
|
65
|
+
if (!attributes.is_a?(Hash))
|
66
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::OpenAITargetDetails` initialize method"
|
67
|
+
end
|
68
|
+
|
69
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
70
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
71
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
72
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::OpenAITargetDetails`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
73
|
+
end
|
74
|
+
h[k.to_sym] = v
|
75
|
+
}
|
76
|
+
|
77
|
+
if attributes.key?(:'api_key')
|
78
|
+
self.api_key = attributes[:'api_key']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.key?(:'api_key_id')
|
82
|
+
self.api_key_id = attributes[:'api_key_id']
|
83
|
+
end
|
84
|
+
|
85
|
+
if attributes.key?(:'model')
|
86
|
+
self.model = attributes[:'model']
|
87
|
+
end
|
88
|
+
|
89
|
+
if attributes.key?(:'openai_url')
|
90
|
+
self.openai_url = attributes[:'openai_url']
|
91
|
+
end
|
92
|
+
|
93
|
+
if attributes.key?(:'organization_id')
|
94
|
+
self.organization_id = attributes[:'organization_id']
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
99
|
+
# @return Array for valid properties with the reasons
|
100
|
+
def list_invalid_properties
|
101
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
102
|
+
invalid_properties = Array.new
|
103
|
+
invalid_properties
|
104
|
+
end
|
105
|
+
|
106
|
+
# Check to see if the all the properties in the model are valid
|
107
|
+
# @return true if the model is valid
|
108
|
+
def valid?
|
109
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
110
|
+
true
|
111
|
+
end
|
112
|
+
|
113
|
+
# Checks equality by comparing each attribute.
|
114
|
+
# @param [Object] Object to be compared
|
115
|
+
def ==(o)
|
116
|
+
return true if self.equal?(o)
|
117
|
+
self.class == o.class &&
|
118
|
+
api_key == o.api_key &&
|
119
|
+
api_key_id == o.api_key_id &&
|
120
|
+
model == o.model &&
|
121
|
+
openai_url == o.openai_url &&
|
122
|
+
organization_id == o.organization_id
|
123
|
+
end
|
124
|
+
|
125
|
+
# @see the `==` method
|
126
|
+
# @param [Object] Object to be compared
|
127
|
+
def eql?(o)
|
128
|
+
self == o
|
129
|
+
end
|
130
|
+
|
131
|
+
# Calculates hash code according to all attributes.
|
132
|
+
# @return [Integer] Hash code
|
133
|
+
def hash
|
134
|
+
[api_key, api_key_id, model, openai_url, organization_id].hash
|
135
|
+
end
|
136
|
+
|
137
|
+
# Builds the object from hash
|
138
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
139
|
+
# @return [Object] Returns the model itself
|
140
|
+
def self.build_from_hash(attributes)
|
141
|
+
return nil unless attributes.is_a?(Hash)
|
142
|
+
attributes = attributes.transform_keys(&:to_sym)
|
143
|
+
transformed_hash = {}
|
144
|
+
openapi_types.each_pair do |key, type|
|
145
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
146
|
+
transformed_hash["#{key}"] = nil
|
147
|
+
elsif type =~ /\AArray<(.*)>/i
|
148
|
+
# check to ensure the input is an array given that the attribute
|
149
|
+
# is documented as an array but the input is not
|
150
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
151
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
152
|
+
end
|
153
|
+
elsif !attributes[attribute_map[key]].nil?
|
154
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
155
|
+
end
|
156
|
+
end
|
157
|
+
new(transformed_hash)
|
158
|
+
end
|
159
|
+
|
160
|
+
# Deserializes the data based on type
|
161
|
+
# @param string type Data type
|
162
|
+
# @param string value Value to be deserialized
|
163
|
+
# @return [Object] Deserialized data
|
164
|
+
def self._deserialize(type, value)
|
165
|
+
case type.to_sym
|
166
|
+
when :Time
|
167
|
+
Time.parse(value)
|
168
|
+
when :Date
|
169
|
+
Date.parse(value)
|
170
|
+
when :String
|
171
|
+
value.to_s
|
172
|
+
when :Integer
|
173
|
+
value.to_i
|
174
|
+
when :Float
|
175
|
+
value.to_f
|
176
|
+
when :Boolean
|
177
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
178
|
+
true
|
179
|
+
else
|
180
|
+
false
|
181
|
+
end
|
182
|
+
when :Object
|
183
|
+
# generic object (usually a Hash), return directly
|
184
|
+
value
|
185
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
186
|
+
inner_type = Regexp.last_match[:inner_type]
|
187
|
+
value.map { |v| _deserialize(inner_type, v) }
|
188
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
189
|
+
k_type = Regexp.last_match[:k_type]
|
190
|
+
v_type = Regexp.last_match[:v_type]
|
191
|
+
{}.tap do |hash|
|
192
|
+
value.each do |k, v|
|
193
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
194
|
+
end
|
195
|
+
end
|
196
|
+
else # model
|
197
|
+
# models (e.g. Pet) or oneOf
|
198
|
+
klass = Akeyless.const_get(type)
|
199
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
203
|
+
# Returns the string representation of the object
|
204
|
+
# @return [String] String presentation of the object
|
205
|
+
def to_s
|
206
|
+
to_hash.to_s
|
207
|
+
end
|
208
|
+
|
209
|
+
# to_body is an alias to to_hash (backward compatibility)
|
210
|
+
# @return [Hash] Returns the object in the form of hash
|
211
|
+
def to_body
|
212
|
+
to_hash
|
213
|
+
end
|
214
|
+
|
215
|
+
# Returns the object in the form of hash
|
216
|
+
# @return [Hash] Returns the object in the form of hash
|
217
|
+
def to_hash
|
218
|
+
hash = {}
|
219
|
+
self.class.attribute_map.each_pair do |attr, param|
|
220
|
+
value = self.send(attr)
|
221
|
+
if value.nil?
|
222
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
223
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
224
|
+
end
|
225
|
+
|
226
|
+
hash[param] = _to_hash(value)
|
227
|
+
end
|
228
|
+
hash
|
229
|
+
end
|
230
|
+
|
231
|
+
# Outputs non-array value in the form of hash
|
232
|
+
# For object, use to_hash. Otherwise, just return the value
|
233
|
+
# @param [Object] value Any valid value
|
234
|
+
# @return [Hash] Returns the value in the form of hash
|
235
|
+
def _to_hash(value)
|
236
|
+
if value.is_a?(Array)
|
237
|
+
value.compact.map { |v| _to_hash(v) }
|
238
|
+
elsif value.is_a?(Hash)
|
239
|
+
{}.tap do |hash|
|
240
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
241
|
+
end
|
242
|
+
elsif value.respond_to? :to_hash
|
243
|
+
value.to_hash
|
244
|
+
else
|
245
|
+
value
|
246
|
+
end
|
247
|
+
end
|
248
|
+
|
249
|
+
end
|
250
|
+
|
251
|
+
end
|
@@ -25,6 +25,9 @@ module Akeyless
|
|
25
25
|
# flag that indicate that this rule is allowed to be access RemainingAccess of times.
|
26
26
|
attr_accessor :is_limit_access
|
27
27
|
|
28
|
+
# The item id this rule directly refers to (when applicable)
|
29
|
+
attr_accessor :item_id
|
30
|
+
|
28
31
|
attr_accessor :number_of_access_used
|
29
32
|
|
30
33
|
attr_accessor :number_of_allowed_access
|
@@ -45,6 +48,7 @@ module Akeyless
|
|
45
48
|
:'capabilities' => :'capabilities',
|
46
49
|
:'cb' => :'cb',
|
47
50
|
:'is_limit_access' => :'is_limit_access',
|
51
|
+
:'item_id' => :'item_id',
|
48
52
|
:'number_of_access_used' => :'number_of_access_used',
|
49
53
|
:'number_of_allowed_access' => :'number_of_allowed_access',
|
50
54
|
:'path' => :'path',
|
@@ -66,6 +70,7 @@ module Akeyless
|
|
66
70
|
:'capabilities' => :'Array<String>',
|
67
71
|
:'cb' => :'Integer',
|
68
72
|
:'is_limit_access' => :'Boolean',
|
73
|
+
:'item_id' => :'Integer',
|
69
74
|
:'number_of_access_used' => :'Integer',
|
70
75
|
:'number_of_allowed_access' => :'Integer',
|
71
76
|
:'path' => :'String',
|
@@ -116,6 +121,10 @@ module Akeyless
|
|
116
121
|
self.is_limit_access = attributes[:'is_limit_access']
|
117
122
|
end
|
118
123
|
|
124
|
+
if attributes.key?(:'item_id')
|
125
|
+
self.item_id = attributes[:'item_id']
|
126
|
+
end
|
127
|
+
|
119
128
|
if attributes.key?(:'number_of_access_used')
|
120
129
|
self.number_of_access_used = attributes[:'number_of_access_used']
|
121
130
|
end
|
@@ -165,6 +174,7 @@ module Akeyless
|
|
165
174
|
capabilities == o.capabilities &&
|
166
175
|
cb == o.cb &&
|
167
176
|
is_limit_access == o.is_limit_access &&
|
177
|
+
item_id == o.item_id &&
|
168
178
|
number_of_access_used == o.number_of_access_used &&
|
169
179
|
number_of_allowed_access == o.number_of_allowed_access &&
|
170
180
|
path == o.path &&
|
@@ -182,7 +192,7 @@ module Akeyless
|
|
182
192
|
# Calculates hash code according to all attributes.
|
183
193
|
# @return [Integer] Hash code
|
184
194
|
def hash
|
185
|
-
[assigners, capabilities, cb, is_limit_access, number_of_access_used, number_of_allowed_access, path, start_time, ttl, type].hash
|
195
|
+
[assigners, capabilities, cb, is_limit_access, item_id, number_of_access_used, number_of_allowed_access, path, start_time, ttl, type].hash
|
186
196
|
end
|
187
197
|
|
188
198
|
# Builds the object from hash
|
@@ -17,12 +17,15 @@ module Akeyless
|
|
17
17
|
class ReverseRBACClient
|
18
18
|
attr_accessor :assocs
|
19
19
|
|
20
|
+
attr_accessor :auth_method_id
|
21
|
+
|
20
22
|
attr_accessor :auth_method_name
|
21
23
|
|
22
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
25
|
def self.attribute_map
|
24
26
|
{
|
25
27
|
:'assocs' => :'assocs',
|
28
|
+
:'auth_method_id' => :'auth_method_id',
|
26
29
|
:'auth_method_name' => :'auth_method_name'
|
27
30
|
}
|
28
31
|
end
|
@@ -36,6 +39,7 @@ module Akeyless
|
|
36
39
|
def self.openapi_types
|
37
40
|
{
|
38
41
|
:'assocs' => :'Array<AuthMethodRoleAssociation>',
|
42
|
+
:'auth_method_id' => :'Integer',
|
39
43
|
:'auth_method_name' => :'String'
|
40
44
|
}
|
41
45
|
end
|
@@ -67,6 +71,10 @@ module Akeyless
|
|
67
71
|
end
|
68
72
|
end
|
69
73
|
|
74
|
+
if attributes.key?(:'auth_method_id')
|
75
|
+
self.auth_method_id = attributes[:'auth_method_id']
|
76
|
+
end
|
77
|
+
|
70
78
|
if attributes.key?(:'auth_method_name')
|
71
79
|
self.auth_method_name = attributes[:'auth_method_name']
|
72
80
|
end
|
@@ -93,6 +101,7 @@ module Akeyless
|
|
93
101
|
return true if self.equal?(o)
|
94
102
|
self.class == o.class &&
|
95
103
|
assocs == o.assocs &&
|
104
|
+
auth_method_id == o.auth_method_id &&
|
96
105
|
auth_method_name == o.auth_method_name
|
97
106
|
end
|
98
107
|
|
@@ -105,7 +114,7 @@ module Akeyless
|
|
105
114
|
# Calculates hash code according to all attributes.
|
106
115
|
# @return [Integer] Hash code
|
107
116
|
def hash
|
108
|
-
[assocs, auth_method_name].hash
|
117
|
+
[assocs, auth_method_id, auth_method_name].hash
|
109
118
|
end
|
110
119
|
|
111
120
|
# Builds the object from hash
|
@@ -20,6 +20,8 @@ module Akeyless
|
|
20
20
|
|
21
21
|
attr_accessor :auth_method_access_id
|
22
22
|
|
23
|
+
attr_accessor :auth_method_id
|
24
|
+
|
23
25
|
attr_accessor :auth_method_name
|
24
26
|
|
25
27
|
attr_accessor :auth_method_sub_claims
|
@@ -33,6 +35,7 @@ module Akeyless
|
|
33
35
|
{
|
34
36
|
:'assoc_id' => :'assoc_id',
|
35
37
|
:'auth_method_access_id' => :'auth_method_access_id',
|
38
|
+
:'auth_method_id' => :'auth_method_id',
|
36
39
|
:'auth_method_name' => :'auth_method_name',
|
37
40
|
:'auth_method_sub_claims' => :'auth_method_sub_claims',
|
38
41
|
:'is_subclaims_with_operator' => :'is_subclaims_with_operator',
|
@@ -50,6 +53,7 @@ module Akeyless
|
|
50
53
|
{
|
51
54
|
:'assoc_id' => :'String',
|
52
55
|
:'auth_method_access_id' => :'String',
|
56
|
+
:'auth_method_id' => :'Integer',
|
53
57
|
:'auth_method_name' => :'String',
|
54
58
|
:'auth_method_sub_claims' => :'Hash<String, Array<String>>',
|
55
59
|
:'is_subclaims_with_operator' => :'Boolean',
|
@@ -86,6 +90,10 @@ module Akeyless
|
|
86
90
|
self.auth_method_access_id = attributes[:'auth_method_access_id']
|
87
91
|
end
|
88
92
|
|
93
|
+
if attributes.key?(:'auth_method_id')
|
94
|
+
self.auth_method_id = attributes[:'auth_method_id']
|
95
|
+
end
|
96
|
+
|
89
97
|
if attributes.key?(:'auth_method_name')
|
90
98
|
self.auth_method_name = attributes[:'auth_method_name']
|
91
99
|
end
|
@@ -127,6 +135,7 @@ module Akeyless
|
|
127
135
|
self.class == o.class &&
|
128
136
|
assoc_id == o.assoc_id &&
|
129
137
|
auth_method_access_id == o.auth_method_access_id &&
|
138
|
+
auth_method_id == o.auth_method_id &&
|
130
139
|
auth_method_name == o.auth_method_name &&
|
131
140
|
auth_method_sub_claims == o.auth_method_sub_claims &&
|
132
141
|
is_subclaims_with_operator == o.is_subclaims_with_operator &&
|
@@ -142,7 +151,7 @@ module Akeyless
|
|
142
151
|
# Calculates hash code according to all attributes.
|
143
152
|
# @return [Integer] Hash code
|
144
153
|
def hash
|
145
|
-
[assoc_id, auth_method_access_id, auth_method_name, auth_method_sub_claims, is_subclaims_with_operator, sub_claims_case_sensitive].hash
|
154
|
+
[assoc_id, auth_method_access_id, auth_method_id, auth_method_name, auth_method_sub_claims, is_subclaims_with_operator, sub_claims_case_sensitive].hash
|
146
155
|
end
|
147
156
|
|
148
157
|
# Builds the object from hash
|
@@ -25,6 +25,9 @@ module Akeyless
|
|
25
25
|
# flag that indicate that this rule is allowed to be access RemainingAccess of times.
|
26
26
|
attr_accessor :is_limit_access
|
27
27
|
|
28
|
+
# The item id this rule directly refers to (when applicable)
|
29
|
+
attr_accessor :item_id
|
30
|
+
|
28
31
|
attr_accessor :name
|
29
32
|
|
30
33
|
attr_accessor :number_of_access_used
|
@@ -47,6 +50,7 @@ module Akeyless
|
|
47
50
|
:'capabilities' => :'capabilities',
|
48
51
|
:'cb' => :'cb',
|
49
52
|
:'is_limit_access' => :'is_limit_access',
|
53
|
+
:'item_id' => :'item_id',
|
50
54
|
:'name' => :'name',
|
51
55
|
:'number_of_access_used' => :'number_of_access_used',
|
52
56
|
:'number_of_allowed_access' => :'number_of_allowed_access',
|
@@ -69,6 +73,7 @@ module Akeyless
|
|
69
73
|
:'capabilities' => :'Array<String>',
|
70
74
|
:'cb' => :'Integer',
|
71
75
|
:'is_limit_access' => :'Boolean',
|
76
|
+
:'item_id' => :'Integer',
|
72
77
|
:'name' => :'String',
|
73
78
|
:'number_of_access_used' => :'Integer',
|
74
79
|
:'number_of_allowed_access' => :'Integer',
|
@@ -120,6 +125,10 @@ module Akeyless
|
|
120
125
|
self.is_limit_access = attributes[:'is_limit_access']
|
121
126
|
end
|
122
127
|
|
128
|
+
if attributes.key?(:'item_id')
|
129
|
+
self.item_id = attributes[:'item_id']
|
130
|
+
end
|
131
|
+
|
123
132
|
if attributes.key?(:'name')
|
124
133
|
self.name = attributes[:'name']
|
125
134
|
end
|
@@ -173,6 +182,7 @@ module Akeyless
|
|
173
182
|
capabilities == o.capabilities &&
|
174
183
|
cb == o.cb &&
|
175
184
|
is_limit_access == o.is_limit_access &&
|
185
|
+
item_id == o.item_id &&
|
176
186
|
name == o.name &&
|
177
187
|
number_of_access_used == o.number_of_access_used &&
|
178
188
|
number_of_allowed_access == o.number_of_allowed_access &&
|
@@ -191,7 +201,7 @@ module Akeyless
|
|
191
201
|
# Calculates hash code according to all attributes.
|
192
202
|
# @return [Integer] Hash code
|
193
203
|
def hash
|
194
|
-
[assigners, capabilities, cb, is_limit_access, name, number_of_access_used, number_of_allowed_access, path, start_time, ttl, type].hash
|
204
|
+
[assigners, capabilities, cb, is_limit_access, item_id, name, number_of_access_used, number_of_allowed_access, path, start_time, ttl, type].hash
|
195
205
|
end
|
196
206
|
|
197
207
|
# Builds the object from hash
|
@@ -15,6 +15,8 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Akeyless
|
17
17
|
class SplunkLogForwardingConfig
|
18
|
+
attr_accessor :splunk_enable_batch
|
19
|
+
|
18
20
|
attr_accessor :splunk_enable_tls
|
19
21
|
|
20
22
|
attr_accessor :splunk_index
|
@@ -32,6 +34,7 @@ module Akeyless
|
|
32
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
35
|
def self.attribute_map
|
34
36
|
{
|
37
|
+
:'splunk_enable_batch' => :'splunk_enable_batch',
|
35
38
|
:'splunk_enable_tls' => :'splunk_enable_tls',
|
36
39
|
:'splunk_index' => :'splunk_index',
|
37
40
|
:'splunk_source' => :'splunk_source',
|
@@ -50,6 +53,7 @@ module Akeyless
|
|
50
53
|
# Attribute type mapping.
|
51
54
|
def self.openapi_types
|
52
55
|
{
|
56
|
+
:'splunk_enable_batch' => :'String',
|
53
57
|
:'splunk_enable_tls' => :'Boolean',
|
54
58
|
:'splunk_index' => :'String',
|
55
59
|
:'splunk_source' => :'String',
|
@@ -81,6 +85,10 @@ module Akeyless
|
|
81
85
|
h[k.to_sym] = v
|
82
86
|
}
|
83
87
|
|
88
|
+
if attributes.key?(:'splunk_enable_batch')
|
89
|
+
self.splunk_enable_batch = attributes[:'splunk_enable_batch']
|
90
|
+
end
|
91
|
+
|
84
92
|
if attributes.key?(:'splunk_enable_tls')
|
85
93
|
self.splunk_enable_tls = attributes[:'splunk_enable_tls']
|
86
94
|
end
|
@@ -130,6 +138,7 @@ module Akeyless
|
|
130
138
|
def ==(o)
|
131
139
|
return true if self.equal?(o)
|
132
140
|
self.class == o.class &&
|
141
|
+
splunk_enable_batch == o.splunk_enable_batch &&
|
133
142
|
splunk_enable_tls == o.splunk_enable_tls &&
|
134
143
|
splunk_index == o.splunk_index &&
|
135
144
|
splunk_source == o.splunk_source &&
|
@@ -148,7 +157,7 @@ module Akeyless
|
|
148
157
|
# Calculates hash code according to all attributes.
|
149
158
|
# @return [Integer] Hash code
|
150
159
|
def hash
|
151
|
-
[splunk_enable_tls, splunk_index, splunk_source, splunk_sourcetype, splunk_tls_certificate, splunk_token, splunk_url].hash
|
160
|
+
[splunk_enable_batch, splunk_enable_tls, splunk_index, splunk_source, splunk_sourcetype, splunk_tls_certificate, splunk_token, splunk_url].hash
|
152
161
|
end
|
153
162
|
|
154
163
|
# Builds the object from hash
|
@@ -15,6 +15,9 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Akeyless
|
17
17
|
class StaticSecretSync
|
18
|
+
# JQ expression to filter or transform the secret value
|
19
|
+
attr_accessor :filter_secret_value
|
20
|
+
|
18
21
|
# Set output format to JSON
|
19
22
|
attr_accessor :json
|
20
23
|
|
@@ -39,6 +42,7 @@ module Akeyless
|
|
39
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
40
43
|
def self.attribute_map
|
41
44
|
{
|
45
|
+
:'filter_secret_value' => :'filter-secret-value',
|
42
46
|
:'json' => :'json',
|
43
47
|
:'name' => :'name',
|
44
48
|
:'namespace' => :'namespace',
|
@@ -57,6 +61,7 @@ module Akeyless
|
|
57
61
|
# Attribute type mapping.
|
58
62
|
def self.openapi_types
|
59
63
|
{
|
64
|
+
:'filter_secret_value' => :'String',
|
60
65
|
:'json' => :'Boolean',
|
61
66
|
:'name' => :'String',
|
62
67
|
:'namespace' => :'String',
|
@@ -88,6 +93,10 @@ module Akeyless
|
|
88
93
|
h[k.to_sym] = v
|
89
94
|
}
|
90
95
|
|
96
|
+
if attributes.key?(:'filter_secret_value')
|
97
|
+
self.filter_secret_value = attributes[:'filter_secret_value']
|
98
|
+
end
|
99
|
+
|
91
100
|
if attributes.key?(:'json')
|
92
101
|
self.json = attributes[:'json']
|
93
102
|
else
|
@@ -146,6 +155,7 @@ module Akeyless
|
|
146
155
|
def ==(o)
|
147
156
|
return true if self.equal?(o)
|
148
157
|
self.class == o.class &&
|
158
|
+
filter_secret_value == o.filter_secret_value &&
|
149
159
|
json == o.json &&
|
150
160
|
name == o.name &&
|
151
161
|
namespace == o.namespace &&
|
@@ -164,7 +174,7 @@ module Akeyless
|
|
164
174
|
# Calculates hash code according to all attributes.
|
165
175
|
# @return [Integer] Hash code
|
166
176
|
def hash
|
167
|
-
[json, name, namespace, remote_secret_name, token, uid_token, usc_name].hash
|
177
|
+
[filter_secret_value, json, name, namespace, remote_secret_name, token, uid_token, usc_name].hash
|
168
178
|
end
|
169
179
|
|
170
180
|
# Builds the object from hash
|