akeyless 3.1.1 → 3.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +12 -1
  3. data/docs/AssocTargetItem.md +2 -0
  4. data/docs/CreateCertificate.md +3 -1
  5. data/docs/CreateClassicKey.md +6 -2
  6. data/docs/CreateDBTarget.md +4 -0
  7. data/docs/CreateDFCKey.md +3 -1
  8. data/docs/CreateDynamicSecret.md +3 -1
  9. data/docs/CreateKey.md +3 -1
  10. data/docs/CreatePKICertIssuer.md +3 -1
  11. data/docs/CreateRotatedSecret.md +3 -1
  12. data/docs/CreateSSHCertIssuer.md +3 -1
  13. data/docs/CreateSecret.md +3 -1
  14. data/docs/CreateTokenizer.md +3 -1
  15. data/docs/DSProducerDetails.md +8 -0
  16. data/docs/DecryptGPG.md +34 -0
  17. data/docs/DecryptGPGOutput.md +18 -0
  18. data/docs/EncryptGPG.md +32 -0
  19. data/docs/EncryptGPGOutput.md +18 -0
  20. data/docs/GatewayCreateProducerSnowflake.md +4 -0
  21. data/docs/GatewayUpdateItem.md +3 -1
  22. data/docs/GatewayUpdateProducerSnowflake.md +4 -0
  23. data/docs/GenCustomerFragment.md +4 -2
  24. data/docs/SignGPG.md +32 -0
  25. data/docs/SignGPGOutput.md +18 -0
  26. data/docs/TargetTypeDetailsInput.md +4 -0
  27. data/docs/UpdateDBTarget.md +4 -0
  28. data/docs/UpdateItem.md +3 -1
  29. data/docs/UpdatePKICertIssuer.md +3 -1
  30. data/docs/UpdateRotatedSecret.md +3 -1
  31. data/docs/UpdateSSHCertIssuer.md +3 -1
  32. data/docs/UploadPKCS12.md +3 -1
  33. data/docs/UploadRSA.md +3 -1
  34. data/docs/V2Api.md +252 -0
  35. data/docs/VerifyGPG.md +32 -0
  36. data/lib/akeyless/api/v2_api.rb +256 -0
  37. data/lib/akeyless/models/assoc_target_item.rb +11 -1
  38. data/lib/akeyless/models/create_certificate.rb +12 -2
  39. data/lib/akeyless/models/create_classic_key.rb +23 -3
  40. data/lib/akeyless/models/create_db_target.rb +21 -1
  41. data/lib/akeyless/models/create_dfc_key.rb +12 -2
  42. data/lib/akeyless/models/create_dynamic_secret.rb +12 -4
  43. data/lib/akeyless/models/create_key.rb +12 -2
  44. data/lib/akeyless/models/create_pki_cert_issuer.rb +12 -2
  45. data/lib/akeyless/models/create_rotated_secret.rb +12 -2
  46. data/lib/akeyless/models/create_secret.rb +12 -2
  47. data/lib/akeyless/models/create_ssh_cert_issuer.rb +12 -2
  48. data/lib/akeyless/models/create_tokenizer.rb +12 -2
  49. data/lib/akeyless/models/decrypt_gpg.rb +310 -0
  50. data/lib/akeyless/models/decrypt_gpg_output.rb +219 -0
  51. data/lib/akeyless/models/ds_producer_details.rb +40 -1
  52. data/lib/akeyless/models/encrypt_gpg.rb +300 -0
  53. data/lib/akeyless/models/encrypt_gpg_output.rb +219 -0
  54. data/lib/akeyless/models/gateway_create_producer_snowflake.rb +22 -2
  55. data/lib/akeyless/models/gateway_update_item.rb +14 -2
  56. data/lib/akeyless/models/gateway_update_producer_snowflake.rb +22 -2
  57. data/lib/akeyless/models/gen_customer_fragment.rb +15 -5
  58. data/lib/akeyless/models/sign_gpg.rb +300 -0
  59. data/lib/akeyless/models/sign_gpg_output.rb +219 -0
  60. data/lib/akeyless/models/target_type_details_input.rb +20 -1
  61. data/lib/akeyless/models/update_db_target.rb +21 -1
  62. data/lib/akeyless/models/update_item.rb +14 -2
  63. data/lib/akeyless/models/update_pki_cert_issuer.rb +12 -2
  64. data/lib/akeyless/models/update_rotated_secret.rb +14 -2
  65. data/lib/akeyless/models/update_ssh_cert_issuer.rb +12 -2
  66. data/lib/akeyless/models/upload_pkcs12.rb +12 -2
  67. data/lib/akeyless/models/upload_rsa.rb +12 -2
  68. data/lib/akeyless/models/verify_gpg.rb +300 -0
  69. data/lib/akeyless/version.rb +1 -1
  70. data/lib/akeyless.rb +7 -0
  71. data/spec/models/decrypt_gpg_output_spec.rb +34 -0
  72. data/spec/models/decrypt_gpg_spec.rb +82 -0
  73. data/spec/models/encrypt_gpg_output_spec.rb +34 -0
  74. data/spec/models/encrypt_gpg_spec.rb +76 -0
  75. data/spec/models/sign_gpg_output_spec.rb +34 -0
  76. data/spec/models/sign_gpg_spec.rb +76 -0
  77. data/spec/models/verify_gpg_spec.rb +76 -0
  78. metadata +30 -2
