akeyless 2.16.4 → 2.16.5

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 (106) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +20 -1
  3. data/docs/AwsS3LogForwardingConfig.md +2 -0
  4. data/docs/CreateAuthMethod.md +1 -1
  5. data/docs/CreateAuthMethodAWSIAM.md +1 -1
  6. data/docs/CreateAuthMethodAzureAD.md +1 -1
  7. data/docs/CreateAuthMethodCert.md +1 -1
  8. data/docs/CreateAuthMethodGCP.md +1 -1
  9. data/docs/CreateAuthMethodHuawei.md +1 -1
  10. data/docs/CreateAuthMethodK8S.md +1 -1
  11. data/docs/CreateAuthMethodLDAP.md +1 -1
  12. data/docs/CreateAuthMethodOAuth2.md +1 -1
  13. data/docs/CreateAuthMethodOIDC.md +1 -1
  14. data/docs/CreateAuthMethodSAML.md +1 -1
  15. data/docs/CreateAuthMethodUniversalIdentity.md +1 -1
  16. data/docs/CreateClassicKey.md +12 -0
  17. data/docs/CreateRotatedSecret.md +28 -0
  18. data/docs/CreateSalesforceTarget.md +42 -0
  19. data/docs/CreateSalesforceTargetOutput.md +18 -0
  20. data/docs/GatewayCreateMigration.md +50 -0
  21. data/docs/GatewayDeleteMigration.md +22 -0
  22. data/docs/GatewayGetMigration.md +22 -0
  23. data/docs/GatewayMigrationCreateOutput.md +18 -0
  24. data/docs/GatewayMigrationDeleteOutput.md +18 -0
  25. data/docs/GatewayMigrationGetOutput.md +18 -0
  26. data/docs/GatewayMigrationUpdateOutput.md +18 -0
  27. data/docs/GatewayUpdateMigration.md +52 -0
  28. data/docs/GetSecretValue.md +2 -0
  29. data/docs/HashiPayload.md +2 -0
  30. data/docs/Item.md +2 -0
  31. data/docs/TargetTypeDetailsInput.md +12 -0
  32. data/docs/UpdateAuthMethod.md +1 -1
  33. data/docs/UpdateAuthMethodAWSIAM.md +1 -1
  34. data/docs/UpdateAuthMethodAzureAD.md +1 -1
  35. data/docs/UpdateAuthMethodCert.md +1 -1
  36. data/docs/UpdateAuthMethodGCP.md +1 -1
  37. data/docs/UpdateAuthMethodK8S.md +1 -1
  38. data/docs/UpdateAuthMethodLDAP.md +1 -1
  39. data/docs/UpdateAuthMethodOAuth2.md +1 -1
  40. data/docs/UpdateAuthMethodOIDC.md +1 -1
  41. data/docs/UpdateAuthMethodSAML.md +1 -1
  42. data/docs/UpdateAuthMethodUniversalIdentity.md +1 -1
  43. data/docs/UpdateRotatedSecret.md +28 -0
  44. data/docs/UpdateSalesforceTarget.md +48 -0
  45. data/docs/UpdateSalesforceTargetOutput.md +18 -0
  46. data/docs/V2Api.md +441 -0
  47. data/lib/akeyless/api/v2_api.rb +448 -0
  48. data/lib/akeyless/models/aws_s3_log_forwarding_config.rb +10 -1
  49. data/lib/akeyless/models/create_auth_method.rb +0 -2
  50. data/lib/akeyless/models/create_auth_method_awsiam.rb +0 -2
  51. data/lib/akeyless/models/create_auth_method_azure_ad.rb +0 -2
  52. data/lib/akeyless/models/create_auth_method_cert.rb +0 -2
  53. data/lib/akeyless/models/create_auth_method_gcp.rb +0 -2
  54. data/lib/akeyless/models/create_auth_method_huawei.rb +0 -2
  55. data/lib/akeyless/models/create_auth_method_k8_s.rb +0 -2
  56. data/lib/akeyless/models/create_auth_method_ldap.rb +0 -2
  57. data/lib/akeyless/models/create_auth_method_o_auth2.rb +0 -2
  58. data/lib/akeyless/models/create_auth_method_oidc.rb +0 -2
  59. data/lib/akeyless/models/create_auth_method_saml.rb +0 -2
  60. data/lib/akeyless/models/create_auth_method_universal_identity.rb +0 -2
  61. data/lib/akeyless/models/create_classic_key.rb +61 -1
  62. data/lib/akeyless/models/create_rotated_secret.rb +153 -1
  63. data/lib/akeyless/models/create_salesforce_target.rb +375 -0
  64. data/lib/akeyless/models/create_salesforce_target_output.rb +219 -0
  65. data/lib/akeyless/models/gateway_create_migration.rb +374 -0
  66. data/lib/akeyless/models/gateway_delete_migration.rb +246 -0
  67. data/lib/akeyless/models/gateway_get_migration.rb +240 -0
  68. data/lib/akeyless/models/gateway_migration_create_output.rb +219 -0
  69. data/lib/akeyless/models/gateway_migration_delete_output.rb +219 -0
  70. data/lib/akeyless/models/gateway_migration_get_output.rb +219 -0
  71. data/lib/akeyless/models/gateway_migration_update_output.rb +219 -0
  72. data/lib/akeyless/models/gateway_update_migration.rb +383 -0
  73. data/lib/akeyless/models/gateway_update_producer_hana_db.rb +1 -1
  74. data/lib/akeyless/models/get_secret_value.rb +10 -1
  75. data/lib/akeyless/models/hashi_payload.rb +10 -1
  76. data/lib/akeyless/models/item.rb +10 -1
  77. data/lib/akeyless/models/target_type_details_input.rb +59 -1
  78. data/lib/akeyless/models/update_auth_method.rb +0 -2
  79. data/lib/akeyless/models/update_auth_method_awsiam.rb +0 -2
  80. data/lib/akeyless/models/update_auth_method_azure_ad.rb +0 -2
  81. data/lib/akeyless/models/update_auth_method_cert.rb +0 -2
  82. data/lib/akeyless/models/update_auth_method_gcp.rb +0 -2
  83. data/lib/akeyless/models/update_auth_method_k8_s.rb +0 -2
  84. data/lib/akeyless/models/update_auth_method_ldap.rb +0 -2
  85. data/lib/akeyless/models/update_auth_method_o_auth2.rb +0 -2
  86. data/lib/akeyless/models/update_auth_method_oidc.rb +0 -2
  87. data/lib/akeyless/models/update_auth_method_saml.rb +0 -2
  88. data/lib/akeyless/models/update_auth_method_universal_identity.rb +0 -2
  89. data/lib/akeyless/models/update_rotated_secret.rb +153 -1
  90. data/lib/akeyless/models/update_salesforce_target.rb +404 -0
  91. data/lib/akeyless/models/update_salesforce_target_output.rb +219 -0
  92. data/lib/akeyless/version.rb +1 -1
  93. data/lib/akeyless.rb +12 -0
  94. data/spec/models/create_salesforce_target_output_spec.rb +34 -0
  95. data/spec/models/create_salesforce_target_spec.rb +106 -0
  96. data/spec/models/gateway_create_migration_spec.rb +130 -0
  97. data/spec/models/gateway_delete_migration_spec.rb +46 -0
  98. data/spec/models/gateway_get_migration_spec.rb +46 -0
  99. data/spec/models/gateway_migration_create_output_spec.rb +34 -0
  100. data/spec/models/gateway_migration_delete_output_spec.rb +34 -0
  101. data/spec/models/gateway_migration_get_output_spec.rb +34 -0
  102. data/spec/models/gateway_migration_update_output_spec.rb +34 -0
  103. data/spec/models/gateway_update_migration_spec.rb +136 -0
  104. data/spec/models/update_salesforce_target_output_spec.rb +34 -0
  105. data/spec/models/update_salesforce_target_spec.rb +124 -0
  106. metadata +512 -464
