akeyless 3.1.2 → 3.2.1

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 (125) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -1
  3. data/docs/CreateAWSTarget.md +3 -1
  4. data/docs/CreateArtifactoryTarget.md +3 -1
  5. data/docs/CreateAzureTarget.md +3 -1
  6. data/docs/CreateDBTarget.md +3 -1
  7. data/docs/CreateDockerhubTarget.md +3 -1
  8. data/docs/CreateEKSTarget.md +3 -1
  9. data/docs/CreateEventForwarder.md +3 -1
  10. data/docs/CreateGKETarget.md +3 -1
  11. data/docs/CreateGcpTarget.md +3 -1
  12. data/docs/CreateGithubTarget.md +3 -1
  13. data/docs/CreateLdapTarget.md +3 -1
  14. data/docs/CreateNativeK8STarget.md +3 -1
  15. data/docs/CreatePingTarget.md +40 -0
  16. data/docs/CreatePingTargetOutput.md +18 -0
  17. data/docs/CreateRabbitMQTarget.md +3 -1
  18. data/docs/CreateRole.md +3 -1
  19. data/docs/CreateRotatedSecret.md +2 -0
  20. data/docs/CreateSSHTarget.md +3 -1
  21. data/docs/CreateSalesforceTarget.md +3 -1
  22. data/docs/CreateWebTarget.md +3 -1
  23. data/docs/DSProducerDetails.md +40 -0
  24. data/docs/GatewayCreateProducerEks.md +1 -1
  25. data/docs/GatewayCreateProducerPing.md +66 -0
  26. data/docs/GatewayCreateProducerPingOutput.md +18 -0
  27. data/docs/GatewayUpdateProducerEks.md +1 -1
  28. data/docs/GatewayUpdateProducerPing.md +68 -0
  29. data/docs/GatewayUpdateProducerPingOutput.md +18 -0
  30. data/docs/GetKubeExecCreds.md +5 -3
  31. data/docs/GetPKICertificate.md +5 -3
  32. data/docs/ImporterInfo.md +20 -0
  33. data/docs/ItemGeneralInfo.md +2 -0
  34. data/docs/RequestAccess.md +3 -1
  35. data/docs/SecureRemoteAccess.md +2 -0
  36. data/docs/TargetTypeDetailsInput.md +10 -0
  37. data/docs/UidCreateChildToken.md +3 -1
  38. data/docs/UpdateAWSTarget.md +3 -1
  39. data/docs/UpdateArtifactoryTarget.md +3 -1
  40. data/docs/UpdateAzureTarget.md +3 -1
  41. data/docs/UpdateDBTarget.md +3 -1
  42. data/docs/UpdateDockerhubTarget.md +3 -1
  43. data/docs/UpdateEKSTarget.md +3 -1
  44. data/docs/UpdateEventForwarder.md +3 -1
  45. data/docs/UpdateGKETarget.md +3 -1
  46. data/docs/UpdateGcpTarget.md +3 -1
  47. data/docs/UpdateGithubTarget.md +3 -1
  48. data/docs/UpdateLdapTarget.md +3 -1
  49. data/docs/UpdateNativeK8STarget.md +3 -1
  50. data/docs/UpdatePingTarget.md +46 -0
  51. data/docs/UpdateRabbitMQTarget.md +3 -1
  52. data/docs/UpdateRole.md +3 -1
  53. data/docs/UpdateRotatedSecret.md +2 -0
  54. data/docs/UpdateSSHTarget.md +3 -1
  55. data/docs/UpdateSalesforceTarget.md +3 -1
  56. data/docs/UpdateTarget.md +3 -1
  57. data/docs/UpdateWebTarget.md +3 -1
  58. data/docs/V2Api.md +252 -0
  59. data/lib/akeyless/api/v2_api.rb +256 -0
  60. data/lib/akeyless/models/create_artifactory_target.rb +12 -2
  61. data/lib/akeyless/models/create_aws_target.rb +12 -2
  62. data/lib/akeyless/models/create_azure_target.rb +12 -2
  63. data/lib/akeyless/models/create_db_target.rb +12 -2
  64. data/lib/akeyless/models/create_dockerhub_target.rb +12 -2
  65. data/lib/akeyless/models/create_eks_target.rb +12 -2
  66. data/lib/akeyless/models/create_event_forwarder.rb +12 -2
  67. data/lib/akeyless/models/create_gcp_target.rb +12 -2
  68. data/lib/akeyless/models/create_github_target.rb +12 -2
  69. data/lib/akeyless/models/create_gke_target.rb +12 -2
  70. data/lib/akeyless/models/create_ldap_target.rb +12 -2
  71. data/lib/akeyless/models/create_native_k8_s_target.rb +12 -2
  72. data/lib/akeyless/models/create_ping_target.rb +339 -0
  73. data/lib/akeyless/models/create_ping_target_output.rb +219 -0
  74. data/lib/akeyless/models/create_rabbit_mq_target.rb +12 -2
  75. data/lib/akeyless/models/create_role.rb +12 -2
  76. data/lib/akeyless/models/create_rotated_secret.rb +13 -1
  77. data/lib/akeyless/models/create_salesforce_target.rb +12 -2
  78. data/lib/akeyless/models/create_ssh_target.rb +12 -2
  79. data/lib/akeyless/models/create_web_target.rb +12 -2
  80. data/lib/akeyless/models/ds_producer_details.rb +196 -1
  81. data/lib/akeyless/models/gateway_create_producer_eks.rb +1 -1
  82. data/lib/akeyless/models/gateway_create_producer_ping.rb +482 -0
  83. data/lib/akeyless/models/gateway_create_producer_ping_output.rb +219 -0
  84. data/lib/akeyless/models/gateway_update_producer_eks.rb +1 -1
  85. data/lib/akeyless/models/gateway_update_producer_ping.rb +492 -0
  86. data/lib/akeyless/models/gateway_update_producer_ping_output.rb +219 -0
  87. data/lib/akeyless/models/get_kube_exec_creds.rb +14 -4
  88. data/lib/akeyless/models/get_pki_certificate.rb +14 -4
  89. data/lib/akeyless/models/importer_info.rb +228 -0
  90. data/lib/akeyless/models/item_general_info.rb +10 -1
  91. data/lib/akeyless/models/request_access.rb +12 -2
  92. data/lib/akeyless/models/secure_remote_access.rb +10 -1
  93. data/lib/akeyless/models/target_type_details_input.rb +46 -1
  94. data/lib/akeyless/models/uid_create_child_token.rb +12 -2
  95. data/lib/akeyless/models/update_artifactory_target.rb +12 -2
  96. data/lib/akeyless/models/update_aws_target.rb +12 -2
  97. data/lib/akeyless/models/update_azure_target.rb +12 -2
  98. data/lib/akeyless/models/update_db_target.rb +12 -2
  99. data/lib/akeyless/models/update_dockerhub_target.rb +12 -2
  100. data/lib/akeyless/models/update_eks_target.rb +12 -2
  101. data/lib/akeyless/models/update_event_forwarder.rb +14 -2
  102. data/lib/akeyless/models/update_gcp_target.rb +12 -2
  103. data/lib/akeyless/models/update_github_target.rb +12 -2
  104. data/lib/akeyless/models/update_gke_target.rb +12 -2
  105. data/lib/akeyless/models/update_ldap_target.rb +12 -2
  106. data/lib/akeyless/models/update_native_k8_s_target.rb +12 -2
  107. data/lib/akeyless/models/update_ping_target.rb +368 -0
  108. data/lib/akeyless/models/update_rabbit_mq_target.rb +12 -2
  109. data/lib/akeyless/models/update_role.rb +14 -2
  110. data/lib/akeyless/models/update_rotated_secret.rb +13 -1
  111. data/lib/akeyless/models/update_salesforce_target.rb +12 -2
  112. data/lib/akeyless/models/update_ssh_target.rb +12 -2
  113. data/lib/akeyless/models/update_target.rb +14 -2
  114. data/lib/akeyless/models/update_web_target.rb +12 -2
  115. data/lib/akeyless/version.rb +1 -1
  116. data/lib/akeyless.rb +8 -0
  117. data/spec/models/create_ping_target_output_spec.rb +34 -0
  118. data/spec/models/create_ping_target_spec.rb +94 -0
  119. data/spec/models/gateway_create_producer_ping_output_spec.rb +34 -0
  120. data/spec/models/gateway_create_producer_ping_spec.rb +178 -0
  121. data/spec/models/gateway_update_producer_ping_output_spec.rb +34 -0
  122. data/spec/models/gateway_update_producer_ping_spec.rb +184 -0
  123. data/spec/models/importer_info_spec.rb +40 -0
  124. data/spec/models/update_ping_target_spec.rb +112 -0
  125. metadata +594 -562