@@ -2899,6 +2899,70 @@ module Akeyless
2899
2899
  return data, status_code, headers
2900
2900
  end
2901
2901
 
2902
+ # @param body [DecryptGPG]
2903
+ # @param [Hash] opts the optional parameters
2904
+ # @return [DecryptGPGOutput]
2905
+ def decrypt_gpg(body, opts = {})
2906
+ data, _status_code, _headers = decrypt_gpg_with_http_info(body, opts)
2907
+ data
2908
+ end
2909
+
2910
+ # @param body [DecryptGPG]
2911
+ # @param [Hash] opts the optional parameters
2912
+ # @return [Array<(DecryptGPGOutput, Integer, Hash)>] DecryptGPGOutput data, response status code and response headers
2913
+ def decrypt_gpg_with_http_info(body, opts = {})
2914
+ if @api_client.config.debugging
2915
+ @api_client.config.logger.debug 'Calling API: V2Api.decrypt_gpg ...'
2916
+ end
2917
+ # verify the required parameter 'body' is set
2918
+ if @api_client.config.client_side_validation && body.nil?
2919
+ fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.decrypt_gpg"
2920
+ end
2921
+ # resource path
2922
+ local_var_path = '/decrypt-gpg'
2923
+
2924
+ # query parameters
2925
+ query_params = opts[:query_params] || {}
2926
+
2927
+ # header parameters
2928
+ header_params = opts[:header_params] || {}
2929
+ # HTTP header 'Accept' (if needed)
2930
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2931
+ # HTTP header 'Content-Type'
2932
+ content_type = @api_client.select_header_content_type(['application/json'])
2933
+ if !content_type.nil?
2934
+ header_params['Content-Type'] = content_type
2935
+ end
2936
+
2937
+ # form parameters
2938
+ form_params = opts[:form_params] || {}
2939
+
2940
+ # http body (model)
2941
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
2942
+
2943
+ # return_type
2944
+ return_type = opts[:debug_return_type] || 'DecryptGPGOutput'
2945
+
2946
+ # auth_names
2947
+ auth_names = opts[:debug_auth_names] || []
2948
+
2949
+ new_options = opts.merge(
2950
+ :operation => :"V2Api.decrypt_gpg",
2951
+ :header_params => header_params,
2952
+ :query_params => query_params,
2953
+ :form_params => form_params,
2954
+ :body => post_body,
2955
+ :auth_names => auth_names,
2956
+ :return_type => return_type
2957
+ )
2958
+
2959
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2960
+ if @api_client.config.debugging
2961
+ @api_client.config.logger.debug "API called: V2Api#decrypt_gpg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2962
+ end
2963
+ return data, status_code, headers
2964
+ end
2965
+
2902
2966
  # @param body [DecryptPKCS1]
2903
2967
  # @param [Hash] opts the optional parameters
2904
2968
  # @return [DecryptPKCS1Output]
@@ -4115,6 +4179,70 @@ module Akeyless
4115
4179
  return data, status_code, headers
4116
4180
  end
4117
4181
 