@@ -35,6 +35,12 @@ module Akeyless
35
35
 
36
36
  attr_accessor :azure_tenant_id
37
37
 
38
+ # CACertData is the rsa 4096 certificate data in PEM format
39
+ attr_accessor :ca_cert_data
40
+
41
+ # CACertName is the name of the certificate in SalesForce tenant
42
+ attr_accessor :ca_cert_name
43
+
38
44
  attr_accessor :chef_server_host_name
39
45
 
40
46
  attr_accessor :chef_server_key
@@ -47,6 +53,10 @@ module Akeyless
47
53
 
48
54
  attr_accessor :chef_skip_ssl
49
55
 
56
+ attr_accessor :client_id
57
+
58
+ attr_accessor :client_secret
59
+
50
60
  attr_accessor :db_host_name
51
61
 
52
62
  attr_accessor :db_name
@@ -156,6 +166,8 @@ module Akeyless
156
166
 
157
167
  attr_accessor :rabbitmq_server_user
158
168
 
169
+ attr_accessor :security_token
170
+
159
171
  attr_accessor :sf_account
160
172
 
161
173
  # (Optional) SSLConnectionCertificate defines the certificate for SSL connection. Must be base64 certificate loaded by UI using file loader field
@@ -164,6 +176,8 @@ module Akeyless
164
176
  # (Optional) SSLConnectionMode defines if SSL mode will be used to connect to DB
