akeyless 5.0.21 → 5.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -1
  3. data/docs/AccountGeneralSettings.md +2 -0
  4. data/docs/ActiveDirectoryPayload.md +6 -0
  5. data/docs/Auth.md +2 -0
  6. data/docs/AuthMethodCreateCert.md +2 -0
  7. data/docs/AuthMethodUpdateCert.md +2 -0
  8. data/docs/AzureADAccessRules.md +2 -0
  9. data/docs/AzureTargetDetails.md +2 -0
  10. data/docs/CertAccessRules.md +2 -0
  11. data/docs/CertificateChainInfo.md +2 -0
  12. data/docs/Configure.md +2 -0
  13. data/docs/ConjurMigration.md +20 -0
  14. data/docs/ConjurPayload.md +24 -0
  15. data/docs/CreateAuthMethodCert.md +2 -0
  16. data/docs/CreateAzureTarget.md +2 -0
  17. data/docs/CreateUSC.md +10 -0
  18. data/docs/DSProducerDetails.md +2 -0
  19. data/docs/DefaultAuthMethodSettings.md +20 -0
  20. data/docs/GatewayCreateMigration.md +15 -1
  21. data/docs/GatewayUpdateMigration.md +14 -0
  22. data/docs/GetPKICertificateOutput.md +2 -0
  23. data/docs/GithubMetadata.md +28 -0
  24. data/docs/HTTPChallengeInfo.md +26 -0
  25. data/docs/IssuerOverviewInfo.md +22 -0
  26. data/docs/ItemGeneralInfo.md +2 -0
  27. data/docs/MigrationStatusReplyObj.md +2 -0
  28. data/docs/MigrationsConfigPart.md +2 -0
  29. data/docs/SecretInfo.md +2 -0
  30. data/docs/TargetCreateAzure.md +2 -0
  31. data/docs/TargetUpdateAzure.md +2 -0
  32. data/docs/UpdateAuthMethodCert.md +2 -0
  33. data/docs/UpdateAzureTarget.md +2 -0
  34. data/docs/V2Api.md +126 -0
  35. data/docs/ValidateCertificateChallenge.md +30 -0
  36. data/docs/ValidateCertificateChallengeOutput.md +24 -0
  37. data/docs/VaultAddress.md +20 -0
  38. data/docs/VaultAddressOutput.md +20 -0
  39. data/lib/akeyless/api/v2_api.rb +128 -0
  40. data/lib/akeyless/models/account_general_settings.rb +10 -1
  41. data/lib/akeyless/models/active_directory_payload.rb +30 -1
  42. data/lib/akeyless/models/auth.rb +13 -1
  43. data/lib/akeyless/models/auth_method_create_cert.rb +11 -1
  44. data/lib/akeyless/models/auth_method_update_cert.rb +11 -1
  45. data/lib/akeyless/models/azure_ad_access_rules.rb +11 -1
  46. data/lib/akeyless/models/azure_target_details.rb +10 -1
  47. data/lib/akeyless/models/cert_access_rules.rb +11 -1
  48. data/lib/akeyless/models/certificate_chain_info.rb +11 -1
  49. data/lib/akeyless/models/configure.rb +13 -1
  50. data/lib/akeyless/models/conjur_migration.rb +223 -0
  51. data/lib/akeyless/models/conjur_payload.rb +241 -0
  52. data/lib/akeyless/models/create_auth_method_cert.rb +11 -1
  53. data/lib/akeyless/models/create_azure_target.rb +13 -1
  54. data/lib/akeyless/models/create_usc.rb +54 -1
  55. data/lib/akeyless/models/default_auth_method_settings.rb +223 -0
  56. data/lib/akeyless/models/ds_producer_details.rb +10 -1
  57. data/lib/akeyless/models/gateway_create_migration.rb +74 -2
  58. data/lib/akeyless/models/gateway_update_migration.rb +73 -1
  59. data/lib/akeyless/models/get_pki_certificate_output.rb +10 -1
  60. data/lib/akeyless/models/github_metadata.rb +259 -0
  61. data/lib/akeyless/models/http_challenge_info.rb +251 -0
  62. data/lib/akeyless/models/issuer_overview_info.rb +232 -0
  63. data/lib/akeyless/models/item_general_info.rb +10 -1
  64. data/lib/akeyless/models/migration_status_reply_obj.rb +10 -1
  65. data/lib/akeyless/models/migrations_config_part.rb +12 -1
  66. data/lib/akeyless/models/secret_info.rb +10 -1
  67. data/lib/akeyless/models/target_create_azure.rb +13 -1
  68. data/lib/akeyless/models/target_update_azure.rb +13 -1
  69. data/lib/akeyless/models/update_auth_method_cert.rb +11 -1
  70. data/lib/akeyless/models/update_azure_target.rb +13 -1
  71. data/lib/akeyless/models/validate_certificate_challenge.rb +279 -0
  72. data/lib/akeyless/models/validate_certificate_challenge_output.rb +242 -0
  73. data/lib/akeyless/models/vault_address.rb +227 -0
  74. data/lib/akeyless/models/vault_address_output.rb +223 -0
  75. data/lib/akeyless/version.rb +1 -1
  76. data/lib/akeyless.rb +10 -0
  77. data/spec/models/conjur_migration_spec.rb +42 -0
  78. data/spec/models/conjur_payload_spec.rb +54 -0
  79. data/spec/models/default_auth_method_settings_spec.rb +42 -0
  80. data/spec/models/github_metadata_spec.rb +66 -0
  81. data/spec/models/http_challenge_info_spec.rb +60 -0
  82. data/spec/models/issuer_overview_info_spec.rb +48 -0
  83. data/spec/models/validate_certificate_challenge_output_spec.rb +54 -0
  84. data/spec/models/validate_certificate_challenge_spec.rb +72 -0
  85. data/spec/models/vault_address_output_spec.rb +42 -0
  86. data/spec/models/vault_address_spec.rb +42 -0
  87. metadata +41 -1
