akeyless 5.0.13 → 5.0.14

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.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +12 -1
  3. data/docs/CreateESM.md +2 -0
  4. data/docs/CreateRole.md +2 -0
  5. data/docs/CreateUSC.md +2 -0
  6. data/docs/DecryptWithClassicKey.md +2 -0
  7. data/docs/DynamicSecretCreateGcp.md +2 -0
  8. data/docs/DynamicSecretUpdateGcp.md +2 -0
  9. data/docs/EncryptWithClassicKey.md +2 -0
  10. data/docs/FolderCreate.md +34 -0
  11. data/docs/FolderCreateOutput.md +18 -0
  12. data/docs/FolderDelete.md +28 -0
  13. data/docs/FolderGet.md +28 -0
  14. data/docs/FolderGetOutput.md +18 -0
  15. data/docs/FolderUpdate.md +36 -0
  16. data/docs/GatewayCreateProducerGcp.md +2 -0
  17. data/docs/GatewayUpdateProducerGcp.md +2 -0
  18. data/docs/GetFolderOutput.md +36 -0
  19. data/docs/V2Api.md +252 -0
  20. data/lib/akeyless/api/v2_api.rb +256 -0
  21. data/lib/akeyless/models/create_esm.rb +11 -1
  22. data/lib/akeyless/models/create_role.rb +13 -1
  23. data/lib/akeyless/models/create_usc.rb +11 -1
  24. data/lib/akeyless/models/decrypt_with_classic_key.rb +13 -1
  25. data/lib/akeyless/models/dynamic_secret_create_gcp.rb +11 -1
  26. data/lib/akeyless/models/dynamic_secret_update_gcp.rb +11 -1
  27. data/lib/akeyless/models/encrypt_with_classic_key.rb +13 -1
  28. data/lib/akeyless/models/folder_create.rb +308 -0
  29. data/lib/akeyless/models/folder_create_output.rb +214 -0
  30. data/lib/akeyless/models/folder_delete.rb +276 -0
  31. data/lib/akeyless/models/folder_get.rb +276 -0
  32. data/lib/akeyless/models/folder_get_output.rb +214 -0
  33. data/lib/akeyless/models/folder_update.rb +320 -0
  34. data/lib/akeyless/models/gateway_create_producer_gcp.rb +11 -1
  35. data/lib/akeyless/models/gateway_update_producer_gcp.rb +11 -1
  36. data/lib/akeyless/models/get_folder_output.rb +298 -0
  37. data/lib/akeyless/version.rb +1 -1
  38. data/lib/akeyless.rb +7 -0
  39. data/spec/models/folder_create_output_spec.rb +36 -0
  40. data/spec/models/folder_create_spec.rb +84 -0
  41. data/spec/models/folder_delete_spec.rb +66 -0
  42. data/spec/models/folder_get_output_spec.rb +36 -0
  43. data/spec/models/folder_get_spec.rb +66 -0
  44. data/spec/models/folder_update_spec.rb +90 -0
  45. data/spec/models/get_folder_output_spec.rb +90 -0
  46. metadata +29 -1
@@ -13719,6 +13719,262 @@ module Akeyless
13719
13719
  return data, status_code, headers
13720
13720
  end
13721
13721
 