165
177
  attr_accessor :ssl_connection_mode
166
178
 
179
+ attr_accessor :tenant_url
180
+
167
181
  attr_accessor :url
168
182
 
169
183
  attr_accessor :use_gw_cloud_identity
@@ -197,12 +211,16 @@ module Akeyless
197
211
  :'azure_client_id' => :'azure_client_id',
198
212
  :'azure_client_secret' => :'azure_client_secret',
199
213
  :'azure_tenant_id' => :'azure_tenant_id',
214
+ :'ca_cert_data' => :'ca_cert_data',
215
+ :'ca_cert_name' => :'ca_cert_name',
200
216
  :'chef_server_host_name' => :'chef_server_host_name',
201
217
  :'chef_server_key' => :'chef_server_key',
202
218
  :'chef_server_port' => :'chef_server_port',
203
219
  :'chef_server_url' => :'chef_server_url',
204
220
  :'chef_server_username' => :'chef_server_username',
205
221
  :'chef_skip_ssl' => :'chef_skip_ssl',
222
+ :'client_id' => :'client_id',
223
+ :'client_secret' => :'client_secret',
206
224
  :'db_host_name' => :'db_host_name',
207
225
  :'db_name' => :'db_name',
208
226
  :'db_port' => :'db_port',
@@ -255,9 +273,11 @@ module Akeyless
255
273
  :'rabbitmq_server_password' => :'rabbitmq_server_password',
256
274
  :'rabbitmq_server_uri' => :'rabbitmq_server_uri',
257
275
  :'rabbitmq_server_user' => :'rabbitmq_server_user',
276
+ :'security_token' => :'security_token',
258
277
  :'sf_account' => :'sf_account',
259
278
  :'ssl_connection_certificate' => :'ssl_connection_certificate',
260
279
  :'ssl_connection_mode' => :'ssl_connection_mode',
280
+ :'tenant_url' => :'tenant_url',
261
281
  :'url' => :'url',
262
282
  :'use_gw_cloud_identity' => :'use_gw_cloud_identity',
263
283
  :'user_name' => :'user_name',
@@ -289,12 +309,16 @@ module Akeyless
289
309
  :'azure_client_id' => :'String',
290
310
  :'azure_client_secret' => :'String',
291
311
  :'azure_tenant_id' => :'String',
312
+ :'ca_cert_data' => :'Array<Integer>',
313
+ :'ca_cert_name' => :'String',
292
314
  :'chef_server_host_name' => :'String',
293
315
  :'chef_server_key' => :'String',
294
316
  :'chef_server_port' => :'String',
295
317
  :'chef_server_url' => :'String',
296
318
  :'chef_server_username' => :'String',
297
319
  :'chef_skip_ssl' => :'Boolean',
320
+ :'client_id' => :'String',
321
+ :'client_secret' => :'String',
298
322
  :'db_host_name' => :'String',
299
323
  :'db_name' => :'String',
300
324
  :'db_port' => :'String',
@@ -347,9 +371,11 @@ module Akeyless
347
371
  :'rabbitmq_server_password' => :'String',
348
372
  :'rabbitmq_server_uri' => :'String',
349
373
  :'rabbitmq_server_user' => :'String',
374
+ :'security_token' => :'String',
350
375
  :'sf_account' => :'String',
351
376
  :'ssl_connection_certificate' => :'String',
352
377
  :'ssl_connection_mode' => :'Boolean',
378
+ :'tenant_url' => :'String',
353
379
  :'url' => :'String',
354
380
  :'use_gw_cloud_identity' => :'Boolean',
355
381
  :'user_name' => :'String',
@@ -424,6 +450,16 @@ module Akeyless
424
450
  self.azure_tenant_id = attributes[:'azure_tenant_id']
425
451
  end
426
452
 
453
+ if attributes.key?(:'ca_cert_data')
454
+ if (value = attributes[:'ca_cert_data']).is_a?(Array)
455
+ self.ca_cert_data = value
456
+ end
457
+ end
458
+
459
+ if attributes.key?(:'ca_cert_name')
460
+ self.ca_cert_name = attributes[:'ca_cert_name']
461
+ end
462
+
427
463
  if attributes.key?(:'chef_server_host_name')