@@ -33,6 +33,9 @@ module Akeyless
33
33
  # Password (relevant only for access-type=password)
34
34
  attr_accessor :admin_password
35
35
 
36
+ # Azure cloud environment to use. Values: AzureCloud (default), AzureUSGovernment, AzureChinaCloud.
37
+ attr_accessor :azure_cloud
38
+
36
39
  # Certificate challenge encoded in base64. (relevant only for access-type=cert)
37
40
  attr_accessor :cert_challenge
38
41
 
@@ -115,6 +118,7 @@ module Akeyless
115
118
  :'account_id' => :'account-id',
116
119
  :'admin_email' => :'admin-email',
117
120
  :'admin_password' => :'admin-password',
121
+ :'azure_cloud' => :'azure-cloud',
118
122
  :'cert_challenge' => :'cert-challenge',
119
123
  :'cert_data' => :'cert-data',
120
124
  :'cloud_id' => :'cloud-id',
@@ -157,6 +161,7 @@ module Akeyless
157
161
  :'account_id' => :'String',
158
162
  :'admin_email' => :'String',
159
163
  :'admin_password' => :'String',
164
+ :'azure_cloud' => :'String',
160
165
  :'cert_challenge' => :'String',
161
166
  :'cert_data' => :'String',
162
167
  :'cloud_id' => :'String',
@@ -232,6 +237,12 @@ module Akeyless
232
237
  self.admin_password = attributes[:'admin_password']
233
238
  end
234
239
 
240
+ if attributes.key?(:'azure_cloud')
241
+ self.azure_cloud = attributes[:'azure_cloud']
242
+ else
243
+ self.azure_cloud = 'AzureCloud'
244
+ end
245
+
235
246
  if attributes.key?(:'cert_challenge')
236
247
  self.cert_challenge = attributes[:'cert_challenge']
237
248
  end
@@ -367,6 +378,7 @@ module Akeyless
367
378
  account_id == o.account_id &&
368
379
  admin_email == o.admin_email &&
369
380
  admin_password == o.admin_password &&
381
+ azure_cloud == o.azure_cloud &&
370
382
  cert_challenge == o.cert_challenge &&
371
383
  cert_data == o.cert_data &&
372
384
  cloud_id == o.cloud_id &&
@@ -403,7 +415,7 @@ module Akeyless
403
415
  # Calculates hash code according to all attributes.
404
416
  # @return [Integer] Hash code
405
417
  def hash
406
- [access_id, access_key, access_type, account_id, admin_email, admin_password, cert_challenge, cert_data, cloud_id, debug, disable_pafxfast, gateway_spn, gateway_url, gcp_audience, json, jwt, k8s_auth_config_name, k8s_service_account_token, kerberos_token, kerberos_username, key_data, keytab_data, krb5_conf_data, ldap_password, oci_auth_type, oci_group_ocid, otp, signed_cert_challenge, uid_token, use_remote_browser, username].hash
418
+ [access_id, access_key, access_type, account_id, admin_email, admin_password, azure_cloud, cert_challenge, cert_data, cloud_id, debug, disable_pafxfast, gateway_spn, gateway_url, gcp_audience, json, jwt, k8s_auth_config_name, k8s_service_account_token, kerberos_token, kerberos_username, key_data, keytab_data, krb5_conf_data, ldap_password, oci_auth_type, oci_group_ocid, otp, signed_cert_challenge, uid_token, use_remote_browser, username].hash
407
419
  end
408
420
 
409
421
  # Builds the object from hash
@@ -79,6 +79,9 @@ module Akeyless
79
79
  # Choose the relevant product type for the auth method [sm, sra, pm, dp, ca]
