akeyless 2.16.11 → 2.16.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/docs/AccountGeneralSettings.md +18 -0
- data/docs/CreateSecret.md +11 -19
- data/docs/DSProducerDetails.md +2 -0
- data/docs/DataProtectionSection.md +18 -0
- data/docs/DeleteItem.md +2 -2
- data/docs/GatewayCreateK8SAuthConfig.md +1 -1
- data/docs/GatewayUpdateK8SAuthConfig.md +1 -1
- data/docs/GetAccountSettingsCommandOutput.md +2 -0
- data/docs/GetSecretValue.md +2 -2
- data/docs/ListItems.md +2 -2
- data/docs/LogForwardingConfigPart.md +2 -0
- data/docs/TargetTypeDetailsInput.md +2 -0
- data/docs/UpdateAccountSettings.md +2 -0
- data/docs/UpdateItem.md +2 -2
- data/docs/UpdateSecretVal.md +11 -9
- data/lib/akeyless/models/account_general_settings.rb +220 -0
- data/lib/akeyless/models/create_secret.rb +50 -90
- data/lib/akeyless/models/data_protection_section.rb +220 -0
- data/lib/akeyless/models/delete_item.rb +11 -11
- data/lib/akeyless/models/ds_producer_details.rb +10 -1
- data/lib/akeyless/models/gateway_create_k8_s_auth_config.rb +2 -0
- data/lib/akeyless/models/gateway_update_k8_s_auth_config.rb +2 -0
- data/lib/akeyless/models/get_account_settings_command_output.rb +10 -1
- data/lib/akeyless/models/get_secret_value.rb +7 -7
- data/lib/akeyless/models/list_items.rb +11 -11
- data/lib/akeyless/models/log_forwarding_config_part.rb +10 -1
- data/lib/akeyless/models/target_type_details_input.rb +10 -1
- data/lib/akeyless/models/update_account_settings.rb +11 -1
- data/lib/akeyless/models/update_item.rb +11 -11
- data/lib/akeyless/models/update_secret_val.rb +52 -42
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +2 -0
- data/spec/models/account_general_settings_spec.rb +34 -0
- data/spec/models/data_protection_section_spec.rb +34 -0
- metadata +507 -499
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a98455fa5aab072c242a049eb4abbb735c5fcef3f096d53000ae02ad061af0e5
|
4
|
+
data.tar.gz: 114b4912efa6341204808edc9c6b76cd89ed85a7751f50ac43ff0d685bce4e39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f6535cbc54bf16269e5e8820a0ac9bbe90c29d50cb2f0b699d986b4c2104ed98791c79063485fa9099f2a8ae0763e030feb0aadd8c49c5692ac23cc92b3c54d
|
7
|
+
data.tar.gz: 22fdc0fee5408be99e6c9c20f0565a1346ba6b50fd20b77c5ca5949dab8042b5b3b0e08dee1769cd83ad87a9205bf10e825949b22fe77f0411bf8f0db2a82e67
|
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: 2.16.
|
10
|
+
- Package version: 2.16.12
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [http://akeyless.io](http://akeyless.io)
|
13
13
|
|
@@ -301,6 +301,7 @@ Class | Method | HTTP request | Description
|
|
301
301
|
- [Akeyless::AWSIAMAccessRules](docs/AWSIAMAccessRules.md)
|
302
302
|
- [Akeyless::AWSPayload](docs/AWSPayload.md)
|
303
303
|
- [Akeyless::AWSSecretsMigration](docs/AWSSecretsMigration.md)
|
304
|
+
- [Akeyless::AccountGeneralSettings](docs/AccountGeneralSettings.md)
|
304
305
|
- [Akeyless::AccountObjectVersionSettingsOutput](docs/AccountObjectVersionSettingsOutput.md)
|
305
306
|
- [Akeyless::AdminsConfigPart](docs/AdminsConfigPart.md)
|
306
307
|
- [Akeyless::AkeylessGatewayConfig](docs/AkeylessGatewayConfig.md)
|
@@ -408,6 +409,7 @@ Class | Method | HTTP request | Description
|
|
408
409
|
- [Akeyless::CustomerFragmentsJson](docs/CustomerFragmentsJson.md)
|
409
410
|
- [Akeyless::CustomerFullAddress](docs/CustomerFullAddress.md)
|
410
411
|
- [Akeyless::DSProducerDetails](docs/DSProducerDetails.md)
|
412
|
+
- [Akeyless::DataProtectionSection](docs/DataProtectionSection.md)
|
411
413
|
- [Akeyless::DatadogForwardingConfig](docs/DatadogForwardingConfig.md)
|
412
414
|
- [Akeyless::Decrypt](docs/Decrypt.md)
|
413
415
|
- [Akeyless::DecryptFile](docs/DecryptFile.md)
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# Akeyless::AccountGeneralSettings
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **data_protection_section** | [**DataProtectionSection**](DataProtectionSection.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'akeyless'
|
13
|
+
|
14
|
+
instance = Akeyless::AccountGeneralSettings.new(
|
15
|
+
data_protection_section: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
data/docs/CreateSecret.md
CHANGED
@@ -4,13 +4,15 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **
|
7
|
+
| **accessibility** | **String** | for personal password manager | [optional] |
|
8
8
|
| **delete_protection** | **String** | Protection from accidental deletion of this item | [optional] |
|
9
|
-
| **item_accessibility** | **String** | for personal password manager | [optional] |
|
10
9
|
| **metadata** | **String** | Metadata about the secret | [optional] |
|
11
10
|
| **multiline_value** | **Boolean** | The provided value is a multiline value (separated by '\\n') | [optional] |
|
12
11
|
| **name** | **String** | Secret name | |
|
13
|
-
| **
|
12
|
+
| **password_manager_custom_field** | **Hash<String, String>** | For Password Management use, additional fields | [optional] |
|
13
|
+
| **password_manager_inject_url** | **String** | For Password Management use, reflect the website context | [optional] |
|
14
|
+
| **password_manager_password** | **String** | For Password Management use, additional fields | [optional] |
|
15
|
+
| **password_manager_username** | **String** | For Password Management use | [optional] |
|
14
16
|
| **protection_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] |
|
15
17
|
| **secure_access_bastion_issuer** | **String** | | [optional] |
|
16
18
|
| **secure_access_enable** | **String** | | [optional] |
|
@@ -24,13 +26,7 @@
|
|
24
26
|
| **token** | **String** | Authentication token (see `/auth` and `/configure`) | [optional] |
|
25
27
|
| **type** | **String** | For Password Management use, reflect the website context | [optional] |
|
26
28
|
| **uid_token** | **String** | The universal identity token, Required only for universal_identity authentication | [optional] |
|
27
|
-
| **use_lower_letters** | **String** | For PasswordPolicy use | [optional] |
|
28
|
-
| **use_numbers** | **String** | For PasswordPolicy use | [optional] |
|
29
|
-
| **use_special_characters** | **String** | For PasswordPolicy use | [optional] |
|
30
|
-
| **use_capital_letters** | **String** | For PasswordPolicy use | [optional] |
|
31
|
-
| **username** | **String** | For Password Management use | [optional] |
|
32
29
|
| **value** | **String** | The secret value | |
|
33
|
-
| **website** | **String** | For Password Management use, reflect the website context | [optional] |
|
34
30
|
|
35
31
|
## Example
|
36
32
|
|
@@ -38,13 +34,15 @@
|
|
38
34
|
require 'akeyless'
|
39
35
|
|
40
36
|
instance = Akeyless::CreateSecret.new(
|
41
|
-
|
37
|
+
accessibility: null,
|
42
38
|
delete_protection: null,
|
43
|
-
item_accessibility: null,
|
44
39
|
metadata: null,
|
45
40
|
multiline_value: null,
|
46
41
|
name: null,
|
47
|
-
|
42
|
+
password_manager_custom_field: null,
|
43
|
+
password_manager_inject_url: null,
|
44
|
+
password_manager_password: null,
|
45
|
+
password_manager_username: null,
|
48
46
|
protection_key: null,
|
49
47
|
secure_access_bastion_issuer: null,
|
50
48
|
secure_access_enable: null,
|
@@ -58,13 +56,7 @@ instance = Akeyless::CreateSecret.new(
|
|
58
56
|
token: null,
|
59
57
|
type: null,
|
60
58
|
uid_token: null,
|
61
|
-
|
62
|
-
use_numbers: null,
|
63
|
-
use_special_characters: null,
|
64
|
-
use_capital_letters: null,
|
65
|
-
username: null,
|
66
|
-
value: null,
|
67
|
-
website: null
|
59
|
+
value: null
|
68
60
|
)
|
69
61
|
```
|
70
62
|
|
data/docs/DSProducerDetails.md
CHANGED
@@ -96,6 +96,7 @@
|
|
96
96
|
| **hanadb_revocation_statements** | **String** | | [optional] |
|
97
97
|
| **host_name** | **String** | | [optional] |
|
98
98
|
| **host_port** | **String** | | [optional] |
|
99
|
+
| **implementation_type** | **String** | | [optional] |
|
99
100
|
| **is_fixed_user** | **String** | | [optional] |
|
100
101
|
| **item_targets_assoc** | [**Array<ItemTargetAssociation>**](ItemTargetAssociation.md) | | [optional] |
|
101
102
|
| **k8s_bearer_token** | **String** | | [optional] |
|
@@ -277,6 +278,7 @@ instance = Akeyless::DSProducerDetails.new(
|
|
277
278
|
hanadb_revocation_statements: null,
|
278
279
|
host_name: null,
|
279
280
|
host_port: null,
|
281
|
+
implementation_type: null,
|
280
282
|
is_fixed_user: null,
|
281
283
|
item_targets_assoc: null,
|
282
284
|
k8s_bearer_token: null,
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# Akeyless::DataProtectionSection
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **enable_classic_key_protection** | **Boolean** | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'akeyless'
|
13
|
+
|
14
|
+
instance = Akeyless::DataProtectionSection.new(
|
15
|
+
enable_classic_key_protection: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
data/docs/DeleteItem.md
CHANGED
@@ -4,9 +4,9 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **accessibility** | **String** | for personal password manager | [optional] |
|
7
8
|
| **delete_immediately** | **Boolean** | When delete-in-days=-1, must be set | [optional][default to false] |
|
8
9
|
| **delete_in_days** | **Integer** | The number of days to wait before deleting the item (relevant for keys only) | [optional][default to 7] |
|
9
|
-
| **item_accessibility** | **String** | for personal password manager | [optional] |
|
10
10
|
| **name** | **String** | Item name | |
|
11
11
|
| **token** | **String** | Authentication token (see `/auth` and `/configure`) | [optional] |
|
12
12
|
| **uid_token** | **String** | The universal identity token, Required only for universal_identity authentication | [optional] |
|
@@ -18,9 +18,9 @@
|
|
18
18
|
require 'akeyless'
|
19
19
|
|
20
20
|
instance = Akeyless::DeleteItem.new(
|
21
|
+
accessibility: null,
|
21
22
|
delete_immediately: null,
|
22
23
|
delete_in_days: null,
|
23
|
-
item_accessibility: null,
|
24
24
|
name: null,
|
25
25
|
token: null,
|
26
26
|
uid_token: null,
|
@@ -12,7 +12,7 @@
|
|
12
12
|
| **name** | **String** | K8S Auth config name | |
|
13
13
|
| **signing_key** | **String** | The private key (in base64 encoded of the PEM format) associated with the public key defined in the Kubernetes auth | |
|
14
14
|
| **token** | **String** | Authentication token (see `/auth` and `/configure`) | [optional] |
|
15
|
-
| **token_exp** | **Integer** | Time in seconds of expiration of the Akeyless Kube Auth Method token | [optional] |
|
15
|
+
| **token_exp** | **Integer** | Time in seconds of expiration of the Akeyless Kube Auth Method token | [optional][default to 300] |
|
16
16
|
| **token_reviewer_jwt** | **String** | A Kubernetes service account JWT used to access the TokenReview API to validate other JWTs. If not set, the JWT submitted in the authentication process will be used to access the Kubernetes TokenReview API. | [optional] |
|
17
17
|
| **uid_token** | **String** | The universal identity token, Required only for universal_identity authentication | [optional] |
|
18
18
|
|
@@ -13,7 +13,7 @@
|
|
13
13
|
| **new_name** | **String** | K8S Auth config new name | |
|
14
14
|
| **signing_key** | **String** | The private key (in base64 encoded of the PEM format) associated with the public key defined in the Kubernetes auth | |
|
15
15
|
| **token** | **String** | Authentication token (see `/auth` and `/configure`) | [optional] |
|
16
|
-
| **token_exp** | **Integer** | Time in seconds of expiration of the Akeyless Kube Auth Method token | [optional] |
|
16
|
+
| **token_exp** | **Integer** | Time in seconds of expiration of the Akeyless Kube Auth Method token | [optional][default to 300] |
|
17
17
|
| **token_reviewer_jwt** | **String** | A Kubernetes service account JWT used to access the TokenReview API to validate other JWTs. If not set, the JWT submitted in the authentication process will be used to access the Kubernetes TokenReview API. | [optional] |
|
18
18
|
| **uid_token** | **String** | The universal identity token, Required only for universal_identity authentication | [optional] |
|
19
19
|
|
@@ -8,6 +8,7 @@
|
|
8
8
|
| **address** | [**CustomerFullAddress**](CustomerFullAddress.md) | | [optional] |
|
9
9
|
| **company_name** | **String** | | [optional] |
|
10
10
|
| **email** | **String** | | [optional] |
|
11
|
+
| **general_settings** | [**AccountGeneralSettings**](AccountGeneralSettings.md) | | [optional] |
|
11
12
|
| **object_version_settings** | [**AccountObjectVersionSettingsOutput**](AccountObjectVersionSettingsOutput.md) | | [optional] |
|
12
13
|
| **phone** | **String** | | [optional] |
|
13
14
|
| **secret_management** | [**SmInfo**](SmInfo.md) | | [optional] |
|
@@ -24,6 +25,7 @@ instance = Akeyless::GetAccountSettingsCommandOutput.new(
|
|
24
25
|
address: null,
|
25
26
|
company_name: null,
|
26
27
|
email: null,
|
28
|
+
general_settings: null,
|
27
29
|
object_version_settings: null,
|
28
30
|
phone: null,
|
29
31
|
secret_management: null,
|
data/docs/GetSecretValue.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **
|
7
|
+
| **accessibility** | **String** | for personal password manager | [optional] |
|
8
8
|
| **names** | **Array<String>** | Secret name | |
|
9
9
|
| **pretty_print** | **Boolean** | | [optional] |
|
10
10
|
| **token** | **String** | Authentication token (see `/auth` and `/configure`) | [optional] |
|
@@ -17,7 +17,7 @@
|
|
17
17
|
require 'akeyless'
|
18
18
|
|
19
19
|
instance = Akeyless::GetSecretValue.new(
|
20
|
-
|
20
|
+
accessibility: null,
|
21
21
|
names: null,
|
22
22
|
pretty_print: null,
|
23
23
|
token: null,
|
data/docs/ListItems.md
CHANGED
@@ -4,8 +4,8 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **accessibility** | **String** | for personal password manager | [optional] |
|
7
8
|
| **filter** | **String** | Filter by item name or part of it | [optional] |
|
8
|
-
| **item_accessibility** | **String** | for personal password manager | [optional] |
|
9
9
|
| **minimal_view** | **Boolean** | | [optional] |
|
10
10
|
| **pagination_token** | **String** | Next page reference | [optional] |
|
11
11
|
| **path** | **String** | Path to folder | [optional] |
|
@@ -21,8 +21,8 @@
|
|
21
21
|
require 'akeyless'
|
22
22
|
|
23
23
|
instance = Akeyless::ListItems.new(
|
24
|
+
accessibility: null,
|
24
25
|
filter: null,
|
25
|
-
item_accessibility: null,
|
26
26
|
minimal_view: null,
|
27
27
|
pagination_token: null,
|
28
28
|
path: null,
|
@@ -8,6 +8,7 @@
|
|
8
8
|
| **azure_analytics_config** | [**AzureLogAnalyticsForwardingConfig**](AzureLogAnalyticsForwardingConfig.md) | | [optional] |
|
9
9
|
| **datadog_config** | [**DatadogForwardingConfig**](DatadogForwardingConfig.md) | | [optional] |
|
10
10
|
| **elasticsearch_config** | [**ElasticsearchLogForwardingConfig**](ElasticsearchLogForwardingConfig.md) | | [optional] |
|
11
|
+
| **json_output** | **Boolean** | | [optional] |
|
11
12
|
| **logan_enable** | **Boolean** | | [optional] |
|
12
13
|
| **logan_url** | **String** | | [optional] |
|
13
14
|
| **logstash_config** | [**LogstashLogForwardingConfig**](LogstashLogForwardingConfig.md) | | [optional] |
|
@@ -27,6 +28,7 @@ instance = Akeyless::LogForwardingConfigPart.new(
|
|
27
28
|
azure_analytics_config: null,
|
28
29
|
datadog_config: null,
|
29
30
|
elasticsearch_config: null,
|
31
|
+
json_output: null,
|
30
32
|
logan_enable: null,
|
31
33
|
logan_url: null,
|
32
34
|
logstash_config: null,
|
@@ -52,6 +52,7 @@
|
|
52
52
|
| **gke_service_account_key** | **String** | | [optional] |
|
53
53
|
| **gke_service_account_name** | **String** | | [optional] |
|
54
54
|
| **host** | **String** | | [optional] |
|
55
|
+
| **implementation_type** | **String** | | [optional] |
|
55
56
|
| **k8s_bearer_token** | **String** | | [optional] |
|
56
57
|
| **k8s_cluster_ca_certificate** | **String** | | [optional] |
|
57
58
|
| **k8s_cluster_endpoint** | **String** | | [optional] |
|
@@ -150,6 +151,7 @@ instance = Akeyless::TargetTypeDetailsInput.new(
|
|
150
151
|
gke_service_account_key: null,
|
151
152
|
gke_service_account_name: null,
|
152
153
|
host: null,
|
154
|
+
implementation_type: null,
|
153
155
|
k8s_bearer_token: null,
|
154
156
|
k8s_cluster_ca_certificate: null,
|
155
157
|
k8s_cluster_endpoint: null,
|
@@ -9,6 +9,7 @@
|
|
9
9
|
| **company_name** | **String** | Company name | [optional] |
|
10
10
|
| **country** | **String** | Country | [optional] |
|
11
11
|
| **default_versioning** | **String** | Should create version by default | [optional] |
|
12
|
+
| **dp_enable_classic_key_protection** | **String** | Enable classic key protection [\"true\"/\"false\"] | [optional] |
|
12
13
|
| **item_type** | **String** | VersionSettingsObjectType defines object types for account version settings | [optional] |
|
13
14
|
| **jwt_ttl_default** | **Integer** | Default ttl | [optional] |
|
14
15
|
| **jwt_ttl_max** | **Integer** | Maximum ttl | [optional] |
|
@@ -30,6 +31,7 @@ instance = Akeyless::UpdateAccountSettings.new(
|
|
30
31
|
company_name: null,
|
31
32
|
country: null,
|
32
33
|
default_versioning: null,
|
34
|
+
dp_enable_classic_key_protection: null,
|
33
35
|
item_type: null,
|
34
36
|
jwt_ttl_default: null,
|
35
37
|
jwt_ttl_max: null,
|
data/docs/UpdateItem.md
CHANGED
@@ -4,10 +4,10 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **accessibility** | **String** | for personal password manager | [optional] |
|
7
8
|
| **add_tag** | **Array<String>** | List of the new tags that will be attached to this item | [optional] |
|
8
9
|
| **cert_file_data** | **String** | PEM Certificate in a Base64 format. Used for updating RSA keys' certificates. | [optional] |
|
9
10
|
| **delete_protection** | **String** | | [optional] |
|
10
|
-
| **item_accessibility** | **String** | for personal password manager | [optional] |
|
11
11
|
| **name** | **String** | Current item name | |
|
12
12
|
| **new_metadata** | **String** | New item metadata | [optional][default to 'default_metadata'] |
|
13
13
|
| **new_name** | **String** | New item name | [optional] |
|
@@ -45,10 +45,10 @@
|
|
45
45
|
require 'akeyless'
|
46
46
|
|
47
47
|
instance = Akeyless::UpdateItem.new(
|
48
|
+
accessibility: null,
|
48
49
|
add_tag: null,
|
49
50
|
cert_file_data: null,
|
50
51
|
delete_protection: null,
|
51
|
-
item_accessibility: null,
|
52
52
|
name: null,
|
53
53
|
new_metadata: null,
|
54
54
|
new_name: null,
|
data/docs/UpdateSecretVal.md
CHANGED
@@ -4,18 +4,19 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **
|
8
|
-
| **item_accessibility** | **String** | for personal password manager | [optional] |
|
7
|
+
| **accessibility** | **String** | for personal password manager | [optional] |
|
9
8
|
| **keep_prev_version** | **String** | | [optional] |
|
10
9
|
| **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] |
|
11
10
|
| **multiline** | **Boolean** | The provided value is a multiline value (separated by '\\n') | [optional] |
|
12
11
|
| **name** | **String** | Secret name | |
|
13
12
|
| **new_version** | **Boolean** | Deprecated | [optional] |
|
13
|
+
| **password_manager_custom_field** | **Hash<String, String>** | For Password Management use, additional fields | [optional] |
|
14
|
+
| **password_manager_inject_url** | **String** | For Password Management use, reflect the website context | [optional] |
|
15
|
+
| **password_manager_password** | **String** | For Password Management use, additional fields | [optional] |
|
16
|
+
| **password_manager_username** | **String** | For Password Management use | [optional] |
|
14
17
|
| **token** | **String** | Authentication token (see `/auth` and `/configure`) | [optional] |
|
15
18
|
| **uid_token** | **String** | The universal identity token, Required only for universal_identity authentication | [optional] |
|
16
|
-
| **username** | **String** | For Password Management use | [optional] |
|
17
19
|
| **value** | **String** | The new secret value | |
|
18
|
-
| **website** | **String** | For Password Management use, reflect the website context | [optional] |
|
19
20
|
|
20
21
|
## Example
|
21
22
|
|
@@ -23,18 +24,19 @@
|
|
23
24
|
require 'akeyless'
|
24
25
|
|
25
26
|
instance = Akeyless::UpdateSecretVal.new(
|
26
|
-
|
27
|
-
item_accessibility: null,
|
27
|
+
accessibility: null,
|
28
28
|
keep_prev_version: null,
|
29
29
|
key: null,
|
30
30
|
multiline: null,
|
31
31
|
name: null,
|
32
32
|
new_version: null,
|
33
|
+
password_manager_custom_field: null,
|
34
|
+
password_manager_inject_url: null,
|
35
|
+
password_manager_password: null,
|
36
|
+
password_manager_username: null,
|
33
37
|
token: null,
|
34
38
|
uid_token: null,
|
35
|
-
|
36
|
-
value: null,
|
37
|
-
website: null
|
39
|
+
value: null
|
38
40
|
)
|
39
41
|
```
|
40
42
|
|
@@ -0,0 +1,220 @@
|
|
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
|
+
# AccountGeneralSettings describes general settings for an account
|
18
|
+
class AccountGeneralSettings
|
19
|
+
attr_accessor :data_protection_section
|
20
|
+
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
+
def self.attribute_map
|
23
|
+
{
|
24
|
+
:'data_protection_section' => :'data_protection_section'
|
25
|
+
}
|
26
|
+
end
|
27
|
+
|
28
|
+
# Returns all the JSON keys this model knows about
|
29
|
+
def self.acceptable_attributes
|
30
|
+
attribute_map.values
|
31
|
+
end
|
32
|
+
|
33
|
+
# Attribute type mapping.
|
34
|
+
def self.openapi_types
|
35
|
+
{
|
36
|
+
:'data_protection_section' => :'DataProtectionSection'
|
37
|
+
}
|
38
|
+
end
|
39
|
+
|
40
|
+
# List of attributes with nullable: true
|
41
|
+
def self.openapi_nullable
|
42
|
+
Set.new([
|
43
|
+
])
|
44
|
+
end
|
45
|
+
|
46
|
+
# Initializes the object
|
47
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
48
|
+
def initialize(attributes = {})
|
49
|
+
if (!attributes.is_a?(Hash))
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::AccountGeneralSettings` initialize method"
|
51
|
+
end
|
52
|
+
|
53
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
54
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
55
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::AccountGeneralSettings`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
57
|
+
end
|
58
|
+
h[k.to_sym] = v
|
59
|
+
}
|
60
|
+
|
61
|
+
if attributes.key?(:'data_protection_section')
|
62
|
+
self.data_protection_section = attributes[:'data_protection_section']
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
67
|
+
# @return Array for valid properties with the reasons
|
68
|
+
def list_invalid_properties
|
69
|
+
invalid_properties = Array.new
|
70
|
+
invalid_properties
|
71
|
+
end
|
72
|
+
|
73
|
+
# Check to see if the all the properties in the model are valid
|
74
|
+
# @return true if the model is valid
|
75
|
+
def valid?
|
76
|
+
true
|
77
|
+
end
|
78
|
+
|
79
|
+
# Checks equality by comparing each attribute.
|
80
|
+
# @param [Object] Object to be compared
|
81
|
+
def ==(o)
|
82
|
+
return true if self.equal?(o)
|
83
|
+
self.class == o.class &&
|
84
|
+
data_protection_section == o.data_protection_section
|
85
|
+
end
|
86
|
+
|
87
|
+
# @see the `==` method
|
88
|
+
# @param [Object] Object to be compared
|
89
|
+
def eql?(o)
|
90
|
+
self == o
|
91
|
+
end
|
92
|
+
|
93
|
+
# Calculates hash code according to all attributes.
|
94
|
+
# @return [Integer] Hash code
|
95
|
+
def hash
|
96
|
+
[data_protection_section].hash
|
97
|
+
end
|
98
|
+
|
99
|
+
# Builds the object from hash
|
100
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
101
|
+
# @return [Object] Returns the model itself
|
102
|
+
def self.build_from_hash(attributes)
|
103
|
+
new.build_from_hash(attributes)
|
104
|
+
end
|
105
|
+
|
106
|
+
# Builds the object from hash
|
107
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
108
|
+
# @return [Object] Returns the model itself
|
109
|
+
def build_from_hash(attributes)
|
110
|
+
return nil unless attributes.is_a?(Hash)
|
111
|
+
attributes = attributes.transform_keys(&:to_sym)
|
112
|
+
self.class.openapi_types.each_pair do |key, type|
|
113
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
114
|
+
self.send("#{key}=", nil)
|
115
|
+
elsif type =~ /\AArray<(.*)>/i
|
116
|
+
# check to ensure the input is an array given that the attribute
|
117
|
+
# is documented as an array but the input is not
|
118
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
119
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
120
|
+
end
|
121
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
122
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
self
|
127
|
+
end
|
128
|
+
|
129
|
+
# Deserializes the data based on type
|
130
|
+
# @param string type Data type
|
131
|
+
# @param string value Value to be deserialized
|
132
|
+
# @return [Object] Deserialized data
|
133
|
+
def _deserialize(type, value)
|
134
|
+
case type.to_sym
|
135
|
+
when :Time
|
136
|
+
Time.parse(value)
|
137
|
+
when :Date
|
138
|
+
Date.parse(value)
|
139
|
+
when :String
|
140
|
+
value.to_s
|
141
|
+
when :Integer
|
142
|
+
value.to_i
|
143
|
+
when :Float
|
144
|
+
value.to_f
|
145
|
+
when :Boolean
|
146
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
147
|
+
true
|
148
|
+
else
|
149
|
+
false
|
150
|
+
end
|
151
|
+
when :Object
|
152
|
+
# generic object (usually a Hash), return directly
|
153
|
+
value
|
154
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
155
|
+
inner_type = Regexp.last_match[:inner_type]
|
156
|
+
value.map { |v| _deserialize(inner_type, v) }
|
157
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
158
|
+
k_type = Regexp.last_match[:k_type]
|
159
|
+
v_type = Regexp.last_match[:v_type]
|
160
|
+
{}.tap do |hash|
|
161
|
+
value.each do |k, v|
|
162
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
163
|
+
end
|
164
|
+
end
|
165
|
+
else # model
|
166
|
+
# models (e.g. Pet) or oneOf
|
167
|
+
klass = Akeyless.const_get(type)
|
168
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
# Returns the string representation of the object
|
173
|
+
# @return [String] String presentation of the object
|
174
|
+
def to_s
|
175
|
+
to_hash.to_s
|
176
|
+
end
|
177
|
+
|
178
|
+
# to_body is an alias to to_hash (backward compatibility)
|
179
|
+
# @return [Hash] Returns the object in the form of hash
|
180
|
+
def to_body
|
181
|
+
to_hash
|
182
|
+
end
|
183
|
+
|
184
|
+
# Returns the object in the form of hash
|
185
|
+
# @return [Hash] Returns the object in the form of hash
|
186
|
+
def to_hash
|
187
|
+
hash = {}
|
188
|
+
self.class.attribute_map.each_pair do |attr, param|
|
189
|
+
value = self.send(attr)
|
190
|
+
if value.nil?
|
191
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
192
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
193
|
+
end
|
194
|
+
|
195
|
+
hash[param] = _to_hash(value)
|
196
|
+
end
|
197
|
+
hash
|
198
|
+
end
|
199
|
+
|
200
|
+
# Outputs non-array value in the form of hash
|
201
|
+
# For object, use to_hash. Otherwise, just return the value
|
202
|
+
# @param [Object] value Any valid value
|
203
|
+
# @return [Hash] Returns the value in the form of hash
|
204
|
+
def _to_hash(value)
|
205
|
+
if value.is_a?(Array)
|
206
|
+
value.compact.map { |v| _to_hash(v) }
|
207
|
+
elsif value.is_a?(Hash)
|
208
|
+
{}.tap do |hash|
|
209
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
210
|
+
end
|
211
|
+
elsif value.respond_to? :to_hash
|
212
|
+
value.to_hash
|
213
|
+
else
|
214
|
+
value
|
215
|
+
end
|
216
|
+
end
|
217
|
+
|
218
|
+
end
|
219
|
+
|
220
|
+
end
|