akeyless 2.16.11 → 2.16.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +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
@@ -23,6 +23,8 @@ module Akeyless
|
|
23
23
|
|
24
24
|
attr_accessor :email
|
25
25
|
|
26
|
+
attr_accessor :general_settings
|
27
|
+
|
26
28
|
attr_accessor :object_version_settings
|
27
29
|
|
28
30
|
attr_accessor :phone
|
@@ -40,6 +42,7 @@ module Akeyless
|
|
40
42
|
:'address' => :'address',
|
41
43
|
:'company_name' => :'company_name',
|
42
44
|
:'email' => :'email',
|
45
|
+
:'general_settings' => :'general_settings',
|
43
46
|
:'object_version_settings' => :'object_version_settings',
|
44
47
|
:'phone' => :'phone',
|
45
48
|
:'secret_management' => :'secret_management',
|
@@ -60,6 +63,7 @@ module Akeyless
|
|
60
63
|
:'address' => :'CustomerFullAddress',
|
61
64
|
:'company_name' => :'String',
|
62
65
|
:'email' => :'String',
|
66
|
+
:'general_settings' => :'AccountGeneralSettings',
|
63
67
|
:'object_version_settings' => :'AccountObjectVersionSettingsOutput',
|
64
68
|
:'phone' => :'String',
|
65
69
|
:'secret_management' => :'SmInfo',
|
@@ -105,6 +109,10 @@ module Akeyless
|
|
105
109
|
self.email = attributes[:'email']
|
106
110
|
end
|
107
111
|
|
112
|
+
if attributes.key?(:'general_settings')
|
113
|
+
self.general_settings = attributes[:'general_settings']
|
114
|
+
end
|
115
|
+
|
108
116
|
if attributes.key?(:'object_version_settings')
|
109
117
|
self.object_version_settings = attributes[:'object_version_settings']
|
110
118
|
end
|
@@ -148,6 +156,7 @@ module Akeyless
|
|
148
156
|
address == o.address &&
|
149
157
|
company_name == o.company_name &&
|
150
158
|
email == o.email &&
|
159
|
+
general_settings == o.general_settings &&
|
151
160
|
object_version_settings == o.object_version_settings &&
|
152
161
|
phone == o.phone &&
|
153
162
|
secret_management == o.secret_management &&
|
@@ -164,7 +173,7 @@ module Akeyless
|
|
164
173
|
# Calculates hash code according to all attributes.
|
165
174
|
# @return [Integer] Hash code
|
166
175
|
def hash
|
167
|
-
[account_id, address, company_name, email, object_version_settings, phone, secret_management, secure_remote_access, system_access_creds_settings].hash
|
176
|
+
[account_id, address, company_name, email, general_settings, object_version_settings, phone, secret_management, secure_remote_access, system_access_creds_settings].hash
|
168
177
|
end
|
169
178
|
|
170
179
|
# Builds the object from hash
|
@@ -16,7 +16,7 @@ require 'time'
|
|
16
16
|
module Akeyless
|
17
17
|
class GetSecretValue
|
18
18
|
# for personal password manager
|
19
|
-
attr_accessor :
|
19
|
+
attr_accessor :accessibility
|
20
20
|
|
21
21
|
# Secret name
|
22
22
|
attr_accessor :names
|
@@ -35,7 +35,7 @@ module Akeyless
|
|
35
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
36
36
|
def self.attribute_map
|
37
37
|
{
|
38
|
-
:'
|
38
|
+
:'accessibility' => :'accessibility',
|
39
39
|
:'names' => :'names',
|
40
40
|
:'pretty_print' => :'pretty-print',
|
41
41
|
:'token' => :'token',
|
@@ -52,7 +52,7 @@ module Akeyless
|
|
52
52
|
# Attribute type mapping.
|
53
53
|
def self.openapi_types
|
54
54
|
{
|
55
|
-
:'
|
55
|
+
:'accessibility' => :'String',
|
56
56
|
:'names' => :'Array<String>',
|
57
57
|
:'pretty_print' => :'Boolean',
|
58
58
|
:'token' => :'String',
|
@@ -82,8 +82,8 @@ module Akeyless
|
|
82
82
|
h[k.to_sym] = v
|
83
83
|
}
|
84
84
|
|
85
|
-
if attributes.key?(:'
|
86
|
-
self.
|
85
|
+
if attributes.key?(:'accessibility')
|
86
|
+
self.accessibility = attributes[:'accessibility']
|
87
87
|
end
|
88
88
|
|
89
89
|
if attributes.key?(:'names')
|
@@ -132,7 +132,7 @@ module Akeyless
|
|
132
132
|
def ==(o)
|
133
133
|
return true if self.equal?(o)
|
134
134
|
self.class == o.class &&
|
135
|
-
|
135
|
+
accessibility == o.accessibility &&
|
136
136
|
names == o.names &&
|
137
137
|
pretty_print == o.pretty_print &&
|
138
138
|
token == o.token &&
|
@@ -149,7 +149,7 @@ module Akeyless
|
|
149
149
|
# Calculates hash code according to all attributes.
|
150
150
|
# @return [Integer] Hash code
|
151
151
|
def hash
|
152
|
-
[
|
152
|
+
[accessibility, names, pretty_print, token, uid_token, version].hash
|
153
153
|
end
|
154
154
|
|
155
155
|
# Builds the object from hash
|
@@ -15,12 +15,12 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Akeyless
|
17
17
|
class ListItems
|
18
|
+
# for personal password manager
|
19
|
+
attr_accessor :accessibility
|
20
|
+
|
18
21
|
# Filter by item name or part of it
|
19
22
|
attr_accessor :filter
|
20
23
|
|
21
|
-
# for personal password manager
|
22
|
-
attr_accessor :item_accessibility
|
23
|
-
|
24
24
|
attr_accessor :minimal_view
|
25
25
|
|
26
26
|
# Next page reference
|
@@ -46,8 +46,8 @@ module Akeyless
|
|
46
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
47
47
|
def self.attribute_map
|
48
48
|
{
|
49
|
+
:'accessibility' => :'accessibility',
|
49
50
|
:'filter' => :'filter',
|
50
|
-
:'item_accessibility' => :'item-accessibility',
|
51
51
|
:'minimal_view' => :'minimal-view',
|
52
52
|
:'pagination_token' => :'pagination-token',
|
53
53
|
:'path' => :'path',
|
@@ -67,8 +67,8 @@ module Akeyless
|
|
67
67
|
# Attribute type mapping.
|
68
68
|
def self.openapi_types
|
69
69
|
{
|
70
|
+
:'accessibility' => :'String',
|
70
71
|
:'filter' => :'String',
|
71
|
-
:'item_accessibility' => :'String',
|
72
72
|
:'minimal_view' => :'Boolean',
|
73
73
|
:'pagination_token' => :'String',
|
74
74
|
:'path' => :'String',
|
@@ -101,12 +101,12 @@ module Akeyless
|
|
101
101
|
h[k.to_sym] = v
|
102
102
|
}
|
103
103
|
|
104
|
-
if attributes.key?(:'
|
105
|
-
self.
|
104
|
+
if attributes.key?(:'accessibility')
|
105
|
+
self.accessibility = attributes[:'accessibility']
|
106
106
|
end
|
107
107
|
|
108
|
-
if attributes.key?(:'
|
109
|
-
self.
|
108
|
+
if attributes.key?(:'filter')
|
109
|
+
self.filter = attributes[:'filter']
|
110
110
|
end
|
111
111
|
|
112
112
|
if attributes.key?(:'minimal_view')
|
@@ -164,8 +164,8 @@ module Akeyless
|
|
164
164
|
def ==(o)
|
165
165
|
return true if self.equal?(o)
|
166
166
|
self.class == o.class &&
|
167
|
+
accessibility == o.accessibility &&
|
167
168
|
filter == o.filter &&
|
168
|
-
item_accessibility == o.item_accessibility &&
|
169
169
|
minimal_view == o.minimal_view &&
|
170
170
|
pagination_token == o.pagination_token &&
|
171
171
|
path == o.path &&
|
@@ -185,7 +185,7 @@ module Akeyless
|
|
185
185
|
# Calculates hash code according to all attributes.
|
186
186
|
# @return [Integer] Hash code
|
187
187
|
def hash
|
188
|
-
[
|
188
|
+
[accessibility, filter, minimal_view, pagination_token, path, sub_types, tag, token, type, uid_token].hash
|
189
189
|
end
|
190
190
|
|
191
191
|
# Builds the object from hash
|
@@ -23,6 +23,8 @@ module Akeyless
|
|
23
23
|
|
24
24
|
attr_accessor :elasticsearch_config
|
25
25
|
|
26
|
+
attr_accessor :json_output
|
27
|
+
|
26
28
|
attr_accessor :logan_enable
|
27
29
|
|
28
30
|
attr_accessor :logan_url
|
@@ -46,6 +48,7 @@ module Akeyless
|
|
46
48
|
:'azure_analytics_config' => :'azure_analytics_config',
|
47
49
|
:'datadog_config' => :'datadog_config',
|
48
50
|
:'elasticsearch_config' => :'elasticsearch_config',
|
51
|
+
:'json_output' => :'json_output',
|
49
52
|
:'logan_enable' => :'logan_enable',
|
50
53
|
:'logan_url' => :'logan_url',
|
51
54
|
:'logstash_config' => :'logstash_config',
|
@@ -69,6 +72,7 @@ module Akeyless
|
|
69
72
|
:'azure_analytics_config' => :'AzureLogAnalyticsForwardingConfig',
|
70
73
|
:'datadog_config' => :'DatadogForwardingConfig',
|
71
74
|
:'elasticsearch_config' => :'ElasticsearchLogForwardingConfig',
|
75
|
+
:'json_output' => :'Boolean',
|
72
76
|
:'logan_enable' => :'Boolean',
|
73
77
|
:'logan_url' => :'String',
|
74
78
|
:'logstash_config' => :'LogstashLogForwardingConfig',
|
@@ -117,6 +121,10 @@ module Akeyless
|
|
117
121
|
self.elasticsearch_config = attributes[:'elasticsearch_config']
|
118
122
|
end
|
119
123
|
|
124
|
+
if attributes.key?(:'json_output')
|
125
|
+
self.json_output = attributes[:'json_output']
|
126
|
+
end
|
127
|
+
|
120
128
|
if attributes.key?(:'logan_enable')
|
121
129
|
self.logan_enable = attributes[:'logan_enable']
|
122
130
|
end
|
@@ -172,6 +180,7 @@ module Akeyless
|
|
172
180
|
azure_analytics_config == o.azure_analytics_config &&
|
173
181
|
datadog_config == o.datadog_config &&
|
174
182
|
elasticsearch_config == o.elasticsearch_config &&
|
183
|
+
json_output == o.json_output &&
|
175
184
|
logan_enable == o.logan_enable &&
|
176
185
|
logan_url == o.logan_url &&
|
177
186
|
logstash_config == o.logstash_config &&
|
@@ -191,7 +200,7 @@ module Akeyless
|
|
191
200
|
# Calculates hash code according to all attributes.
|
192
201
|
# @return [Integer] Hash code
|
193
202
|
def hash
|
194
|
-
[aws_s3_config, azure_analytics_config, datadog_config, elasticsearch_config, logan_enable, logan_url, logstash_config, logz_io_config, pull_interval_sec, splunk_config, syslog_config, target_log_type].hash
|
203
|
+
[aws_s3_config, azure_analytics_config, datadog_config, elasticsearch_config, json_output, logan_enable, logan_url, logstash_config, logz_io_config, pull_interval_sec, splunk_config, syslog_config, target_log_type].hash
|
195
204
|
end
|
196
205
|
|
197
206
|
# Builds the object from hash
|
@@ -115,6 +115,8 @@ module Akeyless
|
|
115
115
|
|
116
116
|
attr_accessor :host
|
117
117
|
|
118
|
+
attr_accessor :implementation_type
|
119
|
+
|
118
120
|
attr_accessor :k8s_bearer_token
|
119
121
|
|
120
122
|
attr_accessor :k8s_cluster_ca_certificate
|
@@ -257,6 +259,7 @@ module Akeyless
|
|
257
259
|
:'gke_service_account_key' => :'gke_service_account_key',
|
258
260
|
:'gke_service_account_name' => :'gke_service_account_name',
|
259
261
|
:'host' => :'host',
|
262
|
+
:'implementation_type' => :'implementation_type',
|
260
263
|
:'k8s_bearer_token' => :'k8s_bearer_token',
|
261
264
|
:'k8s_cluster_ca_certificate' => :'k8s_cluster_ca_certificate',
|
262
265
|
:'k8s_cluster_endpoint' => :'k8s_cluster_endpoint',
|
@@ -359,6 +362,7 @@ module Akeyless
|
|
359
362
|
:'gke_service_account_key' => :'String',
|
360
363
|
:'gke_service_account_name' => :'String',
|
361
364
|
:'host' => :'String',
|
365
|
+
:'implementation_type' => :'String',
|
362
366
|
:'k8s_bearer_token' => :'String',
|
363
367
|
:'k8s_cluster_ca_certificate' => :'String',
|
364
368
|
:'k8s_cluster_endpoint' => :'String',
|
@@ -620,6 +624,10 @@ module Akeyless
|
|
620
624
|
self.host = attributes[:'host']
|
621
625
|
end
|
622
626
|
|
627
|
+
if attributes.key?(:'implementation_type')
|
628
|
+
self.implementation_type = attributes[:'implementation_type']
|
629
|
+
end
|
630
|
+
|
623
631
|
if attributes.key?(:'k8s_bearer_token')
|
624
632
|
self.k8s_bearer_token = attributes[:'k8s_bearer_token']
|
625
633
|
end
|
@@ -859,6 +867,7 @@ module Akeyless
|
|
859
867
|
gke_service_account_key == o.gke_service_account_key &&
|
860
868
|
gke_service_account_name == o.gke_service_account_name &&
|
861
869
|
host == o.host &&
|
870
|
+
implementation_type == o.implementation_type &&
|
862
871
|
k8s_bearer_token == o.k8s_bearer_token &&
|
863
872
|
k8s_cluster_ca_certificate == o.k8s_cluster_ca_certificate &&
|
864
873
|
k8s_cluster_endpoint == o.k8s_cluster_endpoint &&
|
@@ -913,7 +922,7 @@ module Akeyless
|
|
913
922
|
# Calculates hash code according to all attributes.
|
914
923
|
# @return [Integer] Hash code
|
915
924
|
def hash
|
916
|
-
[artifactory_admin_apikey, artifactory_admin_username, artifactory_base_url, auth_flow, aws_access_key_id, aws_region, aws_secret_access_key, aws_session_token, azure_client_id, azure_client_secret, azure_resource_group_name, azure_resource_name, azure_subscription_id, azure_tenant_id, ca_cert_data, ca_cert_name, chef_server_host_name, chef_server_key, chef_server_port, chef_server_url, chef_server_username, chef_skip_ssl, client_id, client_secret, db_host_name, db_name, db_port, db_pwd, db_server_certificates, db_server_name, db_user_name, eks_access_key_id, eks_cluster_ca_certificate, eks_cluster_endpoint, eks_cluster_name, eks_region, eks_secret_access_key, gcp_service_account_email, gcp_service_account_key, github_app_id, github_app_private_key, github_base_url, gke_cluster_ca_certificate, gke_cluster_endpoint, gke_cluster_name, gke_service_account_key, gke_service_account_name, host, k8s_bearer_token, k8s_cluster_ca_certificate, k8s_cluster_endpoint, ldap_audience, ldap_bind_dn, ldap_bind_password, ldap_certificate, ldap_token_expiration, ldap_url, mongodb_atlas_api_private_key, mongodb_atlas_api_public_key, mongodb_atlas_project_id, mongodb_db_name, mongodb_default_auth_db, mongodb_host_port, mongodb_is_atlas, mongodb_password, mongodb_uri_connection, mongodb_uri_options, mongodb_username, password, payload, port, private_key, private_key_password, rabbitmq_server_password, rabbitmq_server_uri, rabbitmq_server_user, security_token, sf_account, ssl_connection_certificate, ssl_connection_mode, tenant_url, url, use_gw_cloud_identity, user_name, username, venafi_api_key, venafi_base_url, venafi_tpp_password, venafi_tpp_username, venafi_use_tpp, venafi_zone].hash
|
925
|
+
[artifactory_admin_apikey, artifactory_admin_username, artifactory_base_url, auth_flow, aws_access_key_id, aws_region, aws_secret_access_key, aws_session_token, azure_client_id, azure_client_secret, azure_resource_group_name, azure_resource_name, azure_subscription_id, azure_tenant_id, ca_cert_data, ca_cert_name, chef_server_host_name, chef_server_key, chef_server_port, chef_server_url, chef_server_username, chef_skip_ssl, client_id, client_secret, db_host_name, db_name, db_port, db_pwd, db_server_certificates, db_server_name, db_user_name, eks_access_key_id, eks_cluster_ca_certificate, eks_cluster_endpoint, eks_cluster_name, eks_region, eks_secret_access_key, gcp_service_account_email, gcp_service_account_key, github_app_id, github_app_private_key, github_base_url, gke_cluster_ca_certificate, gke_cluster_endpoint, gke_cluster_name, gke_service_account_key, gke_service_account_name, host, implementation_type, k8s_bearer_token, k8s_cluster_ca_certificate, k8s_cluster_endpoint, ldap_audience, ldap_bind_dn, ldap_bind_password, ldap_certificate, ldap_token_expiration, ldap_url, mongodb_atlas_api_private_key, mongodb_atlas_api_public_key, mongodb_atlas_project_id, mongodb_db_name, mongodb_default_auth_db, mongodb_host_port, mongodb_is_atlas, mongodb_password, mongodb_uri_connection, mongodb_uri_options, mongodb_username, password, payload, port, private_key, private_key_password, rabbitmq_server_password, rabbitmq_server_uri, rabbitmq_server_user, security_token, sf_account, ssl_connection_certificate, ssl_connection_mode, tenant_url, url, use_gw_cloud_identity, user_name, username, venafi_api_key, venafi_base_url, venafi_tpp_password, venafi_tpp_username, venafi_use_tpp, venafi_zone].hash
|
917
926
|
end
|
918
927
|
|
919
928
|
# Builds the object from hash
|
@@ -30,6 +30,9 @@ module Akeyless
|
|
30
30
|
# Should create version by default
|
31
31
|
attr_accessor :default_versioning
|
32
32
|
|
33
|
+
# Enable classic key protection [\"true\"/\"false\"]
|
34
|
+
attr_accessor :dp_enable_classic_key_protection
|
35
|
+
|
33
36
|
# VersionSettingsObjectType defines object types for account version settings
|
34
37
|
attr_accessor :item_type
|
35
38
|
|
@@ -65,6 +68,7 @@ module Akeyless
|
|
65
68
|
:'company_name' => :'company-name',
|
66
69
|
:'country' => :'country',
|
67
70
|
:'default_versioning' => :'default-versioning',
|
71
|
+
:'dp_enable_classic_key_protection' => :'dp-enable-classic-key-protection',
|
68
72
|
:'item_type' => :'item-type',
|
69
73
|
:'jwt_ttl_default' => :'jwt-ttl-default',
|
70
74
|
:'jwt_ttl_max' => :'jwt-ttl-max',
|
@@ -90,6 +94,7 @@ module Akeyless
|
|
90
94
|
:'company_name' => :'String',
|
91
95
|
:'country' => :'String',
|
92
96
|
:'default_versioning' => :'String',
|
97
|
+
:'dp_enable_classic_key_protection' => :'String',
|
93
98
|
:'item_type' => :'String',
|
94
99
|
:'jwt_ttl_default' => :'Integer',
|
95
100
|
:'jwt_ttl_max' => :'Integer',
|
@@ -143,6 +148,10 @@ module Akeyless
|
|
143
148
|
self.default_versioning = attributes[:'default_versioning']
|
144
149
|
end
|
145
150
|
|
151
|
+
if attributes.key?(:'dp_enable_classic_key_protection')
|
152
|
+
self.dp_enable_classic_key_protection = attributes[:'dp_enable_classic_key_protection']
|
153
|
+
end
|
154
|
+
|
146
155
|
if attributes.key?(:'item_type')
|
147
156
|
self.item_type = attributes[:'item_type']
|
148
157
|
end
|
@@ -203,6 +212,7 @@ module Akeyless
|
|
203
212
|
company_name == o.company_name &&
|
204
213
|
country == o.country &&
|
205
214
|
default_versioning == o.default_versioning &&
|
215
|
+
dp_enable_classic_key_protection == o.dp_enable_classic_key_protection &&
|
206
216
|
item_type == o.item_type &&
|
207
217
|
jwt_ttl_default == o.jwt_ttl_default &&
|
208
218
|
jwt_ttl_max == o.jwt_ttl_max &&
|
@@ -223,7 +233,7 @@ module Akeyless
|
|
223
233
|
# Calculates hash code according to all attributes.
|
224
234
|
# @return [Integer] Hash code
|
225
235
|
def hash
|
226
|
-
[address, city, company_name, country, default_versioning, item_type, jwt_ttl_default, jwt_ttl_max, jwt_ttl_min, max_versions, phone, postal_code, token, uid_token].hash
|
236
|
+
[address, city, company_name, country, default_versioning, dp_enable_classic_key_protection, item_type, jwt_ttl_default, jwt_ttl_max, jwt_ttl_min, max_versions, phone, postal_code, token, uid_token].hash
|
227
237
|
end
|
228
238
|
|
229
239
|
# Builds the object from hash
|
@@ -15,6 +15,9 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Akeyless
|
17
17
|
class UpdateItem
|
18
|
+
# for personal password manager
|
19
|
+
attr_accessor :accessibility
|
20
|
+
|
18
21
|
# List of the new tags that will be attached to this item
|
19
22
|
attr_accessor :add_tag
|
20
23
|
|
@@ -23,9 +26,6 @@ module Akeyless
|
|
23
26
|
|
24
27
|
attr_accessor :delete_protection
|
25
28
|
|
26
|
-
# for personal password manager
|
27
|
-
attr_accessor :item_accessibility
|
28
|
-
|
29
29
|
# Current item name
|
30
30
|
attr_accessor :name
|
31
31
|
|
@@ -95,10 +95,10 @@ module Akeyless
|
|
95
95
|
# Attribute mapping from ruby-style variable name to JSON key.
|
96
96
|
def self.attribute_map
|
97
97
|
{
|
98
|
+
:'accessibility' => :'accessibility',
|
98
99
|
:'add_tag' => :'add-tag',
|
99
100
|
:'cert_file_data' => :'cert-file-data',
|
100
101
|
:'delete_protection' => :'delete_protection',
|
101
|
-
:'item_accessibility' => :'item-accessibility',
|
102
102
|
:'name' => :'name',
|
103
103
|
:'new_metadata' => :'new-metadata',
|
104
104
|
:'new_name' => :'new-name',
|
@@ -140,10 +140,10 @@ module Akeyless
|
|
140
140
|
# Attribute type mapping.
|
141
141
|
def self.openapi_types
|
142
142
|
{
|
143
|
+
:'accessibility' => :'String',
|
143
144
|
:'add_tag' => :'Array<String>',
|
144
145
|
:'cert_file_data' => :'String',
|
145
146
|
:'delete_protection' => :'String',
|
146
|
-
:'item_accessibility' => :'String',
|
147
147
|
:'name' => :'String',
|
148
148
|
:'new_metadata' => :'String',
|
149
149
|
:'new_name' => :'String',
|
@@ -198,6 +198,10 @@ module Akeyless
|
|
198
198
|
h[k.to_sym] = v
|
199
199
|
}
|
200
200
|
|
201
|
+
if attributes.key?(:'accessibility')
|
202
|
+
self.accessibility = attributes[:'accessibility']
|
203
|
+
end
|
204
|
+
|
201
205
|
if attributes.key?(:'add_tag')
|
202
206
|
if (value = attributes[:'add_tag']).is_a?(Array)
|
203
207
|
self.add_tag = value
|
@@ -212,10 +216,6 @@ module Akeyless
|
|
212
216
|
self.delete_protection = attributes[:'delete_protection']
|
213
217
|
end
|
214
218
|
|
215
|
-
if attributes.key?(:'item_accessibility')
|
216
|
-
self.item_accessibility = attributes[:'item_accessibility']
|
217
|
-
end
|
218
|
-
|
219
219
|
if attributes.key?(:'name')
|
220
220
|
self.name = attributes[:'name']
|
221
221
|
end
|
@@ -370,10 +370,10 @@ module Akeyless
|
|
370
370
|
def ==(o)
|
371
371
|
return true if self.equal?(o)
|
372
372
|
self.class == o.class &&
|
373
|
+
accessibility == o.accessibility &&
|
373
374
|
add_tag == o.add_tag &&
|
374
375
|
cert_file_data == o.cert_file_data &&
|
375
376
|
delete_protection == o.delete_protection &&
|
376
|
-
item_accessibility == o.item_accessibility &&
|
377
377
|
name == o.name &&
|
378
378
|
new_metadata == o.new_metadata &&
|
379
379
|
new_name == o.new_name &&
|
@@ -415,7 +415,7 @@ module Akeyless
|
|
415
415
|
# Calculates hash code according to all attributes.
|
416
416
|
# @return [Integer] Hash code
|
417
417
|
def hash
|
418
|
-
[add_tag, cert_file_data, delete_protection,
|
418
|
+
[accessibility, add_tag, cert_file_data, delete_protection, name, new_metadata, new_name, rm_tag, secure_access_add_host, secure_access_allow_external_user, secure_access_allow_port_forwading, secure_access_aws_account_id, secure_access_aws_native_cli, secure_access_aws_region, secure_access_bastion_api, secure_access_bastion_issuer, secure_access_bastion_ssh, secure_access_cluster_endpoint, secure_access_dashboard_url, secure_access_db_name, secure_access_db_schema, secure_access_enable, secure_access_host, secure_access_rdp_domain, secure_access_rdp_user, secure_access_rm_host, secure_access_ssh_creds, secure_access_ssh_creds_user, secure_access_url, secure_access_use_internal_bastion, secure_access_web_browsing, secure_access_web_proxy, token, uid_token].hash
|
419
419
|
end
|
420
420
|
|
421
421
|
# Builds the object from hash
|
@@ -15,11 +15,8 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Akeyless
|
17
17
|
class UpdateSecretVal
|
18
|
-
# For Password Management use, additional fields
|
19
|
-
attr_accessor :custom_fields
|
20
|
-
|
21
18
|
# for personal password manager
|
22
|
-
attr_accessor :
|
19
|
+
attr_accessor :accessibility
|
23
20
|
|
24
21
|
attr_accessor :keep_prev_version
|
25
22
|
|
@@ -35,36 +32,43 @@ module Akeyless
|
|
35
32
|
# Deprecated
|
36
33
|
attr_accessor :new_version
|
37
34
|
|
35
|
+
# For Password Management use, additional fields
|
36
|
+
attr_accessor :password_manager_custom_field
|
37
|
+
|
38
|
+
# For Password Management use, reflect the website context
|
39
|
+
attr_accessor :password_manager_inject_url
|
40
|
+
|
41
|
+
# For Password Management use, additional fields
|
42
|
+
attr_accessor :password_manager_password
|
43
|
+
|
44
|
+
# For Password Management use
|
45
|
+
attr_accessor :password_manager_username
|
46
|
+
|
38
47
|
# Authentication token (see `/auth` and `/configure`)
|
39
48
|
attr_accessor :token
|
40
49
|
|
41
50
|
# The universal identity token, Required only for universal_identity authentication
|
42
51
|
attr_accessor :uid_token
|
43
52
|
|
44
|
-
# For Password Management use
|
45
|
-
attr_accessor :username
|
46
|
-
|
47
53
|
# The new secret value
|
48
54
|
attr_accessor :value
|
49
55
|
|
50
|
-
# For Password Management use, reflect the website context
|
51
|
-
attr_accessor :website
|
52
|
-
|
53
56
|
# Attribute mapping from ruby-style variable name to JSON key.
|
54
57
|
def self.attribute_map
|
55
58
|
{
|
56
|
-
:'
|
57
|
-
:'item_accessibility' => :'item-accessibility',
|
59
|
+
:'accessibility' => :'accessibility',
|
58
60
|
:'keep_prev_version' => :'keep-prev-version',
|
59
61
|
:'key' => :'key',
|
60
62
|
:'multiline' => :'multiline',
|
61
63
|
:'name' => :'name',
|
62
64
|
:'new_version' => :'new-version',
|
65
|
+
:'password_manager_custom_field' => :'password-manager-custom-field',
|
66
|
+
:'password_manager_inject_url' => :'password-manager-inject-url',
|
67
|
+
:'password_manager_password' => :'password-manager-password',
|
68
|
+
:'password_manager_username' => :'password-manager-username',
|
63
69
|
:'token' => :'token',
|
64
70
|
:'uid_token' => :'uid-token',
|
65
|
-
:'
|
66
|
-
:'value' => :'value',
|
67
|
-
:'website' => :'website'
|
71
|
+
:'value' => :'value'
|
68
72
|
}
|
69
73
|
end
|
70
74
|
|
@@ -76,18 +80,19 @@ module Akeyless
|
|
76
80
|
# Attribute type mapping.
|
77
81
|
def self.openapi_types
|
78
82
|
{
|
79
|
-
:'
|
80
|
-
:'item_accessibility' => :'String',
|
83
|
+
:'accessibility' => :'String',
|
81
84
|
:'keep_prev_version' => :'String',
|
82
85
|
:'key' => :'String',
|
83
86
|
:'multiline' => :'Boolean',
|
84
87
|
:'name' => :'String',
|
85
88
|
:'new_version' => :'Boolean',
|
89
|
+
:'password_manager_custom_field' => :'Hash<String, String>',
|
90
|
+
:'password_manager_inject_url' => :'String',
|
91
|
+
:'password_manager_password' => :'String',
|
92
|
+
:'password_manager_username' => :'String',
|
86
93
|
:'token' => :'String',
|
87
94
|
:'uid_token' => :'String',
|
88
|
-
:'
|
89
|
-
:'value' => :'String',
|
90
|
-
:'website' => :'String'
|
95
|
+
:'value' => :'String'
|
91
96
|
}
|
92
97
|
end
|
93
98
|
|
@@ -112,14 +117,8 @@ module Akeyless
|
|
112
117
|
h[k.to_sym] = v
|
113
118
|
}
|
114
119
|
|
115
|
-
if attributes.key?(:'
|
116
|
-
|
117
|
-
self.custom_fields = value
|
118
|
-
end
|
119
|
-
end
|
120
|
-
|
121
|
-
if attributes.key?(:'item_accessibility')
|
122
|
-
self.item_accessibility = attributes[:'item_accessibility']
|
120
|
+
if attributes.key?(:'accessibility')
|
121
|
+
self.accessibility = attributes[:'accessibility']
|
123
122
|
end
|
124
123
|
|
125
124
|
if attributes.key?(:'keep_prev_version')
|
@@ -142,6 +141,24 @@ module Akeyless
|
|
142
141
|
self.new_version = attributes[:'new_version']
|
143
142
|
end
|
144
143
|
|
144
|
+
if attributes.key?(:'password_manager_custom_field')
|
145
|
+
if (value = attributes[:'password_manager_custom_field']).is_a?(Hash)
|
146
|
+
self.password_manager_custom_field = value
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
if attributes.key?(:'password_manager_inject_url')
|
151
|
+
self.password_manager_inject_url = attributes[:'password_manager_inject_url']
|
152
|
+
end
|
153
|
+
|
154
|
+
if attributes.key?(:'password_manager_password')
|
155
|
+
self.password_manager_password = attributes[:'password_manager_password']
|
156
|
+
end
|
157
|
+
|
158
|
+
if attributes.key?(:'password_manager_username')
|
159
|
+
self.password_manager_username = attributes[:'password_manager_username']
|
160
|
+
end
|
161
|
+
|
145
162
|
if attributes.key?(:'token')
|
146
163
|
self.token = attributes[:'token']
|
147
164
|
end
|
@@ -150,17 +167,9 @@ module Akeyless
|
|
150
167
|
self.uid_token = attributes[:'uid_token']
|
151
168
|
end
|
152
169
|
|
153
|
-
if attributes.key?(:'username')
|
154
|
-
self.username = attributes[:'username']
|
155
|
-
end
|
156
|
-
|
157
170
|
if attributes.key?(:'value')
|
158
171
|
self.value = attributes[:'value']
|
159
172
|
end
|
160
|
-
|
161
|
-
if attributes.key?(:'website')
|
162
|
-
self.website = attributes[:'website']
|
163
|
-
end
|
164
173
|
end
|
165
174
|
|
166
175
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -191,18 +200,19 @@ module Akeyless
|
|
191
200
|
def ==(o)
|
192
201
|
return true if self.equal?(o)
|
193
202
|
self.class == o.class &&
|
194
|
-
|
195
|
-
item_accessibility == o.item_accessibility &&
|
203
|
+
accessibility == o.accessibility &&
|
196
204
|
keep_prev_version == o.keep_prev_version &&
|
197
205
|
key == o.key &&
|
198
206
|
multiline == o.multiline &&
|
199
207
|
name == o.name &&
|
200
208
|
new_version == o.new_version &&
|
209
|
+
password_manager_custom_field == o.password_manager_custom_field &&
|
210
|
+
password_manager_inject_url == o.password_manager_inject_url &&
|
211
|
+
password_manager_password == o.password_manager_password &&
|
212
|
+
password_manager_username == o.password_manager_username &&
|
201
213
|
token == o.token &&
|
202
214
|
uid_token == o.uid_token &&
|
203
|
-
|
204
|
-
value == o.value &&
|
205
|
-
website == o.website
|
215
|
+
value == o.value
|
206
216
|
end
|
207
217
|
|
208
218
|
# @see the `==` method
|
@@ -214,7 +224,7 @@ module Akeyless
|
|
214
224
|
# Calculates hash code according to all attributes.
|
215
225
|
# @return [Integer] Hash code
|
216
226
|
def hash
|
217
|
-
[
|
227
|
+
[accessibility, keep_prev_version, key, multiline, name, new_version, password_manager_custom_field, password_manager_inject_url, password_manager_password, password_manager_username, token, uid_token, value].hash
|
218
228
|
end
|
219
229
|
|
220
230
|
# Builds the object from hash
|
data/lib/akeyless/version.rb
CHANGED
data/lib/akeyless.rb
CHANGED
@@ -21,6 +21,7 @@ require 'akeyless/models/api_key_access_rules'
|
|
21
21
|
require 'akeyless/models/awsiam_access_rules'
|
22
22
|
require 'akeyless/models/aws_payload'
|
23
23
|
require 'akeyless/models/aws_secrets_migration'
|
24
|
+
require 'akeyless/models/account_general_settings'
|
24
25
|
require 'akeyless/models/account_object_version_settings_output'
|
25
26
|
require 'akeyless/models/admins_config_part'
|
26
27
|
require 'akeyless/models/akeyless_gateway_config'
|
@@ -128,6 +129,7 @@ require 'akeyless/models/customer_fragment'
|
|
128
129
|
require 'akeyless/models/customer_fragments_json'
|
129
130
|
require 'akeyless/models/customer_full_address'
|
130
131
|
require 'akeyless/models/ds_producer_details'
|
132
|
+
require 'akeyless/models/data_protection_section'
|
131
133
|
require 'akeyless/models/datadog_forwarding_config'
|
132
134
|
require 'akeyless/models/decrypt'
|
133
135
|
require 'akeyless/models/decrypt_file'
|
@@ -0,0 +1,34 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for Akeyless::AccountGeneralSettings
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe Akeyless::AccountGeneralSettings do
|
21
|
+
let(:instance) { Akeyless::AccountGeneralSettings.new }
|
22
|
+
|
23
|
+
describe 'test an instance of AccountGeneralSettings' do
|
24
|
+
it 'should create an instance of AccountGeneralSettings' do
|
25
|
+
expect(instance).to be_instance_of(Akeyless::AccountGeneralSettings)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "data_protection_section"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|