akeyless 2.16.8 → 2.16.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (142) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -1
  3. data/docs/Configure.md +5 -1
  4. data/docs/GatewayCreateMigration.md +22 -22
  5. data/docs/GatewayCreateProducerArtifactory.md +2 -0
  6. data/docs/GatewayCreateProducerAws.md +2 -0
  7. data/docs/GatewayCreateProducerAzure.md +2 -0
  8. data/docs/GatewayCreateProducerCassandra.md +2 -0
  9. data/docs/GatewayCreateProducerCertificateAutomation.md +2 -0
  10. data/docs/GatewayCreateProducerChef.md +2 -0
  11. data/docs/GatewayCreateProducerCustom.md +2 -0
  12. data/docs/GatewayCreateProducerDockerhub.md +2 -0
  13. data/docs/GatewayCreateProducerEks.md +2 -0
  14. data/docs/GatewayCreateProducerGcp.md +2 -0
  15. data/docs/GatewayCreateProducerGithub.md +2 -0
  16. data/docs/GatewayCreateProducerGke.md +2 -0
  17. data/docs/GatewayCreateProducerHanaDb.md +2 -0
  18. data/docs/GatewayCreateProducerLdap.md +2 -0
  19. data/docs/GatewayCreateProducerMSSQL.md +2 -0
  20. data/docs/GatewayCreateProducerMongo.md +2 -0
  21. data/docs/GatewayCreateProducerMySQL.md +2 -0
  22. data/docs/GatewayCreateProducerNativeK8S.md +2 -0
  23. data/docs/GatewayCreateProducerOracleDb.md +2 -0
  24. data/docs/GatewayCreateProducerPostgreSQL.md +2 -0
  25. data/docs/GatewayCreateProducerRabbitMQ.md +2 -0
  26. data/docs/GatewayCreateProducerRdp.md +2 -0
  27. data/docs/GatewayCreateProducerRedshift.md +2 -0
  28. data/docs/GatewayCreateProducerSnowflake.md +2 -0
  29. data/docs/GatewayDeleteMigration.md +1 -1
  30. data/docs/GatewayGetMigration.md +1 -1
  31. data/docs/GatewayStatusMigration.md +24 -0
  32. data/docs/GatewayUpdateItem.md +2 -0
  33. data/docs/GatewayUpdateMigration.md +25 -25
  34. data/docs/GatewayUpdateProducerArtifactory.md +2 -0
  35. data/docs/GatewayUpdateProducerAws.md +2 -0
  36. data/docs/GatewayUpdateProducerAzure.md +2 -0
  37. data/docs/GatewayUpdateProducerCassandra.md +2 -0
  38. data/docs/GatewayUpdateProducerCertificateAutomation.md +2 -0
  39. data/docs/GatewayUpdateProducerChef.md +2 -0
  40. data/docs/GatewayUpdateProducerCustom.md +2 -0
  41. data/docs/GatewayUpdateProducerDockerhub.md +2 -0
  42. data/docs/GatewayUpdateProducerEks.md +2 -0
  43. data/docs/GatewayUpdateProducerGcp.md +2 -0
  44. data/docs/GatewayUpdateProducerGithub.md +2 -0
  45. data/docs/GatewayUpdateProducerGke.md +2 -0
  46. data/docs/GatewayUpdateProducerHanaDb.md +2 -0
  47. data/docs/GatewayUpdateProducerLdap.md +2 -0
  48. data/docs/GatewayUpdateProducerMSSQL.md +2 -0
  49. data/docs/GatewayUpdateProducerMongo.md +2 -0
  50. data/docs/GatewayUpdateProducerMySQL.md +2 -0
  51. data/docs/GatewayUpdateProducerNativeK8S.md +2 -0
  52. data/docs/GatewayUpdateProducerOracleDb.md +2 -0
  53. data/docs/GatewayUpdateProducerPostgreSQL.md +2 -0
  54. data/docs/GatewayUpdateProducerRabbitMQ.md +2 -0
  55. data/docs/GatewayUpdateProducerRdp.md +2 -0
  56. data/docs/GatewayUpdateProducerRedshift.md +2 -0
  57. data/docs/GatewayUpdateProducerSnowflake.md +2 -0
  58. data/docs/GetKubeExecCreds.md +4 -0
  59. data/docs/GetPKICertificate.md +4 -0
  60. data/docs/GetSSHCertificate.md +4 -0
  61. data/docs/Item.md +2 -0
  62. data/docs/ItemGeneralInfo.md +2 -0
  63. data/docs/MigrationGeneral.md +2 -0
  64. data/docs/MigrationItems.md +24 -0
  65. data/docs/MigrationStatusReplyObj.md +36 -0
  66. data/docs/TargetTypeDetailsInput.md +2 -0
  67. data/docs/UpdateItem.md +2 -0
  68. data/docs/UploadRSA.md +2 -0
  69. data/docs/V2Api.md +64 -1
  70. data/lib/akeyless/api/v2_api.rb +64 -0
  71. data/lib/akeyless/models/configure.rb +24 -4
  72. data/lib/akeyless/models/gateway_create_migration.rb +22 -22
  73. data/lib/akeyless/models/gateway_create_producer_artifactory.rb +11 -1
  74. data/lib/akeyless/models/gateway_create_producer_aws.rb +11 -1
  75. data/lib/akeyless/models/gateway_create_producer_azure.rb +11 -1
  76. data/lib/akeyless/models/gateway_create_producer_cassandra.rb +11 -1
  77. data/lib/akeyless/models/gateway_create_producer_certificate_automation.rb +11 -1
  78. data/lib/akeyless/models/gateway_create_producer_chef.rb +11 -1
  79. data/lib/akeyless/models/gateway_create_producer_custom.rb +11 -1
  80. data/lib/akeyless/models/gateway_create_producer_dockerhub.rb +11 -1
  81. data/lib/akeyless/models/gateway_create_producer_eks.rb +11 -1
  82. data/lib/akeyless/models/gateway_create_producer_gcp.rb +11 -1
  83. data/lib/akeyless/models/gateway_create_producer_github.rb +11 -1
  84. data/lib/akeyless/models/gateway_create_producer_gke.rb +11 -1
  85. data/lib/akeyless/models/gateway_create_producer_hana_db.rb +11 -1
  86. data/lib/akeyless/models/gateway_create_producer_ldap.rb +11 -1
  87. data/lib/akeyless/models/gateway_create_producer_mongo.rb +11 -1
  88. data/lib/akeyless/models/gateway_create_producer_mssql.rb +11 -1
  89. data/lib/akeyless/models/gateway_create_producer_my_sql.rb +11 -1
  90. data/lib/akeyless/models/gateway_create_producer_native_k8_s.rb +11 -1
  91. data/lib/akeyless/models/gateway_create_producer_oracle_db.rb +11 -1
  92. data/lib/akeyless/models/gateway_create_producer_postgre_sql.rb +11 -1
  93. data/lib/akeyless/models/gateway_create_producer_rabbit_mq.rb +11 -1
  94. data/lib/akeyless/models/gateway_create_producer_rdp.rb +11 -1
  95. data/lib/akeyless/models/gateway_create_producer_redshift.rb +11 -1
  96. data/lib/akeyless/models/gateway_create_producer_snowflake.rb +11 -1
  97. data/lib/akeyless/models/gateway_delete_migration.rb +1 -1
  98. data/lib/akeyless/models/gateway_get_migration.rb +1 -0
  99. data/lib/akeyless/models/gateway_status_migration.rb +251 -0
  100. data/lib/akeyless/models/gateway_update_item.rb +11 -1
  101. data/lib/akeyless/models/gateway_update_migration.rb +33 -38
  102. data/lib/akeyless/models/gateway_update_producer_artifactory.rb +11 -1
  103. data/lib/akeyless/models/gateway_update_producer_aws.rb +11 -1
  104. data/lib/akeyless/models/gateway_update_producer_azure.rb +11 -1
  105. data/lib/akeyless/models/gateway_update_producer_cassandra.rb +11 -1
  106. data/lib/akeyless/models/gateway_update_producer_certificate_automation.rb +11 -1
  107. data/lib/akeyless/models/gateway_update_producer_chef.rb +11 -1
  108. data/lib/akeyless/models/gateway_update_producer_custom.rb +11 -1
  109. data/lib/akeyless/models/gateway_update_producer_dockerhub.rb +11 -1
  110. data/lib/akeyless/models/gateway_update_producer_eks.rb +11 -1
  111. data/lib/akeyless/models/gateway_update_producer_gcp.rb +11 -1
  112. data/lib/akeyless/models/gateway_update_producer_github.rb +11 -1
  113. data/lib/akeyless/models/gateway_update_producer_gke.rb +11 -1
  114. data/lib/akeyless/models/gateway_update_producer_hana_db.rb +11 -1
  115. data/lib/akeyless/models/gateway_update_producer_ldap.rb +11 -1
  116. data/lib/akeyless/models/gateway_update_producer_mongo.rb +11 -1
  117. data/lib/akeyless/models/gateway_update_producer_mssql.rb +11 -1
  118. data/lib/akeyless/models/gateway_update_producer_my_sql.rb +11 -1
  119. data/lib/akeyless/models/gateway_update_producer_native_k8_s.rb +11 -1
  120. data/lib/akeyless/models/gateway_update_producer_oracle_db.rb +11 -1
  121. data/lib/akeyless/models/gateway_update_producer_postgre_sql.rb +11 -1
  122. data/lib/akeyless/models/gateway_update_producer_rabbit_mq.rb +11 -1
  123. data/lib/akeyless/models/gateway_update_producer_rdp.rb +11 -1
  124. data/lib/akeyless/models/gateway_update_producer_redshift.rb +11 -1
  125. data/lib/akeyless/models/gateway_update_producer_snowflake.rb +11 -1
  126. data/lib/akeyless/models/get_kube_exec_creds.rb +21 -1
  127. data/lib/akeyless/models/get_pki_certificate.rb +21 -1
  128. data/lib/akeyless/models/get_ssh_certificate.rb +21 -1
  129. data/lib/akeyless/models/item.rb +10 -1
  130. data/lib/akeyless/models/item_general_info.rb +10 -1
  131. data/lib/akeyless/models/migration_general.rb +10 -1
  132. data/lib/akeyless/models/migration_items.rb +246 -0
  133. data/lib/akeyless/models/migration_status_reply_obj.rb +300 -0
  134. data/lib/akeyless/models/target_type_details_input.rb +10 -1
  135. data/lib/akeyless/models/update_item.rb +11 -1
  136. data/lib/akeyless/models/upload_rsa.rb +11 -1
  137. data/lib/akeyless/version.rb +1 -1
  138. data/lib/akeyless.rb +3 -0
  139. data/spec/models/gateway_status_migration_spec.rb +52 -0
  140. data/spec/models/migration_items_spec.rb +52 -0
  141. data/spec/models/migration_status_reply_obj_spec.rb +88 -0
  142. metadata +511 -499
