akeyless 3.5.1 → 3.5.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -1
  3. data/docs/ActiveDirectoryPayload.md +5 -1
  4. data/docs/CertificateTemplateInfo.md +2 -0
  5. data/docs/CreateClassicKey.md +2 -0
  6. data/docs/CreateDFCKey.md +2 -0
  7. data/docs/CreateKey.md +2 -0
  8. data/docs/CreateRotatedSecret.md +4 -0
  9. data/docs/DSProducerDetails.md +2 -0
  10. data/docs/GatewayCreateMigration.md +5 -1
  11. data/docs/GatewayUpdateItem.md +4 -0
  12. data/docs/GatewayUpdateMigration.md +5 -1
  13. data/docs/GcpTargetDetails.md +3 -1
  14. data/docs/GeneralConfigPart.md +2 -0
  15. data/docs/GenerateCsr.md +4 -0
  16. data/docs/UpdateClassicKeyCertificate.md +26 -0
  17. data/docs/V2Api.md +64 -1
  18. data/lib/akeyless/api/v2_api.rb +64 -0
  19. data/lib/akeyless/api_client.rb +10 -8
  20. data/lib/akeyless/models/active_directory_payload.rb +22 -1
  21. data/lib/akeyless/models/certificate_template_info.rb +10 -1
  22. data/lib/akeyless/models/create_classic_key.rb +11 -1
  23. data/lib/akeyless/models/create_dfc_key.rb +11 -1
  24. data/lib/akeyless/models/create_key.rb +11 -1
  25. data/lib/akeyless/models/create_rotated_secret.rb +21 -1
  26. data/lib/akeyless/models/ds_producer_details.rb +10 -1
  27. data/lib/akeyless/models/gateway_create_migration.rb +24 -2
  28. data/lib/akeyless/models/gateway_update_item.rb +21 -1
  29. data/lib/akeyless/models/gateway_update_migration.rb +24 -2
  30. data/lib/akeyless/models/gcp_target_details.rb +10 -2
  31. data/lib/akeyless/models/general_config_part.rb +10 -1
  32. data/lib/akeyless/models/generate_csr.rb +30 -1
  33. data/lib/akeyless/models/update_classic_key_certificate.rb +265 -0
  34. data/lib/akeyless/version.rb +1 -1
  35. data/lib/akeyless.rb +1 -0
  36. data/spec/models/update_classic_key_certificate_spec.rb +60 -0
  37. metadata +699 -695
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1c42edac7fd51800c277096a0981adc62d6be5139ad0dd0f9844cafa5d786cc0
4
- data.tar.gz: 347e15be4c8d370844b861507cc8c25b02ac7ab9ecaae729e25b3dcf8ac4d168
3
+ metadata.gz: a15bc76f447fd408b01c39a117e7e1984e060f96b6009d93cc46d05f11c34062
4
+ data.tar.gz: 8511acf1a8ef639dbbebea1348b3db71ae46cf10d57fed1f65596565733eb1b3
5
5
  SHA512:
6
- metadata.gz: db5b615407a3da4b875edeadc486d7a02936dcdf08d128d7aa520064fd470f22d64f205921252b45b2797e57a5680627d096aceafe8c717a32cd98960f25430e
7
- data.tar.gz: b8a9c70ca723b09afae7c5f5bc4ea3a5a7ecb84b866a2a49d4502dfe1eb89c0344cfd450e7d89c259a1931e954e0c62946b73b180f003497b9d9dafa2fc65c33
6
+ metadata.gz: 164c9b33377f44600b8f2fe7293613cb20d1110096a202017bacd3099b0e726088a3d4e43adf08283b881556f549fc4e6412e47de313a6be8b0843d145fe711b
7
+ data.tar.gz: dec72e60fb10e08bde36adbb10a84e80862d65f8d3f3e6193c05025af1c92bf2c0fbc9510c2ce4eb5cefc2985543a705e29484c448f8022567115a76e5109763
data/README.md CHANGED
@@ -7,7 +7,7 @@ The purpose of this application is to provide access to Akeyless API.
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: 2.0
10
- - Package version: 3.5.1
10
+ - Package version: 3.5.3
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [http://akeyless.io](http://akeyless.io)
13
13
 
@@ -317,6 +317,7 @@ Class | Method | HTTP request | Description
317
317
  *Akeyless::V2Api* | [**update_aws_target_details**](docs/V2Api.md#update_aws_target_details) | **POST** /update-aws-target-details |
318
318
  *Akeyless::V2Api* | [**update_azure_target**](docs/V2Api.md#update_azure_target) | **POST** /update-azure-target |
319
319
  *Akeyless::V2Api* | [**update_certificate_value**](docs/V2Api.md#update_certificate_value) | **POST** /update-certificate-value |
320
+ *Akeyless::V2Api* | [**update_classic_key_certificate**](docs/V2Api.md#update_classic_key_certificate) | **POST** /update-classic-key-certificate |
320
321
  *Akeyless::V2Api* | [**update_db_target**](docs/V2Api.md#update_db_target) | **POST** /update-db-target |
321
322
  *Akeyless::V2Api* | [**update_db_target_details**](docs/V2Api.md#update_db_target_details) | **POST** /update-db-target-details |
322
323
  *Akeyless::V2Api* | [**update_dockerhub_target**](docs/V2Api.md#update_dockerhub_target) | **POST** /update-dockerhub-target |
@@ -1009,6 +1010,7 @@ Class | Method | HTTP request | Description
1009
1010
  - [Akeyless::UpdateAzureTargetOutput](docs/UpdateAzureTargetOutput.md)
1010
1011
  - [Akeyless::UpdateCertificateOutput](docs/UpdateCertificateOutput.md)
1011
1012
  - [Akeyless::UpdateCertificateValue](docs/UpdateCertificateValue.md)
1013
+ - [Akeyless::UpdateClassicKeyCertificate](docs/UpdateClassicKeyCertificate.md)
1012
1014
  - [Akeyless::UpdateDBTarget](docs/UpdateDBTarget.md)
1013
1015
  - [Akeyless::UpdateDBTargetDetails](docs/UpdateDBTargetDetails.md)
1014
1016
  - [Akeyless::UpdateDBTargetOutput](docs/UpdateDBTargetOutput.md)
@@ -9,14 +9,16 @@
9
9
  | **auto_rotate_interval_in_days** | **Integer** | | [optional] |
10
10
  | **auto_rotate_rotation_hour** | **Integer** | | [optional] |
11
11
  | **computer_base_dn** | **String** | | [optional] |
12
- | **discover_local_users** | **Boolean** | | [optional] |
12
+ | **discover_local_users** | **Boolean** | Deprecated | [optional] |
13
13
  | **discover_services** | **Boolean** | | [optional] |
14
+ | **discovery_types** | **Array<String>** | | [optional] |
14
15
  | **domain_name** | **String** | | [optional] |
15
16
  | **domain_server_targets_path_template** | **String** | | [optional] |
16
17
  | **domain_users_rotated_secrets_path_template** | **String** | | [optional] |
17
18
  | **enable_rdp_sra** | **Boolean** | | [optional] |
18
19
  | **local_users_ignore_list** | **Hash<String, Boolean>** | | [optional] |
19
20
  | **local_users_rotated_secrets_path_template** | **String** | | [optional] |
21
+ | **os_filter** | **String** | | [optional] |
20
22
  | **ssh_port** | **String** | | [optional] |
21
23
  | **targets_type** | **String** | | [optional] |
22
24
  | **user_base_dn** | **String** | | [optional] |
@@ -37,12 +39,14 @@ instance = Akeyless::ActiveDirectoryPayload.new(
37
39
  computer_base_dn: null,
38
40
  discover_local_users: null,
39
41
  discover_services: null,
42
+ discovery_types: null,
40
43
  domain_name: null,
41
44
  domain_server_targets_path_template: null,
42
45
  domain_users_rotated_secrets_path_template: null,
43
46
  enable_rdp_sra: null,
44
47
  local_users_ignore_list: null,
45
48
  local_users_rotated_secrets_path_template: null,
49
+ os_filter: null,
46
50
  ssh_port: null,
47
51
  targets_type: null,
48
52
  user_base_dn: null,
@@ -6,6 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **common_name** | **String** | | [optional] |
8
8
  | **country** | **String** | | [optional] |
9
+ | **csr_cnf_base_64** | **String** | | [optional] |
9
10
  | **digest_algo** | **String** | | [optional] |
10
11
  | **locality** | **String** | | [optional] |
11
12
  | **organization** | **String** | | [optional] |
@@ -21,6 +22,7 @@ require 'akeyless'
21
22
  instance = Akeyless::CertificateTemplateInfo.new(
22
23
  common_name: null,
23
24
  country: null,
25
+ csr_cnf_base_64: null,
24
26
  digest_algo: null,
25
27
  locality: null,
26
28
  organization: null,
@@ -13,6 +13,7 @@
13
13
  | **certificate_organization** | **String** | Organization name for the generated certificate. Relevant only for generate-self-signed-certificate. | [optional] |
14
14
  | **certificate_province** | **String** | Province name for the generated certificate. Relevant only for generate-self-signed-certificate. | [optional] |
15
15
  | **certificate_ttl** | **Integer** | TTL in days for the generated certificate. Required only for generate-self-signed-certificate. | [optional] |
16
+ | **conf_file_data** | **String** | The csr config data in base64 encoding | [optional] |
16
17
  | **delete_protection** | **String** | Protection from accidental deletion of this item [true/false] | [optional] |
17
18
  | **description** | **String** | Description of the object | [optional] |
18
19
  | **generate_self_signed_certificate** | **Boolean** | Whether to generate a self signed certificate with the key. If set, --certificate-ttl must be provided. | [optional] |
@@ -41,6 +42,7 @@ instance = Akeyless::CreateClassicKey.new(
41
42
  certificate_organization: null,
42
43
  certificate_province: null,
43
44
  certificate_ttl: null,
45
+ conf_file_data: null,
44
46
  delete_protection: null,
45
47
  description: null,
46
48
  generate_self_signed_certificate: null,
data/docs/CreateDFCKey.md CHANGED
@@ -12,6 +12,7 @@
12
12
  | **certificate_organization** | **String** | Organization name for the generated certificate. Relevant only for generate-self-signed-certificate. | [optional] |
13
13
  | **certificate_province** | **String** | Province name for the generated certificate. Relevant only for generate-self-signed-certificate. | [optional] |
14
14
  | **certificate_ttl** | **Integer** | TTL in days for the generated certificate. Required only for generate-self-signed-certificate. | [optional] |
15
+ | **conf_file_data** | **String** | The csr config data in base64 encoding | [optional] |
15
16
  | **customer_frg_id** | **String** | The customer fragment ID that will be used to create the DFC key (if empty, the key will be created independently of a customer fragment) | [optional] |
16
17
  | **delete_protection** | **String** | Protection from accidental deletion of this item [true/false] | [optional] |
17
18
  | **description** | **String** | Description of the object | [optional] |
@@ -38,6 +39,7 @@ instance = Akeyless::CreateDFCKey.new(
38
39
  certificate_organization: null,
39
40
  certificate_province: null,
40
41
  certificate_ttl: null,
42
+ conf_file_data: null,
41
43
  customer_frg_id: null,
42
44
  delete_protection: null,
43
45
  description: null,
data/docs/CreateKey.md CHANGED
@@ -12,6 +12,7 @@
12
12
  | **certificate_organization** | **String** | Organization name for the generated certificate. Relevant only for generate-self-signed-certificate. | [optional] |
13
13
  | **certificate_province** | **String** | Province name for the generated certificate. Relevant only for generate-self-signed-certificate. | [optional] |
14
14
  | **certificate_ttl** | **Integer** | TTL in days for the generated certificate. Required only for generate-self-signed-certificate. | [optional] |
15
+ | **conf_file_data** | **String** | The csr config data in base64 encoding | [optional] |
15
16
  | **customer_frg_id** | **String** | The customer fragment ID that will be used to create the key (if empty, the key will be created independently of a customer fragment) | [optional] |
16
17
  | **delete_protection** | **String** | Protection from accidental deletion of this item [true/false] | [optional] |
17
18
  | **description** | **String** | Description of the object | [optional] |
@@ -38,6 +39,7 @@ instance = Akeyless::CreateKey.new(
38
39
  certificate_organization: null,
39
40
  certificate_province: null,
40
41
  certificate_ttl: null,
42
+ conf_file_data: null,
41
43
  customer_frg_id: null,
42
44
  delete_protection: null,
43
45
  description: null,
@@ -14,6 +14,8 @@
14
14
  | **delete_protection** | **String** | Protection from accidental deletion of this item [true/false] | [optional] |
15
15
  | **description** | **String** | Description of the object | [optional] |
16
16
  | **gcp_key** | **String** | Base64-encoded service account private key text | [optional] |
17
+ | **gcp_service_account_email** | **String** | The email of the gcp service account to rotate | [optional] |
18
+ | **gcp_service_account_key_id** | **String** | The key id of the gcp service account to rotate | [optional] |
17
19
  | **json** | **Boolean** | Set output format to JSON | [optional][default to false] |
18
20
  | **key** | **String** | The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) | [optional] |
19
21
  | **metadata** | **String** | Deprecated - use description | [optional] |
@@ -66,6 +68,8 @@ instance = Akeyless::CreateRotatedSecret.new(
66
68
  delete_protection: null,
67
69
  description: null,
68
70
  gcp_key: null,
71
+ gcp_service_account_email: null,
72
+ gcp_service_account_key_id: null,
69
73
  json: null,
70
74
  key: null,
71
75
  metadata: null,
@@ -90,6 +90,7 @@
90
90
  | **gcp_service_account_email** | **String** | GCPServiceAccountEmail overrides the deprecated field from the target | [optional] |
91
91
  | **gcp_service_account_key** | **String** | | [optional] |
92
92
  | **gcp_service_account_key_base64** | **String** | | [optional] |
93
+ | **gcp_service_account_key_id** | **String** | | [optional] |
93
94
  | **gcp_service_account_type** | **String** | | [optional] |
94
95
  | **gcp_tmp_service_account_name** | **String** | | [optional] |
95
96
  | **gcp_token_lifetime** | **String** | | [optional] |
@@ -314,6 +315,7 @@ instance = Akeyless::DSProducerDetails.new(
314
315
  gcp_service_account_email: null,
315
316
  gcp_service_account_key: null,
316
317
  gcp_service_account_key_base64: null,
318
+ gcp_service_account_key_id: null,
317
319
  gcp_service_account_type: null,
318
320
  gcp_tmp_service_account_name: null,
319
321
  gcp_token_lifetime: null,
@@ -10,13 +10,15 @@
10
10
  | **_1password_url** | **String** | 1Password api container url | [optional] |
11
11
  | **_1password_vaults** | **Array<String>** | 1Password list of vault to get the items from | [optional] |
12
12
  | **ad_discover_services** | **String** | Enable/Disable discovery of Windows services from each domain server as part of the SSH/Windows Rotated Secrets. Default is false. (Relevant only for Active Directory migration) | [optional][default to 'false'] |
13
+ | **ad_discovery_types** | **Array<String>** | Set migration discovery types (domain-users, computers, local-users). (Relevant only for Active Directory migration) | [optional] |
14
+ | **ad_os_filter** | **String** | Filter by Operating System to run the migration, can be used with wildcards, e.g. SRV20* (Relevant only for Active Directory migration) | [optional] |
13
15
  | **ad_ssh_port** | **String** | Set the SSH Port for further connection to the domain servers. Default is port 22 (Relevant only for Active Directory migration) | [optional][default to '22'] |
14
16
  | **ad_targets_type** | **String** | Set the target type of the domain servers [ssh/windows](Relevant only for Active Directory migration) | [optional][default to 'windows'] |
15
17
  | **ad_winrm_over_http** | **String** | Use WinRM over HTTP, by default runs over HTTPS | [optional][default to 'false'] |
16
18
  | **ad_winrm_port** | **String** | Set the WinRM Port for further connection to the domain servers. Default is 5986 (Relevant only for Active Directory migration) | [optional][default to '5986'] |
17
19
  | **ad_auto_rotate** | **String** | Enable/Disable automatic/recurrent rotation for migrated secrets. Default is false: only manual rotation is allowed for migrated secrets. If set to true, this command should be combined with --ad-rotation-interval and --ad-rotation-hour parameters (Relevant only for Active Directory migration) | [optional] |
18
20
  | **ad_computer_base_dn** | **String** | Distinguished Name of Computer objects (servers) to search in Active Directory e.g.: CN=Computers,DC=example,DC=com (Relevant only for Active Directory migration) | [optional] |
19
- | **ad_discover_local_users** | **String** | Enable/Disable discovery of local users from each domain server and migrate them as SSH/Windows Rotated Secrets. Default is false: only domain users will be migrated. Discovery of local users might require further installation of SSH on the servers, based on the supplied computer base DN. This will be implemented automatically as part of the migration process (Relevant only for Active Directory migration) | [optional] |
21
+ | **ad_discover_local_users** | **String** | Enable/Disable discovery of local users from each domain server and migrate them as SSH/Windows Rotated Secrets. Default is false: only domain users will be migrated. Discovery of local users might require further installation of SSH on the servers, based on the supplied computer base DN. This will be implemented automatically as part of the migration process (Relevant only for Active Directory migration) Deprecated: use AdDiscoverTypes | [optional] |
20
22
  | **ad_domain_name** | **String** | Active Directory Domain Name (Relevant only for Active Directory migration) | [optional] |
21
23
  | **ad_domain_users_path_template** | **String** | Path location template for migrating domain users as Rotated Secrets e.g.: .../DomainUsers/{{USERNAME}} (Relevant only for Active Directory migration) | [optional] |
22
24
  | **ad_local_users_ignore** | **String** | Comma-separated list of Local Users which should not be migrated (Relevant only for Active Directory migration) | [optional] |
@@ -76,6 +78,8 @@ instance = Akeyless::GatewayCreateMigration.new(
76
78
  _1password_url: null,
77
79
  _1password_vaults: null,
78
80
  ad_discover_services: null,
81
+ ad_discovery_types: null,
82
+ ad_os_filter: null,
79
83
  ad_ssh_port: null,
80
84
  ad_targets_type: null,
81
85
  ad_winrm_over_http: null,
@@ -12,6 +12,8 @@
12
12
  | **delete_protection** | **String** | Protection from accidental deletion of this item [true/false] | [optional] |
13
13
  | **description** | **String** | Description of the object | [optional][default to 'default_metadata'] |
14
14
  | **gcp_key** | **String** | Base64-encoded service account private key text | [optional] |
15
+ | **gcp_service_account_email** | **String** | The email of the gcp service account to rotate | [optional] |
16
+ | **gcp_service_account_key_id** | **String** | The key id of the gcp service account to rotate | [optional] |
15
17
  | **json** | **Boolean** | Set output format to JSON | [optional][default to false] |
16
18
  | **keep_prev_version** | **String** | Whether to keep previous version [true/false]. (relevant only for --type=rotated-secret). If not set, use default according to account settings | [optional] |
17
19
  | **key** | **String** | The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) | [optional] |
@@ -43,6 +45,8 @@ instance = Akeyless::GatewayUpdateItem.new(
43
45
  delete_protection: null,
44
46
  description: null,
45
47
  gcp_key: null,
48
+ gcp_service_account_email: null,
49
+ gcp_service_account_key_id: null,
46
50
  json: null,
47
51
  keep_prev_version: null,
48
52
  key: null,
@@ -10,13 +10,15 @@
10
10
  | **_1password_url** | **String** | 1Password api container url | [optional] |
11
11
  | **_1password_vaults** | **Array<String>** | 1Password list of vault to get the items from | [optional] |
12
12
  | **ad_discover_services** | **String** | Enable/Disable discovery of Windows services from each domain server as part of the SSH/Windows Rotated Secrets. Default is false. (Relevant only for Active Directory migration) | [optional][default to 'false'] |
13
+ | **ad_discovery_types** | **Array<String>** | Set migration discovery types (domain-users, computers, local-users). (Relevant only for Active Directory migration) | [optional] |
14
+ | **ad_os_filter** | **String** | Filter by Operating System to run the migration, can be used with wildcards, e.g. SRV20* (Relevant only for Active Directory migration) | [optional] |
13
15
  | **ad_ssh_port** | **String** | Set the SSH Port for further connection to the domain servers. Default is port 22 (Relevant only for Active Directory migration) | [optional][default to '22'] |
14
16
  | **ad_targets_type** | **String** | Set the target type of the domain servers [ssh/windows](Relevant only for Active Directory migration) | [optional][default to 'windows'] |
15
17
  | **ad_winrm_over_http** | **String** | Use WinRM over HTTP, by default runs over HTTPS | [optional][default to 'false'] |
16
18
  | **ad_winrm_port** | **String** | Set the WinRM Port for further connection to the domain servers. Default is 5986 (Relevant only for Active Directory migration) | [optional][default to '5986'] |
17
19
  | **ad_auto_rotate** | **String** | Enable/Disable automatic/recurrent rotation for migrated secrets. Default is false: only manual rotation is allowed for migrated secrets. If set to true, this command should be combined with --ad-rotation-interval and --ad-rotation-hour parameters (Relevant only for Active Directory migration) | [optional] |
18
20
  | **ad_computer_base_dn** | **String** | Distinguished Name of Computer objects (servers) to search in Active Directory e.g.: CN=Computers,DC=example,DC=com (Relevant only for Active Directory migration) | [optional] |
19
- | **ad_discover_local_users** | **String** | Enable/Disable discovery of local users from each domain server and migrate them as SSH/Windows Rotated Secrets. Default is false: only domain users will be migrated. Discovery of local users might require further installation of SSH on the servers, based on the supplied computer base DN. This will be implemented automatically as part of the migration process (Relevant only for Active Directory migration) | [optional] |
21
+ | **ad_discover_local_users** | **String** | Enable/Disable discovery of local users from each domain server and migrate them as SSH/Windows Rotated Secrets. Default is false: only domain users will be migrated. Discovery of local users might require further installation of SSH on the servers, based on the supplied computer base DN. This will be implemented automatically as part of the migration process (Relevant only for Active Directory migration) Deprecated: use AdDiscoverTypes | [optional] |
20
22
  | **ad_domain_name** | **String** | Active Directory Domain Name (Relevant only for Active Directory migration) | [optional] |
21
23
  | **ad_domain_users_path_template** | **String** | Path location template for migrating domain users as Rotated Secrets e.g.: .../DomainUsers/{{USERNAME}} (Relevant only for Active Directory migration) | [optional] |
22
24
  | **ad_local_users_ignore** | **String** | Comma-separated list of Local Users which should not be migrated (Relevant only for Active Directory migration) | [optional] |
@@ -77,6 +79,8 @@ instance = Akeyless::GatewayUpdateMigration.new(
77
79
  _1password_url: null,
78
80
  _1password_vaults: null,
79
81
  ad_discover_services: null,
82
+ ad_discovery_types: null,
83
+ ad_os_filter: null,
80
84
  ad_ssh_port: null,
81
85
  ad_targets_type: null,
82
86
  ad_winrm_over_http: null,
@@ -4,9 +4,10 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **gcp_service_account_email** | **String** | deprecated | [optional] |
7
+ | **gcp_service_account_email** | **String** | | [optional] |
8
8
  | **gcp_service_account_key** | **String** | | [optional] |
9
9
  | **gcp_service_account_key_base64** | **String** | | [optional] |
10
+ | **gcp_service_account_key_id** | **String** | | [optional] |
10
11
  | **use_gw_cloud_identity** | **Boolean** | | [optional] |
11
12
 
12
13
  ## Example
@@ -18,6 +19,7 @@ instance = Akeyless::GcpTargetDetails.new(
18
19
  gcp_service_account_email: null,
19
20
  gcp_service_account_key: null,
20
21
  gcp_service_account_key_base64: null,
22
+ gcp_service_account_key_id: null,
21
23
  use_gw_cloud_identity: null
22
24
  )
23
25
  ```
@@ -13,6 +13,7 @@
13
13
  | **enable_tls_curl** | **Boolean** | | [optional] |
14
14
  | **enable_tls_hvp** | **Boolean** | | [optional] |
15
15
  | **gw_cluster_url** | **String** | | [optional] |
16
+ | **notify_on_status_change** | **Boolean** | | [optional] |
16
17
  | **tcp_port** | **String** | | [optional] |
17
18
  | **tls_cert** | **String** | | [optional] |
18
19
  | **tls_key** | **String** | | [optional] |
@@ -32,6 +33,7 @@ instance = Akeyless::GeneralConfigPart.new(
32
33
  enable_tls_curl: null,
33
34
  enable_tls_hvp: null,
34
35
  gw_cluster_url: null,
36
+ notify_on_status_change: null,
35
37
  tcp_port: null,
36
38
  tls_cert: null,
37
39
  tls_key: null
data/docs/GenerateCsr.md CHANGED
@@ -16,8 +16,10 @@
16
16
  | **generate_key** | **Boolean** | Generate a new classic key for the csr | [optional] |
17
17
  | **ip_addresses** | **String** | A comma-separated list of ip addresses alternative names | [optional] |
18
18
  | **json** | **Boolean** | Set output format to JSON | [optional][default to false] |
19
+ | **key_type** | **String** | The type of the key to generate (classic-key/dfc) | [default to 'classic-key'] |
19
20
  | **name** | **String** | The classic key name | |
20
21
  | **org** | **String** | The organization to be included in the CSR certificate | [optional] |
22
+ | **split_level** | **Integer** | The number of fragments that the item will be split into (not includes customer fragment) | [optional][default to 3] |
21
23
  | **state** | **String** | The state to be included in the CSR certificate | [optional] |
22
24
  | **token** | **String** | Authentication token (see `/auth` and `/configure`) | [optional] |
23
25
  | **uid_token** | **String** | The universal identity token, Required only for universal_identity authentication | [optional] |
@@ -41,8 +43,10 @@ instance = Akeyless::GenerateCsr.new(
41
43
  generate_key: null,
42
44
  ip_addresses: null,
43
45
  json: null,
46
+ key_type: null,
44
47
  name: null,
45
48
  org: null,
49
+ split_level: null,
46
50
  state: null,
47
51
  token: null,
48
52
  uid_token: null,
@@ -0,0 +1,26 @@
1
+ # Akeyless::UpdateClassicKeyCertificate
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **cert_file_data** | **String** | PEM Certificate in a Base64 format. Used for updating RSA keys' certificates. | [optional] |
8
+ | **json** | **Boolean** | Set output format to JSON | [optional][default to false] |
9
+ | **name** | **String** | ClassicKey name | |
10
+ | **token** | **String** | Authentication token (see `/auth` and `/configure`) | [optional] |
11
+ | **uid_token** | **String** | The universal identity token, Required only for universal_identity authentication | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'akeyless'
17
+
18
+ instance = Akeyless::UpdateClassicKeyCertificate.new(
19
+ cert_file_data: null,
20
+ json: null,
21
+ name: null,
22
+ token: null,
23
+ uid_token: null
24
+ )
25
+ ```
26
+
data/docs/V2Api.md CHANGED
@@ -262,6 +262,7 @@ All URIs are relative to *https://api.akeyless.io*
262
262
  | [**update_aws_target_details**](V2Api.md#update_aws_target_details) | **POST** /update-aws-target-details | |
263
263
  | [**update_azure_target**](V2Api.md#update_azure_target) | **POST** /update-azure-target | |
264
264
  | [**update_certificate_value**](V2Api.md#update_certificate_value) | **POST** /update-certificate-value | |
265
+ | [**update_classic_key_certificate**](V2Api.md#update_classic_key_certificate) | **POST** /update-classic-key-certificate | |
265
266
  | [**update_db_target**](V2Api.md#update_db_target) | **POST** /update-db-target | |
266
267
  | [**update_db_target_details**](V2Api.md#update_db_target_details) | **POST** /update-db-target-details | |
267
268
  | [**update_dockerhub_target**](V2Api.md#update_dockerhub_target) | **POST** /update-dockerhub-target | |
@@ -10928,7 +10929,7 @@ require 'time'
10928
10929
  require 'akeyless'
10929
10930
 
10930
10931
  api_instance = Akeyless::V2Api.new
10931
- body = Akeyless::GenerateCsr.new({common_name: 'common_name_example', name: 'name_example'}) # GenerateCsr |
10932
+ body = Akeyless::GenerateCsr.new({common_name: 'common_name_example', key_type: 'key_type_example', name: 'name_example'}) # GenerateCsr |
10932
10933
 
10933
10934
  begin
10934
10935
 
@@ -16329,6 +16330,68 @@ No authorization required
16329
16330
  - **Accept**: application/json
16330
16331
 
16331
16332
 
16333
+ ## update_classic_key_certificate
16334
+
16335
+ > Object update_classic_key_certificate(body)
16336
+
16337
+
16338
+
16339
+ ### Examples
16340
+
16341
+ ```ruby
16342
+ require 'time'
16343
+ require 'akeyless'
16344
+
16345
+ api_instance = Akeyless::V2Api.new
16346
+ body = Akeyless::UpdateClassicKeyCertificate.new({name: 'name_example'}) # UpdateClassicKeyCertificate |
16347
+
16348
+ begin
16349
+
16350
+ result = api_instance.update_classic_key_certificate(body)
16351
+ p result
16352
+ rescue Akeyless::ApiError => e
16353
+ puts "Error when calling V2Api->update_classic_key_certificate: #{e}"
16354
+ end
16355
+ ```
16356
+
16357
+ #### Using the update_classic_key_certificate_with_http_info variant
16358
+
16359
+ This returns an Array which contains the response data, status code and headers.
16360
+
16361
+ > <Array(Object, Integer, Hash)> update_classic_key_certificate_with_http_info(body)
16362
+
16363
+ ```ruby
16364
+ begin
16365
+
16366
+ data, status_code, headers = api_instance.update_classic_key_certificate_with_http_info(body)
16367
+ p status_code # => 2xx
16368
+ p headers # => { ... }
16369
+ p data # => Object
16370
+ rescue Akeyless::ApiError => e
16371
+ puts "Error when calling V2Api->update_classic_key_certificate_with_http_info: #{e}"
16372
+ end
16373
+ ```
16374
+
16375
+ ### Parameters
16376
+
16377
+ | Name | Type | Description | Notes |
16378
+ | ---- | ---- | ----------- | ----- |
16379
+ | **body** | [**UpdateClassicKeyCertificate**](UpdateClassicKeyCertificate.md) | | |
16380
+
16381
+ ### Return type
16382
+
16383
+ **Object**
16384
+
16385
+ ### Authorization
16386
+
16387
+ No authorization required
16388
+
16389
+ ### HTTP request headers
16390
+
16391
+ - **Content-Type**: application/json
16392
+ - **Accept**: application/json
16393
+
16394
+
16332
16395
  ## update_db_target
16333
16396
 
16334
16397
  > <UpdateDBTargetOutput> update_db_target(body)
@@ -16441,6 +16441,70 @@ module Akeyless
16441
16441
  return data, status_code, headers
16442
16442
  end
16443
16443
 
16444
+ # @param body [UpdateClassicKeyCertificate]
16445
+ # @param [Hash] opts the optional parameters
16446
+ # @return [Object]
16447
+ def update_classic_key_certificate(body, opts = {})
16448
+ data, _status_code, _headers = update_classic_key_certificate_with_http_info(body, opts)
16449
+ data
16450
+ end
16451
+
16452
+ # @param body [UpdateClassicKeyCertificate]
16453
+ # @param [Hash] opts the optional parameters
16454
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
16455
+ def update_classic_key_certificate_with_http_info(body, opts = {})
16456
+ if @api_client.config.debugging
16457
+ @api_client.config.logger.debug 'Calling API: V2Api.update_classic_key_certificate ...'
16458
+ end
16459
+ # verify the required parameter 'body' is set
16460
+ if @api_client.config.client_side_validation && body.nil?
16461
+ fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.update_classic_key_certificate"
16462
+ end
16463
+ # resource path
16464
+ local_var_path = '/update-classic-key-certificate'
16465
+
16466
+ # query parameters
16467
+ query_params = opts[:query_params] || {}
16468
+
16469
+ # header parameters
16470
+ header_params = opts[:header_params] || {}
16471
+ # HTTP header 'Accept' (if needed)
16472
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
16473
+ # HTTP header 'Content-Type'
16474
+ content_type = @api_client.select_header_content_type(['application/json'])
16475
+ if !content_type.nil?
16476
+ header_params['Content-Type'] = content_type
16477
+ end
16478
+
16479
+ # form parameters
16480
+ form_params = opts[:form_params] || {}
16481
+
16482
+ # http body (model)
16483
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
16484
+
16485
+ # return_type
16486
+ return_type = opts[:debug_return_type] || 'Object'
16487
+
16488
+ # auth_names
16489
+ auth_names = opts[:debug_auth_names] || []
16490
+
16491
+ new_options = opts.merge(
16492
+ :operation => :"V2Api.update_classic_key_certificate",
16493
+ :header_params => header_params,
16494
+ :query_params => query_params,
16495
+ :form_params => form_params,
16496
+ :body => post_body,
16497
+ :auth_names => auth_names,
16498
+ :return_type => return_type
16499
+ )
16500
+
16501
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
16502
+ if @api_client.config.debugging
16503
+ @api_client.config.logger.debug "API called: V2Api#update_classic_key_certificate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
16504
+ end
16505
+ return data, status_code, headers
16506
+ end
16507
+
16444
16508
  # @param body [UpdateDBTarget]
16445
16509
  # @param [Hash] opts the optional parameters
16446
16510
  # @return [UpdateDBTargetOutput]
@@ -187,14 +187,16 @@ module Akeyless
187
187
  chunk.force_encoding(encoding)
188
188
  tempfile.write(chunk)
189
189
  end
190
- request.on_complete do |response|
191
- if tempfile
192
- tempfile.close
193
- @config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
194
- "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
195
- "will be deleted automatically with GC. It's also recommended to delete the temp file "\
196
- "explicitly with `tempfile.delete`"
197
- end
190
+ # run the request to ensure the tempfile is created successfully before returning it
191
+ request.run
192
+ if tempfile
193
+ tempfile.close
194
+ @config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
195
+ "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
196
+ "will be deleted automatically with GC. It's also recommended to delete the temp file "\
197
+ "explicitly with `tempfile.delete`"
198
+ else
199
+ fail ApiError.new("Failed to create the tempfile based on the HTTP response from the server: #{request.inspect}")
198
200
  end
199
201
 
200
202
  tempfile
@@ -25,10 +25,13 @@ module Akeyless
25
25
 
26
26
  attr_accessor :computer_base_dn
27
27
 
28
+ # Deprecated
28
29
  attr_accessor :discover_local_users
29
30
 
30
31
  attr_accessor :discover_services
31
32
 
33
+ attr_accessor :discovery_types
34
+
32
35
  attr_accessor :domain_name
33
36
 
34
37
  attr_accessor :domain_server_targets_path_template
@@ -41,6 +44,8 @@ module Akeyless
41
44
 
42
45
  attr_accessor :local_users_rotated_secrets_path_template
43
46
 
47
+ attr_accessor :os_filter
48
+
44
49
  attr_accessor :ssh_port
45
50
 
46
51
  attr_accessor :targets_type
@@ -63,12 +68,14 @@ module Akeyless
63
68
  :'computer_base_dn' => :'computer_base_dn',
64
69
  :'discover_local_users' => :'discover_local_users',
65
70
  :'discover_services' => :'discover_services',
71
+ :'discovery_types' => :'discovery_types',
66
72
  :'domain_name' => :'domain_name',
67
73
  :'domain_server_targets_path_template' => :'domain_server_targets_path_template',
68
74
  :'domain_users_rotated_secrets_path_template' => :'domain_users_rotated_secrets_path_template',
69
75
  :'enable_rdp_sra' => :'enable_rdp_sra',
70
76
  :'local_users_ignore_list' => :'local_users_ignore_list',
71
77
  :'local_users_rotated_secrets_path_template' => :'local_users_rotated_secrets_path_template',
78
+ :'os_filter' => :'os_filter',
72
79
  :'ssh_port' => :'ssh_port',
73
80
  :'targets_type' => :'targets_type',
74
81
  :'user_base_dn' => :'user_base_dn',
@@ -93,12 +100,14 @@ module Akeyless
93
100
  :'computer_base_dn' => :'String',
94
101
  :'discover_local_users' => :'Boolean',
95
102
  :'discover_services' => :'Boolean',
103
+ :'discovery_types' => :'Array<String>',
96
104
  :'domain_name' => :'String',
97
105
  :'domain_server_targets_path_template' => :'String',
98
106
  :'domain_users_rotated_secrets_path_template' => :'String',
99
107
  :'enable_rdp_sra' => :'Boolean',
100
108
  :'local_users_ignore_list' => :'Hash<String, Boolean>',
101
109
  :'local_users_rotated_secrets_path_template' => :'String',
110
+ :'os_filter' => :'String',
102
111
  :'ssh_port' => :'String',
103
112
  :'targets_type' => :'String',
104
113
  :'user_base_dn' => :'String',
@@ -157,6 +166,12 @@ module Akeyless
157
166
  self.discover_services = attributes[:'discover_services']
158
167
  end
159
168
 
169
+ if attributes.key?(:'discovery_types')
170
+ if (value = attributes[:'discovery_types']).is_a?(Array)
171
+ self.discovery_types = value
172
+ end
173
+ end
174
+
160
175
  if attributes.key?(:'domain_name')
161
176
  self.domain_name = attributes[:'domain_name']
162
177
  end
@@ -183,6 +198,10 @@ module Akeyless
183
198
  self.local_users_rotated_secrets_path_template = attributes[:'local_users_rotated_secrets_path_template']
184
199
  end
185
200
 
201
+ if attributes.key?(:'os_filter')
202
+ self.os_filter = attributes[:'os_filter']
203
+ end
204
+
186
205
  if attributes.key?(:'ssh_port')
187
206
  self.ssh_port = attributes[:'ssh_port']
188
207
  end
@@ -237,12 +256,14 @@ module Akeyless
237
256
  computer_base_dn == o.computer_base_dn &&
238
257
  discover_local_users == o.discover_local_users &&
239
258
  discover_services == o.discover_services &&
259
+ discovery_types == o.discovery_types &&
240
260
  domain_name == o.domain_name &&
241
261
  domain_server_targets_path_template == o.domain_server_targets_path_template &&
242
262
  domain_users_rotated_secrets_path_template == o.domain_users_rotated_secrets_path_template &&
243
263
  enable_rdp_sra == o.enable_rdp_sra &&
244
264
  local_users_ignore_list == o.local_users_ignore_list &&
245
265
  local_users_rotated_secrets_path_template == o.local_users_rotated_secrets_path_template &&
266
+ os_filter == o.os_filter &&
246
267
  ssh_port == o.ssh_port &&
247
268
  targets_type == o.targets_type &&
248
269
  user_base_dn == o.user_base_dn &&
@@ -260,7 +281,7 @@ module Akeyless
260
281
  # Calculates hash code according to all attributes.
261
282
  # @return [Integer] Hash code
262
283
  def hash
263
- [active_directory_target_id, auto_rotate, auto_rotate_interval_in_days, auto_rotate_rotation_hour, computer_base_dn, discover_local_users, discover_services, domain_name, domain_server_targets_path_template, domain_users_rotated_secrets_path_template, enable_rdp_sra, local_users_ignore_list, local_users_rotated_secrets_path_template, ssh_port, targets_type, user_base_dn, user_groups, winrm_over_http, winrm_port].hash
284
+ [active_directory_target_id, auto_rotate, auto_rotate_interval_in_days, auto_rotate_rotation_hour, computer_base_dn, discover_local_users, discover_services, discovery_types, domain_name, domain_server_targets_path_template, domain_users_rotated_secrets_path_template, enable_rdp_sra, local_users_ignore_list, local_users_rotated_secrets_path_template, os_filter, ssh_port, targets_type, user_base_dn, user_groups, winrm_over_http, winrm_port].hash
264
285
  end
265
286
 
266
287
  # Builds the object from hash