428
464
  self.chef_server_host_name = attributes[:'chef_server_host_name']
429
465
  end
@@ -448,6 +484,14 @@ module Akeyless
448
484
  self.chef_skip_ssl = attributes[:'chef_skip_ssl']
449
485
  end
450
486
 
487
+ if attributes.key?(:'client_id')
488
+ self.client_id = attributes[:'client_id']
489
+ end
490
+
491
+ if attributes.key?(:'client_secret')
492
+ self.client_secret = attributes[:'client_secret']
493
+ end
494
+
451
495
  if attributes.key?(:'db_host_name')
452
496
  self.db_host_name = attributes[:'db_host_name']
453
497
  end
@@ -656,6 +700,10 @@ module Akeyless
656
700
  self.rabbitmq_server_user = attributes[:'rabbitmq_server_user']
657
701
  end
658
702
 
703
+ if attributes.key?(:'security_token')
704
+ self.security_token = attributes[:'security_token']
705
+ end
706
+
659
707
  if attributes.key?(:'sf_account')
660
708
  self.sf_account = attributes[:'sf_account']
661
709
  end
@@ -668,6 +716,10 @@ module Akeyless
668
716
  self.ssl_connection_mode = attributes[:'ssl_connection_mode']
669
717
  end
670
718
 
719
+ if attributes.key?(:'tenant_url')
720
+ self.tenant_url = attributes[:'tenant_url']
721
+ end
722
+
671
723
  if attributes.key?(:'url')
672
724
  self.url = attributes[:'url']
673
725
  end
@@ -737,12 +789,16 @@ module Akeyless
737
789
  azure_client_id == o.azure_client_id &&
738
790
  azure_client_secret == o.azure_client_secret &&
739
791
  azure_tenant_id == o.azure_tenant_id &&
792
+ ca_cert_data == o.ca_cert_data &&
793
+ ca_cert_name == o.ca_cert_name &&
740
794
  chef_server_host_name == o.chef_server_host_name &&
741
795
  chef_server_key == o.chef_server_key &&
742
796
  chef_server_port == o.chef_server_port &&
743
797
  chef_server_url == o.chef_server_url &&
744
798
  chef_server_username == o.chef_server_username &&
745
799
  chef_skip_ssl == o.chef_skip_ssl &&
800
+ client_id == o.client_id &&
801
+ client_secret == o.client_secret &&
746
802
  db_host_name == o.db_host_name &&
747
803
  db_name == o.db_name &&
748
804
  db_port == o.db_port &&
@@ -795,9 +851,11 @@ module Akeyless
795
851
  rabbitmq_server_password == o.rabbitmq_server_password &&
796
852
  rabbitmq_server_uri == o.rabbitmq_server_uri &&
797
853
  rabbitmq_server_user == o.rabbitmq_server_user &&
854
+ security_token == o.security_token &&
798
855
  sf_account == o.sf_account &&
799
856
  ssl_connection_certificate == o.ssl_connection_certificate &&
800
857
  ssl_connection_mode == o.ssl_connection_mode &&
858
+ tenant_url == o.tenant_url &&
801
859
  url == o.url &&
802
860
  use_gw_cloud_identity == o.use_gw_cloud_identity &&
803
861
  user_name == o.user_name &&
@@ -819,7 +877,7 @@ module Akeyless
819
877
  # Calculates hash code according to all attributes.
820
878
  # @return [Integer] Hash code
821
879
  def hash
