akeyless 3.2.5 → 3.2.7
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.
- checksums.yaml +4 -4
- data/README.md +12 -1
- data/docs/CertAccessRules.md +2 -0
- data/docs/CreateAuthMethodCert.md +2 -0
- data/docs/CreateCertificate.md +1 -1
- data/docs/CreateClassicKey.md +1 -1
- data/docs/CreateDynamicSecret.md +1 -1
- data/docs/CreateLinkedTarget.md +1 -3
- data/docs/CreateRotatedSecret.md +1 -1
- data/docs/CreateSecret.md +1 -1
- data/docs/CreateWindowsTarget.md +2 -4
- data/docs/DecryptFile.md +6 -0
- data/docs/DescribeAssoc.md +24 -0
- data/docs/DescribeItem.md +2 -0
- data/docs/DynamicSecretProducerInfo.md +4 -0
- data/docs/EncryptFile.md +0 -2
- data/docs/GatewayBasicInfo.md +24 -0
- data/docs/GatewayCreateProducerArtifactory.md +1 -1
- data/docs/GatewayCreateProducerAws.md +1 -1
- data/docs/GatewayCreateProducerAzure.md +1 -1
- data/docs/GatewayCreateProducerCassandra.md +1 -1
- data/docs/GatewayCreateProducerCertificateAutomation.md +1 -1
- data/docs/GatewayCreateProducerChef.md +1 -1
- data/docs/GatewayCreateProducerCustom.md +1 -1
- data/docs/GatewayCreateProducerDockerhub.md +1 -1
- data/docs/GatewayCreateProducerEks.md +1 -1
- data/docs/GatewayCreateProducerGcp.md +1 -1
- data/docs/GatewayCreateProducerGke.md +1 -1
- data/docs/GatewayCreateProducerHanaDb.md +1 -1
- data/docs/GatewayCreateProducerLdap.md +1 -1
- data/docs/GatewayCreateProducerMSSQL.md +1 -1
- data/docs/GatewayCreateProducerMongo.md +1 -1
- data/docs/GatewayCreateProducerMySQL.md +1 -1
- data/docs/GatewayCreateProducerNativeK8S.md +11 -1
- data/docs/GatewayCreateProducerOracleDb.md +1 -1
- data/docs/GatewayCreateProducerPing.md +1 -1
- data/docs/GatewayCreateProducerPostgreSQL.md +1 -1
- data/docs/GatewayCreateProducerRabbitMQ.md +1 -1
- data/docs/GatewayCreateProducerRdp.md +1 -1
- data/docs/GatewayCreateProducerRedshift.md +1 -1
- data/docs/GatewayCreateProducerSnowflake.md +1 -1
- data/docs/GatewayDownloadCustomerFragments.md +22 -0
- data/docs/GatewayDownloadCustomerFragmentsOutput.md +18 -0
- data/docs/GatewayMessageQueueInfo.md +2 -0
- data/docs/GatewayUpdateProducerArtifactory.md +1 -1
- data/docs/GatewayUpdateProducerAws.md +1 -1
- data/docs/GatewayUpdateProducerAzure.md +1 -1
- data/docs/GatewayUpdateProducerCassandra.md +1 -1
- data/docs/GatewayUpdateProducerCertificateAutomation.md +1 -1
- data/docs/GatewayUpdateProducerChef.md +1 -1
- data/docs/GatewayUpdateProducerCustom.md +1 -1
- data/docs/GatewayUpdateProducerDockerhub.md +1 -1
- data/docs/GatewayUpdateProducerEks.md +1 -1
- data/docs/GatewayUpdateProducerGcp.md +1 -1
- data/docs/GatewayUpdateProducerGke.md +1 -1
- data/docs/GatewayUpdateProducerHanaDb.md +1 -1
- data/docs/GatewayUpdateProducerLdap.md +1 -1
- data/docs/GatewayUpdateProducerMSSQL.md +1 -1
- data/docs/GatewayUpdateProducerMongo.md +1 -1
- data/docs/GatewayUpdateProducerMySQL.md +1 -1
- data/docs/GatewayUpdateProducerNativeK8S.md +11 -1
- data/docs/GatewayUpdateProducerOracleDb.md +1 -1
- data/docs/GatewayUpdateProducerPing.md +1 -1
- data/docs/GatewayUpdateProducerPostgreSQL.md +1 -1
- data/docs/GatewayUpdateProducerRabbitMQ.md +1 -1
- data/docs/GatewayUpdateProducerRdp.md +1 -1
- data/docs/GatewayUpdateProducerRedshift.md +1 -1
- data/docs/GatewayUpdateProducerSnowflake.md +1 -1
- data/docs/GeneralConfigPart.md +2 -0
- data/docs/ImportPasswords.md +32 -0
- data/docs/ImportPasswordsOutput.md +22 -0
- data/docs/Item.md +4 -0
- data/docs/LinkedDetails.md +18 -0
- data/docs/RoleAssociationDetails.md +26 -0
- data/docs/TargetTypeDetailsInput.md +1 -3
- data/docs/UpdateAuthMethodCert.md +2 -0
- data/docs/UpdateLinkedTarget.md +2 -4
- data/docs/UpdateWindowsTarget.md +2 -4
- data/docs/V2Api.md +191 -2
- data/lib/akeyless/api/v2_api.rb +192 -0
- data/lib/akeyless/configuration.rb +5 -0
- data/lib/akeyless/models/cert_access_rules.rb +13 -1
- data/lib/akeyless/models/create_auth_method_cert.rb +11 -1
- data/lib/akeyless/models/create_certificate.rb +1 -1
- data/lib/akeyless/models/create_classic_key.rb +1 -1
- data/lib/akeyless/models/create_dynamic_secret.rb +1 -1
- data/lib/akeyless/models/create_linked_target.rb +2 -17
- data/lib/akeyless/models/create_rotated_secret.rb +1 -1
- data/lib/akeyless/models/create_secret.rb +1 -1
- data/lib/akeyless/models/create_windows_target.rb +9 -19
- data/lib/akeyless/models/decrypt_file.rb +35 -1
- data/lib/akeyless/models/describe_assoc.rb +257 -0
- data/lib/akeyless/models/describe_item.rb +13 -1
- data/lib/akeyless/models/dynamic_secret_producer_info.rb +21 -1
- data/lib/akeyless/models/encrypt_file.rb +1 -13
- data/lib/akeyless/models/gateway_basic_info.rb +246 -0
- data/lib/akeyless/models/gateway_create_producer_artifactory.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_aws.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_azure.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_cassandra.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_certificate_automation.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_chef.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_custom.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_dockerhub.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_eks.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_gcp.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_gke.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_hana_db.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_ldap.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_mongo.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_mssql.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_my_sql.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_native_k8_s.rb +52 -2
- data/lib/akeyless/models/gateway_create_producer_oracle_db.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_ping.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_postgre_sql.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_rabbit_mq.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_rdp.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_redshift.rb +1 -1
- data/lib/akeyless/models/gateway_create_producer_snowflake.rb +1 -1
- data/lib/akeyless/models/gateway_download_customer_fragments.rb +243 -0
- data/lib/akeyless/models/gateway_download_customer_fragments_output.rb +221 -0
- data/lib/akeyless/models/gateway_message_queue_info.rb +10 -1
- data/lib/akeyless/models/gateway_update_producer_artifactory.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_aws.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_azure.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_cassandra.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_certificate_automation.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_chef.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_custom.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_dockerhub.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_eks.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_gcp.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_gke.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_hana_db.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_ldap.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_mongo.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_mssql.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_my_sql.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_native_k8_s.rb +52 -2
- data/lib/akeyless/models/gateway_update_producer_oracle_db.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_ping.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_postgre_sql.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_rabbit_mq.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_rdp.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_redshift.rb +1 -1
- data/lib/akeyless/models/gateway_update_producer_snowflake.rb +1 -1
- data/lib/akeyless/models/general_config_part.rb +10 -1
- data/lib/akeyless/models/import_passwords.rb +304 -0
- data/lib/akeyless/models/import_passwords_output.rb +237 -0
- data/lib/akeyless/models/item.rb +21 -1
- data/lib/akeyless/models/linked_details.rb +221 -0
- data/lib/akeyless/models/role_association_details.rb +258 -0
- data/lib/akeyless/models/target_type_details_input.rb +3 -12
- data/lib/akeyless/models/update_auth_method_cert.rb +11 -1
- data/lib/akeyless/models/update_linked_target.rb +3 -18
- data/lib/akeyless/models/update_windows_target.rb +9 -19
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +8 -0
- data/spec/models/describe_assoc_spec.rb +52 -0
- data/spec/models/gateway_basic_info_spec.rb +52 -0
- data/spec/models/gateway_download_customer_fragments_output_spec.rb +34 -0
- data/spec/models/gateway_download_customer_fragments_spec.rb +46 -0
- data/spec/models/import_passwords_output_spec.rb +46 -0
- data/spec/models/import_passwords_spec.rb +76 -0
- data/spec/models/linked_details_spec.rb +34 -0
- data/spec/models/role_association_details_spec.rb +58 -0
- metadata +34 -2
|
@@ -22,6 +22,9 @@ module Akeyless
|
|
|
22
22
|
# Set output format to JSON
|
|
23
23
|
attr_accessor :json
|
|
24
24
|
|
|
25
|
+
# Comma-separated list of allowed K8S namespaces for the generated ServiceAccount (relevant only for k8s-service-account-type=dynamic)
|
|
26
|
+
attr_accessor :k8s_allowed_namespaces
|
|
27
|
+
|
|
25
28
|
# K8S cluster CA certificate
|
|
26
29
|
attr_accessor :k8s_cluster_ca_cert
|
|
27
30
|
|
|
@@ -34,9 +37,21 @@ module Akeyless
|
|
|
34
37
|
# K8S Namespace where the ServiceAccount exists.
|
|
35
38
|
attr_accessor :k8s_namespace
|
|
36
39
|
|
|
40
|
+
# The pre-existing Role or ClusterRole name to bind the generated ServiceAccount to (relevant only for k8s-service-account-type=dynamic)
|
|
41
|
+
attr_accessor :k8s_predefined_role_name
|
|
42
|
+
|
|
43
|
+
# Specifies the type of the pre-existing K8S role [Role, ClusterRole] (relevant only for k8s-service-account-type=dynamic)
|
|
44
|
+
attr_accessor :k8s_predefined_role_type
|
|
45
|
+
|
|
46
|
+
# Path to yaml file that contains definitions of K8S role and role binding (relevant only for k8s-service-account-type=dynamic)
|
|
47
|
+
attr_accessor :k8s_rolebinding_yaml_def
|
|
48
|
+
|
|
37
49
|
# K8S ServiceAccount to extract token from.
|
|
38
50
|
attr_accessor :k8s_service_account
|
|
39
51
|
|
|
52
|
+
# K8S ServiceAccount type [fixed, dynamic].
|
|
53
|
+
attr_accessor :k8s_service_account_type
|
|
54
|
+
|
|
40
55
|
# Producer name
|
|
41
56
|
attr_accessor :name
|
|
42
57
|
|
|
@@ -70,7 +85,7 @@ module Akeyless
|
|
|
70
85
|
# Web-Proxy via Akeyless Web Access Bastion
|
|
71
86
|
attr_accessor :secure_access_web_proxy
|
|
72
87
|
|
|
73
|
-
#
|
|
88
|
+
# Add tags attached to this object
|
|
74
89
|
attr_accessor :tags
|
|
75
90
|
|
|
76
91
|
# Target name
|
|
@@ -90,11 +105,16 @@ module Akeyless
|
|
|
90
105
|
{
|
|
91
106
|
:'delete_protection' => :'delete_protection',
|
|
92
107
|
:'json' => :'json',
|
|
108
|
+
:'k8s_allowed_namespaces' => :'k8s-allowed-namespaces',
|
|
93
109
|
:'k8s_cluster_ca_cert' => :'k8s-cluster-ca-cert',
|
|
94
110
|
:'k8s_cluster_endpoint' => :'k8s-cluster-endpoint',
|
|
95
111
|
:'k8s_cluster_token' => :'k8s-cluster-token',
|
|
96
112
|
:'k8s_namespace' => :'k8s-namespace',
|
|
113
|
+
:'k8s_predefined_role_name' => :'k8s-predefined-role-name',
|
|
114
|
+
:'k8s_predefined_role_type' => :'k8s-predefined-role-type',
|
|
115
|
+
:'k8s_rolebinding_yaml_def' => :'k8s-rolebinding-yaml-def',
|
|
97
116
|
:'k8s_service_account' => :'k8s-service-account',
|
|
117
|
+
:'k8s_service_account_type' => :'k8s-service-account-type',
|
|
98
118
|
:'name' => :'name',
|
|
99
119
|
:'new_name' => :'new-name',
|
|
100
120
|
:'producer_encryption_key_name' => :'producer-encryption-key-name',
|
|
@@ -124,11 +144,16 @@ module Akeyless
|
|
|
124
144
|
{
|
|
125
145
|
:'delete_protection' => :'String',
|
|
126
146
|
:'json' => :'Boolean',
|
|
147
|
+
:'k8s_allowed_namespaces' => :'String',
|
|
127
148
|
:'k8s_cluster_ca_cert' => :'String',
|
|
128
149
|
:'k8s_cluster_endpoint' => :'String',
|
|
129
150
|
:'k8s_cluster_token' => :'String',
|
|
130
151
|
:'k8s_namespace' => :'String',
|
|
152
|
+
:'k8s_predefined_role_name' => :'String',
|
|
153
|
+
:'k8s_predefined_role_type' => :'String',
|
|
154
|
+
:'k8s_rolebinding_yaml_def' => :'String',
|
|
131
155
|
:'k8s_service_account' => :'String',
|
|
156
|
+
:'k8s_service_account_type' => :'String',
|
|
132
157
|
:'name' => :'String',
|
|
133
158
|
:'new_name' => :'String',
|
|
134
159
|
:'producer_encryption_key_name' => :'String',
|
|
@@ -179,6 +204,10 @@ module Akeyless
|
|
|
179
204
|
self.json = false
|
|
180
205
|
end
|
|
181
206
|
|
|
207
|
+
if attributes.key?(:'k8s_allowed_namespaces')
|
|
208
|
+
self.k8s_allowed_namespaces = attributes[:'k8s_allowed_namespaces']
|
|
209
|
+
end
|
|
210
|
+
|
|
182
211
|
if attributes.key?(:'k8s_cluster_ca_cert')
|
|
183
212
|
self.k8s_cluster_ca_cert = attributes[:'k8s_cluster_ca_cert']
|
|
184
213
|
end
|
|
@@ -195,10 +224,26 @@ module Akeyless
|
|
|
195
224
|
self.k8s_namespace = attributes[:'k8s_namespace']
|
|
196
225
|
end
|
|
197
226
|
|
|
227
|
+
if attributes.key?(:'k8s_predefined_role_name')
|
|
228
|
+
self.k8s_predefined_role_name = attributes[:'k8s_predefined_role_name']
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
if attributes.key?(:'k8s_predefined_role_type')
|
|
232
|
+
self.k8s_predefined_role_type = attributes[:'k8s_predefined_role_type']
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
if attributes.key?(:'k8s_rolebinding_yaml_def')
|
|
236
|
+
self.k8s_rolebinding_yaml_def = attributes[:'k8s_rolebinding_yaml_def']
|
|
237
|
+
end
|
|
238
|
+
|
|
198
239
|
if attributes.key?(:'k8s_service_account')
|
|
199
240
|
self.k8s_service_account = attributes[:'k8s_service_account']
|
|
200
241
|
end
|
|
201
242
|
|
|
243
|
+
if attributes.key?(:'k8s_service_account_type')
|
|
244
|
+
self.k8s_service_account_type = attributes[:'k8s_service_account_type']
|
|
245
|
+
end
|
|
246
|
+
|
|
202
247
|
if attributes.key?(:'name')
|
|
203
248
|
self.name = attributes[:'name']
|
|
204
249
|
end
|
|
@@ -299,11 +344,16 @@ module Akeyless
|
|
|
299
344
|
self.class == o.class &&
|
|
300
345
|
delete_protection == o.delete_protection &&
|
|
301
346
|
json == o.json &&
|
|
347
|
+
k8s_allowed_namespaces == o.k8s_allowed_namespaces &&
|
|
302
348
|
k8s_cluster_ca_cert == o.k8s_cluster_ca_cert &&
|
|
303
349
|
k8s_cluster_endpoint == o.k8s_cluster_endpoint &&
|
|
304
350
|
k8s_cluster_token == o.k8s_cluster_token &&
|
|
305
351
|
k8s_namespace == o.k8s_namespace &&
|
|
352
|
+
k8s_predefined_role_name == o.k8s_predefined_role_name &&
|
|
353
|
+
k8s_predefined_role_type == o.k8s_predefined_role_type &&
|
|
354
|
+
k8s_rolebinding_yaml_def == o.k8s_rolebinding_yaml_def &&
|
|
306
355
|
k8s_service_account == o.k8s_service_account &&
|
|
356
|
+
k8s_service_account_type == o.k8s_service_account_type &&
|
|
307
357
|
name == o.name &&
|
|
308
358
|
new_name == o.new_name &&
|
|
309
359
|
producer_encryption_key_name == o.producer_encryption_key_name &&
|
|
@@ -331,7 +381,7 @@ module Akeyless
|
|
|
331
381
|
# Calculates hash code according to all attributes.
|
|
332
382
|
# @return [Integer] Hash code
|
|
333
383
|
def hash
|
|
334
|
-
[delete_protection, json, k8s_cluster_ca_cert, k8s_cluster_endpoint, k8s_cluster_token, k8s_namespace, k8s_service_account, name, new_name, producer_encryption_key_name, secure_access_allow_port_forwading, secure_access_bastion_issuer, secure_access_cluster_endpoint, secure_access_dashboard_url, secure_access_enable, secure_access_web, secure_access_web_browsing, secure_access_web_proxy, tags, target_name, token, uid_token, user_ttl].hash
|
|
384
|
+
[delete_protection, json, k8s_allowed_namespaces, k8s_cluster_ca_cert, k8s_cluster_endpoint, k8s_cluster_token, k8s_namespace, k8s_predefined_role_name, k8s_predefined_role_type, k8s_rolebinding_yaml_def, k8s_service_account, k8s_service_account_type, name, new_name, producer_encryption_key_name, secure_access_allow_port_forwading, secure_access_bastion_issuer, secure_access_cluster_endpoint, secure_access_dashboard_url, secure_access_enable, secure_access_web, secure_access_web_browsing, secure_access_web_proxy, tags, target_name, token, uid_token, user_ttl].hash
|
|
335
385
|
end
|
|
336
386
|
|
|
337
387
|
# Builds the object from hash
|
|
@@ -22,6 +22,8 @@ module Akeyless
|
|
|
22
22
|
|
|
23
23
|
attr_accessor :display_name
|
|
24
24
|
|
|
25
|
+
attr_accessor :enable_sni_proxy
|
|
26
|
+
|
|
25
27
|
attr_accessor :enable_tls
|
|
26
28
|
|
|
27
29
|
attr_accessor :enable_tls_configure
|
|
@@ -44,6 +46,7 @@ module Akeyless
|
|
|
44
46
|
:'akeyless_url' => :'akeyless_url',
|
|
45
47
|
:'api_token_ttl' => :'api_token_ttl',
|
|
46
48
|
:'display_name' => :'display_name',
|
|
49
|
+
:'enable_sni_proxy' => :'enable_sni_proxy',
|
|
47
50
|
:'enable_tls' => :'enable_tls',
|
|
48
51
|
:'enable_tls_configure' => :'enable_tls_configure',
|
|
49
52
|
:'enable_tls_curl' => :'enable_tls_curl',
|
|
@@ -66,6 +69,7 @@ module Akeyless
|
|
|
66
69
|
:'akeyless_url' => :'String',
|
|
67
70
|
:'api_token_ttl' => :'String',
|
|
68
71
|
:'display_name' => :'String',
|
|
72
|
+
:'enable_sni_proxy' => :'Boolean',
|
|
69
73
|
:'enable_tls' => :'Boolean',
|
|
70
74
|
:'enable_tls_configure' => :'Boolean',
|
|
71
75
|
:'enable_tls_curl' => :'Boolean',
|
|
@@ -110,6 +114,10 @@ module Akeyless
|
|
|
110
114
|
self.display_name = attributes[:'display_name']
|
|
111
115
|
end
|
|
112
116
|
|
|
117
|
+
if attributes.key?(:'enable_sni_proxy')
|
|
118
|
+
self.enable_sni_proxy = attributes[:'enable_sni_proxy']
|
|
119
|
+
end
|
|
120
|
+
|
|
113
121
|
if attributes.key?(:'enable_tls')
|
|
114
122
|
self.enable_tls = attributes[:'enable_tls']
|
|
115
123
|
end
|
|
@@ -164,6 +172,7 @@ module Akeyless
|
|
|
164
172
|
akeyless_url == o.akeyless_url &&
|
|
165
173
|
api_token_ttl == o.api_token_ttl &&
|
|
166
174
|
display_name == o.display_name &&
|
|
175
|
+
enable_sni_proxy == o.enable_sni_proxy &&
|
|
167
176
|
enable_tls == o.enable_tls &&
|
|
168
177
|
enable_tls_configure == o.enable_tls_configure &&
|
|
169
178
|
enable_tls_curl == o.enable_tls_curl &&
|
|
@@ -183,7 +192,7 @@ module Akeyless
|
|
|
183
192
|
# Calculates hash code according to all attributes.
|
|
184
193
|
# @return [Integer] Hash code
|
|
185
194
|
def hash
|
|
186
|
-
[akeyless_url, api_token_ttl, display_name, enable_tls, enable_tls_configure, enable_tls_curl, enable_tls_hvp, gw_cluster_url, tcp_port, tls_cert, tls_key].hash
|
|
195
|
+
[akeyless_url, api_token_ttl, display_name, enable_sni_proxy, enable_tls, enable_tls_configure, enable_tls_curl, enable_tls_hvp, gw_cluster_url, tcp_port, tls_cert, tls_key].hash
|
|
187
196
|
end
|
|
188
197
|
|
|
189
198
|
# Builds the object from hash
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Akeyless API
|
|
3
|
+
|
|
4
|
+
#The purpose of this application is to provide access to Akeyless API.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.0
|
|
7
|
+
Contact: support@akeyless.io
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 6.5.0-SNAPSHOT
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Akeyless
|
|
17
|
+
# importPasswords is a command that import passwords
|
|
18
|
+
class ImportPasswords
|
|
19
|
+
# for personal password manager
|
|
20
|
+
attr_accessor :accessibility
|
|
21
|
+
|
|
22
|
+
# Password format type [LastPass/Chrome/Firefox]
|
|
23
|
+
attr_accessor :format
|
|
24
|
+
|
|
25
|
+
# File path
|
|
26
|
+
attr_accessor :import_path
|
|
27
|
+
|
|
28
|
+
# Set output format to JSON
|
|
29
|
+
attr_accessor :json
|
|
30
|
+
|
|
31
|
+
# The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
|
|
32
|
+
attr_accessor :protection_key
|
|
33
|
+
|
|
34
|
+
# Target folder for imported passwords
|
|
35
|
+
attr_accessor :target_folder
|
|
36
|
+
|
|
37
|
+
# Authentication token (see `/auth` and `/configure`)
|
|
38
|
+
attr_accessor :token
|
|
39
|
+
|
|
40
|
+
# The universal identity token, Required only for universal_identity authentication
|
|
41
|
+
attr_accessor :uid_token
|
|
42
|
+
|
|
43
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
44
|
+
def self.attribute_map
|
|
45
|
+
{
|
|
46
|
+
:'accessibility' => :'accessibility',
|
|
47
|
+
:'format' => :'format',
|
|
48
|
+
:'import_path' => :'import-path',
|
|
49
|
+
:'json' => :'json',
|
|
50
|
+
:'protection_key' => :'protection_key',
|
|
51
|
+
:'target_folder' => :'target-folder',
|
|
52
|
+
:'token' => :'token',
|
|
53
|
+
:'uid_token' => :'uid-token'
|
|
54
|
+
}
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Returns all the JSON keys this model knows about
|
|
58
|
+
def self.acceptable_attributes
|
|
59
|
+
attribute_map.values
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Attribute type mapping.
|
|
63
|
+
def self.openapi_types
|
|
64
|
+
{
|
|
65
|
+
:'accessibility' => :'String',
|
|
66
|
+
:'format' => :'String',
|
|
67
|
+
:'import_path' => :'String',
|
|
68
|
+
:'json' => :'Boolean',
|
|
69
|
+
:'protection_key' => :'String',
|
|
70
|
+
:'target_folder' => :'String',
|
|
71
|
+
:'token' => :'String',
|
|
72
|
+
:'uid_token' => :'String'
|
|
73
|
+
}
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# List of attributes with nullable: true
|
|
77
|
+
def self.openapi_nullable
|
|
78
|
+
Set.new([
|
|
79
|
+
])
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Initializes the object
|
|
83
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
84
|
+
def initialize(attributes = {})
|
|
85
|
+
if (!attributes.is_a?(Hash))
|
|
86
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::ImportPasswords` initialize method"
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
90
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
91
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
92
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::ImportPasswords`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
93
|
+
end
|
|
94
|
+
h[k.to_sym] = v
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
if attributes.key?(:'accessibility')
|
|
98
|
+
self.accessibility = attributes[:'accessibility']
|
|
99
|
+
else
|
|
100
|
+
self.accessibility = 'personal'
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
if attributes.key?(:'format')
|
|
104
|
+
self.format = attributes[:'format']
|
|
105
|
+
else
|
|
106
|
+
self.format = 'LastPass'
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
if attributes.key?(:'import_path')
|
|
110
|
+
self.import_path = attributes[:'import_path']
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
if attributes.key?(:'json')
|
|
114
|
+
self.json = attributes[:'json']
|
|
115
|
+
else
|
|
116
|
+
self.json = false
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
if attributes.key?(:'protection_key')
|
|
120
|
+
self.protection_key = attributes[:'protection_key']
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
if attributes.key?(:'target_folder')
|
|
124
|
+
self.target_folder = attributes[:'target_folder']
|
|
125
|
+
else
|
|
126
|
+
self.target_folder = '/'
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
if attributes.key?(:'token')
|
|
130
|
+
self.token = attributes[:'token']
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
if attributes.key?(:'uid_token')
|
|
134
|
+
self.uid_token = attributes[:'uid_token']
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
139
|
+
# @return Array for valid properties with the reasons
|
|
140
|
+
def list_invalid_properties
|
|
141
|
+
invalid_properties = Array.new
|
|
142
|
+
if @import_path.nil?
|
|
143
|
+
invalid_properties.push('invalid value for "import_path", import_path cannot be nil.')
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
invalid_properties
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Check to see if the all the properties in the model are valid
|
|
150
|
+
# @return true if the model is valid
|
|
151
|
+
def valid?
|
|
152
|
+
return false if @import_path.nil?
|
|
153
|
+
true
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# Checks equality by comparing each attribute.
|
|
157
|
+
# @param [Object] Object to be compared
|
|
158
|
+
def ==(o)
|
|
159
|
+
return true if self.equal?(o)
|
|
160
|
+
self.class == o.class &&
|
|
161
|
+
accessibility == o.accessibility &&
|
|
162
|
+
format == o.format &&
|
|
163
|
+
import_path == o.import_path &&
|
|
164
|
+
json == o.json &&
|
|
165
|
+
protection_key == o.protection_key &&
|
|
166
|
+
target_folder == o.target_folder &&
|
|
167
|
+
token == o.token &&
|
|
168
|
+
uid_token == o.uid_token
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# @see the `==` method
|
|
172
|
+
# @param [Object] Object to be compared
|
|
173
|
+
def eql?(o)
|
|
174
|
+
self == o
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
# Calculates hash code according to all attributes.
|
|
178
|
+
# @return [Integer] Hash code
|
|
179
|
+
def hash
|
|
180
|
+
[accessibility, format, import_path, json, protection_key, target_folder, token, uid_token].hash
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
# Builds the object from hash
|
|
184
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
185
|
+
# @return [Object] Returns the model itself
|
|
186
|
+
def self.build_from_hash(attributes)
|
|
187
|
+
new.build_from_hash(attributes)
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# Builds the object from hash
|
|
191
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
192
|
+
# @return [Object] Returns the model itself
|
|
193
|
+
def build_from_hash(attributes)
|
|
194
|
+
return nil unless attributes.is_a?(Hash)
|
|
195
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
196
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
197
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
198
|
+
self.send("#{key}=", nil)
|
|
199
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
200
|
+
# check to ensure the input is an array given that the attribute
|
|
201
|
+
# is documented as an array but the input is not
|
|
202
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
203
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
204
|
+
end
|
|
205
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
206
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
207
|
+
end
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
self
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
# Deserializes the data based on type
|
|
214
|
+
# @param string type Data type
|
|
215
|
+
# @param string value Value to be deserialized
|
|
216
|
+
# @return [Object] Deserialized data
|
|
217
|
+
def _deserialize(type, value)
|
|
218
|
+
case type.to_sym
|
|
219
|
+
when :Time
|
|
220
|
+
Time.parse(value)
|
|
221
|
+
when :Date
|
|
222
|
+
Date.parse(value)
|
|
223
|
+
when :String
|
|
224
|
+
value.to_s
|
|
225
|
+
when :Integer
|
|
226
|
+
value.to_i
|
|
227
|
+
when :Float
|
|
228
|
+
value.to_f
|
|
229
|
+
when :Boolean
|
|
230
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
231
|
+
true
|
|
232
|
+
else
|
|
233
|
+
false
|
|
234
|
+
end
|
|
235
|
+
when :Object
|
|
236
|
+
# generic object (usually a Hash), return directly
|
|
237
|
+
value
|
|
238
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
239
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
240
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
241
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
242
|
+
k_type = Regexp.last_match[:k_type]
|
|
243
|
+
v_type = Regexp.last_match[:v_type]
|
|
244
|
+
{}.tap do |hash|
|
|
245
|
+
value.each do |k, v|
|
|
246
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
247
|
+
end
|
|
248
|
+
end
|
|
249
|
+
else # model
|
|
250
|
+
# models (e.g. Pet) or oneOf
|
|
251
|
+
klass = Akeyless.const_get(type)
|
|
252
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
253
|
+
end
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
# Returns the string representation of the object
|
|
257
|
+
# @return [String] String presentation of the object
|
|
258
|
+
def to_s
|
|
259
|
+
to_hash.to_s
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
263
|
+
# @return [Hash] Returns the object in the form of hash
|
|
264
|
+
def to_body
|
|
265
|
+
to_hash
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
# Returns the object in the form of hash
|
|
269
|
+
# @return [Hash] Returns the object in the form of hash
|
|
270
|
+
def to_hash
|
|
271
|
+
hash = {}
|
|
272
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
273
|
+
value = self.send(attr)
|
|
274
|
+
if value.nil?
|
|
275
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
276
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
hash[param] = _to_hash(value)
|
|
280
|
+
end
|
|
281
|
+
hash
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
# Outputs non-array value in the form of hash
|
|
285
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
286
|
+
# @param [Object] value Any valid value
|
|
287
|
+
# @return [Hash] Returns the value in the form of hash
|
|
288
|
+
def _to_hash(value)
|
|
289
|
+
if value.is_a?(Array)
|
|
290
|
+
value.compact.map { |v| _to_hash(v) }
|
|
291
|
+
elsif value.is_a?(Hash)
|
|
292
|
+
{}.tap do |hash|
|
|
293
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
294
|
+
end
|
|
295
|
+
elsif value.respond_to? :to_hash
|
|
296
|
+
value.to_hash
|
|
297
|
+
else
|
|
298
|
+
value
|
|
299
|
+
end
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
end
|