akeyless 2.16.12 → 2.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -5
  3. data/docs/CreateArtifactoryTarget.md +1 -1
  4. data/docs/CreateKeyOutput.md +5 -1
  5. data/docs/CreateLdapTarget.md +2 -0
  6. data/docs/CreateSalesforceTarget.md +7 -3
  7. data/docs/Decrypt.md +3 -1
  8. data/docs/DecryptFile.md +6 -0
  9. data/docs/DecryptPKCS1.md +5 -1
  10. data/docs/DescribeItem.md +4 -0
  11. data/docs/DescribeSubClaims.md +20 -0
  12. data/docs/DescribeSubClaimsOutput.md +18 -0
  13. data/docs/Encrypt.md +3 -1
  14. data/docs/EncryptFile.md +4 -0
  15. data/docs/EncryptPKCS1.md +5 -1
  16. data/docs/GatewayCreateK8SAuthConfig.md +7 -1
  17. data/docs/GatewayCreateProducerDockerhub.md +1 -1
  18. data/docs/GatewayGetK8SAuthConfigOutput.md +7 -1
  19. data/docs/GatewayUpdateK8SAuthConfig.md +7 -1
  20. data/docs/GatewayUpdateProducerDockerhub.md +1 -1
  21. data/docs/K8SAuth.md +7 -1
  22. data/docs/SignPKCS1.md +5 -1
  23. data/docs/TargetTypeDetailsInput.md +3 -1
  24. data/docs/UpdateLdapTarget.md +2 -0
  25. data/docs/UpdateSalesforceTarget.md +7 -3
  26. data/docs/V2Api.md +69 -69
  27. data/docs/VerifyPKCS1.md +4 -0
  28. data/lib/akeyless/api/v2_api.rb +65 -65
  29. data/lib/akeyless/models/create_artifactory_target.rb +1 -1
  30. data/lib/akeyless/models/create_key_output.rb +22 -4
  31. data/lib/akeyless/models/create_ldap_target.rb +13 -1
  32. data/lib/akeyless/models/create_salesforce_target.rb +29 -19
  33. data/lib/akeyless/models/decrypt.rb +16 -1
  34. data/lib/akeyless/models/decrypt_file.rb +36 -1
  35. data/lib/akeyless/models/decrypt_pkcs1.rb +22 -2
  36. data/lib/akeyless/models/describe_item.rb +21 -1
  37. data/lib/akeyless/models/describe_sub_claims.rb +231 -0
  38. data/lib/akeyless/models/describe_sub_claims_output.rb +221 -0
  39. data/lib/akeyless/models/encrypt.rb +16 -1
  40. data/lib/akeyless/models/encrypt_file.rb +21 -1
  41. data/lib/akeyless/models/encrypt_pkcs1.rb +22 -2
  42. data/lib/akeyless/models/gateway_create_k8_s_auth_config.rb +34 -2
  43. data/lib/akeyless/models/gateway_create_producer_dockerhub.rb +1 -1
  44. data/lib/akeyless/models/gateway_get_k8_s_auth_config_output.rb +32 -2
  45. data/lib/akeyless/models/gateway_update_k8_s_auth_config.rb +34 -2
  46. data/lib/akeyless/models/gateway_update_producer_dockerhub.rb +1 -1
  47. data/lib/akeyless/models/k8_s_auth.rb +32 -2
  48. data/lib/akeyless/models/sign_pkcs1.rb +21 -6
  49. data/lib/akeyless/models/target_type_details_input.rb +14 -1
  50. data/lib/akeyless/models/update_ldap_target.rb +11 -1
  51. data/lib/akeyless/models/update_salesforce_target.rb +29 -19
  52. data/lib/akeyless/models/verify_pkcs1.rb +21 -1
  53. data/lib/akeyless/version.rb +1 -1
  54. data/lib/akeyless.rb +2 -2
  55. data/spec/models/describe_sub_claims_output_spec.rb +34 -0
  56. data/spec/models/describe_sub_claims_spec.rb +40 -0
  57. metadata +10 -2
