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
@@ -18,6 +18,9 @@ module Akeyless
18
18
  # Workstation Admin Name
19
19
  attr_accessor :admin_name
20
20
 
21
+ # Description of the object
22
+ attr_accessor :description
23
+
21
24
  # A comma seperated list of email addresses to send event to (relevant only for \\\"email\\\" Event Forwarder)
22
25
  attr_accessor :email_to
23
26
 
@@ -39,7 +42,7 @@ module Akeyless
39
42
  # EventForwarder name
40
43
  attr_accessor :name
41
44
 
42
- # New comment about the Event Forwarder
45
+ # Deprecated - use description
43
46
  attr_accessor :new_comment
44
47
 
45
48
  # New EventForwarder name
@@ -55,6 +58,7 @@ module Akeyless
55
58
  def self.attribute_map
56
59
  {
57
60
  :'admin_name' => :'admin-name',
61
+ :'description' => :'description',
58
62
  :'email_to' => :'email-to',
59
63
  :'enable' => :'enable',
60
64
  :'event_source_locations' => :'event-source-locations',
@@ -78,6 +82,7 @@ module Akeyless
78
82
  def self.openapi_types
79
83
  {
80
84
  :'admin_name' => :'String',
85
+ :'description' => :'String',
81
86
  :'email_to' => :'String',
82
87
  :'enable' => :'String',
83
88
  :'event_source_locations' => :'Array<String>',
@@ -117,6 +122,12 @@ module Akeyless
117
122
  self.admin_name = attributes[:'admin_name']
118
123
  end
119
124
 
125
+ if attributes.key?(:'description')
126
+ self.description = attributes[:'description']
127
+ else
128
+ self.description = 'default_comment'
129
+ end
130
+
120
131
  if attributes.key?(:'email_to')
121
132
  self.email_to = attributes[:'email_to']
122
133
  end
@@ -192,6 +203,7 @@ module Akeyless
192
203
  return true if self.equal?(o)
193
204
  self.class == o.class &&
194
205
  admin_name == o.admin_name &&
206
+ description == o.description &&
195
207
  email_to == o.email_to &&
196
208
  enable == o.enable &&
197
209
  event_source_locations == o.event_source_locations &&
@@ -214,7 +226,7 @@ module Akeyless
214
226
  # Calculates hash code according to all attributes.
215
227
  # @return [Integer] Hash code
216
228
  def hash
217
- [admin_name, email_to, enable, event_source_locations, event_types, host, json, name, new_comment, new_name, token, uid_token].hash
229
+ [admin_name, description, email_to, enable, event_source_locations, event_types, host, json, name, new_comment, new_name, token, uid_token].hash
218
230
  end
219
231
 
220
232
  # Builds the object from hash
@@ -15,9 +15,12 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class UpdateGcpTarget
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
  # Base64-encoded service account private key text
22
25
  attr_accessor :gcp_key
23
26
 
@@ -50,6 +53,7 @@ module Akeyless
50
53
  def self.attribute_map
51
54
  {
52
55
  :'comment' => :'comment',
56
+ :'description' => :'description',
53
57
  :'gcp_key' => :'gcp-key',
54
58
  :'json' => :'json',
55
59
  :'keep_prev_version' => :'keep-prev-version',
@@ -72,6 +76,7 @@ module Akeyless
72
76
  def self.openapi_types
73
77
  {
74
78
  :'comment' => :'String',
79
+ :'description' => :'String',
75
80
  :'gcp_key' => :'String',
76
81
  :'json' => :'Boolean',
77
82
  :'keep_prev_version' => :'String',
@@ -110,6 +115,10 @@ module Akeyless
110
115
  self.comment = attributes[:'comment']
111
116
  end
112
117
 
118
+ if attributes.key?(:'description')
119
+ self.description = attributes[:'description']
120
+ end
121
+
113
122
  if attributes.key?(:'gcp_key')
114
123
  self.gcp_key = attributes[:'gcp_key']
115
124
  end
@@ -175,6 +184,7 @@ module Akeyless
175
184
  return true if self.equal?(o)
176
185
  self.class == o.class &&
177
186
  comment == o.comment &&
187
+ description == o.description &&
178
188
  gcp_key == o.gcp_key &&
179
189
  json == o.json &&
180
190
  keep_prev_version == o.keep_prev_version &&
@@ -196,7 +206,7 @@ module Akeyless
196
206
  # Calculates hash code according to all attributes.
197
207
  # @return [Integer] Hash code
198
208
  def hash
199
- [comment, gcp_key, json, keep_prev_version, key, name, new_name, token, uid_token, update_version, use_gw_cloud_identity].hash
209
+ [comment, description, gcp_key, json, keep_prev_version, key, name, new_name, token, uid_token, update_version, use_gw_cloud_identity].hash
200
210
  end
201
211
 
202
212
  # Builds the object from hash
@@ -15,9 +15,12 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class UpdateGithubTarget
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
  # Github app id
22
25
  attr_accessor :github_app_id
23
26
 
@@ -54,6 +57,7 @@ module Akeyless
54
57
  def self.attribute_map
55
58
  {
56
59
  :'comment' => :'comment',
60
+ :'description' => :'description',
57
61
  :'github_app_id' => :'github-app-id',
58
62
  :'github_app_private_key' => :'github-app-private-key',
59
63
  :'github_base_url' => :'github-base-url',
@@ -77,6 +81,7 @@ module Akeyless
77
81
  def self.openapi_types
78
82
  {
79
83
  :'comment' => :'String',
84
+ :'description' => :'String',
80
85
  :'github_app_id' => :'Integer',
81
86
  :'github_app_private_key' => :'String',
82
87
  :'github_base_url' => :'String',
@@ -116,6 +121,10 @@ module Akeyless
116
121
  self.comment = attributes[:'comment']
117
122
  end
118
123
 
124
+ if attributes.key?(:'description')
125
+ self.description = attributes[:'description']
126
+ end
127
+
119
128
  if attributes.key?(:'github_app_id')
120
129
  self.github_app_id = attributes[:'github_app_id']
121
130
  end
@@ -185,6 +194,7 @@ module Akeyless
185
194
  return true if self.equal?(o)
186
195
  self.class == o.class &&
187
196
  comment == o.comment &&
197
+ description == o.description &&
188
198
  github_app_id == o.github_app_id &&
189
199
  github_app_private_key == o.github_app_private_key &&
190
200
  github_base_url == o.github_base_url &&
@@ -207,7 +217,7 @@ module Akeyless
207
217
  # Calculates hash code according to all attributes.
208
218
  # @return [Integer] Hash code
209
219
  def hash
210
- [comment, github_app_id, github_app_private_key, github_base_url, json, keep_prev_version, key, name, new_name, token, uid_token, update_version].hash
220
+ [comment, description, github_app_id, github_app_private_key, github_base_url, json, keep_prev_version, key, name, new_name, token, uid_token, update_version].hash
211
221
  end
212
222
 
213
223
  # Builds the object from hash
@@ -15,9 +15,12 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class UpdateGKETarget
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
  # GKE Service Account key file path
22
25
  attr_accessor :gke_account_key
23
26
 
@@ -62,6 +65,7 @@ module Akeyless
62
65
  def self.attribute_map
63
66
  {
64
67
  :'comment' => :'comment',
68
+ :'description' => :'description',
65
69
  :'gke_account_key' => :'gke-account-key',
66
70
  :'gke_cluster_cert' => :'gke-cluster-cert',
67
71
  :'gke_cluster_endpoint' => :'gke-cluster-endpoint',
@@ -88,6 +92,7 @@ module Akeyless
88
92
  def self.openapi_types
89
93
  {
90
94
  :'comment' => :'String',
95
+ :'description' => :'String',
91
96
  :'gke_account_key' => :'String',
92
97
  :'gke_cluster_cert' => :'String',
93
98
  :'gke_cluster_endpoint' => :'String',
@@ -130,6 +135,10 @@ module Akeyless
130
135
  self.comment = attributes[:'comment']
131
136
  end
132
137
 
138
+ if attributes.key?(:'description')
139
+ self.description = attributes[:'description']
140
+ end
141
+
133
142
  if attributes.key?(:'gke_account_key')
134
143
  self.gke_account_key = attributes[:'gke_account_key']
135
144
  end
@@ -211,6 +220,7 @@ module Akeyless
211
220
  return true if self.equal?(o)
212
221
  self.class == o.class &&
213
222
  comment == o.comment &&
223
+ description == o.description &&
214
224
  gke_account_key == o.gke_account_key &&
215
225
  gke_cluster_cert == o.gke_cluster_cert &&
216
226
  gke_cluster_endpoint == o.gke_cluster_endpoint &&
@@ -236,7 +246,7 @@ module Akeyless
236
246
  # Calculates hash code according to all attributes.
237
247
  # @return [Integer] Hash code
238
248
  def hash
239
- [comment, gke_account_key, gke_cluster_cert, gke_cluster_endpoint, gke_cluster_name, gke_service_account_email, json, keep_prev_version, key, name, new_name, token, uid_token, update_version, use_gw_cloud_identity].hash
249
+ [comment, description, gke_account_key, gke_cluster_cert, gke_cluster_endpoint, gke_cluster_name, gke_service_account_email, json, keep_prev_version, key, name, new_name, token, uid_token, update_version, use_gw_cloud_identity].hash
240
250
  end
241
251
 
242
252
  # Builds the object from hash
@@ -19,9 +19,12 @@ module Akeyless
19
19
 
20
20
  attr_accessor :bind_dn_password
21
21
 
22
- # Comment about the target
22
+ # Deprecated - use description
23
23
  attr_accessor :comment
24
24
 
25
+ # Description of the object
26
+ attr_accessor :description
27
+
25
28
  # Set output format to JSON
26
29
  attr_accessor :json
27
30
 
@@ -60,6 +63,7 @@ module Akeyless
60
63
  :'bind_dn' => :'bind-dn',
61
64
  :'bind_dn_password' => :'bind-dn-password',
62
65
  :'comment' => :'comment',
66
+ :'description' => :'description',
63
67
  :'json' => :'json',
64
68
  :'keep_prev_version' => :'keep-prev-version',
65
69
  :'key' => :'key',
@@ -86,6 +90,7 @@ module Akeyless
86
90
  :'bind_dn' => :'String',
87
91
  :'bind_dn_password' => :'String',
88
92
  :'comment' => :'String',
93
+ :'description' => :'String',
89
94
  :'json' => :'Boolean',
90
95
  :'keep_prev_version' => :'String',
91
96
  :'key' => :'String',
@@ -134,6 +139,10 @@ module Akeyless
134
139
  self.comment = attributes[:'comment']
135
140
  end
136
141
 
142
+ if attributes.key?(:'description')
143
+ self.description = attributes[:'description']
144
+ end
145
+
137
146
  if attributes.key?(:'json')
138
147
  self.json = attributes[:'json']
139
148
  end
@@ -209,6 +218,7 @@ module Akeyless
209
218
  bind_dn == o.bind_dn &&
210
219
  bind_dn_password == o.bind_dn_password &&
211
220
  comment == o.comment &&
221
+ description == o.description &&
212
222
  json == o.json &&
213
223
  keep_prev_version == o.keep_prev_version &&
214
224
  key == o.key &&
@@ -232,7 +242,7 @@ module Akeyless
232
242
  # Calculates hash code according to all attributes.
233
243
  # @return [Integer] Hash code
234
244
  def hash
235
- [bind_dn, bind_dn_password, comment, json, keep_prev_version, key, ldap_ca_cert, ldap_url, name, new_name, server_type, token, token_expiration, uid_token, update_version].hash
245
+ [bind_dn, bind_dn_password, comment, description, json, keep_prev_version, key, ldap_ca_cert, ldap_url, name, new_name, server_type, token, token_expiration, uid_token, update_version].hash
236
246
  end
237
247
 
238
248
  # Builds the object from hash
@@ -15,9 +15,12 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class UpdateNativeK8STarget
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
 
@@ -54,6 +57,7 @@ module Akeyless
54
57
  def self.attribute_map
55
58
  {
56
59
  :'comment' => :'comment',
60
+ :'description' => :'description',
57
61
  :'json' => :'json',
58
62
  :'k8s_cluster_ca_cert' => :'k8s-cluster-ca-cert',
59
63
  :'k8s_cluster_endpoint' => :'k8s-cluster-endpoint',
@@ -77,6 +81,7 @@ module Akeyless
77
81
  def self.openapi_types
78
82
  {
79
83
  :'comment' => :'String',
84
+ :'description' => :'String',
80
85
  :'json' => :'Boolean',
81
86
  :'k8s_cluster_ca_cert' => :'String',
82
87
  :'k8s_cluster_endpoint' => :'String',
@@ -116,6 +121,10 @@ module Akeyless
116
121
  self.comment = attributes[:'comment']
117
122
  end
118
123
 
124
+ if attributes.key?(:'description')
125
+ self.description = attributes[:'description']
126
+ end
127
+
119
128
  if attributes.key?(:'json')
120
129
  self.json = attributes[:'json']
121
130
  end
@@ -200,6 +209,7 @@ module Akeyless
200
209
  return true if self.equal?(o)
201
210
  self.class == o.class &&
202
211
  comment == o.comment &&
212
+ description == o.description &&
203
213
  json == o.json &&
204
214
  k8s_cluster_ca_cert == o.k8s_cluster_ca_cert &&
205
215
  k8s_cluster_endpoint == o.k8s_cluster_endpoint &&
@@ -222,7 +232,7 @@ module Akeyless
222
232
  # Calculates hash code according to all attributes.
223
233
  # @return [Integer] Hash code
224
234
  def hash
225
- [comment, json, k8s_cluster_ca_cert, k8s_cluster_endpoint, k8s_cluster_token, keep_prev_version, key, name, new_name, token, uid_token, update_version].hash
235
+ [comment, description, json, k8s_cluster_ca_cert, k8s_cluster_endpoint, k8s_cluster_token, keep_prev_version, key, name, new_name, token, uid_token, update_version].hash
226
236
  end
227
237
 
228
238
  # Builds the object from hash