@@ -28,6 +28,9 @@ module Akeyless
28
28
  # Auto generated folder
29
29
  attr_accessor :auto_generated_folder
30
30
 
31
+ # Protection from accidental deletion of this item
32
+ attr_accessor :delete_protection
33
+
31
34
  # Automatic admin credentials rotation
32
35
  attr_accessor :enable_admin_rotation
33
36
 
@@ -89,6 +92,7 @@ module Akeyless
89
92
  :'allow_subdomains' => :'allow-subdomains',
90
93
  :'allowed_domains' => :'allowed-domains',
91
94
  :'auto_generated_folder' => :'auto-generated-folder',
95
+ :'delete_protection' => :'delete_protection',
92
96
  :'enable_admin_rotation' => :'enable-admin-rotation',
93
97
  :'name' => :'name',
94
98
  :'producer_encryption_key_name' => :'producer-encryption-key-name',
@@ -122,6 +126,7 @@ module Akeyless
122
126
  :'allow_subdomains' => :'Boolean',
123
127
  :'allowed_domains' => :'Array<String>',
124
128
  :'auto_generated_folder' => :'String',
129
+ :'delete_protection' => :'String',
125
130
  :'enable_admin_rotation' => :'Boolean',
126
131
  :'name' => :'String',
127
132
  :'producer_encryption_key_name' => :'String',