822
- [artifactory_admin_apikey, artifactory_admin_username, artifactory_base_url, aws_access_key_id, aws_region, aws_secret_access_key, aws_session_token, azure_client_id, azure_client_secret, azure_tenant_id, chef_server_host_name, chef_server_key, chef_server_port, chef_server_url, chef_server_username, chef_skip_ssl, db_host_name, db_name, db_port, db_pwd, db_server_certificates, db_server_name, db_user_name, eks_access_key_id, eks_cluster_ca_certificate, eks_cluster_endpoint, eks_cluster_name, eks_region, eks_secret_access_key, gcp_service_account_email, gcp_service_account_key, github_app_id, github_app_private_key, github_base_url, gke_cluster_ca_certificate, gke_cluster_endpoint, gke_cluster_name, gke_service_account_key, gke_service_account_name, host, k8s_bearer_token, k8s_cluster_ca_certificate, k8s_cluster_endpoint, ldap_audience, ldap_bind_dn, ldap_bind_password, ldap_certificate, ldap_token_expiration, ldap_url, mongodb_atlas_api_private_key, mongodb_atlas_api_public_key, mongodb_atlas_project_id, mongodb_db_name, mongodb_default_auth_db, mongodb_host_port, mongodb_is_atlas, mongodb_password, mongodb_uri_connection, mongodb_uri_options, mongodb_username, password, payload, port, private_key, private_key_password, rabbitmq_server_password, rabbitmq_server_uri, rabbitmq_server_user, sf_account, ssl_connection_certificate, ssl_connection_mode, url, use_gw_cloud_identity, user_name, username, venafi_api_key, venafi_base_url, venafi_tpp_password, venafi_tpp_username, venafi_use_tpp, venafi_zone].hash
880
+ [artifactory_admin_apikey, artifactory_admin_username, artifactory_base_url, aws_access_key_id, aws_region, aws_secret_access_key, aws_session_token, azure_client_id, azure_client_secret, azure_tenant_id, ca_cert_data, ca_cert_name, chef_server_host_name, chef_server_key, chef_server_port, chef_server_url, chef_server_username, chef_skip_ssl, client_id, client_secret, db_host_name, db_name, db_port, db_pwd, db_server_certificates, db_server_name, db_user_name, eks_access_key_id, eks_cluster_ca_certificate, eks_cluster_endpoint, eks_cluster_name, eks_region, eks_secret_access_key, gcp_service_account_email, gcp_service_account_key, github_app_id, github_app_private_key, github_base_url, gke_cluster_ca_certificate, gke_cluster_endpoint, gke_cluster_name, gke_service_account_key, gke_service_account_name, host, k8s_bearer_token, k8s_cluster_ca_certificate, k8s_cluster_endpoint, ldap_audience, ldap_bind_dn, ldap_bind_password, ldap_certificate, ldap_token_expiration, ldap_url, mongodb_atlas_api_private_key, mongodb_atlas_api_public_key, mongodb_atlas_project_id, mongodb_db_name, mongodb_default_auth_db, mongodb_host_port, mongodb_is_atlas, mongodb_password, mongodb_uri_connection, mongodb_uri_options, mongodb_username, password, payload, port, private_key, private_key_password, rabbitmq_server_password, rabbitmq_server_uri, rabbitmq_server_user, security_token, sf_account, ssl_connection_certificate, ssl_connection_mode, tenant_url, url, use_gw_cloud_identity, user_name, username, venafi_api_key, venafi_base_url, venafi_tpp_password, venafi_tpp_username, venafi_use_tpp, venafi_zone].hash
823
881
  end
824
882
 
825
883
  # Builds the object from hash
@@ -111,8 +111,6 @@ module Akeyless
111
111
 
112
112
  if attributes.key?(:'jwt_ttl')
113
113
  self.jwt_ttl = attributes[:'jwt_ttl']
114
- else
115
- self.jwt_ttl = 0
116
114
  end
117
115
 
118
116
  if attributes.key?(:'name')
@@ -194,8 +194,6 @@ module Akeyless
194
194
 
195
195
  if attributes.key?(:'jwt_ttl')
196
196
  self.jwt_ttl = attributes[:'jwt_ttl']
197
- else
198
- self.jwt_ttl = 0
199
197
  end
200
198
 
201
199
  if attributes.key?(:'name')
@@ -242,8 +242,6 @@ module Akeyless
242
242
 
243
243
  if attributes.key?(:'jwt_ttl')
244
244
  self.jwt_ttl = attributes[:'jwt_ttl']
245
- else
246
- self.jwt_ttl = 0
247
245
  end
248
246
 
249
247
  if attributes.key?(:'name')
@@ -197,8 +197,6 @@ module Akeyless
197
197
 
198
198
  if attributes.key?(:'jwt_ttl')
199
199
  self.jwt_ttl = attributes[:'jwt_ttl']
200
- else
201
- self.jwt_ttl = 0
202
200
  end
203
201
 
204
202
  if attributes.key?(:'name')
@@ -188,8 +188,6 @@ module Akeyless
188
188
 
189
189
  if attributes.key?(:'jwt_ttl')
190
190
  self.jwt_ttl = attributes[:'jwt_ttl']
191
- else
192
- self.jwt_ttl = 0
193
191
  end
194
192
 
195
193
  if attributes.key?(:'name')
@@ -170,8 +170,6 @@ module Akeyless
170
170
 
171
171
  if attributes.key?(:'jwt_ttl')
172
172
  self.jwt_ttl = attributes[:'jwt_ttl']
173
- else
174
- self.jwt_ttl = 0
175
173
  end
176
174
 