13722
+ # @param folder_create [FolderCreate]
13723
+ # @param [Hash] opts the optional parameters
13724
+ # @return [FolderCreateOutput]
13725
+ def folder_create(folder_create, opts = {})
13726
+ data, _status_code, _headers = folder_create_with_http_info(folder_create, opts)
13727
+ data
13728
+ end
13729
+
13730
+ # @param folder_create [FolderCreate]
13731
+ # @param [Hash] opts the optional parameters
13732
+ # @return [Array<(FolderCreateOutput, Integer, Hash)>] FolderCreateOutput data, response status code and response headers
13733
+ def folder_create_with_http_info(folder_create, opts = {})
13734
+ if @api_client.config.debugging
13735
+ @api_client.config.logger.debug 'Calling API: V2Api.folder_create ...'
13736
+ end
13737
+ # verify the required parameter 'folder_create' is set
13738
+ if @api_client.config.client_side_validation && folder_create.nil?
13739
+ fail ArgumentError, "Missing the required parameter 'folder_create' when calling V2Api.folder_create"
13740
+ end
13741
+ # resource path
13742
+ local_var_path = '/folder-create'
13743
+
13744
+ # query parameters
13745
+ query_params = opts[:query_params] || {}
13746
+
13747
+ # header parameters
13748
+ header_params = opts[:header_params] || {}
13749
+ # HTTP header 'Accept' (if needed)
13750
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
13751
+ # HTTP header 'Content-Type'
13752
+ content_type = @api_client.select_header_content_type(['application/json'])
13753
+ if !content_type.nil?
13754
+ header_params['Content-Type'] = content_type
13755
+ end
13756
+
13757
+ # form parameters
13758
+ form_params = opts[:form_params] || {}
13759
+
13760
+ # http body (model)
13761
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(folder_create)
13762
+
13763
+ # return_type
13764
+ return_type = opts[:debug_return_type] || 'FolderCreateOutput'
13765
+
13766
+ # auth_names
13767
+ auth_names = opts[:debug_auth_names] || []
13768
+
13769
+ new_options = opts.merge(
13770
+ :operation => :"V2Api.folder_create",
13771
+ :header_params => header_params,
13772
+ :query_params => query_params,
13773
+ :form_params => form_params,
13774
+ :body => post_body,
13775
+ :auth_names => auth_names,
13776
+ :return_type => return_type
13777
+ )
13778
+
13779
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
13780
+ if @api_client.config.debugging
13781
+ @api_client.config.logger.debug "API called: V2Api#folder_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
13782
+ end
13783
+ return data, status_code, headers
13784
+ end
13785
+
13786
+ # @param folder_delete [FolderDelete]
13787
+ # @param [Hash] opts the optional parameters
13788
+ # @return [Object]
13789
+ def folder_delete(folder_delete, opts = {})
13790
+ data, _status_code, _headers = folder_delete_with_http_info(folder_delete, opts)
13791
+ data
13792
+ end
13793
+
13794
+ # @param folder_delete [FolderDelete]
13795
+ # @param [Hash] opts the optional parameters
13796
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
13797
+ def folder_delete_with_http_info(folder_delete, opts = {})
13798
+ if @api_client.config.debugging
13799
+ @api_client.config.logger.debug 'Calling API: V2Api.folder_delete ...'
13800
+ end
13801
+ # verify the required parameter 'folder_delete' is set
13802
+ if @api_client.config.client_side_validation && folder_delete.nil?
13803
+ fail ArgumentError, "Missing the required parameter 'folder_delete' when calling V2Api.folder_delete"
13804
+ end
13805
+ # resource path
13806
+ local_var_path = '/folder-delete'
13807
+
13808
+ # query parameters
13809
+ query_params = opts[:query_params] || {}
13810
+
13811
+ # header parameters
13812
+ header_params = opts[:header_params] || {}
13813
+ # HTTP header 'Accept' (if needed)
13814
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
13815
+ # HTTP header 'Content-Type'
13816
+ content_type = @api_client.select_header_content_type(['application/json'])
13817
+ if !content_type.nil?
13818
+ header_params['Content-Type'] = content_type
13819
+ end
13820
+
13821
+ # form parameters
13822
+ form_params = opts[:form_params] || {}
13823
+
13824
+ # http body (model)
13825
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(folder_delete)
13826
+
13827
+ # return_type
13828
+ return_type = opts[:debug_return_type] || 'Object'
13829
+
13830
+ # auth_names
13831
+ auth_names = opts[:debug_auth_names] || []
13832
+
13833
+ new_options = opts.merge(
13834
+ :operation => :"V2Api.folder_delete",
13835
+ :header_params => header_params,
13836
+ :query_params => query_params,
13837
+ :form_params => form_params,
13838
+ :body => post_body,
13839
+ :auth_names => auth_names,
13840
+ :return_type => return_type
13841
+ )
13842
+
13843
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
13844
+ if @api_client.config.debugging
13845
+ @api_client.config.logger.debug "API called: V2Api#folder_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
13846
+ end
13847
+ return data, status_code, headers
13848
+ end
13849
+
13850
+ # @param folder_get [FolderGet]
13851
+ # @param [Hash] opts the optional parameters
13852
+ # @return [FolderGetOutput]
13853
+ def folder_get(folder_get, opts = {})
13854
+ data, _status_code, _headers = folder_get_with_http_info(folder_get, opts)
13855
+ data
13856
+ end
13857
+
13858
+ # @param folder_get [FolderGet]
13859
+ # @param [Hash] opts the optional parameters
13860
+ # @return [Array<(FolderGetOutput, Integer, Hash)>] FolderGetOutput data, response status code and response headers
13861
+ def folder_get_with_http_info(folder_get, opts = {})
13862
+ if @api_client.config.debugging
13863
+ @api_client.config.logger.debug 'Calling API: V2Api.folder_get ...'
13864
+ end
13865
+ # verify the required parameter 'folder_get' is set
13866
+ if @api_client.config.client_side_validation && folder_get.nil?
13867
+ fail ArgumentError, "Missing the required parameter 'folder_get' when calling V2Api.folder_get"
13868
+ end
13869
+ # resource path
13870
+ local_var_path = '/folder-get'
13871
+
13872
+ # query parameters
13873
+ query_params = opts[:query_params] || {}
13874
+
13875
+ # header parameters
13876
+ header_params = opts[:header_params] || {}
13877
+ # HTTP header 'Accept' (if needed)
13878
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
13879
+ # HTTP header 'Content-Type'
13880
+ content_type = @api_client.select_header_content_type(['application/json'])
13881
+ if !content_type.nil?
13882
+ header_params['Content-Type'] = content_type
13883
+ end
13884
+
13885
+ # form parameters
13886
+ form_params = opts[:form_params] || {}
13887
+
13888
+ # http body (model)
13889
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(folder_get)
13890
+
13891
+ # return_type
13892
+ return_type = opts[:debug_return_type] || 'FolderGetOutput'
13893
+
13894
+ # auth_names
13895
+ auth_names = opts[:debug_auth_names] || []
13896
+
13897
+ new_options = opts.merge(
13898
+ :operation => :"V2Api.folder_get",
13899
+ :header_params => header_params,
13900
+ :query_params => query_params,
13901
+ :form_params => form_params,
13902
+ :body => post_body,
13903
+ :auth_names => auth_names,
13904
+ :return_type => return_type
13905
+ )
13906
+
13907
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
13908
+ if @api_client.config.debugging
13909
+ @api_client.config.logger.debug "API called: V2Api#folder_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
13910
+ end
13911
+ return data, status_code, headers
13912
+ end
13913
+
13914
+ # @param folder_update [FolderUpdate]
13915
+ # @param [Hash] opts the optional parameters
13916
+ # @return [Object]
13917
+ def folder_update(folder_update, opts = {})
13918
+ data, _status_code, _headers = folder_update_with_http_info(folder_update, opts)
13919
+ data
13920
+ end
13921
+
13922
+ # @param folder_update [FolderUpdate]
13923
+ # @param [Hash] opts the optional parameters
13924
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
13925
+ def folder_update_with_http_info(folder_update, opts = {})
13926
+ if @api_client.config.debugging
13927
+ @api_client.config.logger.debug 'Calling API: V2Api.folder_update ...'
13928
+ end
13929
+ # verify the required parameter 'folder_update' is set
13930
+ if @api_client.config.client_side_validation && folder_update.nil?
13931
+ fail ArgumentError, "Missing the required parameter 'folder_update' when calling V2Api.folder_update"
13932
+ end
13933
+ # resource path
13934
+ local_var_path = '/folder-update'
13935
+
13936
+ # query parameters
13937
+ query_params = opts[:query_params] || {}
13938
+
13939
+ # header parameters
13940
+ header_params = opts[:header_params] || {}
13941
+ # HTTP header 'Accept' (if needed)
13942
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
13943
+ # HTTP header 'Content-Type'
13944
+ content_type = @api_client.select_header_content_type(['application/json'])
13945
+ if !content_type.nil?
13946
+ header_params['Content-Type'] = content_type
13947
+ end
13948
+
13949
+ # form parameters
13950
+ form_params = opts[:form_params] || {}
13951
+
13952
+ # http body (model)
13953
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(folder_update)
13954
+
13955
+ # return_type
13956
+ return_type = opts[:debug_return_type] || 'Object'
13957
+
13958
+ # auth_names
13959
+ auth_names = opts[:debug_auth_names] || []
13960
+
13961
+ new_options = opts.merge(
13962
+ :operation => :"V2Api.folder_update",
13963
+ :header_params => header_params,
13964
+ :query_params => query_params,
13965
+ :form_params => form_params,
13966
+ :body => post_body,
13967
+ :auth_names => auth_names,
13968
+ :return_type => return_type
13969
+ )
13970
+
13971
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
13972
+ if @api_client.config.debugging
13973
+ @api_client.config.logger.debug "API called: V2Api#folder_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
13974
+ end
13975
+ return data, status_code, headers
13976
+ end
13977
+
13722
13978
  # @param gateway_create_allowed_access [GatewayCreateAllowedAccess]