@@ -53,6 +53,9 @@ module Akeyless
53
53
  # Secret name
54
54
  attr_accessor :name
55
55
 
56
+ # Rotate the value of the secret after SRA session ends
57
+ attr_accessor :rotate_after_disconnect
58
+
56
59
  attr_accessor :rotated_password
57
60
 
58
61
  attr_accessor :rotated_username
@@ -152,6 +155,7 @@ module Akeyless
152
155
  :'key' => :'key',
153
156
  :'metadata' => :'metadata',
154
157
  :'name' => :'name',
158
+ :'rotate_after_disconnect' => :'rotate-after-disconnect',
155
159
  :'rotated_password' => :'rotated-password',
156
160
  :'rotated_username' => :'rotated-username',
157
161
  :'rotation_hour' => :'rotation-hour',
@@ -206,6 +210,7 @@ module Akeyless
206
210
  :'key' => :'String',
207
211
  :'metadata' => :'String',
208
212
  :'name' => :'String',
213
+ :'rotate_after_disconnect' => :'String',
209
214
  :'rotated_password' => :'String',
210
215
  :'rotated_username' => :'String',
211
216
  :'rotation_hour' => :'Integer',
@@ -317,6 +322,12 @@ module Akeyless
317
322
  self.name = attributes[:'name']
