akeyless 3.2.5 → 3.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (168) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +12 -1
  3. data/docs/CertAccessRules.md +2 -0
  4. data/docs/CreateAuthMethodCert.md +2 -0
  5. data/docs/CreateCertificate.md +1 -1
  6. data/docs/CreateClassicKey.md +1 -1
  7. data/docs/CreateDynamicSecret.md +1 -1
  8. data/docs/CreateLinkedTarget.md +1 -3
  9. data/docs/CreateRotatedSecret.md +1 -1
  10. data/docs/CreateSecret.md +1 -1
  11. data/docs/CreateWindowsTarget.md +2 -4
  12. data/docs/DecryptFile.md +6 -0
  13. data/docs/DescribeAssoc.md +24 -0
  14. data/docs/DescribeItem.md +2 -0
  15. data/docs/DynamicSecretProducerInfo.md +4 -0
  16. data/docs/EncryptFile.md +0 -2
  17. data/docs/GatewayBasicInfo.md +24 -0
  18. data/docs/GatewayCreateProducerArtifactory.md +1 -1
  19. data/docs/GatewayCreateProducerAws.md +1 -1
  20. data/docs/GatewayCreateProducerAzure.md +1 -1
  21. data/docs/GatewayCreateProducerCassandra.md +1 -1
  22. data/docs/GatewayCreateProducerCertificateAutomation.md +1 -1
  23. data/docs/GatewayCreateProducerChef.md +1 -1
  24. data/docs/GatewayCreateProducerCustom.md +1 -1
  25. data/docs/GatewayCreateProducerDockerhub.md +1 -1
  26. data/docs/GatewayCreateProducerEks.md +1 -1
  27. data/docs/GatewayCreateProducerGcp.md +1 -1
  28. data/docs/GatewayCreateProducerGke.md +1 -1
  29. data/docs/GatewayCreateProducerHanaDb.md +1 -1
  30. data/docs/GatewayCreateProducerLdap.md +1 -1
  31. data/docs/GatewayCreateProducerMSSQL.md +1 -1
  32. data/docs/GatewayCreateProducerMongo.md +1 -1
  33. data/docs/GatewayCreateProducerMySQL.md +1 -1
  34. data/docs/GatewayCreateProducerNativeK8S.md +11 -1
  35. data/docs/GatewayCreateProducerOracleDb.md +1 -1
  36. data/docs/GatewayCreateProducerPing.md +1 -1
  37. data/docs/GatewayCreateProducerPostgreSQL.md +1 -1
  38. data/docs/GatewayCreateProducerRabbitMQ.md +1 -1
  39. data/docs/GatewayCreateProducerRdp.md +1 -1
  40. data/docs/GatewayCreateProducerRedshift.md +1 -1
  41. data/docs/GatewayCreateProducerSnowflake.md +1 -1
  42. data/docs/GatewayDownloadCustomerFragments.md +22 -0
  43. data/docs/GatewayDownloadCustomerFragmentsOutput.md +18 -0
  44. data/docs/GatewayMessageQueueInfo.md +2 -0
  45. data/docs/GatewayUpdateProducerArtifactory.md +1 -1
  46. data/docs/GatewayUpdateProducerAws.md +1 -1
  47. data/docs/GatewayUpdateProducerAzure.md +1 -1
  48. data/docs/GatewayUpdateProducerCassandra.md +1 -1
  49. data/docs/GatewayUpdateProducerCertificateAutomation.md +1 -1
  50. data/docs/GatewayUpdateProducerChef.md +1 -1
  51. data/docs/GatewayUpdateProducerCustom.md +1 -1
  52. data/docs/GatewayUpdateProducerDockerhub.md +1 -1
  53. data/docs/GatewayUpdateProducerEks.md +1 -1
  54. data/docs/GatewayUpdateProducerGcp.md +1 -1
  55. data/docs/GatewayUpdateProducerGke.md +1 -1
  56. data/docs/GatewayUpdateProducerHanaDb.md +1 -1
  57. data/docs/GatewayUpdateProducerLdap.md +1 -1
  58. data/docs/GatewayUpdateProducerMSSQL.md +1 -1
  59. data/docs/GatewayUpdateProducerMongo.md +1 -1
  60. data/docs/GatewayUpdateProducerMySQL.md +1 -1
  61. data/docs/GatewayUpdateProducerNativeK8S.md +11 -1
  62. data/docs/GatewayUpdateProducerOracleDb.md +1 -1
  63. data/docs/GatewayUpdateProducerPing.md +1 -1
  64. data/docs/GatewayUpdateProducerPostgreSQL.md +1 -1
  65. data/docs/GatewayUpdateProducerRabbitMQ.md +1 -1
  66. data/docs/GatewayUpdateProducerRdp.md +1 -1
  67. data/docs/GatewayUpdateProducerRedshift.md +1 -1
  68. data/docs/GatewayUpdateProducerSnowflake.md +1 -1
  69. data/docs/GeneralConfigPart.md +2 -0
  70. data/docs/ImportPasswords.md +32 -0
  71. data/docs/ImportPasswordsOutput.md +22 -0
  72. data/docs/Item.md +4 -0
  73. data/docs/LinkedDetails.md +18 -0
  74. data/docs/RoleAssociationDetails.md +26 -0
  75. data/docs/TargetTypeDetailsInput.md +1 -3
  76. data/docs/UpdateAuthMethodCert.md +2 -0
  77. data/docs/UpdateLinkedTarget.md +2 -4
  78. data/docs/UpdateWindowsTarget.md +2 -4
  79. data/docs/V2Api.md +191 -2
  80. data/lib/akeyless/api/v2_api.rb +192 -0
  81. data/lib/akeyless/configuration.rb +5 -0
  82. data/lib/akeyless/models/cert_access_rules.rb +13 -1
  83. data/lib/akeyless/models/create_auth_method_cert.rb +11 -1
  84. data/lib/akeyless/models/create_certificate.rb +1 -1
  85. data/lib/akeyless/models/create_classic_key.rb +1 -1
  86. data/lib/akeyless/models/create_dynamic_secret.rb +1 -1
  87. data/lib/akeyless/models/create_linked_target.rb +2 -17
  88. data/lib/akeyless/models/create_rotated_secret.rb +1 -1
  89. data/lib/akeyless/models/create_secret.rb +1 -1
  90. data/lib/akeyless/models/create_windows_target.rb +9 -19
  91. data/lib/akeyless/models/decrypt_file.rb +35 -1
  92. data/lib/akeyless/models/describe_assoc.rb +257 -0
  93. data/lib/akeyless/models/describe_item.rb +13 -1
  94. data/lib/akeyless/models/dynamic_secret_producer_info.rb +21 -1
  95. data/lib/akeyless/models/encrypt_file.rb +1 -13
  96. data/lib/akeyless/models/gateway_basic_info.rb +246 -0
  97. data/lib/akeyless/models/gateway_create_producer_artifactory.rb +1 -1
  98. data/lib/akeyless/models/gateway_create_producer_aws.rb +1 -1
  99. data/lib/akeyless/models/gateway_create_producer_azure.rb +1 -1
  100. data/lib/akeyless/models/gateway_create_producer_cassandra.rb +1 -1
  101. data/lib/akeyless/models/gateway_create_producer_certificate_automation.rb +1 -1
  102. data/lib/akeyless/models/gateway_create_producer_chef.rb +1 -1
  103. data/lib/akeyless/models/gateway_create_producer_custom.rb +1 -1
  104. data/lib/akeyless/models/gateway_create_producer_dockerhub.rb +1 -1
  105. data/lib/akeyless/models/gateway_create_producer_eks.rb +1 -1
  106. data/lib/akeyless/models/gateway_create_producer_gcp.rb +1 -1
  107. data/lib/akeyless/models/gateway_create_producer_gke.rb +1 -1
  108. data/lib/akeyless/models/gateway_create_producer_hana_db.rb +1 -1
  109. data/lib/akeyless/models/gateway_create_producer_ldap.rb +1 -1
  110. data/lib/akeyless/models/gateway_create_producer_mongo.rb +1 -1
  111. data/lib/akeyless/models/gateway_create_producer_mssql.rb +1 -1
  112. data/lib/akeyless/models/gateway_create_producer_my_sql.rb +1 -1
  113. data/lib/akeyless/models/gateway_create_producer_native_k8_s.rb +52 -2
  114. data/lib/akeyless/models/gateway_create_producer_oracle_db.rb +1 -1
  115. data/lib/akeyless/models/gateway_create_producer_ping.rb +1 -1
  116. data/lib/akeyless/models/gateway_create_producer_postgre_sql.rb +1 -1
  117. data/lib/akeyless/models/gateway_create_producer_rabbit_mq.rb +1 -1
  118. data/lib/akeyless/models/gateway_create_producer_rdp.rb +1 -1
  119. data/lib/akeyless/models/gateway_create_producer_redshift.rb +1 -1
  120. data/lib/akeyless/models/gateway_create_producer_snowflake.rb +1 -1
  121. data/lib/akeyless/models/gateway_download_customer_fragments.rb +243 -0
  122. data/lib/akeyless/models/gateway_download_customer_fragments_output.rb +221 -0
  123. data/lib/akeyless/models/gateway_message_queue_info.rb +10 -1
  124. data/lib/akeyless/models/gateway_update_producer_artifactory.rb +1 -1
  125. data/lib/akeyless/models/gateway_update_producer_aws.rb +1 -1
  126. data/lib/akeyless/models/gateway_update_producer_azure.rb +1 -1
  127. data/lib/akeyless/models/gateway_update_producer_cassandra.rb +1 -1
  128. data/lib/akeyless/models/gateway_update_producer_certificate_automation.rb +1 -1
  129. data/lib/akeyless/models/gateway_update_producer_chef.rb +1 -1
  130. data/lib/akeyless/models/gateway_update_producer_custom.rb +1 -1
  131. data/lib/akeyless/models/gateway_update_producer_dockerhub.rb +1 -1
  132. data/lib/akeyless/models/gateway_update_producer_eks.rb +1 -1
  133. data/lib/akeyless/models/gateway_update_producer_gcp.rb +1 -1
  134. data/lib/akeyless/models/gateway_update_producer_gke.rb +1 -1
  135. data/lib/akeyless/models/gateway_update_producer_hana_db.rb +1 -1
  136. data/lib/akeyless/models/gateway_update_producer_ldap.rb +1 -1
  137. data/lib/akeyless/models/gateway_update_producer_mongo.rb +1 -1
  138. data/lib/akeyless/models/gateway_update_producer_mssql.rb +1 -1
  139. data/lib/akeyless/models/gateway_update_producer_my_sql.rb +1 -1
  140. data/lib/akeyless/models/gateway_update_producer_native_k8_s.rb +52 -2
  141. data/lib/akeyless/models/gateway_update_producer_oracle_db.rb +1 -1
  142. data/lib/akeyless/models/gateway_update_producer_ping.rb +1 -1
  143. data/lib/akeyless/models/gateway_update_producer_postgre_sql.rb +1 -1
  144. data/lib/akeyless/models/gateway_update_producer_rabbit_mq.rb +1 -1
  145. data/lib/akeyless/models/gateway_update_producer_rdp.rb +1 -1
  146. data/lib/akeyless/models/gateway_update_producer_redshift.rb +1 -1
  147. data/lib/akeyless/models/gateway_update_producer_snowflake.rb +1 -1
  148. data/lib/akeyless/models/general_config_part.rb +10 -1
  149. data/lib/akeyless/models/import_passwords.rb +304 -0
  150. data/lib/akeyless/models/import_passwords_output.rb +237 -0
  151. data/lib/akeyless/models/item.rb +21 -1
  152. data/lib/akeyless/models/linked_details.rb +221 -0
  153. data/lib/akeyless/models/role_association_details.rb +258 -0
  154. data/lib/akeyless/models/target_type_details_input.rb +3 -12
  155. data/lib/akeyless/models/update_auth_method_cert.rb +11 -1
  156. data/lib/akeyless/models/update_linked_target.rb +3 -18
  157. data/lib/akeyless/models/update_windows_target.rb +9 -19
  158. data/lib/akeyless/version.rb +1 -1
  159. data/lib/akeyless.rb +8 -0
  160. data/spec/models/describe_assoc_spec.rb +52 -0
  161. data/spec/models/gateway_basic_info_spec.rb +52 -0
  162. data/spec/models/gateway_download_customer_fragments_output_spec.rb +34 -0
  163. data/spec/models/gateway_download_customer_fragments_spec.rb +46 -0
  164. data/spec/models/import_passwords_output_spec.rb +46 -0
  165. data/spec/models/import_passwords_spec.rb +76 -0
  166. data/spec/models/linked_details_spec.rb +34 -0
  167. data/spec/models/role_association_details_spec.rb +58 -0
  168. metadata +34 -2