13723
13979
  # @param [Hash] opts the optional parameters
13724
13980
  # @return [AllowedAccess]
@@ -25,6 +25,9 @@ module Akeyless
25
25
  # Description of the External Secrets Manager
26
26
  attr_accessor :description
27
27
 
28
+ # GCP Project ID (Relevant only for GCP targets)
29
+ attr_accessor :gcp_project_id
30
+
28
31
  # Set output format to JSON
29
32
  attr_accessor :json
30
33
 
@@ -52,6 +55,7 @@ module Akeyless
52
55
  :'azure_kv_name' => :'azure-kv-name',
53
56
  :'delete_protection' => :'delete_protection',
54
57
  :'description' => :'description',
58
+ :'gcp_project_id' => :'gcp-project-id',
55
59
  :'json' => :'json',
56
60
  :'k8s_namespace' => :'k8s-namespace',
57
61
  :'name' => :'name',
@@ -73,6 +77,7 @@ module Akeyless
73
77
  :'azure_kv_name' => :'String',
74
78
  :'delete_protection' => :'String',
75
79
  :'description' => :'String',
80
+ :'gcp_project_id' => :'String',
76
81
  :'json' => :'Boolean',
77
82
  :'k8s_namespace' => :'String',
78
83
  :'name' => :'String',
