akeyless 3.3.17 → 3.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/docs/Connect.md +2 -0
- data/docs/CreateDBTarget.md +12 -0
- data/docs/CreateUserEvent.md +3 -3
- data/docs/DSProducerDetails.md +10 -0
- data/docs/DbTargetDetails.md +10 -0
- data/docs/GatewayCreateProducerRdp.md +2 -0
- data/docs/GatewayUpdateProducerRdp.md +2 -0
- data/docs/GetLastUserEventStatus.md +1 -1
- data/docs/SecureRemoteAccess.md +2 -0
- data/docs/UpdateDBTarget.md +12 -0
- data/docs/UpdateItem.md +2 -0
- data/docs/V2Api.md +65 -62
- data/lib/akeyless/api/v2_api.rb +64 -53
- data/lib/akeyless/models/connect.rb +10 -1
- data/lib/akeyless/models/create_db_target.rb +67 -1
- data/lib/akeyless/models/create_user_event.rb +3 -3
- data/lib/akeyless/models/db_target_details.rb +46 -1
- data/lib/akeyless/models/ds_producer_details.rb +46 -1
- data/lib/akeyless/models/gateway_create_producer_rdp.rb +11 -1
- data/lib/akeyless/models/gateway_update_producer_rdp.rb +11 -1
- data/lib/akeyless/models/get_last_user_event_status.rb +1 -1
- data/lib/akeyless/models/secure_remote_access.rb +10 -1
- data/lib/akeyless/models/update_db_target.rb +67 -1
- data/lib/akeyless/models/update_item.rb +11 -1
- data/lib/akeyless/version.rb +1 -1
- metadata +686 -686
@@ -15,9 +15,26 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Akeyless
|
17
17
|
class UpdateDBTarget
|
18
|
+
attr_accessor :db_defined_connection_type
|
19
|
+
|
20
|
+
# (Optional) Client id (relevant for \"cloud-service-provider\" only)
|
21
|
+
attr_accessor :azure_client_id
|
22
|
+
|
23
|
+
# (Optional) Client secret (relevant for \"cloud-service-provider\" only)
|
24
|
+
attr_accessor :azure_client_secret
|
25
|
+
|
26
|
+
# (Optional) Tenant id (relevant for \"cloud-service-provider\" only)
|
27
|
+
attr_accessor :azure_tenant_id
|
28
|
+
|
29
|
+
# (Optional) Cloud service provider (currently only supports Azure)
|
30
|
+
attr_accessor :cloud_service_provider
|
31
|
+
|
18
32
|
# Deprecated - use description
|
19
33
|
attr_accessor :comment
|
20
34
|
|
35
|
+
# (Optional) Type of connection to mssql database [credentials/cloud-identity]
|
36
|
+
attr_accessor :connection_type
|
37
|
+
|
21
38
|
attr_accessor :db_name
|
22
39
|
|
23
40
|
# (Optional) DB server certificates
|
@@ -99,7 +116,13 @@ module Akeyless
|
|
99
116
|
# Attribute mapping from ruby-style variable name to JSON key.
|
100
117
|
def self.attribute_map
|
101
118
|
{
|
119
|
+
:'db_defined_connection_type' => :'DBDefinedConnectionType',
|
120
|
+
:'azure_client_id' => :'azure-client-id',
|
121
|
+
:'azure_client_secret' => :'azure-client-secret',
|
122
|
+
:'azure_tenant_id' => :'azure-tenant-id',
|
123
|
+
:'cloud_service_provider' => :'cloud-service-provider',
|
102
124
|
:'comment' => :'comment',
|
125
|
+
:'connection_type' => :'connection-type',
|
103
126
|
:'db_name' => :'db-name',
|
104
127
|
:'db_server_certificates' => :'db-server-certificates',
|
105
128
|
:'db_server_name' => :'db-server-name',
|
@@ -140,7 +163,13 @@ module Akeyless
|
|
140
163
|
# Attribute type mapping.
|
141
164
|
def self.openapi_types
|
142
165
|
{
|
166
|
+
:'db_defined_connection_type' => :'String',
|
167
|
+
:'azure_client_id' => :'String',
|
168
|
+
:'azure_client_secret' => :'String',
|
169
|
+
:'azure_tenant_id' => :'String',
|
170
|
+
:'cloud_service_provider' => :'String',
|
143
171
|
:'comment' => :'String',
|
172
|
+
:'connection_type' => :'String',
|
144
173
|
:'db_name' => :'String',
|
145
174
|
:'db_server_certificates' => :'String',
|
146
175
|
:'db_server_name' => :'String',
|
@@ -194,10 +223,36 @@ module Akeyless
|
|
194
223
|
h[k.to_sym] = v
|
195
224
|
}
|
196
225
|
|
226
|
+
if attributes.key?(:'db_defined_connection_type')
|
227
|
+
self.db_defined_connection_type = attributes[:'db_defined_connection_type']
|
228
|
+
end
|
229
|
+
|
230
|
+
if attributes.key?(:'azure_client_id')
|
231
|
+
self.azure_client_id = attributes[:'azure_client_id']
|
232
|
+
end
|
233
|
+
|
234
|
+
if attributes.key?(:'azure_client_secret')
|
235
|
+
self.azure_client_secret = attributes[:'azure_client_secret']
|
236
|
+
end
|
237
|
+
|
238
|
+
if attributes.key?(:'azure_tenant_id')
|
239
|
+
self.azure_tenant_id = attributes[:'azure_tenant_id']
|
240
|
+
end
|
241
|
+
|
242
|
+
if attributes.key?(:'cloud_service_provider')
|
243
|
+
self.cloud_service_provider = attributes[:'cloud_service_provider']
|
244
|
+
end
|
245
|
+
|
197
246
|
if attributes.key?(:'comment')
|
198
247
|
self.comment = attributes[:'comment']
|
199
248
|
end
|
200
249
|
|
250
|
+
if attributes.key?(:'connection_type')
|
251
|
+
self.connection_type = attributes[:'connection_type']
|
252
|
+
else
|
253
|
+
self.connection_type = 'credentials'
|
254
|
+
end
|
255
|
+
|
201
256
|
if attributes.key?(:'db_name')
|
202
257
|
self.db_name = attributes[:'db_name']
|
203
258
|
end
|
@@ -328,6 +383,10 @@ module Akeyless
|
|
328
383
|
def list_invalid_properties
|
329
384
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
330
385
|
invalid_properties = Array.new
|
386
|
+
if @connection_type.nil?
|
387
|
+
invalid_properties.push('invalid value for "connection_type", connection_type cannot be nil.')
|
388
|
+
end
|
389
|
+
|
331
390
|
if @db_type.nil?
|
332
391
|
invalid_properties.push('invalid value for "db_type", db_type cannot be nil.')
|
333
392
|
end
|
@@ -343,6 +402,7 @@ module Akeyless
|
|
343
402
|
# @return true if the model is valid
|
344
403
|
def valid?
|
345
404
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
405
|
+
return false if @connection_type.nil?
|
346
406
|
return false if @db_type.nil?
|
347
407
|
return false if @name.nil?
|
348
408
|
true
|
@@ -353,7 +413,13 @@ module Akeyless
|
|
353
413
|
def ==(o)
|
354
414
|
return true if self.equal?(o)
|
355
415
|
self.class == o.class &&
|
416
|
+
db_defined_connection_type == o.db_defined_connection_type &&
|
417
|
+
azure_client_id == o.azure_client_id &&
|
418
|
+
azure_client_secret == o.azure_client_secret &&
|
419
|
+
azure_tenant_id == o.azure_tenant_id &&
|
420
|
+
cloud_service_provider == o.cloud_service_provider &&
|
356
421
|
comment == o.comment &&
|
422
|
+
connection_type == o.connection_type &&
|
357
423
|
db_name == o.db_name &&
|
358
424
|
db_server_certificates == o.db_server_certificates &&
|
359
425
|
db_server_name == o.db_server_name &&
|
@@ -394,7 +460,7 @@ module Akeyless
|
|
394
460
|
# Calculates hash code according to all attributes.
|
395
461
|
# @return [Integer] Hash code
|
396
462
|
def hash
|
397
|
-
[comment, db_name, db_server_certificates, db_server_name, db_type, description, host, json, keep_prev_version, 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, new_name, oracle_service_name, port, pwd, snowflake_account, snowflake_api_private_key, snowflake_api_private_key_password, ssl, ssl_certificate, token, uid_token, update_version, user_name].hash
|
463
|
+
[db_defined_connection_type, azure_client_id, azure_client_secret, azure_tenant_id, cloud_service_provider, comment, connection_type, db_name, db_server_certificates, db_server_name, db_type, description, host, json, keep_prev_version, 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, new_name, oracle_service_name, port, pwd, snowflake_account, snowflake_api_private_key, snowflake_api_private_key_password, ssl, ssl_certificate, token, uid_token, update_version, user_name].hash
|
398
464
|
end
|
399
465
|
|
400
466
|
# Builds the object from hash
|
@@ -93,6 +93,9 @@ module Akeyless
|
|
93
93
|
# Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers)
|
94
94
|
attr_accessor :secure_access_host
|
95
95
|
|
96
|
+
# RD Gateway server (relevant only for rdp)
|
97
|
+
attr_accessor :secure_access_rd_gateway_server
|
98
|
+
|
96
99
|
# Required when the Dynamic Secret is used for a domain user (relevant only for RDP Dynamic-Secret)
|
97
100
|
attr_accessor :secure_access_rdp_domain
|
98
101
|
|
@@ -155,6 +158,7 @@ module Akeyless
|
|
155
158
|
:'secure_access_db_schema' => :'secure-access-db-schema',
|
156
159
|
:'secure_access_enable' => :'secure-access-enable',
|
157
160
|
:'secure_access_host' => :'secure-access-host',
|
161
|
+
:'secure_access_rd_gateway_server' => :'secure-access-rd-gateway-server',
|
158
162
|
:'secure_access_rdp_domain' => :'secure-access-rdp-domain',
|
159
163
|
:'secure_access_rdp_user' => :'secure-access-rdp-user',
|
160
164
|
:'secure_access_rm_host' => :'secure-access-rm-host',
|
@@ -203,6 +207,7 @@ module Akeyless
|
|
203
207
|
:'secure_access_db_schema' => :'String',
|
204
208
|
:'secure_access_enable' => :'String',
|
205
209
|
:'secure_access_host' => :'Array<String>',
|
210
|
+
:'secure_access_rd_gateway_server' => :'String',
|
206
211
|
:'secure_access_rdp_domain' => :'String',
|
207
212
|
:'secure_access_rdp_user' => :'String',
|
208
213
|
:'secure_access_rm_host' => :'Array<String>',
|
@@ -362,6 +367,10 @@ module Akeyless
|
|
362
367
|
end
|
363
368
|
end
|
364
369
|
|
370
|
+
if attributes.key?(:'secure_access_rd_gateway_server')
|
371
|
+
self.secure_access_rd_gateway_server = attributes[:'secure_access_rd_gateway_server']
|
372
|
+
end
|
373
|
+
|
365
374
|
if attributes.key?(:'secure_access_rdp_domain')
|
366
375
|
self.secure_access_rdp_domain = attributes[:'secure_access_rdp_domain']
|
367
376
|
end
|
@@ -464,6 +473,7 @@ module Akeyless
|
|
464
473
|
secure_access_db_schema == o.secure_access_db_schema &&
|
465
474
|
secure_access_enable == o.secure_access_enable &&
|
466
475
|
secure_access_host == o.secure_access_host &&
|
476
|
+
secure_access_rd_gateway_server == o.secure_access_rd_gateway_server &&
|
467
477
|
secure_access_rdp_domain == o.secure_access_rdp_domain &&
|
468
478
|
secure_access_rdp_user == o.secure_access_rdp_user &&
|
469
479
|
secure_access_rm_host == o.secure_access_rm_host &&
|
@@ -486,7 +496,7 @@ module Akeyless
|
|
486
496
|
# Calculates hash code according to all attributes.
|
487
497
|
# @return [Integer] Hash code
|
488
498
|
def hash
|
489
|
-
[accessibility, add_tag, cert_file_data, delete_protection, description, json, name, new_metadata, new_name, rm_tag, rotate_after_disconnect, secure_access_add_host, secure_access_allow_external_user, secure_access_allow_port_forwading, secure_access_aws_account_id, secure_access_aws_native_cli, secure_access_aws_region, secure_access_bastion_api, secure_access_bastion_issuer, secure_access_bastion_ssh, secure_access_cluster_endpoint, secure_access_dashboard_url, secure_access_db_name, secure_access_db_schema, secure_access_enable, secure_access_host, secure_access_rdp_domain, secure_access_rdp_user, secure_access_rm_host, secure_access_ssh_creds, secure_access_ssh_creds_user, secure_access_url, secure_access_use_internal_bastion, secure_access_web_browsing, secure_access_web_proxy, token, uid_token].hash
|
499
|
+
[accessibility, add_tag, cert_file_data, delete_protection, description, json, name, new_metadata, new_name, rm_tag, rotate_after_disconnect, secure_access_add_host, secure_access_allow_external_user, secure_access_allow_port_forwading, secure_access_aws_account_id, secure_access_aws_native_cli, secure_access_aws_region, secure_access_bastion_api, secure_access_bastion_issuer, secure_access_bastion_ssh, secure_access_cluster_endpoint, secure_access_dashboard_url, secure_access_db_name, secure_access_db_schema, secure_access_enable, secure_access_host, secure_access_rd_gateway_server, secure_access_rdp_domain, secure_access_rdp_user, secure_access_rm_host, secure_access_ssh_creds, secure_access_ssh_creds_user, secure_access_url, secure_access_use_internal_bastion, secure_access_web_browsing, secure_access_web_proxy, token, uid_token].hash
|
490
500
|
end
|
491
501
|
|
492
502
|
# Builds the object from hash
|
data/lib/akeyless/version.rb
CHANGED