akeyless 2.16.11 → 2.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -8
  3. data/docs/AccountGeneralSettings.md +20 -0
  4. data/docs/CreateArtifactoryTarget.md +1 -1
  5. data/docs/CreateAuthMethodK8S.md +2 -2
  6. data/docs/CreateAuthMethodLDAP.md +3 -1
  7. data/docs/CreateAuthMethodLDAPOutput.md +3 -1
  8. data/docs/CreateKeyOutput.md +5 -1
  9. data/docs/CreateLdapTarget.md +2 -0
  10. data/docs/CreatePKICertIssuer.md +5 -5
  11. data/docs/CreateSSHCertIssuer.md +1 -1
  12. data/docs/CreateSalesforceTarget.md +7 -3
  13. data/docs/CreateSecret.md +11 -19
  14. data/docs/DSProducerDetails.md +2 -0
  15. data/docs/DataProtectionSection.md +18 -0
  16. data/docs/Decrypt.md +3 -1
  17. data/docs/DecryptFile.md +6 -0
  18. data/docs/DecryptPKCS1.md +5 -1
  19. data/docs/DeleteItem.md +2 -2
  20. data/docs/DescribeItem.md +4 -0
  21. data/docs/DescribeSubClaims.md +20 -0
  22. data/docs/DescribeSubClaimsOutput.md +18 -0
  23. data/docs/Encrypt.md +3 -1
  24. data/docs/EncryptFile.md +4 -0
  25. data/docs/EncryptPKCS1.md +5 -1
  26. data/docs/GatewayCreateK8SAuthConfig.md +10 -4
  27. data/docs/GatewayCreateProducerDockerhub.md +1 -1
  28. data/docs/GatewayGetK8SAuthConfigOutput.md +7 -1
  29. data/docs/GatewayRevokeTmpUsers.md +4 -2
  30. data/docs/GatewayUpdateK8SAuthConfig.md +10 -4
  31. data/docs/GatewayUpdateLdapAuthConfig.md +2 -2
  32. data/docs/GatewayUpdateProducerDockerhub.md +1 -1
  33. data/docs/GetAccountSettingsCommandOutput.md +2 -0
  34. data/docs/GetSecretValue.md +2 -2
  35. data/docs/Item.md +2 -0
  36. data/docs/K8SAuth.md +7 -1
  37. data/docs/KubernetesAccessRules.md +2 -0
  38. data/docs/LDAPAccessRules.md +2 -0
  39. data/docs/ListItems.md +2 -2
  40. data/docs/LogForwardingConfigPart.md +2 -0
  41. data/docs/RuleAssigner.md +20 -0
  42. data/docs/SignPKCS1.md +5 -1
  43. data/docs/TargetTypeDetailsInput.md +5 -1
  44. data/docs/UpdateAccountSettings.md +13 -1
  45. data/docs/UpdateAuthMethodK8S.md +2 -2
  46. data/docs/UpdateAuthMethodLDAP.md +3 -1
  47. data/docs/UpdateAuthMethodLDAPOutput.md +18 -0
  48. data/docs/UpdateItem.md +2 -2
  49. data/docs/UpdateLdapTarget.md +2 -0
  50. data/docs/UpdateSalesforceTarget.md +7 -3
  51. data/docs/UpdateSecretVal.md +11 -9
  52. data/docs/V2Api.md +46 -109
  53. data/docs/VerifyPKCS1.md +4 -0
  54. data/lib/akeyless/api/v2_api.rb +43 -107
  55. data/lib/akeyless/models/account_general_settings.rb +229 -0
  56. data/lib/akeyless/models/create_artifactory_target.rb +1 -1
  57. data/lib/akeyless/models/create_auth_method_k8_s.rb +2 -2
  58. data/lib/akeyless/models/create_auth_method_ldap.rb +14 -2
  59. data/lib/akeyless/models/create_auth_method_ldap_output.rb +13 -4
  60. data/lib/akeyless/models/create_key_output.rb +22 -4
  61. data/lib/akeyless/models/create_ldap_target.rb +13 -1
  62. data/lib/akeyless/models/create_pki_cert_issuer.rb +5 -5
  63. data/lib/akeyless/models/create_salesforce_target.rb +29 -19
  64. data/lib/akeyless/models/create_secret.rb +50 -90
  65. data/lib/akeyless/models/create_ssh_cert_issuer.rb +1 -1
  66. data/lib/akeyless/models/data_protection_section.rb +220 -0
  67. data/lib/akeyless/models/decrypt.rb +16 -1
  68. data/lib/akeyless/models/decrypt_file.rb +36 -1
  69. data/lib/akeyless/models/decrypt_pkcs1.rb +22 -2
  70. data/lib/akeyless/models/delete_item.rb +11 -11
  71. data/lib/akeyless/models/describe_item.rb +21 -1
  72. data/lib/akeyless/models/describe_sub_claims.rb +231 -0
  73. data/lib/akeyless/models/describe_sub_claims_output.rb +221 -0
  74. data/lib/akeyless/models/ds_producer_details.rb +10 -1
  75. data/lib/akeyless/models/encrypt.rb +16 -1
  76. data/lib/akeyless/models/encrypt_file.rb +21 -1
  77. data/lib/akeyless/models/encrypt_pkcs1.rb +22 -2
  78. data/lib/akeyless/models/gateway_create_k8_s_auth_config.rb +38 -4
  79. data/lib/akeyless/models/gateway_create_producer_dockerhub.rb +1 -1
  80. data/lib/akeyless/models/gateway_get_k8_s_auth_config_output.rb +32 -2
  81. data/lib/akeyless/models/gateway_revoke_tmp_users.rb +14 -2
  82. data/lib/akeyless/models/gateway_update_k8_s_auth_config.rb +38 -4
  83. data/lib/akeyless/models/gateway_update_ldap_auth_config.rb +2 -2
  84. data/lib/akeyless/models/gateway_update_producer_dockerhub.rb +1 -1
  85. data/lib/akeyless/models/get_account_settings_command_output.rb +10 -1
  86. data/lib/akeyless/models/get_secret_value.rb +7 -7
  87. data/lib/akeyless/models/item.rb +10 -1
  88. data/lib/akeyless/models/k8_s_auth.rb +32 -2
  89. data/lib/akeyless/models/kubernetes_access_rules.rb +11 -1
  90. data/lib/akeyless/models/ldap_access_rules.rb +11 -1
  91. data/lib/akeyless/models/list_items.rb +11 -11
  92. data/lib/akeyless/models/log_forwarding_config_part.rb +10 -1
  93. data/lib/akeyless/models/rule_assigner.rb +228 -0
  94. data/lib/akeyless/models/sign_pkcs1.rb +21 -6
  95. data/lib/akeyless/models/target_type_details_input.rb +23 -1
  96. data/lib/akeyless/models/update_account_settings.rb +64 -4
  97. data/lib/akeyless/models/update_auth_method_k8_s.rb +2 -4
  98. data/lib/akeyless/models/update_auth_method_ldap.rb +12 -2
  99. data/lib/akeyless/models/update_auth_method_ldap_output.rb +219 -0
  100. data/lib/akeyless/models/update_item.rb +11 -11
  101. data/lib/akeyless/models/update_ldap_target.rb +11 -1
  102. data/lib/akeyless/models/update_salesforce_target.rb +29 -19
  103. data/lib/akeyless/models/update_secret_val.rb +52 -42
  104. data/lib/akeyless/models/verify_pkcs1.rb +21 -1
  105. data/lib/akeyless/version.rb +1 -1
  106. data/lib/akeyless.rb +6 -4
  107. data/spec/models/account_general_settings_spec.rb +34 -0
  108. data/spec/models/data_protection_section_spec.rb +34 -0
  109. data/spec/models/describe_sub_claims_output_spec.rb +34 -0
  110. data/spec/models/describe_sub_claims_spec.rb +40 -0
  111. data/spec/models/rule_assigner_spec.rb +40 -0
  112. data/spec/models/update_auth_method_ldap_output_spec.rb +34 -0
  113. metadata +525 -501