@@ -116,6 +121,10 @@ module Akeyless
116
121
  self.description = attributes[:'description']
117
122
  end
118
123
 
124
+ if attributes.key?(:'gcp_project_id')
125
+ self.gcp_project_id = attributes[:'gcp_project_id']
126
+ end
127
+
119
128
  if attributes.key?(:'json')
120
129
  self.json = attributes[:'json']
121
130
  else
@@ -186,6 +195,7 @@ module Akeyless
186
195
  azure_kv_name == o.azure_kv_name &&
187
196
  delete_protection == o.delete_protection &&
188
197
  description == o.description &&
198
+ gcp_project_id == o.gcp_project_id &&
189
199
  json == o.json &&
190
200
  k8s_namespace == o.k8s_namespace &&
191
201
  name == o.name &&
@@ -204,7 +214,7 @@ module Akeyless
204
214
  # Calculates hash code according to all attributes.
205
215
  # @return [Integer] Hash code
206
216
  def hash
207
- [azure_kv_name, delete_protection, description, json, k8s_namespace, name, tags, target_to_associate, token, uid_token].hash
217
+ [azure_kv_name, delete_protection, description, gcp_project_id, json, k8s_namespace, name, tags, target_to_associate, token, uid_token].hash
208
218
  end
209
219
 
210
220
  # Builds the object from hash
@@ -36,6 +36,9 @@ module Akeyless
36
36
  # Allow this role to manage Event Forwarders. Currently only 'none' and 'all' values are supported.
37
37
  attr_accessor :event_forwarders_access
38
38
 
39
+ # Allow this role to manage the following Event Forwarders.
40
+ attr_accessor :event_forwarders_name
41
+
39
42
  # Allow this role to view gw analytics. Currently only 'none', 'own', 'all' values are supported, allowing associated auth methods to view reports produced by the same auth methods.
40
43
  attr_accessor :gw_analytics_access
41
44
 
@@ -70,6 +73,7 @@ module Akeyless
70
73
  :'description' => :'description',