177
175
  if attributes.key?(:'name')
@@ -122,8 +122,6 @@ module Akeyless
122
122
 
123
123
  if attributes.key?(:'jwt_ttl')
124
124
  self.jwt_ttl = attributes[:'jwt_ttl']
125
- else
126
- self.jwt_ttl = 0
127
125
  end
128
126
 
129
127
  if attributes.key?(:'name')
@@ -155,8 +155,6 @@ module Akeyless
155
155
 
156
156
  if attributes.key?(:'jwt_ttl')
157
157
  self.jwt_ttl = attributes[:'jwt_ttl']
158
- else
159
- self.jwt_ttl = 0
160
158
  end
161
159
 
162
160
  if attributes.key?(:'name')
@@ -165,8 +165,6 @@ module Akeyless
165
165
 
166
166
  if attributes.key?(:'jwt_ttl')
167
167
  self.jwt_ttl = attributes[:'jwt_ttl']
168
- else
169
- self.jwt_ttl = 0
170
168
  end
171
169
 
172
170
  if attributes.key?(:'name')
@@ -146,8 +146,6 @@ module Akeyless
146
146
 
147
147
  if attributes.key?(:'jwt_ttl')
148
148
  self.jwt_ttl = attributes[:'jwt_ttl']
149
- else
150
- self.jwt_ttl = 0
151
149
  end
152
150
 
153
151
  if attributes.key?(:'name')
@@ -135,8 +135,6 @@ module Akeyless
135
135
 
136
136
  if attributes.key?(:'jwt_ttl')
137
137
  self.jwt_ttl = attributes[:'jwt_ttl']
138
- else
139
- self.jwt_ttl = 0
140
138
  end
141
139
 
142
140
  if attributes.key?(:'name')
@@ -26,6 +26,9 @@ module Akeyless
26
26
  # Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation
27
27
  attr_accessor :auto_rotate
28
28
 
29
+ # Region (used in aws)
30
+ attr_accessor :aws_region
31
+
29
32
  attr_accessor :custom_payload
30
33
 
31
34
  attr_accessor :keep_prev_version
@@ -61,6 +64,45 @@ module Akeyless
61
64
 
62
65
  attr_accessor :rotator_custom_cmd
63
66
 
67
+ # Secure Access Allow Providing External User (used in ssh)
68
+ attr_accessor :secure_access_allow_external_user
69
+
70
+ # Secure Access Account Id (used in aws)
71
+ attr_accessor :secure_access_aws_account_id
72
+
73
+ # Secure Access Aws Native Cli (used in aws)
74
+ attr_accessor :secure_access_aws_native_cli
75
+
76
+ # Secure Access Bastion Issuer
77
+ attr_accessor :secure_access_bastion_issuer
78
+
79
+ # Secure Access DB Name (used in data bases)
80
+ attr_accessor :secure_access_db_name
81
+
82
+ # Secure Access Schema (used in mssql, postgresql)
83
+ attr_accessor :secure_access_db_schema
84
+
85
+ # Secure Access Enabled
86
+ attr_accessor :secure_access_enable
87
+
88
+ # Secure Access Host
89
+ attr_accessor :secure_access_host
90
+
91
+ # Secure Access Domain (used in ssh)
92
+ attr_accessor :secure_access_rdp_domain
93
+
94
+ # Secure Access Override User (used in ssh)
95
+ attr_accessor :secure_access_rdp_user
96
+
97
+ # Secure Access Web
98
+ attr_accessor :secure_access_web
99
+
100
+ # Secure Access Isolated (used in aws, azure)
101
+ attr_accessor :secure_access_web_browsing
102
+
103
+ # Secure Access Web Proxy (used in aws, azure)
104
+ attr_accessor :secure_access_web_proxy
105
+
64
106
  # Deprecated: use RotatedPassword
65
107
  attr_accessor :ssh_password
66
108
 
@@ -80,6 +122,7 @@ module Akeyless
80
122
  :'api_id' => :'api-id',
81
123
  :'api_key' => :'api-key',
82
124
  :'auto_rotate' => :'auto-rotate',
125
+ :'aws_region' => :'aws-region',
83
126
  :'custom_payload' => :'custom-payload',
84
127
  :'keep_prev_version' => :'keep-prev-version',
85
128
  :'key' => :'key',
@@ -94,6 +137,19 @@ module Akeyless
94
137
  :'rotation_interval' => :'rotation-interval',
95
138
  :'rotator_creds_type' => :'rotator-creds-type',
96
139
  :'rotator_custom_cmd' => :'rotator-custom-cmd',