80
80
  attr_accessor :product_type
81
81
 
82
+ # Require certificate CRL distribution points (CDP) and enforce CRL validation during authentication.
83
+ attr_accessor :require_crl_dp
84
+
82
85
  # A list of revoked cert ids
83
86
  attr_accessor :revoked_cert_ids
84
87
 
@@ -115,6 +118,7 @@ module Akeyless
115
118
  :'jwt_ttl' => :'jwt-ttl',
116
119
  :'name' => :'name',
117
120
  :'product_type' => :'product-type',
121
+ :'require_crl_dp' => :'require-crl-dp',
118
122
  :'revoked_cert_ids' => :'revoked-cert-ids',
119
123
  :'token' => :'token',
120
124
  :'uid_token' => :'uid-token',
@@ -151,6 +155,7 @@ module Akeyless
151
155
  :'jwt_ttl' => :'Integer',
152
156
  :'name' => :'String',
153
157
  :'product_type' => :'Array<String>',
158
+ :'require_crl_dp' => :'Boolean',
154
159
  :'revoked_cert_ids' => :'Array<String>',
155
160
  :'token' => :'String',
156
161
  :'uid_token' => :'String',
@@ -295,6 +300,10 @@ module Akeyless
295
300
  end
296
301
  end
297
302
 
303
+ if attributes.key?(:'require_crl_dp')
304
+ self.require_crl_dp = attributes[:'require_crl_dp']
305
+ end
306
+
298
307
  if attributes.key?(:'revoked_cert_ids')
299
308
  if (value = attributes[:'revoked_cert_ids']).is_a?(Array)
300
309
  self.revoked_cert_ids = value
@@ -367,6 +376,7 @@ module Akeyless
367
376
  jwt_ttl == o.jwt_ttl &&
368
377
  name == o.name &&
369
378
  product_type == o.product_type &&
379
+ require_crl_dp == o.require_crl_dp &&
370
380
  revoked_cert_ids == o.revoked_cert_ids &&
371
381
  token == o.token &&
372
382
  uid_token == o.uid_token &&
@@ -382,7 +392,7 @@ module Akeyless
382
392
  # Calculates hash code according to all attributes.
383
393
  # @return [Integer] Hash code
384
394
  def hash
385
- [access_expires, allowed_client_type, allowed_cors, audit_logs_claims, bound_common_names, bound_dns_sans, bound_email_sans, bound_extensions, bound_ips, bound_organizational_units, bound_uri_sans, certificate_data, delete_protection, description, expiration_event_in, force_sub_claims, gw_bound_ips, json, jwt_ttl, name, product_type, revoked_cert_ids, token, uid_token, unique_identifier].hash
395
+ [access_expires, allowed_client_type, allowed_cors, audit_logs_claims, bound_common_names, bound_dns_sans, bound_email_sans, bound_extensions, bound_ips, bound_organizational_units, bound_uri_sans, certificate_data, delete_protection, description, expiration_event_in, force_sub_claims, gw_bound_ips, json, jwt_ttl, name, product_type, require_crl_dp, revoked_cert_ids, token, uid_token, unique_identifier].hash
386
396
  end
387
397
 
388
398
  # Builds the object from hash
@@ -82,6 +82,9 @@ module Akeyless
82
82
  # Choose the relevant product type for the auth method [sm, sra, pm, dp, ca]
83
83
  attr_accessor :product_type
84
84
 
85
+ # Require certificate CRL distribution points (CDP) and enforce CRL validation during authentication.
86
+ attr_accessor :require_crl_dp
87
+
85
88
  # A list of revoked cert ids
86
89
  attr_accessor :revoked_cert_ids
87
90
 
@@ -119,6 +122,7 @@ module Akeyless
119
122
  :'name' => :'name',
120
123
  :'new_name' => :'new-name',
121
124
  :'product_type' => :'product-type',
125
+ :'require_crl_dp' => :'require-crl-dp',
122
126
  :'revoked_cert_ids' => :'revoked-cert-ids',
123
127
  :'token' => :'token',
124
128
  :'uid_token' => :'uid-token',
@@ -156,6 +160,7 @@ module Akeyless
156
160
  :'name' => :'String',
157
161
  :'new_name' => :'String',
158
162
  :'product_type' => :'Array<String>',
163
+ :'require_crl_dp' => :'Boolean',
159
164
  :'revoked_cert_ids' => :'Array<String>',
160
165
  :'token' => :'String',
161
166
  :'uid_token' => :'String',
@@ -304,6 +309,10 @@ module Akeyless
304
309
  end
305
310
  end
306
311
 
312
+ if attributes.key?(:'require_crl_dp')
313
+ self.require_crl_dp = attributes[:'require_crl_dp']
314
+ end
315
+
307
316
  if attributes.key?(:'revoked_cert_ids')