71
74
  :'event_center_access' => :'event-center-access',
72
75
  :'event_forwarders_access' => :'event-forwarders-access',
76
+ :'event_forwarders_name' => :'event-forwarders-name',
73
77
  :'gw_analytics_access' => :'gw-analytics-access',
74
78
  :'json' => :'json',
75
79
  :'name' => :'name',
@@ -96,6 +100,7 @@ module Akeyless
96
100
  :'description' => :'String',
97
101
  :'event_center_access' => :'String',
98
102
  :'event_forwarders_access' => :'String',
103
+ :'event_forwarders_name' => :'Array<String>',
99
104
  :'gw_analytics_access' => :'String',
100
105
  :'json' => :'Boolean',
101
106
  :'name' => :'String',
@@ -156,6 +161,12 @@ module Akeyless
156
161
  self.event_forwarders_access = attributes[:'event_forwarders_access']
157
162
  end
158
163
 
164
+ if attributes.key?(:'event_forwarders_name')
165
+ if (value = attributes[:'event_forwarders_name']).is_a?(Array)
166
+ self.event_forwarders_name = value
167
+ end
168
+ end
169
+
159
170
  if attributes.key?(:'gw_analytics_access')
160
171
  self.gw_analytics_access = attributes[:'gw_analytics_access']
161
172
  end
@@ -225,6 +236,7 @@ module Akeyless
225
236
  description == o.description &&
226
237
  event_center_access == o.event_center_access &&
227
238
  event_forwarders_access == o.event_forwarders_access &&
239
+ event_forwarders_name == o.event_forwarders_name &&
228
240
  gw_analytics_access == o.gw_analytics_access &&
229
241
  json == o.json &&
230
242
  name == o.name &&
@@ -244,7 +256,7 @@ module Akeyless
244
256
  # Calculates hash code according to all attributes.
245
257
  # @return [Integer] Hash code
246
258
  def hash
247
- [analytics_access, audit_access, comment, delete_protection, description, event_center_access, event_forwarders_access, gw_analytics_access, json, name, reverse_rbac_access, sra_reports_access, token, uid_token, usage_reports_access].hash
259
+ [analytics_access, audit_access, comment, delete_protection, description, event_center_access, event_forwarders_access, event_forwarders_name, gw_analytics_access, json, name, reverse_rbac_access, sra_reports_access, token, uid_token, usage_reports_access].hash
248
260
  end
249
261
 
250
262
  # Builds the object from hash
@@ -25,6 +25,9 @@ module Akeyless
25
25
  # Description of the Universal Secrets Connector
26
26
  attr_accessor :description
27
27
 
28
+ # GCP Project ID (Relevant only for GCP targets)
29
+ attr_accessor :gcp_project_id
30
+
28
31
  # Additional custom fields to associate with the item
29
32
  attr_accessor :item_custom_fields
30
33
 
@@ -61,6 +64,7 @@ module Akeyless
61
64
  :'azure_kv_name' => :'azure-kv-name',
62
65
  :'delete_protection' => :'delete_protection',
63
66
  :'description' => :'description',
67
+ :'gcp_project_id' => :'gcp-project-id',
64
68
  :'item_custom_fields' => :'item-custom-fields',
65
69
  :'json' => :'json',
66
70
  :'k8s_namespace' => :'k8s-namespace',
@@ -85,6 +89,7 @@ module Akeyless
85
89
  :'azure_kv_name' => :'String',
86
90
  :'delete_protection' => :'String',
87
91
  :'description' => :'String',
92
+ :'gcp_project_id' => :'String',
88
93
  :'item_custom_fields' => :'Hash<String, String>',
89
94
  :'json' => :'Boolean',
90
95
  :'k8s_namespace' => :'String',
@@ -131,6 +136,10 @@ module Akeyless
131
136
  self.description = attributes[:'description']
132
137
  end
133
138
 
139
+ if attributes.key?(:'gcp_project_id')
140
+ self.gcp_project_id = attributes[:'gcp_project_id']
141
+ end
142
+
134
143
  if attributes.key?(:'item_custom_fields')
135
144
  if (value = attributes[:'item_custom_fields']).is_a?(Hash)
136
145
  self.item_custom_fields = value