318
323
  end
319
324
 
325
+ if attributes.key?(:'rotate_after_disconnect')
326
+ self.rotate_after_disconnect = attributes[:'rotate_after_disconnect']
327
+ else
328
+ self.rotate_after_disconnect = 'false'
329
+ end
330
+
320
331
  if attributes.key?(:'rotated_password')
321
332
  self.rotated_password = attributes[:'rotated_password']
322
333
  end
@@ -493,6 +504,7 @@ module Akeyless
493
504
  key == o.key &&
494
505
  metadata == o.metadata &&
495
506
  name == o.name &&
507
+ rotate_after_disconnect == o.rotate_after_disconnect &&
496
508
  rotated_password == o.rotated_password &&
497
509
  rotated_username == o.rotated_username &&
498
510
  rotation_hour == o.rotation_hour &&
@@ -533,7 +545,7 @@ module Akeyless
533
545
  # Calculates hash code according to all attributes.
534
546
  # @return [Integer] Hash code
535
547
  def hash
536
- [api_id, api_key, application_id, authentication_credentials, auto_rotate, aws_region, custom_payload, delete_protection, description, gcp_key, json, key, metadata, name, rotated_password, rotated_username, rotation_hour, rotation_interval, rotator_creds_type, rotator_custom_cmd, rotator_type, 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, storage_account_key_name, tags, target_name, token, uid_token, user_attribute, user_dn].hash
548
+ [api_id, api_key, application_id, authentication_credentials, auto_rotate, aws_region, custom_payload, delete_protection, description, gcp_key, json, key, metadata, name, rotate_after_disconnect, rotated_password, rotated_username, rotation_hour, rotation_interval, rotator_creds_type, rotator_custom_cmd, rotator_type, 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, storage_account_key_name, tags, target_name, token, uid_token, user_attribute, user_dn].hash
537
549
  end
538
550
 
539
551
  # Builds the object from hash
@@ -33,9 +33,12 @@ module Akeyless
33
33
  # Client secret of the oauth2 app to use for connecting to Salesforce (required for password flow)
34
34
  attr_accessor :client_secret
35
35
 
36
- # Comment about the target
36
+ # Deprecated - use description
37
37
  attr_accessor :comment
38
38
 
39
+ # Description of the object
40
+ attr_accessor :description
41
+
39
42
  # The email of the user attached to the oauth2 app used for connecting to Salesforce
40
43
  attr_accessor :email
41
44
 
@@ -73,6 +76,7 @@ module Akeyless
73
76
  :'client_id' => :'client-id',
74
77
  :'client_secret' => :'client-secret',
75
78
  :'comment' => :'comment',
79
+ :'description' => :'description',
76
80
  :'email' => :'email',
77
81
  :'json' => :'json',
78
82
  :'key' => :'key',
@@ -100,6 +104,7 @@ module Akeyless
100
104
  :'client_id' => :'String',
101
105
  :'client_secret' => :'String',
102
106
  :'comment' => :'String',
107
+ :'description' => :'String',
103
108
  :'email' => :'String',
104
109
  :'json' => :'Boolean',
105
110
  :'key' => :'String',
@@ -161,6 +166,10 @@ module Akeyless
161
166
  self.comment = attributes[:'comment']
162
167
  end
163
168
 
169
+ if attributes.key?(:'description')
170
+ self.description = attributes[:'description']
171
+ end
172
+
164
173
  if attributes.key?(:'email')
165
174
  self.email = attributes[:'email']
166
175
  end
@@ -248,6 +257,7 @@ module Akeyless
248
257
  client_id == o.client_id &&