308
317
  if (value = attributes[:'revoked_cert_ids']).is_a?(Array)
309
318
  self.revoked_cert_ids = value
@@ -377,6 +386,7 @@ module Akeyless
377
386
  name == o.name &&
378
387
  new_name == o.new_name &&
379
388
  product_type == o.product_type &&
389
+ require_crl_dp == o.require_crl_dp &&
380
390
  revoked_cert_ids == o.revoked_cert_ids &&
381
391
  token == o.token &&
382
392
  uid_token == o.uid_token &&
@@ -392,7 +402,7 @@ module Akeyless
392
402
  # Calculates hash code according to all attributes.
393
403
  # @return [Integer] Hash code
394
404
  def hash
395
- [access_expires, allowed_client_type, allowed_cors, audit_logs_claims, bound_common_names, bound_dns_sans, bound_email_sans, bound_extensions, bound_ips, bound_organizational_units, bound_uri_sans, certificate_data, delete_protection, description, expiration_event_in, force_sub_claims, gw_bound_ips, json, jwt_ttl, name, new_name, product_type, revoked_cert_ids, token, uid_token, unique_identifier].hash
405
+ [access_expires, allowed_client_type, allowed_cors, audit_logs_claims, bound_common_names, bound_dns_sans, bound_email_sans, bound_extensions, bound_ips, bound_organizational_units, bound_uri_sans, certificate_data, delete_protection, description, expiration_event_in, force_sub_claims, gw_bound_ips, json, jwt_ttl, name, new_name, product_type, require_crl_dp, revoked_cert_ids, token, uid_token, unique_identifier].hash
396
406
  end
397
407
 
398
408
  # Builds the object from hash
@@ -19,6 +19,9 @@ module Akeyless
19
19
  # The audience in the JWT.
20
20
  attr_accessor :ad_endpoint
21
21
 
22
+ # Azure cloud environment [AzureCloud/AzureUSGovernment/AzureChinaCloud]. For create/update, cloud is inferred from jwks_uri.
23
+ attr_accessor :azure_cloud
24
+
22
25
  # The list of group ids that login is restricted to.
23
26
  attr_accessor :bound_group_ids
24
27
 
@@ -59,6 +62,7 @@ module Akeyless
59
62
  def self.attribute_map