4182
+ # @param body [EncryptGPG]
4183
+ # @param [Hash] opts the optional parameters
4184
+ # @return [EncryptGPGOutput]
4185
+ def encrypt_gpg(body, opts = {})
4186
+ data, _status_code, _headers = encrypt_gpg_with_http_info(body, opts)
4187
+ data
4188
+ end
4189
+
4190
+ # @param body [EncryptGPG]
4191
+ # @param [Hash] opts the optional parameters
4192
+ # @return [Array<(EncryptGPGOutput, Integer, Hash)>] EncryptGPGOutput data, response status code and response headers
4193
+ def encrypt_gpg_with_http_info(body, opts = {})
4194
+ if @api_client.config.debugging
4195
+ @api_client.config.logger.debug 'Calling API: V2Api.encrypt_gpg ...'
4196
+ end
4197
+ # verify the required parameter 'body' is set
4198
+ if @api_client.config.client_side_validation && body.nil?
4199
+ fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.encrypt_gpg"
4200
+ end
4201
+ # resource path
4202
+ local_var_path = '/encrypt-gpg'
4203
+
4204
+ # query parameters
4205
+ query_params = opts[:query_params] || {}
4206
+
4207
+ # header parameters
4208
+ header_params = opts[:header_params] || {}
4209
+ # HTTP header 'Accept' (if needed)
4210
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4211
+ # HTTP header 'Content-Type'
4212
+ content_type = @api_client.select_header_content_type(['application/json'])
4213
+ if !content_type.nil?
4214
+ header_params['Content-Type'] = content_type
4215
+ end
4216
+
4217
+ # form parameters
4218
+ form_params = opts[:form_params] || {}
4219
+
4220
+ # http body (model)
4221
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
4222
+
4223
+ # return_type
4224
+ return_type = opts[:debug_return_type] || 'EncryptGPGOutput'
4225
+
4226
+ # auth_names
4227
+ auth_names = opts[:debug_auth_names] || []
4228
+
4229
+ new_options = opts.merge(
4230
+ :operation => :"V2Api.encrypt_gpg",
4231
+ :header_params => header_params,
4232
+ :query_params => query_params,
4233
+ :form_params => form_params,
4234
+ :body => post_body,
4235
+ :auth_names => auth_names,
4236
+ :return_type => return_type
4237
+ )
4238
+
4239
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
4240
+ if @api_client.config.debugging
4241
+ @api_client.config.logger.debug "API called: V2Api#encrypt_gpg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4242
+ end
4243
+ return data, status_code, headers
4244
+ end
4245
+
4118
4246
  # @param body [EncryptWithClassicKey]
4119
4247
  # @param [Hash] opts the optional parameters
4120
4248
  # @return [EncryptOutput]
@@ -11897,6 +12025,70 @@ module Akeyless
11897
12025
  return data, status_code, headers
11898
12026
  end
11899
12027
 
12028
+ # @param body [SignGPG]
12029
+ # @param [Hash] opts the optional parameters
12030
+ # @return [SignGPGOutput]
12031
+ def sign_gpg(body, opts = {})
12032
+ data, _status_code, _headers = sign_gpg_with_http_info(body, opts)
12033
+ data
12034
+ end
12035
+
12036
+ # @param body [SignGPG]
12037
+ # @param [Hash] opts the optional parameters
12038
+ # @return [Array<(SignGPGOutput, Integer, Hash)>] SignGPGOutput data, response status code and response headers
12039
+ def sign_gpg_with_http_info(body, opts = {})
12040
+ if @api_client.config.debugging
12041
+ @api_client.config.logger.debug 'Calling API: V2Api.sign_gpg ...'
12042
+ end
12043
+ # verify the required parameter 'body' is set
12044
+ if @api_client.config.client_side_validation && body.nil?
12045
+ fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.sign_gpg"
12046
+ end
12047
+ # resource path
12048
+ local_var_path = '/sign-gpg'
12049
+
12050
+ # query parameters
12051
+ query_params = opts[:query_params] || {}
12052
+
12053
+ # header parameters
12054
+ header_params = opts[:header_params] || {}
12055
+ # HTTP header 'Accept' (if needed)
12056
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
12057
+ # HTTP header 'Content-Type'
12058
+ content_type = @api_client.select_header_content_type(['application/json'])
12059
+ if !content_type.nil?
12060
+ header_params['Content-Type'] = content_type
12061
+ end
12062
+
12063
+ # form parameters
12064
+ form_params = opts[:form_params] || {}
12065
+
12066
+ # http body (model)
12067
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
12068
+
12069
+ # return_type
12070
+ return_type = opts[:debug_return_type] || 'SignGPGOutput'
12071
+
12072
+ # auth_names
12073
+ auth_names = opts[:debug_auth_names] || []
12074
+
12075
+ new_options = opts.merge(
12076
+ :operation => :"V2Api.sign_gpg",
12077
+ :header_params => header_params,
12078
+ :query_params => query_params,
12079
+ :form_params => form_params,
12080
+ :body => post_body,
12081
+ :auth_names => auth_names,
12082
+ :return_type => return_type
12083
+ )
12084
+
12085
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
12086
+ if @api_client.config.debugging
12087
+ @api_client.config.logger.debug "API called: V2Api#sign_gpg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
12088
+ end
12089
+ return data, status_code, headers
12090
+ end
12091
+
11900
12092
  # @param body [SignJWTWithClassicKey]