140
+ :'secure_access_allow_external_user' => :'secure-access-allow-external-user',
141
+ :'secure_access_aws_account_id' => :'secure-access-aws-account-id',
142
+ :'secure_access_aws_native_cli' => :'secure-access-aws-native-cli',
143
+ :'secure_access_bastion_issuer' => :'secure-access-bastion-issuer',
144
+ :'secure_access_db_name' => :'secure-access-db-name',
145
+ :'secure_access_db_schema' => :'secure-access-db-schema',
146
+ :'secure_access_enable' => :'secure-access-enable',
147
+ :'secure_access_host' => :'secure-access-host',
148
+ :'secure_access_rdp_domain' => :'secure-access-rdp-domain',
149
+ :'secure_access_rdp_user' => :'secure-access-rdp-user',
150
+ :'secure_access_web' => :'secure-access-web',
151
+ :'secure_access_web_browsing' => :'secure-access-web-browsing',
152
+ :'secure_access_web_proxy' => :'secure-access-web-proxy',
97
153
  :'ssh_password' => :'ssh-password',
98
154
  :'ssh_username' => :'ssh-username',
99
155
  :'token' => :'token',
@@ -113,6 +169,7 @@ module Akeyless
113
169
  :'api_id' => :'String',
114
170
  :'api_key' => :'String',
115
171
  :'auto_rotate' => :'String',
172
+ :'aws_region' => :'String',
116
173
  :'custom_payload' => :'String',
117
174
  :'keep_prev_version' => :'String',
118
175
  :'key' => :'String',
@@ -127,6 +184,19 @@ module Akeyless
127
184
  :'rotation_interval' => :'String',
128
185
  :'rotator_creds_type' => :'String',
129
186
  :'rotator_custom_cmd' => :'String',
187
+ :'secure_access_allow_external_user' => :'Boolean',
188
+ :'secure_access_aws_account_id' => :'String',
189
+ :'secure_access_aws_native_cli' => :'Boolean',
190
+ :'secure_access_bastion_issuer' => :'String',
191
+ :'secure_access_db_name' => :'String',
192
+ :'secure_access_db_schema' => :'String',
193
+ :'secure_access_enable' => :'String',
194
+ :'secure_access_host' => :'Array<String>',
195
+ :'secure_access_rdp_domain' => :'String',
196
+ :'secure_access_rdp_user' => :'String',
197
+ :'secure_access_web' => :'Boolean',
198
+ :'secure_access_web_browsing' => :'Boolean',
199
+ :'secure_access_web_proxy' => :'Boolean',
130
200
  :'ssh_password' => :'String',
131
201
  :'ssh_username' => :'String',
132
202
  :'token' => :'String',
@@ -173,6 +243,12 @@ module Akeyless
173
243
  self.auto_rotate = attributes[:'auto_rotate']
174
244
  end
175
245
 
246
+ if attributes.key?(:'aws_region')
247
+ self.aws_region = attributes[:'aws_region']
248
+ else
249
+ self.aws_region = 'us-east-2'
250
+ end
251
+
176
252
  if attributes.key?(:'custom_payload')
177
253
  self.custom_payload = attributes[:'custom_payload']
178
254
  end
@@ -233,6 +309,68 @@ module Akeyless
233
309
  self.rotator_custom_cmd = attributes[:'rotator_custom_cmd']
234
310
  end
235
311
 