60
63
  {
61
64
  :'ad_endpoint' => :'ad_endpoint',
65
+ :'azure_cloud' => :'azure_cloud',
62
66
  :'bound_group_ids' => :'bound_group_ids',
63
67
  :'bound_resource_groups' => :'bound_resource_groups',
64
68
  :'bound_resource_ids' => :'bound_resource_ids',
@@ -83,6 +87,7 @@ module Akeyless
83
87
  def self.openapi_types
84
88
  {
85
89
  :'ad_endpoint' => :'String',
90
+ :'azure_cloud' => :'String',
86
91
  :'bound_group_ids' => :'Array<String>',
87
92
  :'bound_resource_groups' => :'Array<String>',
88
93
  :'bound_resource_ids' => :'Array<String>',
@@ -123,6 +128,10 @@ module Akeyless
123
128
  self.ad_endpoint = attributes[:'ad_endpoint']
124
129
  end
125
130
 
131
+ if attributes.key?(:'azure_cloud')
132
+ self.azure_cloud = attributes[:'azure_cloud']
133
+ end
134
+
126
135
  if attributes.key?(:'bound_group_ids')
127
136
  if (value = attributes[:'bound_group_ids']).is_a?(Array)
128
137
  self.bound_group_ids = value
@@ -209,6 +218,7 @@ module Akeyless
209
218
  return true if self.equal?(o)
210
219
  self.class == o.class &&
211
220
  ad_endpoint == o.ad_endpoint &&
221
+ azure_cloud == o.azure_cloud &&
212
222
  bound_group_ids == o.bound_group_ids &&
213
223
  bound_resource_groups == o.bound_resource_groups &&
214
224
  bound_resource_ids == o.bound_resource_ids &&
@@ -232,7 +242,7 @@ module Akeyless
232
242
  # Calculates hash code according to all attributes.
233
243
  # @return [Integer] Hash code
234
244
  def hash
235
- [ad_endpoint, bound_group_ids, bound_resource_groups, bound_resource_ids, bound_resource_names, bound_resource_providers, bound_resource_types, bound_service_principal_ids, bound_subscription_ids, bound_tenant_id, issuer, jwks_uri, unique_identifier].hash
245
+ [ad_endpoint, azure_cloud, bound_group_ids, bound_resource_groups, bound_resource_ids, bound_resource_names, bound_resource_providers, bound_resource_types, bound_service_principal_ids, bound_subscription_ids, bound_tenant_id, issuer, jwks_uri, unique_identifier].hash
236
246
  end
237
247
 
238
248
  # Builds the object from hash
@@ -19,6 +19,8 @@ module Akeyless
19
19
 
20
20
  attr_accessor :azure_client_secret
21
21
 
22
+ attr_accessor :azure_cloud
23
+
22
24
  attr_accessor :azure_resource_group_name
23
25
 
24
26
  attr_accessor :azure_resource_name
@@ -42,6 +44,7 @@ module Akeyless
42
44
  {
43
45
  :'azure_client_id' => :'azure_client_id',
44
46
  :'azure_client_secret' => :'azure_client_secret',
47
+ :'azure_cloud' => :'azure_cloud',
45
48
  :'azure_resource_group_name' => :'azure_resource_group_name',
46
49
  :'azure_resource_name' => :'azure_resource_name',
47
50
  :'azure_subscription_id' => :'azure_subscription_id',
@@ -64,6 +67,7 @@ module Akeyless
64
67
  {
65
68
  :'azure_client_id' => :'String',
66
69
  :'azure_client_secret' => :'String',
70
+ :'azure_cloud' => :'String',
67
71
  :'azure_resource_group_name' => :'String',
68
72
  :'azure_resource_name' => :'String',
69
73
  :'azure_subscription_id' => :'String',
@@ -105,6 +109,10 @@ module Akeyless
105
109
  self.azure_client_secret = attributes[:'azure_client_secret']
106
110
  end
107
111
 
112
+ if attributes.key?(:'azure_cloud')
113
+ self.azure_cloud = attributes[:'azure_cloud']
114
+ end
115
+
108
116
  if attributes.key?(:'azure_resource_group_name')
109
117
  self.azure_resource_group_name = attributes[:'azure_resource_group_name']
110
118
  end
@@ -164,6 +172,7 @@ module Akeyless
164
172
  self.class == o.class &&
165
173
  azure_client_id == o.azure_client_id &&
166
174
  azure_client_secret == o.azure_client_secret &&
175
+ azure_cloud == o.azure_cloud &&
167
176
  azure_resource_group_name == o.azure_resource_group_name &&
168
177
  azure_resource_name == o.azure_resource_name &&
169
178
  azure_subscription_id == o.azure_subscription_id &&
@@ -184,7 +193,7 @@ module Akeyless
184
193
  # Calculates hash code according to all attributes.
185
194
  # @return [Integer] Hash code
186
195
  def hash
187
- [azure_client_id, azure_client_secret, azure_resource_group_name, azure_resource_name, azure_subscription_id, azure_tenant_id, azure_username, connection_type, expiration_date, grace_rotated_secret_key, use_gw_cloud_identity].hash
196
+ [azure_client_id, azure_client_secret, azure_cloud, azure_resource_group_name, azure_resource_name, azure_subscription_id, azure_tenant_id, azure_username, connection_type, expiration_date, grace_rotated_secret_key, use_gw_cloud_identity].hash
188
197
  end
189
198
 
190
199
  # Builds the object from hash
@@ -39,6 +39,9 @@ module Akeyless
39
39
  # Base64 encdoed PEM certificate
40
40
  attr_accessor :certificate
41
41
 
42
+ # RequireCrlDp indicates whether CRL distribution points are required on the leaf client certificate, and whether CRL validation must be enforced during authentication.
43
+ attr_accessor :require_crl_dp
44
+
42
45
  # A list of revoked cert ids
43
46
  attr_accessor :revoked_cert_ids
44
47
 
@@ -56,6 +59,7 @@ module Akeyless
56
59
  :'bound_organizational_units' => :'bound_organizational_units',
57
60
  :'bound_uri_sans' => :'bound_uri_sans',
58
61
  :'certificate' => :'certificate',
62
+ :'require_crl_dp' => :'require_crl_dp',
59
63
  :'revoked_cert_ids' => :'revoked_cert_ids',
60
64
  :'unique_identifier' => :'unique_identifier'
61
65
  }
@@ -77,6 +81,7 @@ module Akeyless
77
81
  :'bound_organizational_units' => :'Array<String>',
78
82
  :'bound_uri_sans' => :'Array<String>',
79
83
  :'certificate' => :'String',
84
+ :'require_crl_dp' => :'Boolean',
80
85
  :'revoked_cert_ids' => :'Array<String>',
81
86
  :'unique_identifier' => :'String'
82
87
  }
@@ -149,6 +154,10 @@ module Akeyless
149
154
  self.certificate = attributes[:'certificate']
150
155
  end
151
156
 
157
+ if attributes.key?(:'require_crl_dp')
158
+ self.require_crl_dp = attributes[:'require_crl_dp']
159
+ end
160
+
152
161
  if attributes.key?(:'revoked_cert_ids')
153
162
  if (value = attributes[:'revoked_cert_ids']).is_a?(Array)
154
163
  self.revoked_cert_ids = value
@@ -188,6 +197,7 @@ module Akeyless
188
197
  bound_organizational_units == o.bound_organizational_units &&
189
198
  bound_uri_sans == o.bound_uri_sans &&
190
199
  certificate == o.certificate &&
200
+ require_crl_dp == o.require_crl_dp &&
191
201
  revoked_cert_ids == o.revoked_cert_ids &&
192
202
  unique_identifier == o.unique_identifier
193
203
  end
@@ -201,7 +211,7 @@ module Akeyless
201
211
  # Calculates hash code according to all attributes.
202
212
  # @return [Integer] Hash code
203
213
  def hash
204
- [allowed_cors, bound_common_names, bound_dns_sans, bound_email_sans, bound_extensions, bound_organizational_units, bound_uri_sans, certificate, revoked_cert_ids, unique_identifier].hash
214
+ [allowed_cors, bound_common_names, bound_dns_sans, bound_email_sans, bound_extensions, bound_organizational_units, bound_uri_sans, certificate, require_crl_dp, revoked_cert_ids, unique_identifier].hash
205
215
  end
206
216
 
207
217
  # Builds the object from hash
@@ -37,6 +37,9 @@ module Akeyless
37
37
 
38
38
  attr_accessor :common_name
39
39
 
40
+ # CSRPEM contains the PEM-encoded CSR for pending certificates (HTTP-01 challenge)
41
+ attr_accessor :csr_pem
42
+
40
43
  attr_accessor :error_message
41
44
 
42
45
  attr_accessor :expiration_date
@@ -65,6 +68,7 @@ module Akeyless
65
68
  :'certificate_pem' => :'certificate_pem',
66
69
  :'certificate_status' => :'certificate_status',
67
70
  :'common_name' => :'common_name',
71
+ :'csr_pem' => :'csr_pem',
68
72
  :'error_message' => :'error_message',
69
73
  :'expiration_date' => :'expiration_date',
70
74
  :'expiration_events' => :'expiration_events',
@@ -94,6 +98,7 @@ module Akeyless
94
98
  :'certificate_pem' => :'String',
95
99
  :'certificate_status' => :'String',
96
100
  :'common_name' => :'String',
101
+ :'csr_pem' => :'String',
97
102
  :'error_message' => :'String',
98
103
  :'expiration_date' => :'Time',
99
104
  :'expiration_events' => :'Array<CertificateExpirationEvent>',
@@ -171,6 +176,10 @@ module Akeyless
171
176
  self.common_name = attributes[:'common_name']
172
177
  end
173
178
 
179
+ if attributes.key?(:'csr_pem')
180
+ self.csr_pem = attributes[:'csr_pem']
181
+ end
182
+
174
183
  if attributes.key?(:'error_message')
175
184
  self.error_message = attributes[:'error_message']
176
185
  end
@@ -233,6 +242,7 @@ module Akeyless
233
242
  certificate_pem == o.certificate_pem &&
234
243
  certificate_status == o.certificate_status &&
235
244
  common_name == o.common_name &&
245
+ csr_pem == o.csr_pem &&
236
246
  error_message == o.error_message &&
237
247
  expiration_date == o.expiration_date &&
238
248
  expiration_events == o.expiration_events &&
@@ -251,7 +261,7 @@ module Akeyless
251
261
  # Calculates hash code according to all attributes.
252
262
  # @return [Integer] Hash code
253
263
  def hash
254
- [auto_renew_certificate, certificate_chain, certificate_format, certificate_has_private_key, certificate_issuer_gw_cluster_id, certificate_issuer_gw_cluster_url, certificate_issuer_item_id, certificate_issuer_name, certificate_pem, certificate_status, common_name, error_message, expiration_date, expiration_events, external_ca_id, issuance_status, not_before, renew_before_expiration_in_days].hash
264
+ [auto_renew_certificate, certificate_chain, certificate_format, certificate_has_private_key, certificate_issuer_gw_cluster_id, certificate_issuer_gw_cluster_url, certificate_issuer_item_id, certificate_issuer_name, certificate_pem, certificate_status, common_name, csr_pem, error_message, expiration_date, expiration_events, external_ca_id, issuance_status, not_before, renew_before_expiration_in_days].hash
255
265
  end
256
266
 
257
267
  # Builds the object from hash
@@ -36,6 +36,9 @@ module Akeyless
36
36
  # Azure Active Directory ObjectId (relevant only for access-type=azure_ad)
37
37
  attr_accessor :azure_ad_object_id
38
38
 
39
+ # Azure cloud environment to use. Values: AzureCloud (default), AzureUSGovernment, AzureChinaCloud.
40
+ attr_accessor :azure_cloud
41
+
39
42
  # Certificate data encoded in base64. Used if file was not provided. (relevant only for access-type=cert in Curl Context)
40
43
  attr_accessor :cert_data
41
44
 
@@ -97,6 +100,7 @@ module Akeyless
97
100
  :'admin_email' => :'admin-email',
98
101
  :'admin_password' => :'admin-password',
99
102
  :'azure_ad_object_id' => :'azure-ad-object-id',
103
+ :'azure_cloud' => :'azure-cloud',
100
104
  :'cert_data' => :'cert-data',
101
105
  :'cert_issuer_name' => :'cert-issuer-name',
102
106
  :'cert_username' => :'cert-username',
@@ -132,6 +136,7 @@ module Akeyless
132
136
  :'admin_email' => :'String',
133
137
  :'admin_password' => :'String',
134
138
  :'azure_ad_object_id' => :'String',
139
+ :'azure_cloud' => :'String',
135
140
  :'cert_data' => :'String',
136
141
  :'cert_issuer_name' => :'String',
137
142
  :'cert_username' => :'String',
@@ -203,6 +208,12 @@ module Akeyless
203
208
  self.azure_ad_object_id = attributes[:'azure_ad_object_id']
204
209
  end
205
210
 
211
+ if attributes.key?(:'azure_cloud')
212
+ self.azure_cloud = attributes[:'azure_cloud']
213
+ else
214
+ self.azure_cloud = 'AzureCloud'
215
+ end
216
+
206
217
  if attributes.key?(:'cert_data')
207
218
  self.cert_data = attributes[:'cert_data']
208
219
  end
@@ -307,6 +318,7 @@ module Akeyless
307
318
  admin_email == o.admin_email &&
308
319
  admin_password == o.admin_password &&
309
320
  azure_ad_object_id == o.azure_ad_object_id &&
321
+ azure_cloud == o.azure_cloud &&
310
322
  cert_data == o.cert_data &&
311
323
  cert_issuer_name == o.cert_issuer_name &&
312
324
  cert_username == o.cert_username &&
@@ -335,7 +347,7 @@ module Akeyless
335
347
  # Calculates hash code according to all attributes.
336
348
  # @return [Integer] Hash code
337
349
  def hash
338
- [access_id, access_key, access_type, account_id, admin_email, admin_password, azure_ad_object_id, cert_data, cert_issuer_name, cert_username, default_location_prefix, disable_pafxfast, gateway_spn, gcp_audience, json, k8s_auth_config_name, kerberos_token, kerberos_username, key_data, keytab_data, krb5_conf_data, legacy_signing_alg_name, oci_auth_type, oci_group_ocid].hash
350
+ [access_id, access_key, access_type, account_id, admin_email, admin_password, azure_ad_object_id, azure_cloud, cert_data, cert_issuer_name, cert_username, default_location_prefix, disable_pafxfast, gateway_spn, gcp_audience, json, k8s_auth_config_name, kerberos_token, kerberos_username, key_data, keytab_data, krb5_conf_data, legacy_signing_alg_name, oci_auth_type, oci_group_ocid].hash
339
351
  end
340
352
 
341
353
  # Builds the object from hash
@@ -0,0 +1,223 @@
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: 3.0
7
+ Contact: support@akeyless.io
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.10.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Akeyless
17
+ class ConjurMigration
18
+ attr_accessor :general
19
+
20
+ attr_accessor :payload
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'general' => :'general',
26
+ :'payload' => :'payload'
27
+ }
28
+ end
29
+
30
+ # Returns all the JSON keys this model knows about
31
+ def self.acceptable_attributes
32
+ attribute_map.values
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.openapi_types
37
+ {
38
+ :'general' => :'MigrationGeneral',
39
+ :'payload' => :'ConjurPayload'
40
+ }
41
+ end
42
+
43
+ # List of attributes with nullable: true
44
+ def self.openapi_nullable
45
+ Set.new([
46
+ ])
47
+ end
48
+
49
+ # Initializes the object
50
+ # @param [Hash] attributes Model attributes in the form of hash
51
+ def initialize(attributes = {})
52
+ if (!attributes.is_a?(Hash))
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::ConjurMigration` initialize method"
54
+ end
55
+
56
+ # check to see if the attribute exists and convert string to symbol for hash key
57
+ attributes = attributes.each_with_object({}) { |(k, v), h|
58
+ if (!self.class.attribute_map.key?(k.to_sym))
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::ConjurMigration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ end
61
+ h[k.to_sym] = v
62
+ }
63
+
64
+ if attributes.key?(:'general')
65
+ self.general = attributes[:'general']
66
+ end
67
+
68
+ if attributes.key?(:'payload')
69
+ self.payload = attributes[:'payload']
70
+ end
71
+ end
72
+
73
+ # Show invalid properties with the reasons. Usually used together with valid?
74
+ # @return Array for valid properties with the reasons
75
+ def list_invalid_properties
76
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
77
+ invalid_properties = Array.new
78
+ invalid_properties
79
+ end
80
+
81
+ # Check to see if the all the properties in the model are valid
82
+ # @return true if the model is valid
83
+ def valid?
84
+ warn '[DEPRECATED] the `valid?` method is obsolete'
85
+ true
86
+ end
87
+
88
+ # Checks equality by comparing each attribute.
89
+ # @param [Object] Object to be compared
90
+ def ==(o)
91
+ return true if self.equal?(o)
92
+ self.class == o.class &&
93
+ general == o.general &&
94
+ payload == o.payload
95
+ end
96
+
97
+ # @see the `==` method
98
+ # @param [Object] Object to be compared
99
+ def eql?(o)
100
+ self == o
101
+ end
102
+
103
+ # Calculates hash code according to all attributes.
104
+ # @return [Integer] Hash code
105
+ def hash
106
+ [general, payload].hash
107
+ end
108
+
109
+ # Builds the object from hash
110
+ # @param [Hash] attributes Model attributes in the form of hash
111
+ # @return [Object] Returns the model itself
112
+ def self.build_from_hash(attributes)
113
+ return nil unless attributes.is_a?(Hash)
114
+ attributes = attributes.transform_keys(&:to_sym)
115
+ transformed_hash = {}
116
+ openapi_types.each_pair do |key, type|
117
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
118
+ transformed_hash["#{key}"] = nil
119
+ elsif type =~ /\AArray<(.*)>/i
120
+ # check to ensure the input is an array given that the attribute
121
+ # is documented as an array but the input is not
122
+ if attributes[attribute_map[key]].is_a?(Array)
123
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
124
+ end
125
+ elsif !attributes[attribute_map[key]].nil?
126
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
127
+ end
128
+ end
129
+ new(transformed_hash)
130
+ end
131
+
132
+ # Deserializes the data based on type
133
+ # @param string type Data type
134
+ # @param string value Value to be deserialized
135
+ # @return [Object] Deserialized data
136
+ def self._deserialize(type, value)
137
+ case type.to_sym
138
+ when :Time
139
+ Time.parse(value)
140
+ when :Date
141
+ Date.parse(value)
142
+ when :String
143
+ value.to_s
144
+ when :Integer
145
+ value.to_i
146
+ when :Float
147
+ value.to_f
148
+ when :Boolean
149
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
150
+ true
151
+ else
152
+ false
153
+ end
154
+ when :Object
155
+ # generic object (usually a Hash), return directly
156
+ value
157
+ when /\AArray<(?<inner_type>.+)>\z/
158
+ inner_type = Regexp.last_match[:inner_type]
159
+ value.map { |v| _deserialize(inner_type, v) }
160
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
161
+ k_type = Regexp.last_match[:k_type]
162
+ v_type = Regexp.last_match[:v_type]
163
+ {}.tap do |hash|
164
+ value.each do |k, v|
165
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
166
+ end
167
+ end
168
+ else # model
169
+ # models (e.g. Pet) or oneOf
170
+ klass = Akeyless.const_get(type)
171
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
172
+ end
173
+ end
174
+
175
+ # Returns the string representation of the object
176
+ # @return [String] String presentation of the object
177
+ def to_s
178
+ to_hash.to_s
179
+ end
180
+
181
+ # to_body is an alias to to_hash (backward compatibility)
182
+ # @return [Hash] Returns the object in the form of hash
183
+ def to_body
184
+ to_hash
185
+ end
186
+
187
+ # Returns the object in the form of hash
188
+ # @return [Hash] Returns the object in the form of hash
189
+ def to_hash
190
+ hash = {}
191
+ self.class.attribute_map.each_pair do |attr, param|
192
+ value = self.send(attr)
193
+ if value.nil?
194
+ is_nullable = self.class.openapi_nullable.include?(attr)
195
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
196
+ end
197
+
198
+ hash[param] = _to_hash(value)
199
+ end
200
+ hash
201
+ end
202
+
203
+ # Outputs non-array value in the form of hash
204
+ # For object, use to_hash. Otherwise, just return the value
205
+ # @param [Object] value Any valid value
206
+ # @return [Hash] Returns the value in the form of hash
207
+ def _to_hash(value)
208
+ if value.is_a?(Array)
209
+ value.compact.map { |v| _to_hash(v) }
210
+ elsif value.is_a?(Hash)
211
+ {}.tap do |hash|
212
+ value.each { |k, v| hash[k] = _to_hash(v) }
213
+ end
214
+ elsif value.respond_to? :to_hash
215
+ value.to_hash
216
+ else
217
+ value
218
+ end
219
+ end
220
+
221
+ end
222
+
223
+ end