11901
12093
  # @param [Hash] opts the optional parameters
11902
12094
  # @return [SignJWTOutput]
@@ -15598,6 +15790,70 @@ module Akeyless
15598
15790
  return data, status_code, headers
15599
15791
  end
15600
15792
 
15793
+ # @param body [VerifyGPG]
15794
+ # @param [Hash] opts the optional parameters
15795
+ # @return [Object]
15796
+ def verify_gpg(body, opts = {})
15797
+ data, _status_code, _headers = verify_gpg_with_http_info(body, opts)
15798
+ data
15799
+ end
15800
+
15801
+ # @param body [VerifyGPG]
15802
+ # @param [Hash] opts the optional parameters
15803
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
15804
+ def verify_gpg_with_http_info(body, opts = {})
15805
+ if @api_client.config.debugging
15806
+ @api_client.config.logger.debug 'Calling API: V2Api.verify_gpg ...'
15807
+ end
15808
+ # verify the required parameter 'body' is set
15809
+ if @api_client.config.client_side_validation && body.nil?
15810
+ fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.verify_gpg"
15811
+ end
15812
+ # resource path
15813
+ local_var_path = '/verify-gpg'
15814
+
15815
+ # query parameters
15816
+ query_params = opts[:query_params] || {}
15817
+
15818
+ # header parameters
15819
+ header_params = opts[:header_params] || {}
15820
+ # HTTP header 'Accept' (if needed)
15821
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
15822
+ # HTTP header 'Content-Type'
15823
+ content_type = @api_client.select_header_content_type(['application/json'])
15824
+ if !content_type.nil?
15825
+ header_params['Content-Type'] = content_type
15826
+ end
15827
+
15828
+ # form parameters
15829
+ form_params = opts[:form_params] || {}
15830
+
15831
+ # http body (model)
15832
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
15833
+
15834
+ # return_type
15835
+ return_type = opts[:debug_return_type] || 'Object'
15836
+
15837
+ # auth_names
15838
+ auth_names = opts[:debug_auth_names] || []
15839
+
15840
+ new_options = opts.merge(
15841
+ :operation => :"V2Api.verify_gpg",
15842
+ :header_params => header_params,
15843
+ :query_params => query_params,
15844
+ :form_params => form_params,
15845
+ :body => post_body,
15846
+ :auth_names => auth_names,
15847
+ :return_type => return_type
15848
+ )
15849
+
15850
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
15851
+ if @api_client.config.debugging
15852
+ @api_client.config.logger.debug "API called: V2Api#verify_gpg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
15853
+ end
15854
+ return data, status_code, headers
15855
+ end
15856
+
15601
15857
  # @param body [VerifyJWTWithClassicKey]
15602
15858
  # @param [Hash] opts the optional parameters
15603
15859
  # @return [VerifyJWTOutput]
@@ -16,6 +16,9 @@ require 'time'
16
16
  module Akeyless
17
17
  # assocTargetItem is a command that creates an association between target and item.
18
18
  class AssocTargetItem
19
+ # Automatically disable previous key version (required for azure targets)
20
+ attr_accessor :disable_previous_key_version
21
+
19
22
  # Set output format to JSON
20
23
  attr_accessor :json
21
24
 
@@ -64,6 +67,7 @@ module Akeyless
64
67
  # Attribute mapping from ruby-style variable name to JSON key.
65
68
  def self.attribute_map