@@ -0,0 +1,221 @@
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.1.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Akeyless
17
+ class DescribeSubClaimsOutput
18
+ attr_accessor :sub_claims
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'sub_claims' => :'sub_claims'
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
+ :'sub_claims' => :'Hash<String, Array<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::DescribeSubClaimsOutput` 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::DescribeSubClaimsOutput`. 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?(:'sub_claims')
61
+ if (value = attributes[:'sub_claims']).is_a?(Hash)
62
+ self.sub_claims = value
63
+ end
64
+ end
65
+ end
66
+
67
+ # Show invalid properties with the reasons. Usually used together with valid?
68
+ # @return Array for valid properties with the reasons
69
+ def list_invalid_properties
70
+ invalid_properties = Array.new
71
+ invalid_properties
72
+ end
73
+
74
+ # Check to see if the all the properties in the model are valid
75
+ # @return true if the model is valid
76
+ def valid?
77
+ true
78
+ end
79
+
80
+ # Checks equality by comparing each attribute.
81
+ # @param [Object] Object to be compared
82
+ def ==(o)
83
+ return true if self.equal?(o)
84
+ self.class == o.class &&
85
+ sub_claims == o.sub_claims
86
+ end
87
+
88
+ # @see the `==` method
89
+ # @param [Object] Object to be compared
90
+ def eql?(o)
91
+ self == o
92
+ end
93
+
94
+ # Calculates hash code according to all attributes.
95
+ # @return [Integer] Hash code
96
+ def hash
97
+ [sub_claims].hash
98
+ end
99
+
100
+ # Builds the object from hash
101
+ # @param [Hash] attributes Model attributes in the form of hash
102
+ # @return [Object] Returns the model itself
103
+ def self.build_from_hash(attributes)
104
+ new.build_from_hash(attributes)
105
+ end
106
+
107
+ # Builds the object from hash
108
+ # @param [Hash] attributes Model attributes in the form of hash
109
+ # @return [Object] Returns the model itself
110
+ def build_from_hash(attributes)
111
+ return nil unless attributes.is_a?(Hash)
112
+ attributes = attributes.transform_keys(&:to_sym)
113
+ self.class.openapi_types.each_pair do |key, type|
114
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
115
+ self.send("#{key}=", nil)
116
+ elsif type =~ /\AArray<(.*)>/i
117
+ # check to ensure the input is an array given that the attribute
118
+ # is documented as an array but the input is not
119
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
120
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
121
+ end
122
+ elsif !attributes[self.class.attribute_map[key]].nil?
123
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
124
+ end
125
+ end
126
+
127
+ self
128
+ end
129
+
130
+ # Deserializes the data based on type
131
+ # @param string type Data type
132
+ # @param string value Value to be deserialized
133
+ # @return [Object] Deserialized data
134
+ def _deserialize(type, value)
135
+ case type.to_sym
136
+ when :Time
137
+ Time.parse(value)
138
+ when :Date
139
+ Date.parse(value)
140
+ when :String
141
+ value.to_s
142
+ when :Integer
143
+ value.to_i
144
+ when :Float
145
+ value.to_f
146
+ when :Boolean
147
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
148
+ true
149
+ else
150
+ false
151
+ end
152
+ when :Object
153
+ # generic object (usually a Hash), return directly
154
+ value
155
+ when /\AArray<(?<inner_type>.+)>\z/
156
+ inner_type = Regexp.last_match[:inner_type]
157
+ value.map { |v| _deserialize(inner_type, v) }
158
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
159
+ k_type = Regexp.last_match[:k_type]
160
+ v_type = Regexp.last_match[:v_type]
161
+ {}.tap do |hash|
162
+ value.each do |k, v|
163
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
164
+ end
165
+ end
166
+ else # model
167
+ # models (e.g. Pet) or oneOf
168
+ klass = Akeyless.const_get(type)
169
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
170
+ end
171
+ end
172
+
173
+ # Returns the string representation of the object
174
+ # @return [String] String presentation of the object
175
+ def to_s
176
+ to_hash.to_s
177
+ end
178
+
179
+ # to_body is an alias to to_hash (backward compatibility)
180
+ # @return [Hash] Returns the object in the form of hash
181
+ def to_body
182
+ to_hash
183
+ end
184
+
185
+ # Returns the object in the form of hash
186
+ # @return [Hash] Returns the object in the form of hash
187
+ def to_hash
188
+ hash = {}
189
+ self.class.attribute_map.each_pair do |attr, param|
190
+ value = self.send(attr)
191
+ if value.nil?
192
+ is_nullable = self.class.openapi_nullable.include?(attr)
193
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
194
+ end
195
+
196
+ hash[param] = _to_hash(value)
197
+ end
198
+ hash
199
+ end
200
+
201
+ # Outputs non-array value in the form of hash
202
+ # For object, use to_hash. Otherwise, just return the value
203
+ # @param [Object] value Any valid value
204
+ # @return [Hash] Returns the value in the form of hash
205
+ def _to_hash(value)
206
+ if value.is_a?(Array)
207
+ value.compact.map { |v| _to_hash(v) }
208
+ elsif value.is_a?(Hash)
209
+ {}.tap do |hash|
210
+ value.each { |k, v| hash[k] = _to_hash(v) }
211
+ end
212
+ elsif value.respond_to? :to_hash
213
+ value.to_hash
214
+ else
215
+ value
216
+ end
217
+ end
218
+
219
+ end
220
+
221
+ end
@@ -21,6 +21,9 @@ module Akeyless
21
21
  # name-value pair that specifies the encryption context to be used for authenticated encryption. If used here, the same value must be supplied to the decrypt command or decryption will fail