249
258
  client_secret == o.client_secret &&
250
259
  comment == o.comment &&
260
+ description == o.description &&
251
261
  email == o.email &&
252
262
  json == o.json &&
253
263
  key == o.key &&
@@ -268,7 +278,7 @@ module Akeyless
268
278
  # Calculates hash code according to all attributes.
269
279
  # @return [Integer] Hash code
270
280
  def hash
271
- [app_private_key_data, auth_flow, ca_cert_data, ca_cert_name, client_id, client_secret, comment, email, json, key, name, password, security_token, tenant_url, token, uid_token].hash
281
+ [app_private_key_data, auth_flow, ca_cert_data, ca_cert_name, client_id, client_secret, comment, description, email, json, key, name, password, security_token, tenant_url, token, uid_token].hash
272
282
  end
273
283
 
274
284
  # Builds the object from hash
@@ -15,9 +15,12 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class CreateSSHTarget
18
- # Comment about the target
18
+ # Deprecated - use description
19
19
  attr_accessor :comment
20
20
 
21
+ # Description of the object
22
+ attr_accessor :description
23
+
21
24
  attr_accessor :host
22
25
 
23
26
  # Set output format to JSON
@@ -49,6 +52,7 @@ module Akeyless
49
52
  def self.attribute_map
50
53
  {
51
54
  :'comment' => :'comment',
55
+ :'description' => :'description',
52
56
  :'host' => :'host',
53
57
  :'json' => :'json',
54
58
  :'key' => :'key',
@@ -72,6 +76,7 @@ module Akeyless
72
76
  def self.openapi_types
73
77
  {
74
78
  :'comment' => :'String',
79
+ :'description' => :'String',
75
80
  :'host' => :'String',
76
81
  :'json' => :'Boolean',
77
82
  :'key' => :'String',
@@ -111,6 +116,10 @@ module Akeyless
111
116
  self.comment = attributes[:'comment']
112
117
  end
113
118
 
119
+ if attributes.key?(:'description')
120
+ self.description = attributes[:'description']
121
+ end
122
+
114
123
  if attributes.key?(:'host')
115
124
  self.host = attributes[:'host']
116
125
  end
@@ -180,6 +189,7 @@ module Akeyless
180
189
  return true if self.equal?(o)
181
190
  self.class == o.class &&
182
191
  comment == o.comment &&
192
+ description == o.description &&
183
193
  host == o.host &&
184
194
  json == o.json &&
185
195
  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
- [comment, host, json, key, name, port, private_key, private_key_password, ssh_password, ssh_username, token, uid_token].hash
215
+ [comment, description, host, json, key, name, port, private_key, private_key_password, ssh_password, ssh_username, token, uid_token].hash
206
216
  end
207
217
 
208
218
  # Builds the object from hash
@@ -15,9 +15,12 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class CreateWebTarget
18
- # Comment about the target
18
+ # Deprecated - use description
19
19
  attr_accessor :comment
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
 
@@ -40,6 +43,7 @@ module Akeyless
40
43
  def self.attribute_map
41
44
  {
42
45
  :'comment' => :'comment',
46
+ :'description' => :'description',
43
47
  :'json' => :'json',
44
48
  :'key' => :'key',
45
49
  :'name' => :'name',
@@ -58,6 +62,7 @@ module Akeyless
58
62
  def self.openapi_types
59
63
  {
60
64
  :'comment' => :'String',
65
+ :'description' => :'String',
61
66
  :'json' => :'Boolean',
62
67
  :'key' => :'String',
63
68
  :'name' => :'String',
@@ -92,6 +97,10 @@ module Akeyless
92
97
  self.comment = attributes[:'comment']
93
98
  end
94
99
 
100
+ if attributes.key?(:'description')
101
+ self.description = attributes[:'description']
102
+ end
103
+
95
104
  if attributes.key?(:'json')
96
105
  self.json = attributes[:'json']
97
106
  end
@@ -141,6 +150,7 @@ module Akeyless
141
150
  return true if self.equal?(o)
142
151
  self.class == o.class &&
143
152
  comment == o.comment &&
153
+ description == o.description &&
144
154
  json == o.json &&
145
155
  key == o.key &&
146
156
  name == o.name &&
@@ -158,7 +168,7 @@ module Akeyless
158
168
  # Calculates hash code according to all attributes.
159
169
  # @return [Integer] Hash code
160
170
  def hash
161
- [comment, json, key, name, token, uid_token, url].hash
171
+ [comment, description, json, key, name, token, uid_token, url].hash
162
172
  end
163
173
 
164
174
  # Builds the object from hash