@@ -16,6 +16,12 @@ require 'time'
16
16
  module Akeyless
17
17
  # signPKCS1 is a command that calculates the signature of hashed data using RSASSA-PKCS1-V1_5-SIGN from RSA PKCS#1 v1.5.
18
18
  class SignPKCS1
19
+ # The display id of the key to use in the signing process
20
+ attr_accessor :display_id
21
+
22
+ # The item id of the key to use in the signing process
23
+ attr_accessor :item_id
24
+
19
25
  # The name of the RSA key to use in the signing process
20
26
  attr_accessor :key_name
21
27
 
@@ -31,6 +37,8 @@ module Akeyless
31
37
  # Attribute mapping from ruby-style variable name to JSON key.
32
38
  def self.attribute_map
33
39
  {
40
+ :'display_id' => :'display-id',
41
+ :'item_id' => :'item-id',
34
42
  :'key_name' => :'key-name',
35
43
  :'message' => :'message',
36
44
  :'token' => :'token',
@@ -46,6 +54,8 @@ module Akeyless
46
54
  # Attribute type mapping.
47
55
  def self.openapi_types
48
56
  {
57
+ :'display_id' => :'String',
58
+ :'item_id' => :'Integer',
49
59
  :'key_name' => :'String',
50
60
  :'message' => :'String',
51
61
  :'token' => :'String',
@@ -74,6 +84,14 @@ module Akeyless
74
84
  h[k.to_sym] = v
75
85
  }
76
86
 
87
+ if attributes.key?(:'display_id')
88
+ self.display_id = attributes[:'display_id']
89
+ end
90
+
91
+ if attributes.key?(:'item_id')
92
+ self.item_id = attributes[:'item_id']
93
+ end
94
+
77
95
  if attributes.key?(:'key_name')
78
96
  self.key_name = attributes[:'key_name']
79
97
  end
@@ -95,10 +113,6 @@ module Akeyless
95
113
  # @return Array for valid properties with the reasons
96
114
  def list_invalid_properties
97
115
  invalid_properties = Array.new
98
- if @key_name.nil?
99
- invalid_properties.push('invalid value for "key_name", key_name cannot be nil.')
100
- end
101
-
102
116
  if @message.nil?
103
117
  invalid_properties.push('invalid value for "message", message cannot be nil.')
104
118
  end
@@ -109,7 +123,6 @@ module Akeyless
109
123
  # Check to see if the all the properties in the model are valid
110
124
  # @return true if the model is valid
111
125
  def valid?
112
- return false if @key_name.nil?
113
126
  return false if @message.nil?
114
127
  true
115
128
  end
@@ -119,6 +132,8 @@ module Akeyless
119
132
  def ==(o)
120
133
  return true if self.equal?(o)
121
134
  self.class == o.class &&
135
+ display_id == o.display_id &&
136
+ item_id == o.item_id &&
122
137
  key_name == o.key_name &&
123
138
  message == o.message &&
124
139
  token == o.token &&
@@ -134,7 +149,7 @@ module Akeyless
134
149
  # Calculates hash code according to all attributes.
135
150
  # @return [Integer] Hash code
136
151
  def hash
137
- [key_name, message, token, uid_token].hash
152
+ [display_id, item_id, key_name, message, token, uid_token].hash
138
153
  end
139
154
 
140
155
  # Builds the object from hash
@@ -15,6 +15,9 @@ require 'time'
15
15
 
16
16
  module Akeyless
17
17
  class TargetTypeDetailsInput
18
+ # params needed for jwt auth AppPrivateKey is the rsa private key in PEM format
19
+ attr_accessor :app_private_key
20
+
18
21
  attr_accessor :artifactory_admin_apikey
19
22
 
20
23
  attr_accessor :artifactory_admin_username
@@ -63,6 +66,7 @@ module Akeyless
63
66
 
64
67
  attr_accessor :client_id
65
68
 
69
+ # params needed for password auth
66
70
  attr_accessor :client_secret
67
71
 
68
72
  attr_accessor :db_host_name
@@ -115,6 +119,8 @@ module Akeyless
115
119
 
116
120
  attr_accessor :host
117
121
 
122
+ attr_accessor :implementation_type
123
+
118
124
  attr_accessor :k8s_bearer_token
119
125
 
120
126
  attr_accessor :k8s_cluster_ca_certificate
@@ -209,6 +215,7 @@ module Akeyless
209
215
  # Attribute mapping from ruby-style variable name to JSON key.
210
216
  def self.attribute_map
211
217
  {
218
+ :'app_private_key' => :'app_private_key',
212
219
  :'artifactory_admin_apikey' => :'artifactory_admin_apikey',
213
220
  :'artifactory_admin_username' => :'artifactory_admin_username',
214
221
  :'artifactory_base_url' => :'artifactory_base_url',
@@ -257,6 +264,7 @@ module Akeyless
257
264
  :'gke_service_account_key' => :'gke_service_account_key',
258
265
  :'gke_service_account_name' => :'gke_service_account_name',
259
266
  :'host' => :'host',
267
+ :'implementation_type' => :'implementation_type',
260
268
  :'k8s_bearer_token' => :'k8s_bearer_token',
261
269
  :'k8s_cluster_ca_certificate' => :'k8s_cluster_ca_certificate',
262
270
  :'k8s_cluster_endpoint' => :'k8s_cluster_endpoint',
@@ -311,6 +319,7 @@ module Akeyless
311
319
  # Attribute type mapping.
312
320
  def self.openapi_types
313
321
  {
322
+ :'app_private_key' => :'Array<Integer>',
314
323
  :'artifactory_admin_apikey' => :'String',
315
324
  :'artifactory_admin_username' => :'String',
316
325
  :'artifactory_base_url' => :'String',
@@ -359,6 +368,7 @@ module Akeyless
359
368
  :'gke_service_account_key' => :'String',
360
369
  :'gke_service_account_name' => :'String',
361
370
  :'host' => :'String',
371
+ :'implementation_type' => :'String',
362
372
  :'k8s_bearer_token' => :'String',
363
373
  :'k8s_cluster_ca_certificate' => :'String',
364
374
  :'k8s_cluster_endpoint' => :'String',
@@ -426,6 +436,12 @@ module Akeyless
426
436
  h[k.to_sym] = v
427
437
  }
428
438
 
439
+ if attributes.key?(:'app_private_key')
440
+ if (value = attributes[:'app_private_key']).is_a?(Array)
441
+ self.app_private_key = value
442
+ end
443
+ end
444
+
429
445
  if attributes.key?(:'artifactory_admin_apikey')
430
446
  self.artifactory_admin_apikey = attributes[:'artifactory_admin_apikey']
431
447
  end
@@ -620,6 +636,10 @@ module Akeyless
620
636
  self.host = attributes[:'host']
621
637
  end
622
638
 
639
+ if attributes.key?(:'implementation_type')
640
+ self.implementation_type = attributes[:'implementation_type']
641
+ end
642
+
623
643
  if attributes.key?(:'k8s_bearer_token')
624
644
  self.k8s_bearer_token = attributes[:'k8s_bearer_token']
625
645
  end
@@ -811,6 +831,7 @@ module Akeyless
811
831
  def ==(o)
812
832
  return true if self.equal?(o)
813
833
  self.class == o.class &&
834
+ app_private_key == o.app_private_key &&
814
835
  artifactory_admin_apikey == o.artifactory_admin_apikey &&
815
836
  artifactory_admin_username == o.artifactory_admin_username &&
816
837
  artifactory_base_url == o.artifactory_base_url &&
@@ -859,6 +880,7 @@ module Akeyless
859
880
  gke_service_account_key == o.gke_service_account_key &&
860
881
  gke_service_account_name == o.gke_service_account_name &&
861
882
  host == o.host &&
883
+ implementation_type == o.implementation_type &&
862
884
  k8s_bearer_token == o.k8s_bearer_token &&
863
885
  k8s_cluster_ca_certificate == o.k8s_cluster_ca_certificate &&
864
886
  k8s_cluster_endpoint == o.k8s_cluster_endpoint &&
@@ -913,7 +935,7 @@ module Akeyless
913
935
  # Calculates hash code according to all attributes.
914
936
  # @return [Integer] Hash code
915
937
  def hash
916
- [artifactory_admin_apikey, artifactory_admin_username, artifactory_base_url, auth_flow, aws_access_key_id, aws_region, aws_secret_access_key, aws_session_token, azure_client_id, azure_client_secret, azure_resource_group_name, azure_resource_name, azure_subscription_id, azure_tenant_id, ca_cert_data, ca_cert_name, chef_server_host_name, chef_server_key, chef_server_port, chef_server_url, chef_server_username, chef_skip_ssl, client_id, client_secret, db_host_name, db_name, db_port, db_pwd, db_server_certificates, db_server_name, db_user_name, eks_access_key_id, eks_cluster_ca_certificate, eks_cluster_endpoint, eks_cluster_name, eks_region, eks_secret_access_key, gcp_service_account_email, gcp_service_account_key, github_app_id, github_app_private_key, github_base_url, gke_cluster_ca_certificate, gke_cluster_endpoint, gke_cluster_name, gke_service_account_key, gke_service_account_name, host, k8s_bearer_token, k8s_cluster_ca_certificate, k8s_cluster_endpoint, ldap_audience, ldap_bind_dn, ldap_bind_password, ldap_certificate, ldap_token_expiration, ldap_url, mongodb_atlas_api_private_key, mongodb_atlas_api_public_key, mongodb_atlas_project_id, mongodb_db_name, mongodb_default_auth_db, mongodb_host_port, mongodb_is_atlas, mongodb_password, mongodb_uri_connection, mongodb_uri_options, mongodb_username, password, payload, port, private_key, private_key_password, rabbitmq_server_password, rabbitmq_server_uri, rabbitmq_server_user, security_token, sf_account, ssl_connection_certificate, ssl_connection_mode, tenant_url, url, use_gw_cloud_identity, user_name, username, venafi_api_key, venafi_base_url, venafi_tpp_password, venafi_tpp_username, venafi_use_tpp, venafi_zone].hash
938
+ [app_private_key, artifactory_admin_apikey, artifactory_admin_username, artifactory_base_url, auth_flow, aws_access_key_id, aws_region, aws_secret_access_key, aws_session_token, azure_client_id, azure_client_secret, azure_resource_group_name, azure_resource_name, azure_subscription_id, azure_tenant_id, ca_cert_data, ca_cert_name, chef_server_host_name, chef_server_key, chef_server_port, chef_server_url, chef_server_username, chef_skip_ssl, client_id, client_secret, db_host_name, db_name, db_port, db_pwd, db_server_certificates, db_server_name, db_user_name, eks_access_key_id, eks_cluster_ca_certificate, eks_cluster_endpoint, eks_cluster_name, eks_region, eks_secret_access_key, gcp_service_account_email, gcp_service_account_key, github_app_id, github_app_private_key, github_base_url, gke_cluster_ca_certificate, gke_cluster_endpoint, gke_cluster_name, gke_service_account_key, gke_service_account_name, host, implementation_type, k8s_bearer_token, k8s_cluster_ca_certificate, k8s_cluster_endpoint, ldap_audience, ldap_bind_dn, ldap_bind_password, ldap_certificate, ldap_token_expiration, ldap_url, mongodb_atlas_api_private_key, mongodb_atlas_api_public_key, mongodb_atlas_project_id, mongodb_db_name, mongodb_default_auth_db, mongodb_host_port, mongodb_is_atlas, mongodb_password, mongodb_uri_connection, mongodb_uri_options, mongodb_username, password, payload, port, private_key, private_key_password, rabbitmq_server_password, rabbitmq_server_uri, rabbitmq_server_user, security_token, sf_account, ssl_connection_certificate, ssl_connection_mode, tenant_url, url, use_gw_cloud_identity, user_name, username, venafi_api_key, venafi_base_url, venafi_tpp_password, venafi_tpp_username, venafi_use_tpp, venafi_zone].hash
917
939
  end
918
940
 
919
941
  # Builds the object from hash
@@ -30,6 +30,9 @@ module Akeyless
30
30
  # Should create version by default
31
31
  attr_accessor :default_versioning
32
32
 
33
+ # Enable classic key protection [\"true\"/\"false\"]
34
+ attr_accessor :dp_enable_classic_key_protection
35
+
33
36
  # VersionSettingsObjectType defines object types for account version settings
34
37
  attr_accessor :item_type
35
38
 
@@ -45,6 +48,9 @@ module Akeyless
45
48
  # Max versions
46
49
  attr_accessor :max_versions
47
50
 
51
+ # For PasswordPolicy use
52
+ attr_accessor :password_length
53
+
48
54
  # Phone number
49
55
  attr_accessor :phone
50
56
 
@@ -57,6 +63,18 @@ module Akeyless
57
63
  # The universal identity token, Required only for universal_identity authentication
58
64
  attr_accessor :uid_token
59
65
 
66
+ # For PasswordPolicy use
67
+ attr_accessor :use_lower_letters
68
+
69
+ # For PasswordPolicy use
70
+ attr_accessor :use_numbers
71
+
72
+ # For PasswordPolicy use
73
+ attr_accessor :use_special_characters
74
+
75
+ # For PasswordPolicy use
76
+ attr_accessor :use_capital_letters
77
+
60
78
  # Attribute mapping from ruby-style variable name to JSON key.
61
79
  def self.attribute_map
62
80
  {
@@ -65,15 +83,21 @@ module Akeyless
65
83
  :'company_name' => :'company-name',
66
84
  :'country' => :'country',
67
85
  :'default_versioning' => :'default-versioning',
86
+ :'dp_enable_classic_key_protection' => :'dp-enable-classic-key-protection',
68
87
  :'item_type' => :'item-type',
69
88
  :'jwt_ttl_default' => :'jwt-ttl-default',
70
89
  :'jwt_ttl_max' => :'jwt-ttl-max',
71
90
  :'jwt_ttl_min' => :'jwt-ttl-min',
72
91
  :'max_versions' => :'max-versions',
92
+ :'password_length' => :'password-length',
73
93
  :'phone' => :'phone',
74
94
  :'postal_code' => :'postal-code',
75
95
  :'token' => :'token',
76
- :'uid_token' => :'uid-token'
96
+ :'uid_token' => :'uid-token',
97
+ :'use_lower_letters' => :'use-lower-letters',
98
+ :'use_numbers' => :'use-numbers',
99
+ :'use_special_characters' => :'use-special-characters',
100
+ :'use_capital_letters' => :'use_capital-letters'
77
101
  }
78
102
  end
79
103
 
@@ -90,15 +114,21 @@ module Akeyless
90
114
  :'company_name' => :'String',
91
115
  :'country' => :'String',
92
116
  :'default_versioning' => :'String',
117
+ :'dp_enable_classic_key_protection' => :'String',
93
118
  :'item_type' => :'String',
94
119
  :'jwt_ttl_default' => :'Integer',
95
120
  :'jwt_ttl_max' => :'Integer',
96
121
  :'jwt_ttl_min' => :'Integer',
97
122
  :'max_versions' => :'String',
123
+ :'password_length' => :'Integer',
98
124
  :'phone' => :'String',
99
125
  :'postal_code' => :'String',
100
126
  :'token' => :'String',
101
- :'uid_token' => :'String'
127
+ :'uid_token' => :'String',
128
+ :'use_lower_letters' => :'String',
129
+ :'use_numbers' => :'String',
130
+ :'use_special_characters' => :'String',
131
+ :'use_capital_letters' => :'String'
102
132
  }
103
133
  end
104
134
 
@@ -143,6 +173,10 @@ module Akeyless
143
173
  self.default_versioning = attributes[:'default_versioning']
144
174
  end
145
175
 
176
+ if attributes.key?(:'dp_enable_classic_key_protection')
177
+ self.dp_enable_classic_key_protection = attributes[:'dp_enable_classic_key_protection']
178
+ end
179
+
146
180
  if attributes.key?(:'item_type')
147
181
  self.item_type = attributes[:'item_type']
148
182
  end
@@ -163,6 +197,10 @@ module Akeyless
163
197
  self.max_versions = attributes[:'max_versions']
164
198
  end
165
199
 
200
+ if attributes.key?(:'password_length')
201
+ self.password_length = attributes[:'password_length']
202
+ end
203
+
166
204
  if attributes.key?(:'phone')
167
205
  self.phone = attributes[:'phone']
168
206
  end
@@ -178,6 +216,22 @@ module Akeyless
178
216
  if attributes.key?(:'uid_token')
179
217
  self.uid_token = attributes[:'uid_token']
180
218
  end
219
+
220
+ if attributes.key?(:'use_lower_letters')
221
+ self.use_lower_letters = attributes[:'use_lower_letters']
222
+ end
223
+
224
+ if attributes.key?(:'use_numbers')
225
+ self.use_numbers = attributes[:'use_numbers']
226
+ end
227
+
228
+ if attributes.key?(:'use_special_characters')
229
+ self.use_special_characters = attributes[:'use_special_characters']
230
+ end
231
+
232
+ if attributes.key?(:'use_capital_letters')
233
+ self.use_capital_letters = attributes[:'use_capital_letters']
234
+ end
181
235
  end
182
236
 
183
237
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -203,15 +257,21 @@ module Akeyless
203
257
  company_name == o.company_name &&
204
258
  country == o.country &&
205
259
  default_versioning == o.default_versioning &&
260
+ dp_enable_classic_key_protection == o.dp_enable_classic_key_protection &&
206
261
  item_type == o.item_type &&
207
262
  jwt_ttl_default == o.jwt_ttl_default &&
208
263
  jwt_ttl_max == o.jwt_ttl_max &&
209
264
  jwt_ttl_min == o.jwt_ttl_min &&
210
265
  max_versions == o.max_versions &&
266
+ password_length == o.password_length &&
211
267
  phone == o.phone &&
212
268
  postal_code == o.postal_code &&
213
269
  token == o.token &&
214
- uid_token == o.uid_token
270
+ uid_token == o.uid_token &&
271
+ use_lower_letters == o.use_lower_letters &&
272
+ use_numbers == o.use_numbers &&
273
+ use_special_characters == o.use_special_characters &&
274
+ use_capital_letters == o.use_capital_letters
215
275
  end
216
276
 
217
277
  # @see the `==` method
@@ -223,7 +283,7 @@ module Akeyless
223
283
  # Calculates hash code according to all attributes.
224
284
  # @return [Integer] Hash code
225
285
  def hash
226
- [address, city, company_name, country, default_versioning, item_type, jwt_ttl_default, jwt_ttl_max, jwt_ttl_min, max_versions, phone, postal_code, token, uid_token].hash
286
+ [address, city, company_name, country, default_versioning, dp_enable_classic_key_protection, item_type, jwt_ttl_default, jwt_ttl_max, jwt_ttl_min, max_versions, password_length, phone, postal_code, token, uid_token, use_lower_letters, use_numbers, use_special_characters, use_capital_letters].hash
227
287
  end
228
288
 
229
289
  # Builds the object from hash
@@ -37,7 +37,7 @@ module Akeyless
37
37
  # if true: enforce role-association must include sub claims
38
38
  attr_accessor :force_sub_claims
39
39
 
40
- # If this flag is set to true, there is no need to manually provide a public key for the Kubernetes Auth Method, and instead, a key pair, will be generated as part of the command and the private part of the key will be returned (the private key is required for the K8S Auth Config in the Akeyless Gateway)
40
+ # Automatically generate key-pair for K8S configuration. If set to false, a public key needs to be provided
41
41
  attr_accessor :gen_key
42
42
 
43
43
  # A CIDR whitelist with the GW IPs that the access is restricted to
@@ -52,7 +52,7 @@ module Akeyless
52
52
  # Auth Method new name
53
53
  attr_accessor :new_name
54
54
 
55
- # Base64-encoded public key text for K8S authentication method is required [RSA2048]
55
+ # Base64-encoded or PEM formatted public key data for K8S authentication method is required [RSA2048]
56
56
  attr_accessor :public_key
57
57
 
58
58
  # Authentication token (see `/auth` and `/configure`)
@@ -169,8 +169,6 @@ module Akeyless
169
169
 
170
170
  if attributes.key?(:'gen_key')
171
171
  self.gen_key = attributes[:'gen_key']
172
- else
173
- self.gen_key = 'true'
174
172
  end
175
173
 
176
174
  if attributes.key?(:'gw_bound_ips')
@@ -25,6 +25,9 @@ module Akeyless
25
25
  # if true: enforce role-association must include sub claims
26
26
  attr_accessor :force_sub_claims
27
27
 
28
+ # Automatically generate key-pair for LDAP configuration. If set to false, a public key needs to be provided
29
+ attr_accessor :gen_key
30
+
28
31
  # A CIDR whitelist with the GW IPs that the access is restricted to
29
32
  attr_accessor :gw_bound_ips
30
33
 
@@ -37,7 +40,7 @@ module Akeyless
37
40
  # Auth Method new name
38
41
  attr_accessor :new_name
39
42
 
40
- # A public key generated for LDAP authentication method on Akeyless in base64 format [RSA2048]
43
+ # A public key generated for LDAP authentication method on Akeyless in base64 or PEM format [RSA2048]
41
44
  attr_accessor :public_key_data
42
45
 
43
46
  # Authentication token (see `/auth` and `/configure`)
@@ -55,6 +58,7 @@ module Akeyless
55
58
  :'access_expires' => :'access-expires',
56
59
  :'bound_ips' => :'bound-ips',
57
60
  :'force_sub_claims' => :'force-sub-claims',
61
+ :'gen_key' => :'gen-key',
58
62
  :'gw_bound_ips' => :'gw-bound-ips',
59
63
  :'jwt_ttl' => :'jwt-ttl',
60
64
  :'name' => :'name',
@@ -77,6 +81,7 @@ module Akeyless
77
81
  :'access_expires' => :'Integer',
78
82
  :'bound_ips' => :'Array<String>',
79
83
  :'force_sub_claims' => :'Boolean',
84
+ :'gen_key' => :'String',
80
85
  :'gw_bound_ips' => :'Array<String>',
81
86
  :'jwt_ttl' => :'Integer',
82
87
  :'name' => :'String',
@@ -125,6 +130,10 @@ module Akeyless
125
130
  self.force_sub_claims = attributes[:'force_sub_claims']
126
131
  end
127
132
 
133
+ if attributes.key?(:'gen_key')
134
+ self.gen_key = attributes[:'gen_key']
135
+ end
136
+
128
137
  if attributes.key?(:'gw_bound_ips')
129
138
  if (value = attributes[:'gw_bound_ips']).is_a?(Array)
130
139
  self.gw_bound_ips = value
@@ -186,6 +195,7 @@ module Akeyless
186
195
  access_expires == o.access_expires &&
187
196
  bound_ips == o.bound_ips &&
188
197
  force_sub_claims == o.force_sub_claims &&
198
+ gen_key == o.gen_key &&
189
199
  gw_bound_ips == o.gw_bound_ips &&
190
200
  jwt_ttl == o.jwt_ttl &&
191
201
  name == o.name &&
@@ -205,7 +215,7 @@ module Akeyless
205
215
  # Calculates hash code according to all attributes.
206
216
  # @return [Integer] Hash code
207
217
  def hash
208
- [access_expires, bound_ips, force_sub_claims, gw_bound_ips, jwt_ttl, name, new_name, public_key_data, token, uid_token, unique_identifier].hash
218
+ [access_expires, bound_ips, force_sub_claims, gen_key, gw_bound_ips, jwt_ttl, name, new_name, public_key_data, token, uid_token, unique_identifier].hash
209
219
  end
210
220
 
211
221
  # Builds the object from hash
@@ -0,0 +1,219 @@
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.1.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Akeyless
17
+ class UpdateAuthMethodLDAPOutput
18
+ attr_accessor :prv_key
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'prv_key' => :'prv_key'
24
+ }
25
+ end
26
+
27
+ # Returns all the JSON keys this model knows about
28
+ def self.acceptable_attributes
29
+ attribute_map.values
30
+ end
31
+
32
+ # Attribute type mapping.
33
+ def self.openapi_types
34
+ {
35
+ :'prv_key' => :'String'
36
+ }
37
+ end
38
+
39
+ # List of attributes with nullable: true
40
+ def self.openapi_nullable
41
+ Set.new([
42
+ ])
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param [Hash] attributes Model attributes in the form of hash
47
+ def initialize(attributes = {})
48
+ if (!attributes.is_a?(Hash))
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::UpdateAuthMethodLDAPOutput` initialize method"
50
+ end
51
+
52
+ # check to see if the attribute exists and convert string to symbol for hash key
53
+ attributes = attributes.each_with_object({}) { |(k, v), h|
54
+ if (!self.class.attribute_map.key?(k.to_sym))
55
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::UpdateAuthMethodLDAPOutput`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
+ end
57
+ h[k.to_sym] = v
58
+ }
59
+
60
+ if attributes.key?(:'prv_key')
61
+ self.prv_key = attributes[:'prv_key']
62
+ end
63
+ end
64
+
65
+ # Show invalid properties with the reasons. Usually used together with valid?
66
+ # @return Array for valid properties with the reasons
67
+ def list_invalid_properties
68
+ invalid_properties = Array.new
69
+ invalid_properties
70
+ end
71
+
72
+ # Check to see if the all the properties in the model are valid
73
+ # @return true if the model is valid
74
+ def valid?
75
+ true
76
+ end
77
+
78
+ # Checks equality by comparing each attribute.
79
+ # @param [Object] Object to be compared
80
+ def ==(o)
81
+ return true if self.equal?(o)
82
+ self.class == o.class &&
83
+ prv_key == o.prv_key
84
+ end
85
+
86
+ # @see the `==` method
87
+ # @param [Object] Object to be compared
88
+ def eql?(o)
89
+ self == o
90
+ end
91
+
92
+ # Calculates hash code according to all attributes.
93
+ # @return [Integer] Hash code
94
+ def hash
95
+ [prv_key].hash
96
+ end
97
+
98
+ # Builds the object from hash
99
+ # @param [Hash] attributes Model attributes in the form of hash
100
+ # @return [Object] Returns the model itself
101
+ def self.build_from_hash(attributes)
102
+ new.build_from_hash(attributes)
103
+ end
104
+
105
+ # Builds the object from hash
106
+ # @param [Hash] attributes Model attributes in the form of hash
107
+ # @return [Object] Returns the model itself
108
+ def build_from_hash(attributes)
109
+ return nil unless attributes.is_a?(Hash)
110
+ attributes = attributes.transform_keys(&:to_sym)
111
+ self.class.openapi_types.each_pair do |key, type|
112
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
113
+ self.send("#{key}=", nil)
114
+ elsif type =~ /\AArray<(.*)>/i
115
+ # check to ensure the input is an array given that the attribute
116
+ # is documented as an array but the input is not
117
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
118
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
119
+ end
120
+ elsif !attributes[self.class.attribute_map[key]].nil?
121
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
122
+ end
123
+ end
124
+
125
+ self
126
+ end
127
+
128
+ # Deserializes the data based on type
129
+ # @param string type Data type
130
+ # @param string value Value to be deserialized
131
+ # @return [Object] Deserialized data
132
+ def _deserialize(type, value)
133
+ case type.to_sym
134
+ when :Time
135
+ Time.parse(value)
136
+ when :Date
137
+ Date.parse(value)
138
+ when :String
139
+ value.to_s
140
+ when :Integer
141
+ value.to_i
142
+ when :Float
143
+ value.to_f
144
+ when :Boolean
145
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
146
+ true
147
+ else
148
+ false
149
+ end
150
+ when :Object
151
+ # generic object (usually a Hash), return directly
152
+ value
153
+ when /\AArray<(?<inner_type>.+)>\z/
154
+ inner_type = Regexp.last_match[:inner_type]
155
+ value.map { |v| _deserialize(inner_type, v) }
156
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
157
+ k_type = Regexp.last_match[:k_type]
158
+ v_type = Regexp.last_match[:v_type]
159
+ {}.tap do |hash|
160
+ value.each do |k, v|
161
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
162
+ end
163
+ end
164
+ else # model
165
+ # models (e.g. Pet) or oneOf
166
+ klass = Akeyless.const_get(type)
167
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
168
+ end
169
+ end
170
+
171
+ # Returns the string representation of the object
172
+ # @return [String] String presentation of the object
173
+ def to_s
174
+ to_hash.to_s
175
+ end
176
+
177
+ # to_body is an alias to to_hash (backward compatibility)
178
+ # @return [Hash] Returns the object in the form of hash
179
+ def to_body
180
+ to_hash
181
+ end
182
+
183
+ # Returns the object in the form of hash
184
+ # @return [Hash] Returns the object in the form of hash
185
+ def to_hash
186
+ hash = {}
187
+ self.class.attribute_map.each_pair do |attr, param|
188
+ value = self.send(attr)
189
+ if value.nil?
190
+ is_nullable = self.class.openapi_nullable.include?(attr)
191
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
192
+ end
193
+
194
+ hash[param] = _to_hash(value)
195
+ end
196
+ hash
197
+ end
198
+
199
+ # Outputs non-array value in the form of hash
200
+ # For object, use to_hash. Otherwise, just return the value
201
+ # @param [Object] value Any valid value
202
+ # @return [Hash] Returns the value in the form of hash
203
+ def _to_hash(value)
204
+ if value.is_a?(Array)
205
+ value.compact.map { |v| _to_hash(v) }
206
+ elsif value.is_a?(Hash)
207
+ {}.tap do |hash|
208
+ value.each { |k, v| hash[k] = _to_hash(v) }
209
+ end
210
+ elsif value.respond_to? :to_hash
211
+ value.to_hash
212
+ else
213
+ value
214
+ end
215
+ end
216
+
217
+ end
218
+
219
+ end