@@ -217,6 +226,7 @@ module Akeyless
217
226
  azure_kv_name == o.azure_kv_name &&
218
227
  delete_protection == o.delete_protection &&
219
228
  description == o.description &&
229
+ gcp_project_id == o.gcp_project_id &&
220
230
  item_custom_fields == o.item_custom_fields &&
221
231
  json == o.json &&
222
232
  k8s_namespace == o.k8s_namespace &&
@@ -238,7 +248,7 @@ module Akeyless
238
248
  # Calculates hash code according to all attributes.
239
249
  # @return [Integer] Hash code
240
250
  def hash
241
- [azure_kv_name, delete_protection, description, item_custom_fields, json, k8s_namespace, name, tags, target_to_associate, token, uid_token, usc_prefix, use_prefix_as_filter].hash
251
+ [azure_kv_name, delete_protection, description, gcp_project_id, item_custom_fields, json, k8s_namespace, name, tags, target_to_associate, token, uid_token, usc_prefix, use_prefix_as_filter].hash
242
252
  end
243
253
 
244
254
  # Builds the object from hash
@@ -21,6 +21,9 @@ module Akeyless
21
21
  # The name of the key to use in the encryption process
22
22
  attr_accessor :display_id
23
23
 
24
+ # Retrieve the Secret value without checking the Gateway's cache [true/false]. This flag is only relevant when using the RestAPI
25
+ attr_accessor :ignore_cache
26
+
24
27
  # Set output format to JSON
25
28
  attr_accessor :json
26
29
 