@@ -184,6 +189,10 @@ module Akeyless
184
189
  self.auto_generated_folder = attributes[:'auto_generated_folder']
185
190
  end
186
191
 
192
+ if attributes.key?(:'delete_protection')
193
+ self.delete_protection = attributes[:'delete_protection']
194
+ end
195
+
187
196
  if attributes.key?(:'enable_admin_rotation')
188
197
  self.enable_admin_rotation = attributes[:'enable_admin_rotation']
189
198
  else
@@ -288,6 +297,7 @@ module Akeyless
288
297
  allow_subdomains == o.allow_subdomains &&
289
298
  allowed_domains == o.allowed_domains &&
290
299
  auto_generated_folder == o.auto_generated_folder &&
300
+ delete_protection == o.delete_protection &&
291
301
  enable_admin_rotation == o.enable_admin_rotation &&
292
302
  name == o.name &&
293
303
  producer_encryption_key_name == o.producer_encryption_key_name &&
@@ -317,7 +327,7 @@ module Akeyless
317
327
  # Calculates hash code according to all attributes.
318
328
  # @return [Integer] Hash code
319
329
  def hash
320
- [admin_rotation_interval_days, allow_subdomains, allowed_domains, auto_generated_folder, enable_admin_rotation, name, producer_encryption_key_name, root_first_in_chain, sign_using_akeyless_pki, signer_key_name, store_private_key, tags, target_name, token, uid_token, user_ttl, venafi_api_key, venafi_baseurl, venafi_password, venafi_use_tpp, venafi_username, venafi_zone].hash
330
+ [admin_rotation_interval_days, allow_subdomains, allowed_domains, auto_generated_folder, delete_protection, enable_admin_rotation, name, producer_encryption_key_name, root_first_in_chain, sign_using_akeyless_pki, signer_key_name, store_private_key, tags, target_name, token, uid_token, user_ttl, venafi_api_key, venafi_baseurl, venafi_password, venafi_use_tpp, venafi_username, venafi_zone].hash
321
331
  end
322
332
 
323
333
  # Builds the object from hash
@@ -28,6 +28,9 @@ module Akeyless
28
28
  # Server username
29
29
  attr_accessor :chef_server_username
30
30
 
31
+ # Protection from accidental deletion of this item
32
+ attr_accessor :delete_protection
33
+
31
34
  # Producer name
32
35
  attr_accessor :name
33
36
 
@@ -59,6 +62,7 @@ module Akeyless
59
62
  :'chef_server_key' => :'chef-server-key',
60
63
  :'chef_server_url' => :'chef-server-url',
61
64
  :'chef_server_username' => :'chef-server-username',
65
+ :'delete_protection' => :'delete_protection',
62
66
  :'name' => :'name',
63
67
  :'producer_encryption_key_name' => :'producer-encryption-key-name',
64
68
  :'skip_ssl' => :'skip-ssl',
@@ -82,6 +86,7 @@ module Akeyless
82
86
  :'chef_server_key' => :'String',
83
87
  :'chef_server_url' => :'String',
84
88
  :'chef_server_username' => :'String',
89
+ :'delete_protection' => :'String',
85
90
  :'name' => :'String',
86
91
  :'producer_encryption_key_name' => :'String',
87
92
  :'skip_ssl' => :'Boolean',
@@ -130,6 +135,10 @@ module Akeyless
130
135
  self.chef_server_username = attributes[:'chef_server_username']
131
136
  end
132
137
 
138
+ if attributes.key?(:'delete_protection')
139
+ self.delete_protection = attributes[:'delete_protection']
140
+ end
141
+
133
142
  if attributes.key?(:'name')
134
143
  self.name = attributes[:'name']
135
144
  end
@@ -196,6 +205,7 @@ module Akeyless
196
205
  chef_server_key == o.chef_server_key &&
197
206
  chef_server_url == o.chef_server_url &&
198
207
  chef_server_username == o.chef_server_username &&
208
+ delete_protection == o.delete_protection &&
199
209
  name == o.name &&
200
210
  producer_encryption_key_name == o.producer_encryption_key_name &&
201
211
  skip_ssl == o.skip_ssl &&
@@ -215,7 +225,7 @@ module Akeyless
215
225
  # Calculates hash code according to all attributes.
216
226
  # @return [Integer] Hash code
217
227
  def hash
218
- [chef_orgs, chef_server_key, chef_server_url, chef_server_username, name, producer_encryption_key_name, skip_ssl, tags, target_name, token, uid_token, user_ttl].hash
228
+ [chef_orgs, chef_server_key, chef_server_url, chef_server_username, delete_protection, name, producer_encryption_key_name, skip_ssl, tags, target_name, token, uid_token, user_ttl].hash
219
229
  end
220
230
 
221
231
  # Builds the object from hash
@@ -21,6 +21,9 @@ module Akeyless
21
21
  # URL of an endpoint that implements /sync/create method, for example https://webhook.example.com/sync/create
22
22
  attr_accessor :create_sync_url
23
23
 