@@ -18,9 +18,6 @@ module Akeyless
18
18
  # The display id of the key to use in the encryption process
19
19
  attr_accessor :display_id
20
20
 
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
- attr_accessor :encryption_context
23
-
24
21
  # Path to the file to be encrypted. If not provided, the content will be taken from stdin
25
22
  attr_accessor :_in
26
23
 
@@ -46,7 +43,6 @@ module Akeyless
46
43
  def self.attribute_map
47
44
  {
48
45
  :'display_id' => :'display-id',
49
- :'encryption_context' => :'encryption-context',
50
46
  :'_in' => :'in',
51
47
  :'item_id' => :'item-id',
52
48
  :'json' => :'json',
@@ -66,7 +62,6 @@ module Akeyless
66
62
  def self.openapi_types
67
63
  {
68
64
  :'display_id' => :'String',
69
- :'encryption_context' => :'Hash<String, String>',
70
65
  :'_in' => :'String',
71
66
  :'item_id' => :'Integer',
72
67
  :'json' => :'Boolean',
@@ -102,12 +97,6 @@ module Akeyless
102
97
  self.display_id = attributes[:'display_id']
103
98
  end
104
99
 
105
- if attributes.key?(:'encryption_context')
106
- if (value = attributes[:'encryption_context']).is_a?(Hash)
107
- self.encryption_context = value
108
- end
109
- end
110
-
111
100
  if attributes.key?(:'_in')
112
101
  self._in = attributes[:'_in']
113
102
  end
@@ -168,7 +157,6 @@ module Akeyless
168
157
  return true if self.equal?(o)
169
158
  self.class == o.class &&
170
159
  display_id == o.display_id &&
171
- encryption_context == o.encryption_context &&
172
160
  _in == o._in &&
173
161
  item_id == o.item_id &&
174
162
  json == o.json &&
@@ -187,7 +175,7 @@ module Akeyless
187
175
  # Calculates hash code according to all attributes.
188
176
  # @return [Integer] Hash code
189
177
  def hash
190
- [display_id, encryption_context, _in, item_id, json, key_name, out, token, uid_token].hash
178
+ [display_id, _in, item_id, json, key_name, out, token, uid_token].hash
191
179
  end
192
180
 
193
181
  # 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: 6.5.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Akeyless
17
+ class GatewayBasicInfo
18
+ attr_accessor :cluster_display_name
19
+
20
+ attr_accessor :cluster_id
21
+
22
+ attr_accessor :cluster_name
23
+
24
+ attr_accessor :cluster_url
25
+
26
+ # Attribute mapping from ruby-style variable name to JSON key.
27
+ def self.attribute_map
28
+ {
29
+ :'cluster_display_name' => :'cluster_display_name',
30
+ :'cluster_id' => :'cluster_id',
31
+ :'cluster_name' => :'cluster_name',
32
+ :'cluster_url' => :'cluster_url'
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
+ :'cluster_display_name' => :'String',
45
+ :'cluster_id' => :'Integer',
46
+ :'cluster_name' => :'String',
47
+ :'cluster_url' => :'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::GatewayBasicInfo` 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::GatewayBasicInfo`. 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?(:'cluster_display_name')
73
+ self.cluster_display_name = attributes[:'cluster_display_name']
74
+ end
75
+
76
+ if attributes.key?(:'cluster_id')
77
+ self.cluster_id = attributes[:'cluster_id']
78
+ end
79
+
80
+ if attributes.key?(:'cluster_name')
81
+ self.cluster_name = attributes[:'cluster_name']
82
+ end
83
+
84
+ if attributes.key?(:'cluster_url')
85
+ self.cluster_url = attributes[:'cluster_url']
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
+ cluster_display_name == o.cluster_display_name &&
108
+ cluster_id == o.cluster_id &&
109
+ cluster_name == o.cluster_name &&
110
+ cluster_url == o.cluster_url
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
+ [cluster_display_name, cluster_id, cluster_name, cluster_url].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
@@ -43,7 +43,7 @@ module Akeyless
43
43
  # Dynamic producer encryption key
44
44
  attr_accessor :producer_encryption_key_name
45
45
 
46
- # List of the tags attached to this secret
46
+ # Add tags attached to this object
47
47
  attr_accessor :tags
48
48
 
49
49
  # Target name
@@ -81,7 +81,7 @@ module Akeyless
81
81
  # Web-Proxy via Akeyless Web Access Bastion
82
82
  attr_accessor :secure_access_web_proxy
83
83
 
84
- # List of the tags attached to this secret
84
+ # Add tags attached to this object
85
85
  attr_accessor :tags
86
86
 
87
87
  # Target name
@@ -58,7 +58,7 @@ module Akeyless
58
58
  # Web-Proxy via Akeyless Web Access Bastion
59
59
  attr_accessor :secure_access_web_proxy
60
60
 
61
- # List of the tags attached to this secret
61
+ # Add tags attached to this object
62
62
  attr_accessor :tags
63
63
 
64
64
  # Target name
@@ -43,7 +43,7 @@ module Akeyless
43
43
  # Dynamic producer encryption key
44
44
  attr_accessor :producer_encryption_key_name
45
45
 
46
- # List of the tags attached to this secret
46
+ # Add tags attached to this object
47
47
  attr_accessor :tags
48
48
 
49
49
  # Target name
@@ -55,7 +55,7 @@ module Akeyless
55
55
  # Store private key
56
56
  attr_accessor :store_private_key
57
57
 
58
- # List of the tags attached to this secret
58
+ # Add tags attached to this object
59
59
  attr_accessor :tags
60
60
 
61
61
  # Target name
@@ -43,7 +43,7 @@ module Akeyless
43
43
  # Skip SSL
44
44
  attr_accessor :skip_ssl
45
45
 
46
- # List of the tags attached to this secret
46
+ # Add tags attached to this object
47
47
  attr_accessor :tags
48
48
 
49
49
  # Target name
@@ -45,7 +45,7 @@ module Akeyless
45
45
  # URL of an endpoint that implements /sync/rotate method, for example https://webhook.example.com/sync/rotate
46
46
  attr_accessor :rotate_sync_url
47
47
 
48
- # List of the tags attached to this secret
48
+ # Add tags attached to this object
49
49
  attr_accessor :tags
50
50
 
51
51
  # Maximum allowed time in seconds for the webhook to return the results
@@ -37,7 +37,7 @@ module Akeyless
37
37
  # Dynamic producer encryption key
38
38
  attr_accessor :producer_encryption_key_name
39
39
 
40
- # List of the tags attached to this secret
40
+ # Add tags attached to this object
41
41
  attr_accessor :tags
42
42
 
43
43
  # Target name
@@ -64,7 +64,7 @@ module Akeyless
64
64
  # Enable Web Secure Remote Access
65
65
  attr_accessor :secure_access_web
66
66
 
67
- # List of the tags attached to this secret
67
+ # Add tags attached to this object
68
68
  attr_accessor :tags
69
69
 
70
70
  # Target name
@@ -48,7 +48,7 @@ module Akeyless
48
48
  # The type of the gcp dynamic secret. Options[fixed, dynamic]
49
49
  attr_accessor :service_account_type
50
50
 
51
- # List of the tags attached to this secret
51
+ # Add tags attached to this object
52
52
  attr_accessor :tags
53
53
 
54
54
  # Target name
@@ -58,7 +58,7 @@ module Akeyless
58
58
  # Enable Web Secure Remote Access
59
59
  attr_accessor :secure_access_web
60
60
 
61
- # List of the tags attached to this secret
61
+ # Add tags attached to this object
62
62
  attr_accessor :tags
63
63
 
64
64
  # Target name
@@ -64,7 +64,7 @@ module Akeyless
64
64
  # Enable Web Secure Remote Access
65
65
  attr_accessor :secure_access_web
66
66
 
67
- # List of the tags attached to this secret
67
+ # Add tags attached to this object
68
68
  attr_accessor :tags
69
69
 
70
70
  # Target name
@@ -43,7 +43,7 @@ module Akeyless
43
43
  # Dynamic producer encryption key
44
44
  attr_accessor :producer_encryption_key_name
45
45
 
46
- # List of the tags attached to this secret
46
+ # Add tags attached to this object
47
47
  attr_accessor :tags
48
48
 
49
49
  # Target name
@@ -76,7 +76,7 @@ module Akeyless
76
76
  # Enable Web Secure Remote Access
77
77
  attr_accessor :secure_access_web
78
78
 
79
- # List of the tags attached to this secret
79
+ # Add tags attached to this object
80
80
  attr_accessor :tags
81
81
 
82
82
  # Target name
@@ -64,7 +64,7 @@ module Akeyless
64
64
  # Enable Web Secure Remote Access
65
65
  attr_accessor :secure_access_web
66
66
 
67
- # List of the tags attached to this secret
67
+ # Add tags attached to this object
68
68
  attr_accessor :tags
69
69
 
70
70
  # Target name
@@ -73,7 +73,7 @@ module Akeyless
73
73
  # SSL connection certificate
74
74
  attr_accessor :ssl_certificate
75
75
 
76
- # List of the tags attached to this secret
76
+ # Add tags attached to this object
77
77
  attr_accessor :tags
78
78
 
79
79
  # Target name
@@ -22,6 +22,9 @@ module Akeyless
22
22
  # Set output format to JSON
23
23
  attr_accessor :json
24
24
 
25
+ # Comma-separated list of allowed K8S namespaces for the generated ServiceAccount (relevant only for k8s-service-account-type=dynamic)
26
+ attr_accessor :k8s_allowed_namespaces
27
+
25
28
  # K8S cluster CA certificate
26
29
  attr_accessor :k8s_cluster_ca_cert
27
30
 
@@ -34,9 +37,21 @@ module Akeyless
34
37
  # K8S Namespace where the ServiceAccount exists.
35
38
  attr_accessor :k8s_namespace
36
39
 
40
+ # The pre-existing Role or ClusterRole name to bind the generated ServiceAccount to (relevant only for k8s-service-account-type=dynamic)
41
+ attr_accessor :k8s_predefined_role_name
42
+
43
+ # Specifies the type of the pre-existing K8S role [Role, ClusterRole] (relevant only for k8s-service-account-type=dynamic)
44
+ attr_accessor :k8s_predefined_role_type
45
+
46
+ # Path to yaml file that contains definitions of K8S role and role binding (relevant only for k8s-service-account-type=dynamic)
47
+ attr_accessor :k8s_rolebinding_yaml_def
48
+
37
49
  # K8S ServiceAccount to extract token from.
38
50
  attr_accessor :k8s_service_account
39
51
 
52
+ # K8S ServiceAccount type [fixed, dynamic].
53
+ attr_accessor :k8s_service_account_type
54
+
40
55
  # Producer name
41
56
  attr_accessor :name
42
57
 
@@ -67,7 +82,7 @@ module Akeyless
67
82
  # Web-Proxy via Akeyless Web Access Bastion
68
83
  attr_accessor :secure_access_web_proxy
69
84
 
70
- # List of the tags attached to this secret
85
+ # Add tags attached to this object
71
86
  attr_accessor :tags
72
87
 
73
88
  # Target name
@@ -87,11 +102,16 @@ module Akeyless
87
102
  {
88
103
  :'delete_protection' => :'delete_protection',
89
104
  :'json' => :'json',
105
+ :'k8s_allowed_namespaces' => :'k8s-allowed-namespaces',
90
106
  :'k8s_cluster_ca_cert' => :'k8s-cluster-ca-cert',
91
107
  :'k8s_cluster_endpoint' => :'k8s-cluster-endpoint',
92
108
  :'k8s_cluster_token' => :'k8s-cluster-token',
93
109
  :'k8s_namespace' => :'k8s-namespace',
110
+ :'k8s_predefined_role_name' => :'k8s-predefined-role-name',
111
+ :'k8s_predefined_role_type' => :'k8s-predefined-role-type',
112
+ :'k8s_rolebinding_yaml_def' => :'k8s-rolebinding-yaml-def',
94
113
  :'k8s_service_account' => :'k8s-service-account',
114
+ :'k8s_service_account_type' => :'k8s-service-account-type',
95
115
  :'name' => :'name',
96
116
  :'producer_encryption_key_name' => :'producer-encryption-key-name',
97
117
  :'secure_access_allow_port_forwading' => :'secure-access-allow-port-forwading',
@@ -120,11 +140,16 @@ module Akeyless
120
140
  {
121
141
  :'delete_protection' => :'String',
122
142
  :'json' => :'Boolean',
143
+ :'k8s_allowed_namespaces' => :'String',
123
144
  :'k8s_cluster_ca_cert' => :'String',
124
145
  :'k8s_cluster_endpoint' => :'String',
125
146
  :'k8s_cluster_token' => :'String',
126
147
  :'k8s_namespace' => :'String',
148
+ :'k8s_predefined_role_name' => :'String',
149
+ :'k8s_predefined_role_type' => :'String',
150
+ :'k8s_rolebinding_yaml_def' => :'String',
127
151
  :'k8s_service_account' => :'String',
152
+ :'k8s_service_account_type' => :'String',
128
153
  :'name' => :'String',
129
154
  :'producer_encryption_key_name' => :'String',
130
155
  :'secure_access_allow_port_forwading' => :'Boolean',
@@ -174,6 +199,10 @@ module Akeyless
174
199
  self.json = false
175
200
  end
176
201
 
202
+ if attributes.key?(:'k8s_allowed_namespaces')
203
+ self.k8s_allowed_namespaces = attributes[:'k8s_allowed_namespaces']
204
+ end
205
+
177
206
  if attributes.key?(:'k8s_cluster_ca_cert')
178
207
  self.k8s_cluster_ca_cert = attributes[:'k8s_cluster_ca_cert']
179
208
  end
@@ -190,10 +219,26 @@ module Akeyless
190
219
  self.k8s_namespace = attributes[:'k8s_namespace']
191
220
  end
192
221
 
222
+ if attributes.key?(:'k8s_predefined_role_name')
223
+ self.k8s_predefined_role_name = attributes[:'k8s_predefined_role_name']
224
+ end
225
+
226
+ if attributes.key?(:'k8s_predefined_role_type')
227
+ self.k8s_predefined_role_type = attributes[:'k8s_predefined_role_type']
228
+ end
229
+
230
+ if attributes.key?(:'k8s_rolebinding_yaml_def')
231
+ self.k8s_rolebinding_yaml_def = attributes[:'k8s_rolebinding_yaml_def']
232
+ end
233
+
193
234
  if attributes.key?(:'k8s_service_account')
194
235
  self.k8s_service_account = attributes[:'k8s_service_account']
195
236
  end
196
237
 
238
+ if attributes.key?(:'k8s_service_account_type')
239
+ self.k8s_service_account_type = attributes[:'k8s_service_account_type']
240
+ end
241
+
197
242
  if attributes.key?(:'name')
198
243
  self.name = attributes[:'name']
199
244
  end
@@ -290,11 +335,16 @@ module Akeyless
290
335
  self.class == o.class &&
291
336
  delete_protection == o.delete_protection &&
292
337
  json == o.json &&
338
+ k8s_allowed_namespaces == o.k8s_allowed_namespaces &&
293
339
  k8s_cluster_ca_cert == o.k8s_cluster_ca_cert &&
294
340
  k8s_cluster_endpoint == o.k8s_cluster_endpoint &&
295
341
  k8s_cluster_token == o.k8s_cluster_token &&
296
342
  k8s_namespace == o.k8s_namespace &&
343
+ k8s_predefined_role_name == o.k8s_predefined_role_name &&
344
+ k8s_predefined_role_type == o.k8s_predefined_role_type &&
345
+ k8s_rolebinding_yaml_def == o.k8s_rolebinding_yaml_def &&
297
346
  k8s_service_account == o.k8s_service_account &&
347
+ k8s_service_account_type == o.k8s_service_account_type &&
298
348
  name == o.name &&
299
349
  producer_encryption_key_name == o.producer_encryption_key_name &&
300
350
  secure_access_allow_port_forwading == o.secure_access_allow_port_forwading &&
@@ -321,7 +371,7 @@ module Akeyless
321
371
  # Calculates hash code according to all attributes.
322
372
  # @return [Integer] Hash code
323
373
  def hash
324
- [delete_protection, json, k8s_cluster_ca_cert, k8s_cluster_endpoint, k8s_cluster_token, k8s_namespace, k8s_service_account, name, producer_encryption_key_name, secure_access_allow_port_forwading, secure_access_bastion_issuer, secure_access_cluster_endpoint, secure_access_dashboard_url, secure_access_enable, secure_access_web, secure_access_web_browsing, secure_access_web_proxy, tags, target_name, token, uid_token, user_ttl].hash
374
+ [delete_protection, json, k8s_allowed_namespaces, k8s_cluster_ca_cert, k8s_cluster_endpoint, k8s_cluster_token, k8s_namespace, k8s_predefined_role_name, k8s_predefined_role_type, k8s_rolebinding_yaml_def, k8s_service_account, k8s_service_account_type, name, producer_encryption_key_name, secure_access_allow_port_forwading, secure_access_bastion_issuer, secure_access_cluster_endpoint, secure_access_dashboard_url, secure_access_enable, secure_access_web, secure_access_web_browsing, secure_access_web_proxy, tags, target_name, token, uid_token, user_ttl].hash
325
375
  end
326
376
 
327
377
  # Builds the object from hash
@@ -64,7 +64,7 @@ module Akeyless
64
64
  # Enable Web Secure Remote Access
65
65
  attr_accessor :secure_access_web
66
66
 
67
- # List of the tags attached to this secret
67
+ # Add tags attached to this object
68
68
  attr_accessor :tags
69
69
 
70
70
  # Target name
@@ -76,7 +76,7 @@ module Akeyless
76
76
  # Dynamic producer encryption key
77
77
  attr_accessor :producer_encryption_key_name
78
78
 
79
- # List of the tags attached to this secret
79
+ # Add tags attached to this object
80
80
  attr_accessor :tags
81
81
 
82
82
  # Target name
@@ -67,7 +67,7 @@ module Akeyless
67
67
  # Enable/Disable SSL [true/false]
68
68
  attr_accessor :ssl
69
69
 
70
- # List of the tags attached to this secret
70
+ # Add tags attached to this object
71
71
  attr_accessor :tags
72
72
 
73
73
  # Target name
@@ -67,7 +67,7 @@ module Akeyless
67
67
  # Web-Proxy via Akeyless Web Access Bastion
68
68
  attr_accessor :secure_access_web_proxy
69
69
 
70
- # List of the tags attached to this secret
70
+ # Add tags attached to this object
71
71
  attr_accessor :tags
72
72
 
73
73
  # Target name
@@ -64,7 +64,7 @@ module Akeyless
64
64
  # Override the RDP Domain username
65
65
  attr_accessor :secure_access_rdp_user
66
66
 
67
- # List of the tags attached to this secret
67
+ # Add tags attached to this object
68
68
  attr_accessor :tags
69
69
 
70
70
  # Target name
@@ -55,7 +55,7 @@ module Akeyless
55
55
  # Enable/Disable SSL [true/false]
56
56
  attr_accessor :ssl
57
57
 
58
- # List of the tags attached to this secret
58
+ # Add tags attached to this object
59
59
  attr_accessor :tags
60
60
 
61
61
  # Target name
@@ -46,7 +46,7 @@ module Akeyless
46
46
  # User role
47
47
  attr_accessor :role
48
48
 
49
- # List of the tags attached to this secret
49
+ # Add tags attached to this object
50
50
  attr_accessor :tags
51
51
 
52
52
  # Target name