@@ -38,6 +41,7 @@ module Akeyless
38
41
  {
39
42
  :'ciphertext' => :'ciphertext',
40
43
  :'display_id' => :'display-id',
44
+ :'ignore_cache' => :'ignore-cache',
41
45
  :'json' => :'json',
42
46
  :'token' => :'token',
43
47
  :'uid_token' => :'uid-token',
@@ -55,6 +59,7 @@ module Akeyless
55
59
  {
56
60
  :'ciphertext' => :'String',
57
61
  :'display_id' => :'String',
62
+ :'ignore_cache' => :'String',
58
63
  :'json' => :'Boolean',
59
64
  :'token' => :'String',
60
65
  :'uid_token' => :'String',
@@ -95,6 +100,12 @@ module Akeyless
95
100
  self.display_id = nil
96
101
  end
97
102
 
103
+ if attributes.key?(:'ignore_cache')
104
+ self.ignore_cache = attributes[:'ignore_cache']
105
+ else
106
+ self.ignore_cache = 'false'
107
+ end
108
+
98
109
  if attributes.key?(:'json')
99
110
  self.json = attributes[:'json']
100
111
  else
@@ -153,6 +164,7 @@ module Akeyless
153
164
  self.class == o.class &&
154
165
  ciphertext == o.ciphertext &&
155
166
  display_id == o.display_id &&
167
+ ignore_cache == o.ignore_cache &&
156
168
  json == o.json &&
157
169
  token == o.token &&
158
170
  uid_token == o.uid_token &&
@@ -168,7 +180,7 @@ module Akeyless
168
180
  # Calculates hash code according to all attributes.
169
181
  # @return [Integer] Hash code
170
182
  def hash
171
- [ciphertext, display_id, json, token, uid_token, version].hash
183
+ [ciphertext, display_id, ignore_cache, json, token, uid_token, version].hash
172
184
  end
173
185
 
174
186
  # Builds the object from hash
@@ -33,6 +33,9 @@ module Akeyless
33
33
  # Service account key algorithm, e.g. KEY_ALG_RSA_1024
34
34
  attr_accessor :gcp_key_algo
35
35
 
36
+ # GCP Project ID override for dynamic secret operations (tmp service accounts)
37
+ attr_accessor :gcp_project_id
38
+
36
39
  # The email of the fixed service acocunt to generate keys or tokens for. (revelant for service-account-type=fixed)
37
40
  attr_accessor :gcp_sa_email
38
41
 
@@ -81,6 +84,7 @@ module Akeyless
81
84
  :'gcp_cred_type' => :'gcp-cred-type',
82
85
  :'gcp_key' => :'gcp-key',
83
86
  :'gcp_key_algo' => :'gcp-key-algo',
87
+ :'gcp_project_id' => :'gcp-project-id',
84
88
  :'gcp_sa_email' => :'gcp-sa-email',
85
89
  :'gcp_token_scopes' => :'gcp-token-scopes',
86
90
  :'item_custom_fields' => :'item-custom-fields',
@@ -111,6 +115,7 @@ module Akeyless
111
115
  :'gcp_cred_type' => :'String',
112
116
  :'gcp_key' => :'String',
113
117
  :'gcp_key_algo' => :'String',
118
+ :'gcp_project_id' => :'String',
114
119
  :'gcp_sa_email' => :'String',
115
120
  :'gcp_token_scopes' => :'String',
116
121
  :'item_custom_fields' => :'Hash<String, String>',
@@ -172,6 +177,10 @@ module Akeyless
172
177
  self.gcp_key_algo = attributes[:'gcp_key_algo']
173
178
  end
174
179
 
180
+ if attributes.key?(:'gcp_project_id')
181
+ self.gcp_project_id = attributes[:'gcp_project_id']
182
+ end
183
+
175
184
  if attributes.key?(:'gcp_sa_email')
176
185
  self.gcp_sa_email = attributes[:'gcp_sa_email']
177
186
  end
@@ -273,6 +282,7 @@ module Akeyless
273
282
  gcp_cred_type == o.gcp_cred_type &&
274
283
  gcp_key == o.gcp_key &&
275
284
  gcp_key_algo == o.gcp_key_algo &&
285
+ gcp_project_id == o.gcp_project_id &&
276
286
  gcp_sa_email == o.gcp_sa_email &&
277
287
  gcp_token_scopes == o.gcp_token_scopes &&
278
288
  item_custom_fields == o.item_custom_fields &&
@@ -297,7 +307,7 @@ module Akeyless
297
307
  # Calculates hash code according to all attributes.
298
308
  # @return [Integer] Hash code
299
309
  def hash
300
- [custom_username_template, delete_protection, description, gcp_cred_type, gcp_key, gcp_key_algo, gcp_sa_email, gcp_token_scopes, item_custom_fields, json, name, producer_encryption_key_name, role_binding, service_account_type, tags, target_name, token, uid_token, user_ttl].hash
310
+ [custom_username_template, delete_protection, description, gcp_cred_type, gcp_key, gcp_key_algo, gcp_project_id, gcp_sa_email, gcp_token_scopes, item_custom_fields, json, name, producer_encryption_key_name, role_binding, service_account_type, tags, target_name, token, uid_token, user_ttl].hash
301
311
  end
302
312
 
303
313
  # Builds the object from hash
@@ -33,6 +33,9 @@ module Akeyless
33
33
  # Service account key algorithm, e.g. KEY_ALG_RSA_1024
34
34
  attr_accessor :gcp_key_algo
35
35
 
36
+ # GCP Project ID override for dynamic secret operations (tmp service accounts)
37
+ attr_accessor :gcp_project_id
38
+
36
39
  # The email of the fixed service acocunt to generate keys or tokens for. (revelant for service-account-type=fixed)
37
40
  attr_accessor :gcp_sa_email
38
41
 
@@ -84,6 +87,7 @@ module Akeyless
84
87
  :'gcp_cred_type' => :'gcp-cred-type',
85
88
  :'gcp_key' => :'gcp-key',
86
89
  :'gcp_key_algo' => :'gcp-key-algo',
90
+ :'gcp_project_id' => :'gcp-project-id',
87
91
  :'gcp_sa_email' => :'gcp-sa-email',
88
92
  :'gcp_token_scopes' => :'gcp-token-scopes',
89
93
  :'item_custom_fields' => :'item-custom-fields',
@@ -115,6 +119,7 @@ module Akeyless
115
119
  :'gcp_cred_type' => :'String',
116
120
  :'gcp_key' => :'String',
117
121
  :'gcp_key_algo' => :'String',
122
+ :'gcp_project_id' => :'String',
118
123
  :'gcp_sa_email' => :'String',
119
124
  :'gcp_token_scopes' => :'String',
120
125
  :'item_custom_fields' => :'Hash<String, String>',
@@ -177,6 +182,10 @@ module Akeyless
177
182
  self.gcp_key_algo = attributes[:'gcp_key_algo']
178
183
  end
179
184
 
185
+ if attributes.key?(:'gcp_project_id')
186
+ self.gcp_project_id = attributes[:'gcp_project_id']
187
+ end
188
+
180
189
  if attributes.key?(:'gcp_sa_email')
181
190
  self.gcp_sa_email = attributes[:'gcp_sa_email']
182
191
  end
@@ -282,6 +291,7 @@ module Akeyless
282
291
  gcp_cred_type == o.gcp_cred_type &&
283
292
  gcp_key == o.gcp_key &&
284
293
  gcp_key_algo == o.gcp_key_algo &&
294
+ gcp_project_id == o.gcp_project_id &&
285
295
  gcp_sa_email == o.gcp_sa_email &&
286
296
  gcp_token_scopes == o.gcp_token_scopes &&
287
297
  item_custom_fields == o.item_custom_fields &&
@@ -307,7 +317,7 @@ module Akeyless
307
317
  # Calculates hash code according to all attributes.
308
318
  # @return [Integer] Hash code
309
319
  def hash
310
- [custom_username_template, delete_protection, description, gcp_cred_type, gcp_key, gcp_key_algo, gcp_sa_email, gcp_token_scopes, item_custom_fields, json, name, new_name, producer_encryption_key_name, role_binding, service_account_type, tags, target_name, token, uid_token, user_ttl].hash
320
+ [custom_username_template, delete_protection, description, gcp_cred_type, gcp_key, gcp_key_algo, gcp_project_id, gcp_sa_email, gcp_token_scopes, item_custom_fields, json, name, new_name, producer_encryption_key_name, role_binding, service_account_type, tags, target_name, token, uid_token, user_ttl].hash
311
321
  end
312
322
 
313
323
  # Builds the object from hash
@@ -18,6 +18,9 @@ module Akeyless
18
18
  # The name of the key to use in the encryption process
19
19
  attr_accessor :display_id
20
20
 
21
+ # Retrieve the Secret value without checking the Gateway's cache [true/false]. This flag is only relevant when using the RestAPI
22
+ attr_accessor :ignore_cache
23
+
21
24
  # Set output format to JSON
22
25
  attr_accessor :json
23
26
 
@@ -37,6 +40,7 @@ module Akeyless
37
40
  def self.attribute_map
38
41
  {
39
42
  :'display_id' => :'display-id',
43
+ :'ignore_cache' => :'ignore-cache',
40
44
  :'json' => :'json',
41
45
  :'plaintext' => :'plaintext',
42
46
  :'token' => :'token',
@@ -54,6 +58,7 @@ module Akeyless
54
58
  def self.openapi_types
55
59
  {
56
60
  :'display_id' => :'String',
61
+ :'ignore_cache' => :'String',
57
62
  :'json' => :'Boolean',
58
63
  :'plaintext' => :'String',
59
64
  :'token' => :'String',
@@ -89,6 +94,12 @@ module Akeyless
89
94
  self.display_id = nil
90
95
  end
91
96
 
97
+ if attributes.key?(:'ignore_cache')
98
+ self.ignore_cache = attributes[:'ignore_cache']
99
+ else
100
+ self.ignore_cache = 'false'
101
+ end
102
+
92
103
  if attributes.key?(:'json')
93
104
  self.json = attributes[:'json']
94
105
  else
@@ -152,6 +163,7 @@ module Akeyless
152
163
  return true if self.equal?(o)
153
164
  self.class == o.class &&
154
165
  display_id == o.display_id &&
166
+ ignore_cache == o.ignore_cache &&
155
167
  json == o.json &&
156
168
  plaintext == o.plaintext &&
157
169
  token == o.token &&
@@ -168,7 +180,7 @@ module Akeyless
168
180
  # Calculates hash code according to all attributes.
169
181
  # @return [Integer] Hash code
170
182
  def hash
171
- [display_id, json, plaintext, token, uid_token, version].hash
183
+ [display_id, ignore_cache, json, plaintext, token, uid_token, version].hash
172
184
  end
173
185
 
174
186
  # Builds the object from hash