24
+ # Protection from accidental deletion of this item
25
+ attr_accessor :delete_protection
26
+
24
27
  # Should admin credentials be rotated
25
28
  attr_accessor :enable_admin_rotation
26
29
 
@@ -59,6 +62,7 @@ module Akeyless
59
62
  {
60
63
  :'admin_rotation_interval_days' => :'admin_rotation_interval_days',
61
64
  :'create_sync_url' => :'create-sync-url',
65
+ :'delete_protection' => :'delete_protection',
62
66
  :'enable_admin_rotation' => :'enable_admin_rotation',
63
67
  :'name' => :'name',
64
68
  :'payload' => :'payload',
@@ -83,6 +87,7 @@ module Akeyless
83
87
  {
84
88
  :'admin_rotation_interval_days' => :'Integer',
85
89
  :'create_sync_url' => :'String',
90
+ :'delete_protection' => :'String',
86
91
  :'enable_admin_rotation' => :'Boolean',
87
92
  :'name' => :'String',
88
93
  :'payload' => :'String',
@@ -126,6 +131,10 @@ module Akeyless
126
131
  self.create_sync_url = attributes[:'create_sync_url']
127
132
  end
128
133
 
134
+ if attributes.key?(:'delete_protection')
135
+ self.delete_protection = attributes[:'delete_protection']
136
+ end
137
+
129
138
  if attributes.key?(:'enable_admin_rotation')
130
139
  self.enable_admin_rotation = attributes[:'enable_admin_rotation']
131
140
  else
@@ -214,6 +223,7 @@ module Akeyless
214
223
  self.class == o.class &&
215
224
  admin_rotation_interval_days == o.admin_rotation_interval_days &&
216
225
  create_sync_url == o.create_sync_url &&
226
+ delete_protection == o.delete_protection &&
217
227
  enable_admin_rotation == o.enable_admin_rotation &&
218
228
  name == o.name &&
219
229
  payload == o.payload &&
@@ -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
- [admin_rotation_interval_days, create_sync_url, enable_admin_rotation, name, payload, producer_encryption_key_name, revoke_sync_url, rotate_sync_url, tags, timeout_sec, token, uid_token, user_ttl].hash
249
+ [admin_rotation_interval_days, create_sync_url, delete_protection, enable_admin_rotation, name, payload, producer_encryption_key_name, revoke_sync_url, rotate_sync_url, tags, timeout_sec, token, uid_token, user_ttl].hash
240
250
  end
241
251
 
242
252
  # Builds the object from hash
@@ -16,6 +16,9 @@ require 'time'
16
16
  module Akeyless
17
17
  # gatewayCreateProducerDockerhub is a command that creates a DOCKERHUB producer
18
18
  class GatewayCreateProducerDockerhub
19
+ # Protection from accidental deletion of this item
20
+ attr_accessor :delete_protection
21
+
19
22
  # DockerhubPassword is either the user's password access token to manage the repository
20
23
  attr_accessor :dockerhub_password
21
24
 
@@ -49,6 +52,7 @@ module Akeyless
49
52
  # Attribute mapping from ruby-style variable name to JSON key.
50
53
  def self.attribute_map
51
54
  {
55
+ :'delete_protection' => :'delete_protection',
52
56
  :'dockerhub_password' => :'dockerhub-password',
53
57
  :'dockerhub_token_scopes' => :'dockerhub-token-scopes',
54
58
  :'dockerhub_username' => :'dockerhub-username',
@@ -70,6 +74,7 @@ module Akeyless
70
74
  # Attribute type mapping.
71
75
  def self.openapi_types
72
76
  {
77
+ :'delete_protection' => :'String',
73
78
  :'dockerhub_password' => :'String',
74
79
  :'dockerhub_token_scopes' => :'String',
75
80
  :'dockerhub_username' => :'String',
@@ -104,6 +109,10 @@ module Akeyless
104
109
  h[k.to_sym] = v
105
110
  }
106
111
 
112
+ if attributes.key?(:'delete_protection')
113
+ self.delete_protection = attributes[:'delete_protection']
114
+ end
115
+
107
116
  if attributes.key?(:'dockerhub_password')
108
117
  self.dockerhub_password = attributes[:'dockerhub_password']
109
118
  end
@@ -172,6 +181,7 @@ module Akeyless
172
181
  def ==(o)
173
182
  return true if self.equal?(o)
174
183
  self.class == o.class &&
184
+ delete_protection == o.delete_protection &&
175
185
  dockerhub_password == o.dockerhub_password &&
176
186
  dockerhub_token_scopes == o.dockerhub_token_scopes &&
177
187
  dockerhub_username == o.dockerhub_username &&
@@ -193,7 +203,7 @@ module Akeyless
193
203
  # Calculates hash code according to all attributes.
194
204
  # @return [Integer] Hash code
195
205
  def hash
196
- [dockerhub_password, dockerhub_token_scopes, dockerhub_username, name, producer_encryption_key_name, tags, target_name, token, uid_token, user_ttl].hash
206
+ [delete_protection, dockerhub_password, dockerhub_token_scopes, dockerhub_username, name, producer_encryption_key_name, tags, target_name, token, uid_token, user_ttl].hash
197
207
  end
198
208
 
199
209
  # Builds the object from hash
@@ -16,6 +16,9 @@ require 'time'
16
16
  module Akeyless
17
17
  # gatewayCreateProducerEks is a command that creates eks producer
18
18
  class GatewayCreateProducerEks
19
+ # Protection from accidental deletion of this item
20
+ attr_accessor :delete_protection
21
+
19
22
  # Access Key ID
20
23
  attr_accessor :eks_access_key_id
21
24
 
@@ -71,6 +74,7 @@ module Akeyless
71
74
  # Attribute mapping from ruby-style variable name to JSON key.
72
75
  def self.attribute_map
73
76
  {
77
+ :'delete_protection' => :'delete_protection',
74
78
  :'eks_access_key_id' => :'eks-access-key-id',
75
79
  :'eks_assume_role' => :'eks-assume-role',
76
80
  :'eks_cluster_ca_cert' => :'eks-cluster-ca-cert',
@@ -101,6 +105,7 @@ module Akeyless
101
105
  # Attribute type mapping.
102
106
  def self.openapi_types
103
107
  {
108
+ :'delete_protection' => :'String',
104
109
  :'eks_access_key_id' => :'String',
105
110
  :'eks_assume_role' => :'String',
106
111
  :'eks_cluster_ca_cert' => :'String',
@@ -144,6 +149,10 @@ module Akeyless
144
149
  h[k.to_sym] = v
145
150
  }
146
151
 
152
+ if attributes.key?(:'delete_protection')
153
+ self.delete_protection = attributes[:'delete_protection']
154
+ end
155
+
147
156
  if attributes.key?(:'eks_access_key_id')
148
157
  self.eks_access_key_id = attributes[:'eks_access_key_id']
149
158
  end
@@ -250,6 +259,7 @@ module Akeyless
250
259
  def ==(o)
251
260
  return true if self.equal?(o)
252
261
  self.class == o.class &&
262
+ delete_protection == o.delete_protection &&
253
263
  eks_access_key_id == o.eks_access_key_id &&
254
264
  eks_assume_role == o.eks_assume_role &&
255
265
  eks_cluster_ca_cert == o.eks_cluster_ca_cert &&
@@ -280,7 +290,7 @@ module Akeyless
280
290
  # Calculates hash code according to all attributes.
281
291
  # @return [Integer] Hash code
282
292
  def hash
283
- [eks_access_key_id, eks_assume_role, eks_cluster_ca_cert, eks_cluster_endpoint, eks_cluster_name, eks_region, eks_secret_access_key, name, producer_encryption_key_name, secure_access_allow_port_forwading, secure_access_bastion_issuer, secure_access_cluster_endpoint, secure_access_enable, secure_access_web, tags, target_name, token, uid_token, user_ttl].hash
293
+ [delete_protection, eks_access_key_id, eks_assume_role, eks_cluster_ca_cert, eks_cluster_endpoint, eks_cluster_name, eks_region, eks_secret_access_key, name, producer_encryption_key_name, secure_access_allow_port_forwading, secure_access_bastion_issuer, secure_access_cluster_endpoint, secure_access_enable, secure_access_web, tags, target_name, token, uid_token, user_ttl].hash
284
294
  end
285
295
 
286
296
  # Builds the object from hash
@@ -16,6 +16,9 @@ require 'time'
16
16
  module Akeyless
17
17
  # gatewayCreateProducerGcp is a command that creates a GCP producer
18
18
  class GatewayCreateProducerGcp
19
+ # Protection from accidental deletion of this item
20
+ attr_accessor :delete_protection
21
+
19
22
  attr_accessor :gcp_cred_type
20
23
 
21
24
  # Base64-encoded service account private key text
@@ -54,6 +57,7 @@ module Akeyless
54
57
  # Attribute mapping from ruby-style variable name to JSON key.
55
58
  def self.attribute_map
56
59
  {
60
+ :'delete_protection' => :'delete_protection',
57
61
  :'gcp_cred_type' => :'gcp-cred-type',
58
62
  :'gcp_key' => :'gcp-key',
59
63
  :'gcp_key_algo' => :'gcp-key-algo',
@@ -77,6 +81,7 @@ module Akeyless
77
81
  # Attribute type mapping.
78
82
  def self.openapi_types
79
83
  {
84
+ :'delete_protection' => :'String',
80
85
  :'gcp_cred_type' => :'String',
81
86
  :'gcp_key' => :'String',
82
87
  :'gcp_key_algo' => :'String',
@@ -113,6 +118,10 @@ module Akeyless
113
118
  h[k.to_sym] = v
114
119
  }
115
120
 
121
+ if attributes.key?(:'delete_protection')
122
+ self.delete_protection = attributes[:'delete_protection']
123
+ end
124
+
116
125
  if attributes.key?(:'gcp_cred_type')
117
126
  self.gcp_cred_type = attributes[:'gcp_cred_type']
118
127
  end
@@ -189,6 +198,7 @@ module Akeyless
189
198
  def ==(o)
190
199
  return true if self.equal?(o)
191
200
  self.class == o.class &&
201
+ delete_protection == o.delete_protection &&
192
202
  gcp_cred_type == o.gcp_cred_type &&
193
203
  gcp_key == o.gcp_key &&
194
204
  gcp_key_algo == o.gcp_key_algo &&
@@ -212,7 +222,7 @@ module Akeyless
212
222
  # Calculates hash code according to all attributes.
213
223
  # @return [Integer] Hash code
214
224
  def hash
215
- [gcp_cred_type, gcp_key, gcp_key_algo, gcp_sa_email, gcp_token_scopes, name, producer_encryption_key_name, tags, target_name, token, uid_token, user_ttl].hash
225
+ [delete_protection, gcp_cred_type, gcp_key, gcp_key_algo, gcp_sa_email, gcp_token_scopes, name, producer_encryption_key_name, tags, target_name, token, uid_token, user_ttl].hash
216
226
  end
217
227
 
218
228
  # Builds the object from hash
@@ -16,6 +16,9 @@ require 'time'
16
16
  module Akeyless
17
17
  # gatewayCreateProducerGithub is a command that creates github producer
18
18
  class GatewayCreateProducerGithub
19
+ # Protection from accidental deletion of this item
20
+ attr_accessor :delete_protection
21
+
19
22
  # Github app id
20
23
  attr_accessor :github_app_id
21
24
 
@@ -52,6 +55,7 @@ module Akeyless
52
55
  # Attribute mapping from ruby-style variable name to JSON key.
53
56
  def self.attribute_map
54
57
  {
58
+ :'delete_protection' => :'delete_protection',
55
59
  :'github_app_id' => :'github-app-id',
56
60
  :'github_app_private_key' => :'github-app-private-key',
57
61
  :'github_base_url' => :'github-base-url',
@@ -74,6 +78,7 @@ module Akeyless
74
78
  # Attribute type mapping.
75
79
  def self.openapi_types
76
80
  {
81
+ :'delete_protection' => :'String',
77
82
  :'github_app_id' => :'Integer',
78
83
  :'github_app_private_key' => :'String',
79
84
  :'github_base_url' => :'String',
@@ -109,6 +114,10 @@ module Akeyless
109
114
  h[k.to_sym] = v
110
115
  }
111
116
 
117
+ if attributes.key?(:'delete_protection')
118
+ self.delete_protection = attributes[:'delete_protection']
119
+ end
120
+
112
121
  if attributes.key?(:'github_app_id')
113
122
  self.github_app_id = attributes[:'github_app_id']
114
123
  end
@@ -181,6 +190,7 @@ module Akeyless
181
190
  def ==(o)
182
191
  return true if self.equal?(o)
183
192
  self.class == o.class &&
193
+ delete_protection == o.delete_protection &&
184
194
  github_app_id == o.github_app_id &&
185
195
  github_app_private_key == o.github_app_private_key &&
186
196
  github_base_url == o.github_base_url &&
@@ -203,7 +213,7 @@ module Akeyless
203
213
  # Calculates hash code according to all attributes.
204
214
  # @return [Integer] Hash code
205
215
  def hash
206
- [github_app_id, github_app_private_key, github_base_url, installation_id, installation_repository, name, target_name, token, token_permissions, token_repositories, uid_token].hash
216
+ [delete_protection, github_app_id, github_app_private_key, github_base_url, installation_id, installation_repository, name, target_name, token, token_permissions, token_repositories, uid_token].hash
207
217
  end
208
218
 
209
219
  # Builds the object from hash
@@ -16,6 +16,9 @@ require 'time'
16
16
  module Akeyless
17
17
  # gatewayCreateProducerGke is a command that creates gke producer
18
18
  class GatewayCreateProducerGke
19
+ # Protection from accidental deletion of this item
20
+ attr_accessor :delete_protection
21
+
19
22
  # GKE Service Account key file path
20
23
  attr_accessor :gke_account_key
21
24
 
@@ -65,6 +68,7 @@ module Akeyless
65
68
  # Attribute mapping from ruby-style variable name to JSON key.
66
69
  def self.attribute_map
67
70
  {
71
+ :'delete_protection' => :'delete_protection',
68
72
  :'gke_account_key' => :'gke-account-key',
69
73
  :'gke_cluster_cert' => :'gke-cluster-cert',
70
74
  :'gke_cluster_endpoint' => :'gke-cluster-endpoint',
@@ -93,6 +97,7 @@ module Akeyless
93
97
  # Attribute type mapping.
94
98
  def self.openapi_types
95
99
  {
100
+ :'delete_protection' => :'String',
96
101
  :'gke_account_key' => :'String',
97
102
  :'gke_cluster_cert' => :'String',
98
103
  :'gke_cluster_endpoint' => :'String',
@@ -134,6 +139,10 @@ module Akeyless
134
139
  h[k.to_sym] = v
135
140
  }
136
141
 
142
+ if attributes.key?(:'delete_protection')
143
+ self.delete_protection = attributes[:'delete_protection']
144
+ end
145
+
137
146
  if attributes.key?(:'gke_account_key')
138
147
  self.gke_account_key = attributes[:'gke_account_key']
139
148
  end
@@ -230,6 +239,7 @@ module Akeyless
230
239
  def ==(o)
231
240
  return true if self.equal?(o)
232
241
  self.class == o.class &&
242
+ delete_protection == o.delete_protection &&
233
243
  gke_account_key == o.gke_account_key &&
234
244
  gke_cluster_cert == o.gke_cluster_cert &&
235
245
  gke_cluster_endpoint == o.gke_cluster_endpoint &&
@@ -258,7 +268,7 @@ module Akeyless
258
268
  # Calculates hash code according to all attributes.
259
269
  # @return [Integer] Hash code
260
270
  def hash
261
- [gke_account_key, gke_cluster_cert, gke_cluster_endpoint, gke_cluster_name, gke_service_account_email, name, producer_encryption_key_name, secure_access_allow_port_forwading, secure_access_bastion_issuer, secure_access_cluster_endpoint, secure_access_enable, secure_access_web, tags, target_name, token, uid_token, user_ttl].hash
271
+ [delete_protection, gke_account_key, gke_cluster_cert, gke_cluster_endpoint, gke_cluster_name, gke_service_account_email, name, producer_encryption_key_name, secure_access_allow_port_forwading, secure_access_bastion_issuer, secure_access_cluster_endpoint, secure_access_enable, secure_access_web, tags, target_name, token, uid_token, user_ttl].hash
262
272
  end
263
273
 
264
274
  # Builds the object from hash
@@ -16,6 +16,9 @@ require 'time'
16
16
  module Akeyless
17
17
  # gatewayCreateProducerHanaDb is a command that creates hanadb producer
18
18
  class GatewayCreateProducerHanaDb
19
+ # Protection from accidental deletion of this item
20
+ attr_accessor :delete_protection
21
+
19
22
  # HanaDb Name
20
23
  attr_accessor :hana_dbname
21
24
 
@@ -71,6 +74,7 @@ module Akeyless
71
74
  # Attribute mapping from ruby-style variable name to JSON key.
72
75
  def self.attribute_map
73
76
  {
77
+ :'delete_protection' => :'delete_protection',
74
78
  :'hana_dbname' => :'hana-dbname',
75
79
  :'hanadb_create_statements' => :'hanadb-create-statements',
76
80
  :'hanadb_host' => :'hanadb-host',
@@ -101,6 +105,7 @@ module Akeyless
101
105
  # Attribute type mapping.
102
106
  def self.openapi_types
103
107
  {
108
+ :'delete_protection' => :'String',
104
109
  :'hana_dbname' => :'String',
105
110
  :'hanadb_create_statements' => :'String',
106
111
  :'hanadb_host' => :'String',
@@ -144,6 +149,10 @@ module Akeyless
144
149
  h[k.to_sym] = v
145
150
  }
146
151
 
152
+ if attributes.key?(:'delete_protection')
153
+ self.delete_protection = attributes[:'delete_protection']
154
+ end
155
+
147
156
  if attributes.key?(:'hana_dbname')
148
157
  self.hana_dbname = attributes[:'hana_dbname']
149
158
  end
@@ -254,6 +263,7 @@ module Akeyless
254
263
  def ==(o)
255
264
  return true if self.equal?(o)
256
265
  self.class == o.class &&
266
+ delete_protection == o.delete_protection &&
257
267
  hana_dbname == o.hana_dbname &&
258
268
  hanadb_create_statements == o.hanadb_create_statements &&
259
269
  hanadb_host == o.hanadb_host &&
@@ -284,7 +294,7 @@ module Akeyless
284
294
  # Calculates hash code according to all attributes.
285
295
  # @return [Integer] Hash code
286
296
  def hash
287
- [hana_dbname, hanadb_create_statements, hanadb_host, hanadb_password, hanadb_port, hanadb_revocation_statements, hanadb_username, name, producer_encryption_key_name, secure_access_bastion_issuer, secure_access_db_schema, secure_access_enable, secure_access_host, secure_access_web, tags, target_name, token, uid_token, user_ttl].hash
297
+ [delete_protection, hana_dbname, hanadb_create_statements, hanadb_host, hanadb_password, hanadb_port, hanadb_revocation_statements, hanadb_username, name, producer_encryption_key_name, secure_access_bastion_issuer, secure_access_db_schema, secure_access_enable, secure_access_host, secure_access_web, tags, target_name, token, uid_token, user_ttl].hash
288
298
  end
289
299
 
290
300
  # Builds the object from hash
@@ -22,6 +22,9 @@ module Akeyless
22
22
  # Bind DN Password
23
23
  attr_accessor :bind_dn_password
24
24
 
25
+ # Protection from accidental deletion of this item
26
+ attr_accessor :delete_protection
27
+
25
28
  # Fixed user
26
29
  attr_accessor :external_username
27
30
 
@@ -66,6 +69,7 @@ module Akeyless
66
69
  {
67
70
  :'bind_dn' => :'bind-dn',
68
71
  :'bind_dn_password' => :'bind-dn-password',
72
+ :'delete_protection' => :'delete_protection',
69
73
  :'external_username' => :'external-username',
70
74
  :'ldap_ca_cert' => :'ldap-ca-cert',
71
75
  :'ldap_url' => :'ldap-url',
@@ -92,6 +96,7 @@ module Akeyless
92
96
  {
93
97
  :'bind_dn' => :'String',
94
98
  :'bind_dn_password' => :'String',
99
+ :'delete_protection' => :'String',
95
100
  :'external_username' => :'String',
96
101
  :'ldap_ca_cert' => :'String',
97
102
  :'ldap_url' => :'String',
@@ -137,6 +142,10 @@ module Akeyless
137
142
  self.bind_dn_password = attributes[:'bind_dn_password']
138
143
  end
139
144
 
145
+ if attributes.key?(:'delete_protection')
146
+ self.delete_protection = attributes[:'delete_protection']
147
+ end
148
+
140
149
  if attributes.key?(:'external_username')
141
150
  self.external_username = attributes[:'external_username']
142
151
  else
@@ -221,6 +230,7 @@ module Akeyless
221
230
  self.class == o.class &&
222
231
  bind_dn == o.bind_dn &&
223
232
  bind_dn_password == o.bind_dn_password &&
233
+ delete_protection == o.delete_protection &&
224
234
  external_username == o.external_username &&
225
235
  ldap_ca_cert == o.ldap_ca_cert &&
226
236
  ldap_url == o.ldap_url &&
@@ -245,7 +255,7 @@ module Akeyless
245
255
  # Calculates hash code according to all attributes.
246
256
  # @return [Integer] Hash code
247
257
  def hash
248
- [bind_dn, bind_dn_password, external_username, ldap_ca_cert, ldap_url, name, producer_encryption_key_name, tags, target_name, token, token_expiration, uid_token, user_attribute, user_dn, user_ttl].hash
258
+ [bind_dn, bind_dn_password, delete_protection, external_username, ldap_ca_cert, ldap_url, name, producer_encryption_key_name, tags, target_name, token, token_expiration, uid_token, user_attribute, user_dn, user_ttl].hash
249
259
  end
250
260
 
251
261
  # Builds the object from hash
@@ -16,6 +16,9 @@ require 'time'
16
16
  module Akeyless
17
17
  # gatewayCreateProducerMongo is a command that creates either mongodb producer or mongodb atlas producer
18
18
  class GatewayCreateProducerMongo
19
+ # Protection from accidental deletion of this item
20
+ attr_accessor :delete_protection
21
+
19
22
  # MongoDB Atlas private key
20
23
  attr_accessor :mongodb_atlas_api_private_key
21
24
 
@@ -84,6 +87,7 @@ module Akeyless
84
87
  # Attribute mapping from ruby-style variable name to JSON key.
85
88
  def self.attribute_map
86
89
  {
90
+ :'delete_protection' => :'delete_protection',
87
91
  :'mongodb_atlas_api_private_key' => :'mongodb-atlas-api-private-key',
88
92
  :'mongodb_atlas_api_public_key' => :'mongodb-atlas-api-public-key',
89
93
  :'mongodb_atlas_project_id' => :'mongodb-atlas-project-id',
@@ -118,6 +122,7 @@ module Akeyless
118
122
  # Attribute type mapping.
119
123
  def self.openapi_types
120
124
  {
125
+ :'delete_protection' => :'String',
121
126
  :'mongodb_atlas_api_private_key' => :'String',
122
127
  :'mongodb_atlas_api_public_key' => :'String',
123
128
  :'mongodb_atlas_project_id' => :'String',
@@ -165,6 +170,10 @@ module Akeyless
165
170
  h[k.to_sym] = v
166
171
  }
167
172
 
173
+ if attributes.key?(:'delete_protection')
174
+ self.delete_protection = attributes[:'delete_protection']
175
+ end
176
+
168
177
  if attributes.key?(:'mongodb_atlas_api_private_key')
169
178
  self.mongodb_atlas_api_private_key = attributes[:'mongodb_atlas_api_private_key']
170
179
  end
@@ -289,6 +298,7 @@ module Akeyless
289
298
  def ==(o)
290
299
  return true if self.equal?(o)
291
300
  self.class == o.class &&
301
+ delete_protection == o.delete_protection &&
292
302
  mongodb_atlas_api_private_key == o.mongodb_atlas_api_private_key &&
293
303
  mongodb_atlas_api_public_key == o.mongodb_atlas_api_public_key &&
294
304
  mongodb_atlas_project_id == o.mongodb_atlas_project_id &&
@@ -323,7 +333,7 @@ module Akeyless
323
333
  # Calculates hash code according to all attributes.
324
334
  # @return [Integer] Hash code
325
335
  def hash
326
- [mongodb_atlas_api_private_key, mongodb_atlas_api_public_key, mongodb_atlas_project_id, mongodb_custom_data, mongodb_default_auth_db, mongodb_host_port, mongodb_name, mongodb_password, mongodb_roles, mongodb_server_uri, mongodb_uri_options, mongodb_username, name, producer_encryption_key_name, secure_access_bastion_issuer, secure_access_enable, secure_access_host, secure_access_web, tags, target_name, token, uid_token, user_ttl].hash
336
+ [delete_protection, mongodb_atlas_api_private_key, mongodb_atlas_api_public_key, mongodb_atlas_project_id, mongodb_custom_data, mongodb_default_auth_db, mongodb_host_port, mongodb_name, mongodb_password, mongodb_roles, mongodb_server_uri, mongodb_uri_options, mongodb_username, name, producer_encryption_key_name, secure_access_bastion_issuer, secure_access_enable, secure_access_host, secure_access_web, tags, target_name, token, uid_token, user_ttl].hash
327
337
  end
328
338
 
329
339
  # Builds the object from hash
@@ -16,6 +16,9 @@ require 'time'
16
16
  module Akeyless
17
17
  # gatewayCreateProducerMSSQL is a command that creates mssql producer
18
18
  class GatewayCreateProducerMSSQL
19
+ # Protection from accidental deletion of this item
20
+ attr_accessor :delete_protection
21
+
19
22
  # MSSQL Creation statements
20
23
  attr_accessor :mssql_create_statements
21
24
 
@@ -71,6 +74,7 @@ module Akeyless
71
74
  # Attribute mapping from ruby-style variable name to JSON key.
72
75
  def self.attribute_map
73
76
  {
77
+ :'delete_protection' => :'delete_protection',
74
78
  :'mssql_create_statements' => :'mssql-create-statements',
75
79
  :'mssql_dbname' => :'mssql-dbname',
76
80
  :'mssql_host' => :'mssql-host',
@@ -101,6 +105,7 @@ module Akeyless
101
105
  # Attribute type mapping.
102
106
  def self.openapi_types
103
107
  {
108
+ :'delete_protection' => :'String',
104
109
  :'mssql_create_statements' => :'String',
105
110
  :'mssql_dbname' => :'String',
106
111
  :'mssql_host' => :'String',
@@ -144,6 +149,10 @@ module Akeyless
144
149
  h[k.to_sym] = v
145
150
  }
146
151
 
152
+ if attributes.key?(:'delete_protection')
153
+ self.delete_protection = attributes[:'delete_protection']
154
+ end
155
+
147
156
  if attributes.key?(:'mssql_create_statements')
148
157
  self.mssql_create_statements = attributes[:'mssql_create_statements']
149
158
  end
@@ -254,6 +263,7 @@ module Akeyless
254
263
  def ==(o)
255
264
  return true if self.equal?(o)
256
265
  self.class == o.class &&
266
+ delete_protection == o.delete_protection &&
257
267
  mssql_create_statements == o.mssql_create_statements &&
258
268
  mssql_dbname == o.mssql_dbname &&
259
269
  mssql_host == o.mssql_host &&
@@ -284,7 +294,7 @@ module Akeyless
284
294
  # Calculates hash code according to all attributes.
285
295
  # @return [Integer] Hash code
286
296
  def hash
287
- [mssql_create_statements, mssql_dbname, mssql_host, mssql_password, mssql_port, mssql_revocation_statements, mssql_username, name, producer_encryption_key_name, secure_access_bastion_issuer, secure_access_db_schema, secure_access_enable, secure_access_host, secure_access_web, tags, target_name, token, uid_token, user_ttl].hash
297
+ [delete_protection, mssql_create_statements, mssql_dbname, mssql_host, mssql_password, mssql_port, mssql_revocation_statements, mssql_username, name, producer_encryption_key_name, secure_access_bastion_issuer, secure_access_db_schema, secure_access_enable, secure_access_host, secure_access_web, tags, target_name, token, uid_token, user_ttl].hash
288
298
  end
289
299
 
290
300
  # Builds the object from hash