22
22
  attr_accessor :encryption_context
23
23
 
24
+ # The item id of the key to use in the encryption process
25
+ attr_accessor :item_id
26
+
24
27
  # The name of the key to use in the encryption process
25
28
  attr_accessor :key_name
26
29
 
@@ -38,6 +41,7 @@ module Akeyless
38
41
  {
39
42
  :'display_id' => :'display-id',
40
43
  :'encryption_context' => :'encryption-context',
44
+ :'item_id' => :'item-id',
41
45
  :'key_name' => :'key-name',
42
46
  :'plaintext' => :'plaintext',
43
47
  :'token' => :'token',
@@ -55,6 +59,7 @@ module Akeyless
55
59
  {
56
60
  :'display_id' => :'String',
57
61
  :'encryption_context' => :'Hash<String, String>',
62
+ :'item_id' => :'Integer',
58
63
  :'key_name' => :'String',
59
64
  :'plaintext' => :'String',
60
65
  :'token' => :'String',
@@ -93,6 +98,10 @@ module Akeyless
93
98
  end
94
99
  end
95
100
 
101
+ if attributes.key?(:'item_id')
102
+ self.item_id = attributes[:'item_id']
103
+ end
104
+
96
105
  if attributes.key?(:'key_name')
97
106
  self.key_name = attributes[:'key_name']
98
107
  end
@@ -114,12 +123,17 @@ module Akeyless
114
123
  # @return Array for valid properties with the reasons
115
124
  def list_invalid_properties
116
125
  invalid_properties = Array.new
126
+ if @key_name.nil?
127
+ invalid_properties.push('invalid value for "key_name", key_name cannot be nil.')
128
+ end
129
+
117
130
  invalid_properties
118
131
  end
119
132
 
120
133
  # Check to see if the all the properties in the model are valid
121
134
  # @return true if the model is valid
122
135
  def valid?
136
+ return false if @key_name.nil?
123
137
  true
124
138
  end
125
139
 
@@ -130,6 +144,7 @@ module Akeyless
130
144
  self.class == o.class &&
131
145
  display_id == o.display_id &&
132
146
  encryption_context == o.encryption_context &&
147
+ item_id == o.item_id &&
133
148
  key_name == o.key_name &&
134
149
  plaintext == o.plaintext &&
135
150
  token == o.token &&
@@ -145,7 +160,7 @@ module Akeyless
145
160
  # Calculates hash code according to all attributes.
146
161
  # @return [Integer] Hash code
147
162
  def hash
148
- [display_id, encryption_context, key_name, plaintext, token, uid_token].hash
163
+ [display_id, encryption_context, item_id, key_name, plaintext, token, uid_token].hash
149
164
  end
150
165
 
151
166
  # Builds the object from hash
@@ -15,12 +15,18 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class EncryptFile
18
+ # The display id of the key to use in the encryption process
19
+ attr_accessor :display_id
20
+
18
21
  # name-value pair that specifies the encryption context to be used for authenticated encryption. If used here, the same value must be supplied to the decrypt command or decryption will fail
19
22
  attr_accessor :encryption_context
20
23
 
21
24
  # Path to the file to be encrypted. If not provided, the content will be taken from stdin
22
25
  attr_accessor :_in
23
26
 
27
+ # The item id of the key to use in the encryption process
28
+ attr_accessor :item_id
29
+
24
30
  # The name of the key to use in the encryption process
25
31
  attr_accessor :key_name
26
32
 
@@ -36,8 +42,10 @@ module Akeyless
36
42
  # Attribute mapping from ruby-style variable name to JSON key.
37
43
  def self.attribute_map
38
44
  {
45
+ :'display_id' => :'display-id',
39
46
  :'encryption_context' => :'encryption-context',
40
47
  :'_in' => :'in',
48
+ :'item_id' => :'item-id',
41
49
  :'key_name' => :'key-name',
42
50
  :'out' => :'out',
43
51
  :'token' => :'token',
@@ -53,8 +61,10 @@ module Akeyless
53
61
  # Attribute type mapping.
54
62
  def self.openapi_types
55
63
  {
64
+ :'display_id' => :'String',
56
65
  :'encryption_context' => :'Hash<String, String>',
57
66
  :'_in' => :'String',
67
+ :'item_id' => :'Integer',
58
68
  :'key_name' => :'String',
59
69
  :'out' => :'String',
60
70
  :'token' => :'String',
@@ -83,6 +93,10 @@ module Akeyless
83
93
  h[k.to_sym] = v
84
94
  }
85
95
 
96
+ if attributes.key?(:'display_id')
97
+ self.display_id = attributes[:'display_id']
98
+ end
99
+
86
100
  if attributes.key?(:'encryption_context')
87
101
  if (value = attributes[:'encryption_context']).is_a?(Hash)
88
102
  self.encryption_context = value
@@ -93,6 +107,10 @@ module Akeyless
93
107
  self._in = attributes[:'_in']
94
108
  end
95
109
 
110
+ if attributes.key?(:'item_id')
111
+ self.item_id = attributes[:'item_id']
112
+ end
113
+
96
114
  if attributes.key?(:'key_name')
97
115
  self.key_name = attributes[:'key_name']
98
116
  end
@@ -138,8 +156,10 @@ module Akeyless
138
156
  def ==(o)
139
157
  return true if self.equal?(o)
140
158
  self.class == o.class &&
159
+ display_id == o.display_id &&
141
160
  encryption_context == o.encryption_context &&
142
161
  _in == o._in &&
162
+ item_id == o.item_id &&
143
163
  key_name == o.key_name &&
144
164
  out == o.out &&
145
165
  token == o.token &&
@@ -155,7 +175,7 @@ module Akeyless
155
175
  # Calculates hash code according to all attributes.
156
176
  # @return [Integer] Hash code
157
177
  def hash
158
- [encryption_context, _in, key_name, out, token, uid_token].hash
178
+ [display_id, encryption_context, _in, item_id, key_name, out, token, uid_token].hash
159
179
  end
160
180
 
161
181
  # Builds the object from hash
@@ -15,7 +15,13 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class EncryptPKCS1
18
- # The name of the RSA key to use in the encryption process
18
+ # The display id of the key to use in the encryption process
19
+ attr_accessor :display_id
20
+
21
+ # The item id of the key to use in the encryption process
22
+ attr_accessor :item_id
23
+
24
+ # The name of the key to use in the encryption process
19
25
  attr_accessor :key_name
20
26
 
21
27
  # Data to be encrypted
@@ -30,6 +36,8 @@ module Akeyless
30
36
  # Attribute mapping from ruby-style variable name to JSON key.
31
37
  def self.attribute_map
32
38
  {
39
+ :'display_id' => :'display-id',
40
+ :'item_id' => :'item-id',
33
41
  :'key_name' => :'key-name',
34
42
  :'plaintext' => :'plaintext',
35
43
  :'token' => :'token',
@@ -45,6 +53,8 @@ module Akeyless
45
53
  # Attribute type mapping.
46
54
  def self.openapi_types
47
55
  {
56
+ :'display_id' => :'String',
57
+ :'item_id' => :'Integer',
48
58
  :'key_name' => :'String',
49
59
  :'plaintext' => :'String',
50
60
  :'token' => :'String',
@@ -73,6 +83,14 @@ module Akeyless
73
83
  h[k.to_sym] = v
74
84
  }
75
85
 
86
+ if attributes.key?(:'display_id')
87
+ self.display_id = attributes[:'display_id']
88
+ end
89
+
90
+ if attributes.key?(:'item_id')
91
+ self.item_id = attributes[:'item_id']
92
+ end
93
+
76
94
  if attributes.key?(:'key_name')
77
95
  self.key_name = attributes[:'key_name']
78
96
  end
@@ -118,6 +136,8 @@ module Akeyless
118
136
  def ==(o)
119
137
  return true if self.equal?(o)
120
138
  self.class == o.class &&
139
+ display_id == o.display_id &&
140
+ item_id == o.item_id &&
121
141
  key_name == o.key_name &&
122
142
  plaintext == o.plaintext &&
123
143
  token == o.token &&
@@ -133,7 +153,7 @@ module Akeyless
133
153
  # Calculates hash code according to all attributes.
134
154
  # @return [Integer] Hash code
135
155
  def hash
136
- [key_name, plaintext, token, uid_token].hash
156
+ [display_id, item_id, key_name, plaintext, token, uid_token].hash
137
157
  end
138
158
 
139
159
  # Builds the object from hash
@@ -19,6 +19,9 @@ module Akeyless
19
19
  # The access ID of the Kubernetes auth method
20
20
  attr_accessor :access_id
21
21
 
22
+ # Cluster access type. options: [native_k8s, rancher]
23
+ attr_accessor :cluster_api_type
24
+
22
25
  # Config encryption key
23
26
  attr_accessor :config_encryption_key_name
24
27
 
@@ -34,6 +37,12 @@ module Akeyless
34
37
  # K8S Auth config name
35
38
  attr_accessor :name
36
39
 
40
+ # The api key used to access the TokenReview API to validate other JWTs (relevant for \"rancher\" only)
41
+ attr_accessor :rancher_api_key
42
+
43
+ # The cluster id as define in rancher (relevant for \"rancher\" only)
44
+ attr_accessor :rancher_cluster_id
45
+
37
46
  # The private key (in base64 encoded of the PEM format) associated with the public key defined in the Kubernetes auth
38
47
  attr_accessor :signing_key
39
48
 
@@ -43,7 +52,7 @@ module Akeyless
43
52
  # Time in seconds of expiration of the Akeyless Kube Auth Method token
44
53
  attr_accessor :token_exp
45
54
 
46
- # A Kubernetes service account JWT used to access the TokenReview API to validate other JWTs. If not set, the JWT submitted in the authentication process will be used to access the Kubernetes TokenReview API.
55
+ # A Kubernetes service account JWT used to access the TokenReview API to validate other JWTs (relevant for \"native_k8s\" only). If not set, the JWT submitted in the authentication process will be used to access the Kubernetes TokenReview API.
47
56
  attr_accessor :token_reviewer_jwt
48
57
 
49
58
  # The universal identity token, Required only for universal_identity authentication
@@ -53,11 +62,14 @@ module Akeyless
53
62
  def self.attribute_map
54
63
  {
55
64
  :'access_id' => :'access-id',
65
+ :'cluster_api_type' => :'cluster-api-type',
56
66
  :'config_encryption_key_name' => :'config-encryption-key-name',
57
67
  :'k8s_ca_cert' => :'k8s-ca-cert',
58
68
  :'k8s_host' => :'k8s-host',
59
69
  :'k8s_issuer' => :'k8s-issuer',
60
70
  :'name' => :'name',
71
+ :'rancher_api_key' => :'rancher-api-key',
72
+ :'rancher_cluster_id' => :'rancher-cluster-id',
61
73
  :'signing_key' => :'signing-key',
62
74
  :'token' => :'token',
63
75
  :'token_exp' => :'token-exp',
@@ -75,11 +87,14 @@ module Akeyless
75
87
  def self.openapi_types
76
88
  {
77
89
  :'access_id' => :'String',
90
+ :'cluster_api_type' => :'String',
78
91
  :'config_encryption_key_name' => :'String',
79
92
  :'k8s_ca_cert' => :'String',
80
93
  :'k8s_host' => :'String',
81
94
  :'k8s_issuer' => :'String',
82
95
  :'name' => :'String',
96
+ :'rancher_api_key' => :'String',
97
+ :'rancher_cluster_id' => :'String',
83
98
  :'signing_key' => :'String',
84
99
  :'token' => :'String',
85
100
  :'token_exp' => :'Integer',
@@ -113,6 +128,12 @@ module Akeyless
113
128
  self.access_id = attributes[:'access_id']
114
129
  end
115
130
 
131
+ if attributes.key?(:'cluster_api_type')
132
+ self.cluster_api_type = attributes[:'cluster_api_type']
133
+ else
134
+ self.cluster_api_type = 'native_k8s'
135
+ end
136
+
116
137
  if attributes.key?(:'config_encryption_key_name')
117
138
  self.config_encryption_key_name = attributes[:'config_encryption_key_name']
118
139
  end
@@ -133,6 +154,14 @@ module Akeyless
133
154
  self.name = attributes[:'name']
134
155
  end
135
156
 
157
+ if attributes.key?(:'rancher_api_key')
158
+ self.rancher_api_key = attributes[:'rancher_api_key']
159
+ end
160
+
161
+ if attributes.key?(:'rancher_cluster_id')
162
+ self.rancher_cluster_id = attributes[:'rancher_cluster_id']
163
+ end
164
+
136
165
  if attributes.key?(:'signing_key')
137
166
  self.signing_key = attributes[:'signing_key']
138
167
  end
@@ -195,11 +224,14 @@ module Akeyless
195
224
  return true if self.equal?(o)
196
225
  self.class == o.class &&
197
226
  access_id == o.access_id &&
227
+ cluster_api_type == o.cluster_api_type &&
198
228
  config_encryption_key_name == o.config_encryption_key_name &&
199
229
  k8s_ca_cert == o.k8s_ca_cert &&
200
230
  k8s_host == o.k8s_host &&
201
231
  k8s_issuer == o.k8s_issuer &&
202
232
  name == o.name &&
233
+ rancher_api_key == o.rancher_api_key &&
234
+ rancher_cluster_id == o.rancher_cluster_id &&
203
235
  signing_key == o.signing_key &&
204
236
  token == o.token &&
205
237
  token_exp == o.token_exp &&
@@ -216,7 +248,7 @@ module Akeyless
216
248
  # Calculates hash code according to all attributes.
217
249
  # @return [Integer] Hash code
218
250
  def hash
219
- [access_id, config_encryption_key_name, k8s_ca_cert, k8s_host, k8s_issuer, name, signing_key, token, token_exp, token_reviewer_jwt, uid_token].hash
251
+ [access_id, cluster_api_type, config_encryption_key_name, k8s_ca_cert, k8s_host, k8s_issuer, name, rancher_api_key, rancher_cluster_id, signing_key, token, token_exp, token_reviewer_jwt, uid_token].hash
220
252
  end
221
253
 
222
254
  # Builds the object from hash
@@ -22,7 +22,7 @@ module Akeyless
22
22
  # DockerhubPassword is either the user's password access token to manage the repository
23
23
  attr_accessor :dockerhub_password
24
24
 
25
- # Access token scopes list (comma seperated) to give the dynamic secret valid options are in \"repo:admin\", \"repo:write\", \"repo:read\", \"repo:public_read\"
25
+ # Access token scopes list (comma-separated) to give the dynamic secret valid options are in \"repo:admin\", \"repo:write\", \"repo:read\", \"repo:public_read\"
26
26
  attr_accessor :dockerhub_token_scopes
27
27
 
28
28
  # DockerhubUsername is the name of the user in dockerhub
@@ -24,6 +24,9 @@ module Akeyless
24
24
  # AuthMethodSigningKey is the private key (in base64 of the PEM format) associated with the public key defined in the Kubernetes auth method, that used to sign the internal token for the Akeyless Kubernetes Auth Method
25
25
  attr_accessor :auth_method_prv_key_pem
26
26
 
27
+ # ClusterApiType defines types of API access to cluster
28
+ attr_accessor :cluster_api_type
29
+
27
30
  # DisableISSValidation is optional parameter to disable ISS validation
28
31
  attr_accessor :disable_iss_validation
29
32
 
@@ -41,13 +44,19 @@ module Akeyless
41
44
  # K8SPublicKeysPEM is the list of public key in PEM format
42
45
  attr_accessor :k8s_pub_keys_pem
43
46
 
44
- # K8STokenReviewerJW\"K8S Auth config %v successfully created\\n\", clictx.Color().Bold(c.K8SAuthConfigName)T is the bearer to use during the TokenReview API call
47
+ # K8STokenReviewerJWT is the bearer for clusterApiTypeK8s, used during TokenReview API call
45
48
  attr_accessor :k8s_token_reviewer_jwt
46
49
 
47
50
  attr_accessor :name
48
51
 
49
52
  attr_accessor :protection_key
50
53
 
54
+ # RancherApiKey the bear token for clusterApiTypeRancher
55
+ attr_accessor :rancher_api_key
56
+
57
+ # RancherClusterId cluster id as define in rancher (in case of clusterApiTypeRancher)
58
+ attr_accessor :rancher_cluster_id
59
+
51
60
  # UseLocalCAJwt is an optional parameter to set defaulting to using the local CA cert and service account jwt when running in a Kubernetes pod
52
61
  attr_accessor :use_local_ca_jwt
53
62
 
@@ -57,6 +66,7 @@ module Akeyless
57
66
  :'am_token_expiration' => :'am_token_expiration',
58
67
  :'auth_method_access_id' => :'auth_method_access_id',
59
68
  :'auth_method_prv_key_pem' => :'auth_method_prv_key_pem',
69
+ :'cluster_api_type' => :'cluster_api_type',
60
70
  :'disable_iss_validation' => :'disable_iss_validation',
61
71
  :'id' => :'id',
62
72
  :'k8s_ca_cert' => :'k8s_ca_cert',
@@ -66,6 +76,8 @@ module Akeyless
66
76
  :'k8s_token_reviewer_jwt' => :'k8s_token_reviewer_jwt',
67
77
  :'name' => :'name',
68
78
  :'protection_key' => :'protection_key',
79
+ :'rancher_api_key' => :'rancher_api_key',
80
+ :'rancher_cluster_id' => :'rancher_cluster_id',
69
81
  :'use_local_ca_jwt' => :'use_local_ca_jwt'
70
82
  }
71
83
  end
@@ -81,6 +93,7 @@ module Akeyless
81
93
  :'am_token_expiration' => :'Integer',
82
94
  :'auth_method_access_id' => :'String',
83
95
  :'auth_method_prv_key_pem' => :'String',
96
+ :'cluster_api_type' => :'String',
84
97
  :'disable_iss_validation' => :'Boolean',
85
98
  :'id' => :'String',
86
99
  :'k8s_ca_cert' => :'String',
@@ -90,6 +103,8 @@ module Akeyless
90
103
  :'k8s_token_reviewer_jwt' => :'String',
91
104
  :'name' => :'String',
92
105
  :'protection_key' => :'String',
106
+ :'rancher_api_key' => :'String',
107
+ :'rancher_cluster_id' => :'String',
93
108
  :'use_local_ca_jwt' => :'Boolean'
94
109
  }
95
110
  end
@@ -127,6 +142,10 @@ module Akeyless
127
142
  self.auth_method_prv_key_pem = attributes[:'auth_method_prv_key_pem']
128
143
  end
129
144
 
145
+ if attributes.key?(:'cluster_api_type')
146
+ self.cluster_api_type = attributes[:'cluster_api_type']
147
+ end
148
+
130
149
  if attributes.key?(:'disable_iss_validation')
131
150
  self.disable_iss_validation = attributes[:'disable_iss_validation']
132
151
  end
@@ -165,6 +184,14 @@ module Akeyless
165
184
  self.protection_key = attributes[:'protection_key']
166
185
  end
167
186
 
187
+ if attributes.key?(:'rancher_api_key')
188
+ self.rancher_api_key = attributes[:'rancher_api_key']
189
+ end
190
+
191
+ if attributes.key?(:'rancher_cluster_id')
192
+ self.rancher_cluster_id = attributes[:'rancher_cluster_id']
193
+ end
194
+
168
195
  if attributes.key?(:'use_local_ca_jwt')
169
196
  self.use_local_ca_jwt = attributes[:'use_local_ca_jwt']
170
197
  end
@@ -191,6 +218,7 @@ module Akeyless
191
218
  am_token_expiration == o.am_token_expiration &&
192
219
  auth_method_access_id == o.auth_method_access_id &&
193
220
  auth_method_prv_key_pem == o.auth_method_prv_key_pem &&
221
+ cluster_api_type == o.cluster_api_type &&
194
222
  disable_iss_validation == o.disable_iss_validation &&
195
223
  id == o.id &&
196
224
  k8s_ca_cert == o.k8s_ca_cert &&
@@ -200,6 +228,8 @@ module Akeyless
200
228
  k8s_token_reviewer_jwt == o.k8s_token_reviewer_jwt &&
201
229
  name == o.name &&
202
230
  protection_key == o.protection_key &&
231
+ rancher_api_key == o.rancher_api_key &&
232
+ rancher_cluster_id == o.rancher_cluster_id &&
203
233
  use_local_ca_jwt == o.use_local_ca_jwt
204
234
  end
205
235
 
@@ -212,7 +242,7 @@ module Akeyless
212
242
  # Calculates hash code according to all attributes.
213
243
  # @return [Integer] Hash code
214
244
  def hash
215
- [am_token_expiration, auth_method_access_id, auth_method_prv_key_pem, disable_iss_validation, id, k8s_ca_cert, k8s_host, k8s_issuer, k8s_pub_keys_pem, k8s_token_reviewer_jwt, name, protection_key, use_local_ca_jwt].hash
245
+ [am_token_expiration, auth_method_access_id, auth_method_prv_key_pem, cluster_api_type, disable_iss_validation, id, k8s_ca_cert, k8s_host, k8s_issuer, k8s_pub_keys_pem, k8s_token_reviewer_jwt, name, protection_key, rancher_api_key, rancher_cluster_id, use_local_ca_jwt].hash
216
246
  end
217
247
 
218
248
  # Builds the object from hash