66
69
  {
70
+ :'disable_previous_key_version' => :'disable-previous-key-version',
67
71
  :'json' => :'json',
68
72
  :'key_operations' => :'key-operations',
69
73
  :'keyring_name' => :'keyring-name',
@@ -90,6 +94,7 @@ module Akeyless
90
94
  # Attribute type mapping.
91
95
  def self.openapi_types
92
96
  {
97
+ :'disable_previous_key_version' => :'Boolean',
93
98
  :'json' => :'Boolean',
94
99
  :'key_operations' => :'Array<String>',
95
100
  :'keyring_name' => :'String',
@@ -129,6 +134,10 @@ module Akeyless
129
134
  h[k.to_sym] = v
130
135
  }
131
136
 
137
+ if attributes.key?(:'disable_previous_key_version')
138
+ self.disable_previous_key_version = attributes[:'disable_previous_key_version']
139
+ end
140
+
132
141
  if attributes.key?(:'json')
133
142
  self.json = attributes[:'json']
134
143
  end
@@ -224,6 +233,7 @@ module Akeyless
224
233
  def ==(o)
225
234
  return true if self.equal?(o)
226
235
  self.class == o.class &&
236
+ disable_previous_key_version == o.disable_previous_key_version &&
227
237
  json == o.json &&
228
238
  key_operations == o.key_operations &&
229
239
  keyring_name == o.keyring_name &&
@@ -250,7 +260,7 @@ module Akeyless
250
260
  # Calculates hash code according to all attributes.
251
261
  # @return [Integer] Hash code
252
262
  def hash
253
- [json, key_operations, keyring_name, kms_algorithm, location_id, multi_region, name, project_id, purpose, regions, target_name, tenant_secret_type, token, uid_token, vault_name].hash
263
+ [disable_previous_key_version, json, key_operations, keyring_name, kms_algorithm, location_id, multi_region, name, project_id, purpose, regions, target_name, tenant_secret_type, token, uid_token, vault_name].hash
254
264
  end
255
265
 
256
266
  # Builds the object from hash
@@ -21,6 +21,9 @@ module Akeyless
21
21
  # Protection from accidental deletion of this item
22
22
  attr_accessor :delete_protection
23
23
 
24
+ # Description of the object
25
+ attr_accessor :description
26
+
24
27
  # How many days before the expiration of the certificate would you like to be notified.
25
28
  attr_accessor :expiration_event_in
26
29
 
@@ -33,7 +36,7 @@ module Akeyless
33
36
  # Content of the certificate's private key PEM in a Base64 format.
34
37
  attr_accessor :key_data
35
38
 
36
- # Metadata about the certificate
39
+ # Deprecated - use description
37
40
  attr_accessor :metadata
38
41
 
39
42
  # Certificate name
@@ -53,6 +56,7 @@ module Akeyless
53
56
  {
54
57
  :'certificate_data' => :'certificate-data',
55
58
  :'delete_protection' => :'delete_protection',
59
+ :'description' => :'description',
56
60
  :'expiration_event_in' => :'expiration-event-in',
57
61
  :'json' => :'json',
58
62
  :'key' => :'key',
@@ -75,6 +79,7 @@ module Akeyless
75
79
  {
76
80
  :'certificate_data' => :'String',
77
81
  :'delete_protection' => :'String',
82
+ :'description' => :'String',
78
83
  :'expiration_event_in' => :'Array<String>',
79
84
  :'json' => :'Boolean',
80
85
  :'key' => :'String',
@@ -116,6 +121,10 @@ module Akeyless
116
121
  self.delete_protection = attributes[:'delete_protection']
117
122
  end
118
123
 
124
+ if attributes.key?(:'description')
125
+ self.description = attributes[:'description']
126
+ end
127
+
119
128
  if attributes.key?(:'expiration_event_in')
120
129
  if (value = attributes[:'expiration_event_in']).is_a?(Array)
121
130
  self.expiration_event_in = value
@@ -182,6 +191,7 @@ module Akeyless
182
191
  self.class == o.class &&
183
192
  certificate_data == o.certificate_data &&
184
193
  delete_protection == o.delete_protection &&
194
+ description == o.description &&
185
195
  expiration_event_in == o.expiration_event_in &&
186
196
  json == o.json &&
187
197
  key == o.key &&
@@ -202,7 +212,7 @@ module Akeyless
202
212
  # Calculates hash code according to all attributes.
203
213
  # @return [Integer] Hash code
204
214
  def hash
205
- [certificate_data, delete_protection, expiration_event_in, json, key, key_data, metadata, name, tags, token, uid_token].hash
215
+ [certificate_data, delete_protection, description, expiration_event_in, json, key, key_data, metadata, name, tags, token, uid_token].hash
206
216
  end
207
217
 
208
218
  # Builds the object from hash
@@ -16,7 +16,7 @@ require 'time'
16
16
  module Akeyless
17
17
  # CreateClassicKey is a command that creates classic key
18
18
  class CreateClassicKey
19
- # Classic Key type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, RSA1024, RSA2048, RSA3072, RSA4096, EC256, EC384]
19
+ # Classic Key type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, RSA1024, RSA2048, RSA3072, RSA4096, EC256, EC384, GPG]
20
20
  attr_accessor :alg
21
21
 
22
22
  # Certificate in a PEM format.
@@ -25,13 +25,19 @@ module Akeyless
25
25
  # Protection from accidental deletion of this item
26
26
  attr_accessor :delete_protection
27
27
 
28
+ # Description of the object
29
+ attr_accessor :description
30
+
31
+ # gpg alg: Relevant only if GPG key type selected; options: [RSA1024, RSA2048, RSA3072, RSA4096, Ed25519]
32
+ attr_accessor :gpg_alg
33
+
28
34
  # Set output format to JSON
29
35
  attr_accessor :json
30
36
 
31
37
  # Base64-encoded classic key value
32
38
  attr_accessor :key_data
33
39
 
34
- # Metadata about the classic key
40
+ # Deprecated - use description
35
41
  attr_accessor :metadata
36
42
 
37
43
  # ClassicKey name
@@ -55,6 +61,8 @@ module Akeyless
55
61
  :'alg' => :'alg',
56
62
  :'cert_file_data' => :'cert-file-data',
57
63
  :'delete_protection' => :'delete_protection',
64
+ :'description' => :'description',
65
+ :'gpg_alg' => :'gpg-alg',
58
66
  :'json' => :'json',
59
67
  :'key_data' => :'key-data',
60
68
  :'metadata' => :'metadata',
@@ -77,6 +85,8 @@ module Akeyless
77
85
  :'alg' => :'String',
78
86
  :'cert_file_data' => :'String',
79
87
  :'delete_protection' => :'String',
88
+ :'description' => :'String',
89
+ :'gpg_alg' => :'String',
80
90
  :'json' => :'Boolean',
81
91
  :'key_data' => :'String',
82
92
  :'metadata' => :'String',
@@ -121,6 +131,14 @@ module Akeyless
121
131
  self.delete_protection = attributes[:'delete_protection']
122
132
  end
123
133
 
134
+ if attributes.key?(:'description')
135
+ self.description = attributes[:'description']
136
+ end
137
+
138
+ if attributes.key?(:'gpg_alg')
139
+ self.gpg_alg = attributes[:'gpg_alg']
140
+ end
141
+
124
142
  if attributes.key?(:'json')
125
143
  self.json = attributes[:'json']
126
144
  end
@@ -187,6 +205,8 @@ module Akeyless
187
205
  alg == o.alg &&
188
206
  cert_file_data == o.cert_file_data &&
189
207
  delete_protection == o.delete_protection &&
208
+ description == o.description &&
209
+ gpg_alg == o.gpg_alg &&
190
210
  json == o.json &&
191
211
  key_data == o.key_data &&
192
212
  metadata == o.metadata &&
@@ -206,7 +226,7 @@ module Akeyless
206
226
  # Calculates hash code according to all attributes.
207
227
  # @return [Integer] Hash code
208
228
  def hash
209
- [alg, cert_file_data, delete_protection, json, key_data, metadata, name, protection_key_name, tags, token, uid_token].hash
229
+ [alg, cert_file_data, delete_protection, description, gpg_alg, json, key_data, metadata, name, protection_key_name, tags, token, uid_token].hash
210
230
  end
211
231
 
212
232
  # Builds the object from hash
@@ -64,6 +64,12 @@ module Akeyless
64
64
 
65
65
  attr_accessor :snowflake_account
66
66
 
67
+ # RSA Private key (base64 encoded)
68
+ attr_accessor :snowflake_api_private_key
69
+
70
+ # The Private key passphrase
71
+ attr_accessor :snowflake_api_private_key_password
72
+
67
73
  # SSL connection mode
68
74
  attr_accessor :ssl
69
75
 
@@ -100,6 +106,8 @@ module Akeyless
100
106
  :'port' => :'port',
101
107
  :'pwd' => :'pwd',
102
108
  :'snowflake_account' => :'snowflake-account',
109
+ :'snowflake_api_private_key' => :'snowflake-api-private-key',
110
+ :'snowflake_api_private_key_password' => :'snowflake-api-private-key-password',
103
111
  :'ssl' => :'ssl',
104
112
  :'ssl_certificate' => :'ssl-certificate',
105
113
  :'token' => :'token',
@@ -135,6 +143,8 @@ module Akeyless
135
143
  :'port' => :'String',
136
144
  :'pwd' => :'String',
137
145
  :'snowflake_account' => :'String',
146
+ :'snowflake_api_private_key' => :'String',
147
+ :'snowflake_api_private_key_password' => :'String',
138
148
  :'ssl' => :'Boolean',
139
149
  :'ssl_certificate' => :'String',
140
150
  :'token' => :'String',
@@ -240,6 +250,14 @@ module Akeyless
240
250
  self.snowflake_account = attributes[:'snowflake_account']
241
251
  end
242
252
 
253
+ if attributes.key?(:'snowflake_api_private_key')
254
+ self.snowflake_api_private_key = attributes[:'snowflake_api_private_key']
255
+ end
256
+
257
+ if attributes.key?(:'snowflake_api_private_key_password')
258
+ self.snowflake_api_private_key_password = attributes[:'snowflake_api_private_key_password']
259
+ end
260
+
243
261
  if attributes.key?(:'ssl')
244
262
  self.ssl = attributes[:'ssl']
245
263
  end
@@ -308,6 +326,8 @@ module Akeyless
308
326
  port == o.port &&
309
327
  pwd == o.pwd &&
310
328
  snowflake_account == o.snowflake_account &&
329
+ snowflake_api_private_key == o.snowflake_api_private_key &&
330
+ snowflake_api_private_key_password == o.snowflake_api_private_key_password &&
311
331
  ssl == o.ssl &&
312
332
  ssl_certificate == o.ssl_certificate &&
313
333
  token == o.token &&
@@ -324,7 +344,7 @@ module Akeyless
324
344
  # Calculates hash code according to all attributes.
325
345
  # @return [Integer] Hash code
326
346
  def hash
327
- [comment, db_name, db_server_certificates, db_server_name, db_type, host, json, key, mongodb_atlas, mongodb_atlas_api_private_key, mongodb_atlas_api_public_key, mongodb_atlas_project_id, mongodb_default_auth_db, mongodb_uri_options, name, oracle_service_name, port, pwd, snowflake_account, ssl, ssl_certificate, token, uid_token, user_name].hash
347
+ [comment, db_name, db_server_certificates, db_server_name, db_type, host, json, key, mongodb_atlas, mongodb_atlas_api_private_key, mongodb_atlas_api_public_key, mongodb_atlas_project_id, mongodb_default_auth_db, mongodb_uri_options, name, oracle_service_name, port, pwd, snowflake_account, snowflake_api_private_key, snowflake_api_private_key_password, ssl, ssl_certificate, token, uid_token, user_name].hash
328
348
  end
329
349
 
330
350
  # Builds the object from hash
@@ -24,10 +24,13 @@ module Akeyless
24
24
  # Protection from accidental deletion of this item
25
25
  attr_accessor :delete_protection
26
26
 
27
+ # Description of the object
28
+ attr_accessor :description
29
+
27
30
  # Set output format to JSON
28
31
  attr_accessor :json
29
32
 
30
- # Metadata about the DFC key
33
+ # Deprecated - use description
31
34
  attr_accessor :metadata
32
35
 
33
36
  # DFCKey name
@@ -51,6 +54,7 @@ module Akeyless
51
54
  :'alg' => :'alg',
52
55
  :'customer_frg_id' => :'customer-frg-id',
53
56
  :'delete_protection' => :'delete_protection',
57
+ :'description' => :'description',
54
58
  :'json' => :'json',
55
59
  :'metadata' => :'metadata',
56
60
  :'name' => :'name',
@@ -72,6 +76,7 @@ module Akeyless
72
76
  :'alg' => :'String',
73
77
  :'customer_frg_id' => :'String',
74
78
  :'delete_protection' => :'String',
79
+ :'description' => :'String',
75
80
  :'json' => :'Boolean',
76
81
  :'metadata' => :'String',
77
82
  :'name' => :'String',
@@ -115,6 +120,10 @@ module Akeyless
115
120
  self.delete_protection = attributes[:'delete_protection']
116
121
  end
117
122
 
123
+ if attributes.key?(:'description')
124
+ self.description = attributes[:'description']
125
+ end
126
+
118
127
  if attributes.key?(:'json')
119
128
  self.json = attributes[:'json']
120
129
  end
@@ -179,6 +188,7 @@ module Akeyless
179
188
  alg == o.alg &&
180
189
  customer_frg_id == o.customer_frg_id &&
181
190
  delete_protection == o.delete_protection &&
191
+ description == o.description &&
182
192
  json == o.json &&
183
193
  metadata == o.metadata &&
184
194
  name == o.name &&
@@ -197,7 +207,7 @@ module Akeyless
197
207
  # Calculates hash code according to all attributes.
198
208
  # @return [Integer] Hash code
199
209
  def hash
200
- [alg, customer_frg_id, delete_protection, json, metadata, name, split_level, tag, token, uid_token].hash
210
+ [alg, customer_frg_id, delete_protection, description, json, metadata, name, split_level, tag, token, uid_token].hash
201
211
  end
202
212
 
203
213
  # Builds the object from hash
@@ -18,13 +18,16 @@ module Akeyless
18
18
  # Protection from accidental deletion of this item
19
19
  attr_accessor :delete_protection
20
20
 
21
+ # Description of the object
22
+ attr_accessor :description
23
+
21
24
  # Set output format to JSON
22
25
  attr_accessor :json
23
26
 
24
27
  # The name of a key that used to encrypt the dynamic secret values (if empty, the account default protectionKey key will be used)
25
28
  attr_accessor :key
26
29
 
27
- # Metadata about the dynamic secret
30
+ # Deprecated - use description
28
31
  attr_accessor :metadata
29
32
 
30
33
  # Dynamic secret name
@@ -43,6 +46,7 @@ module Akeyless
43
46
  def self.attribute_map
44
47
  {
45
48
  :'delete_protection' => :'delete_protection',
49
+ :'description' => :'description',
46
50
  :'json' => :'json',
47
51
  :'key' => :'key',
48
52
  :'metadata' => :'metadata',
@@ -62,6 +66,7 @@ module Akeyless
62
66
  def self.openapi_types
63
67
  {
64
68
  :'delete_protection' => :'String',
69
+ :'description' => :'String',
65
70
  :'json' => :'Boolean',
66
71
  :'key' => :'String',
67
72
  :'metadata' => :'String',
@@ -97,6 +102,10 @@ module Akeyless
97
102
  self.delete_protection = attributes[:'delete_protection']
98
103
  end
99
104
 
105
+ if attributes.key?(:'description')
106
+ self.description = attributes[:'description']
107
+ end
108
+
100
109
  if attributes.key?(:'json')
101
110
  self.json = attributes[:'json']
102
111
  end
@@ -107,8 +116,6 @@ module Akeyless
107
116
 
108
117
  if attributes.key?(:'metadata')
109
118
  self.metadata = attributes[:'metadata']
110
- else
111
- self.metadata = 'None'
112
119
  end
113
120
 
114
121
  if attributes.key?(:'name')
@@ -154,6 +161,7 @@ module Akeyless
154
161
  return true if self.equal?(o)
155
162
  self.class == o.class &&
156
163
  delete_protection == o.delete_protection &&
164
+ description == o.description &&
157
165
  json == o.json &&
158
166
  key == o.key &&
159
167
  metadata == o.metadata &&
@@ -172,7 +180,7 @@ module Akeyless
172
180
  # Calculates hash code according to all attributes.
173
181
  # @return [Integer] Hash code
174
182
  def hash
175
- [delete_protection, json, key, metadata, name, tags, token, uid_token].hash
183
+ [delete_protection, description, json, key, metadata, name, tags, token, uid_token].hash
176
184
  end
177
185
 
178
186
  # Builds the object from hash