312
+ if attributes.key?(:'secure_access_allow_external_user')
313
+ self.secure_access_allow_external_user = attributes[:'secure_access_allow_external_user']
314
+ else
315
+ self.secure_access_allow_external_user = false
316
+ end
317
+
318
+ if attributes.key?(:'secure_access_aws_account_id')
319
+ self.secure_access_aws_account_id = attributes[:'secure_access_aws_account_id']
320
+ end
321
+
322
+ if attributes.key?(:'secure_access_aws_native_cli')
323
+ self.secure_access_aws_native_cli = attributes[:'secure_access_aws_native_cli']
324
+ end
325
+
326
+ if attributes.key?(:'secure_access_bastion_issuer')
327
+ self.secure_access_bastion_issuer = attributes[:'secure_access_bastion_issuer']
328
+ end
329
+
330
+ if attributes.key?(:'secure_access_db_name')
331
+ self.secure_access_db_name = attributes[:'secure_access_db_name']
332
+ end
333
+
334
+ if attributes.key?(:'secure_access_db_schema')
335
+ self.secure_access_db_schema = attributes[:'secure_access_db_schema']
336
+ end
337
+
338
+ if attributes.key?(:'secure_access_enable')
339
+ self.secure_access_enable = attributes[:'secure_access_enable']
340
+ end
341
+
342
+ if attributes.key?(:'secure_access_host')
343
+ if (value = attributes[:'secure_access_host']).is_a?(Array)
344
+ self.secure_access_host = value
345
+ end
346
+ end
347
+
348
+ if attributes.key?(:'secure_access_rdp_domain')
349
+ self.secure_access_rdp_domain = attributes[:'secure_access_rdp_domain']
350
+ end
351
+
352
+ if attributes.key?(:'secure_access_rdp_user')
353
+ self.secure_access_rdp_user = attributes[:'secure_access_rdp_user']
354
+ end
355
+
356
+ if attributes.key?(:'secure_access_web')
357
+ self.secure_access_web = attributes[:'secure_access_web']
358
+ else
359
+ self.secure_access_web = false
360
+ end
361
+
362
+ if attributes.key?(:'secure_access_web_browsing')
363
+ self.secure_access_web_browsing = attributes[:'secure_access_web_browsing']
364
+ else
365
+ self.secure_access_web_browsing = false
366
+ end
367
+
368
+ if attributes.key?(:'secure_access_web_proxy')
369
+ self.secure_access_web_proxy = attributes[:'secure_access_web_proxy']
370
+ else
371
+ self.secure_access_web_proxy = false
372
+ end
373
+
236
374
  if attributes.key?(:'ssh_password')
237
375
  self.ssh_password = attributes[:'ssh_password']
238
376
  end
@@ -277,6 +415,7 @@ module Akeyless
277
415
  api_id == o.api_id &&
278
416
  api_key == o.api_key &&
279
417
  auto_rotate == o.auto_rotate &&
418
+ aws_region == o.aws_region &&
280
419
  custom_payload == o.custom_payload &&
281
420
  keep_prev_version == o.keep_prev_version &&
282
421
  key == o.key &&
@@ -291,6 +430,19 @@ module Akeyless
291
430
  rotation_interval == o.rotation_interval &&
292
431
  rotator_creds_type == o.rotator_creds_type &&
293
432
  rotator_custom_cmd == o.rotator_custom_cmd &&
433
+ secure_access_allow_external_user == o.secure_access_allow_external_user &&
434
+ secure_access_aws_account_id == o.secure_access_aws_account_id &&
435
+ secure_access_aws_native_cli == o.secure_access_aws_native_cli &&
436
+ secure_access_bastion_issuer == o.secure_access_bastion_issuer &&
437
+ secure_access_db_name == o.secure_access_db_name &&
438
+ secure_access_db_schema == o.secure_access_db_schema &&
439
+ secure_access_enable == o.secure_access_enable &&
440
+ secure_access_host == o.secure_access_host &&
441
+ secure_access_rdp_domain == o.secure_access_rdp_domain &&
442
+ secure_access_rdp_user == o.secure_access_rdp_user &&
443
+ secure_access_web == o.secure_access_web &&
444
+ secure_access_web_browsing == o.secure_access_web_browsing &&
445
+ secure_access_web_proxy == o.secure_access_web_proxy &&
294
446
  ssh_password == o.ssh_password &&
295
447
  ssh_username == o.ssh_username &&
296
448
  token == o.token &&
@@ -306,7 +458,7 @@ module Akeyless
306
458
  # Calculates hash code according to all attributes.
307
459
  # @return [Integer] Hash code
308
460
  def hash
309
- [add_tag, api_id, api_key, auto_rotate, custom_payload, keep_prev_version, key, name, new_metadata, new_name, new_version, rm_tag, rotated_password, rotated_username, rotation_hour, rotation_interval, rotator_creds_type, rotator_custom_cmd, ssh_password, ssh_username, token, uid_token].hash
461
+ [add_tag, api_id, api_key, auto_rotate, aws_region, custom_payload, keep_prev_version, key, name, new_metadata, new_name, new_version, rm_tag, rotated_password, rotated_username, rotation_hour, rotation_interval, rotator_creds_type, rotator_custom_cmd, secure_access_allow_external_user, secure_access_aws_account_id, secure_access_aws_native_cli, secure_access_bastion_issuer, secure_access_db_name, secure_access_db_schema, secure_access_enable, secure_access_host, secure_access_rdp_domain, secure_access_rdp_user, secure_access_web, secure_access_web_browsing, secure_access_web_proxy, ssh_password, ssh_username, token, uid_token].hash
310
462
  end
311
463
 
312
464
  # Builds the object from hash