akeyless 0.0.2.pre.rc2 → 2.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +27 -9
- data/akeyless.gemspec +1 -1
- data/docs/Auth.md +5 -1
- data/docs/AuthMethodAccessInfo.md +2 -0
- data/docs/CertAccessRules.md +34 -0
- data/docs/ConfigHash.md +2 -0
- data/docs/CreateAuthMethodCert.md +48 -0
- data/docs/CreateAuthMethodCertOutput.md +18 -0
- data/docs/CreateAuthMethodLDAP.md +3 -1
- data/docs/CreateAuthMethodOIDC.md +4 -0
- data/docs/CreateClassicKey.md +5 -1
- data/docs/DSProducerDetails.md +4 -0
- data/docs/GatewayCreateProducerCustom.md +4 -0
- data/docs/GatewayCreateProducerHanaDb.md +54 -0
- data/docs/GatewayCreateProducerHanaDbOutput.md +18 -0
- data/docs/GatewayCreateProducerMongo.md +1 -1
- data/docs/GatewayCreateProducerOracleDb.md +8 -0
- data/docs/GatewayMessageQueueInfo.md +1 -3
- data/docs/GatewayUpdateProducerCustom.md +4 -0
- data/docs/GatewayUpdateProducerHanaDb.md +56 -0
- data/docs/GatewayUpdateProducerHanaDbOutput.md +18 -0
- data/docs/GatewayUpdateProducerMongo.md +1 -1
- data/docs/GatewayUpdateProducerOracleDb.md +8 -0
- data/docs/KMIPClient.md +2 -0
- data/docs/KMIPConfigPart.md +5 -1
- data/docs/KMIPServer.md +30 -0
- data/docs/KmipDeleteServer.md +20 -0
- data/docs/KmipDescribeServerOutput.md +4 -0
- data/docs/KmipMoveServer.md +22 -0
- data/docs/KmipMoveServerOutput.md +20 -0
- data/docs/ListAuthMethods.md +4 -0
- data/docs/ListRoles.md +2 -0
- data/docs/ListTargets.md +2 -0
- data/docs/OIDCAccessRules.md +4 -0
- data/docs/TargetItemAssociation.md +2 -0
- data/docs/UpdateAuthMethodCert.md +50 -0
- data/docs/UpdateAuthMethodCertOutput.md +18 -0
- data/docs/UpdateAuthMethodLDAP.md +3 -1
- data/docs/UpdateAuthMethodOIDC.md +4 -0
- data/docs/UpdateDBTarget.md +4 -0
- data/docs/UpdateOutput.md +2 -0
- data/docs/V2Api.md +319 -0
- data/git_push.sh +0 -0
- data/lib/akeyless/api/v2_api.rb +312 -0
- data/lib/akeyless/api_client.rb +3 -7
- data/lib/akeyless/configuration.rb +2 -1
- data/lib/akeyless/models/auth.rb +22 -2
- data/lib/akeyless/models/auth_method_access_info.rb +10 -1
- data/lib/akeyless/models/cert_access_rules.rb +316 -0
- data/lib/akeyless/models/config_hash.rb +10 -1
- data/lib/akeyless/models/create_auth_method_cert.rb +401 -0
- data/lib/akeyless/models/create_auth_method_cert_output.rb +219 -0
- data/lib/akeyless/models/create_auth_method_ldap.rb +14 -4
- data/lib/akeyless/models/create_auth_method_oidc.rb +23 -1
- data/lib/akeyless/models/create_classic_key.rb +26 -4
- data/lib/akeyless/models/ds_producer_details.rb +19 -1
- data/lib/akeyless/models/gateway_create_producer_custom.rb +23 -1
- data/lib/akeyless/models/gateway_create_producer_hana_db.rb +411 -0
- data/lib/akeyless/models/gateway_create_producer_hana_db_output.rb +219 -0
- data/lib/akeyless/models/gateway_create_producer_mongo.rb +0 -2
- data/lib/akeyless/models/gateway_create_producer_oracle_db.rb +39 -1
- data/lib/akeyless/models/gateway_message_queue_info.rb +4 -13
- data/lib/akeyless/models/gateway_update_producer_custom.rb +23 -1
- data/lib/akeyless/models/gateway_update_producer_hana_db.rb +421 -0
- data/lib/akeyless/models/gateway_update_producer_hana_db_output.rb +219 -0
- data/lib/akeyless/models/gateway_update_producer_mongo.rb +0 -2
- data/lib/akeyless/models/gateway_update_producer_oracle_db.rb +39 -1
- data/lib/akeyless/models/kmip_client.rb +10 -1
- data/lib/akeyless/models/kmip_config_part.rb +23 -1
- data/lib/akeyless/models/kmip_delete_server.rb +231 -0
- data/lib/akeyless/models/kmip_describe_server_output.rb +19 -1
- data/lib/akeyless/models/kmip_move_server.rb +240 -0
- data/lib/akeyless/models/kmip_move_server_output.rb +228 -0
- data/lib/akeyless/models/kmip_server.rb +277 -0
- data/lib/akeyless/models/list_auth_methods.rb +23 -1
- data/lib/akeyless/models/list_roles.rb +11 -1
- data/lib/akeyless/models/list_targets.rb +11 -1
- data/lib/akeyless/models/oidc_access_rules.rb +23 -1
- data/lib/akeyless/models/target_item_association.rb +10 -1
- data/lib/akeyless/models/update_auth_method_cert.rb +411 -0
- data/lib/akeyless/models/update_auth_method_cert_output.rb +219 -0
- data/lib/akeyless/models/update_auth_method_ldap.rb +14 -4
- data/lib/akeyless/models/update_auth_method_oidc.rb +23 -1
- data/lib/akeyless/models/update_db_target.rb +21 -1
- data/lib/akeyless/models/update_output.rb +10 -1
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +13 -0
- data/spec/models/cert_access_rules_spec.rb +82 -0
- data/spec/models/create_auth_method_cert_output_spec.rb +34 -0
- data/spec/models/create_auth_method_cert_spec.rb +124 -0
- data/spec/models/gateway_create_producer_hana_db_output_spec.rb +34 -0
- data/spec/models/gateway_create_producer_hana_db_spec.rb +142 -0
- data/spec/models/gateway_update_producer_hana_db_output_spec.rb +34 -0
- data/spec/models/gateway_update_producer_hana_db_spec.rb +148 -0
- data/spec/models/kmip_delete_server_spec.rb +40 -0
- data/spec/models/kmip_move_server_output_spec.rb +40 -0
- data/spec/models/kmip_move_server_spec.rb +46 -0
- data/spec/models/kmip_server_spec.rb +58 -0
- data/spec/models/update_auth_method_cert_output_spec.rb +34 -0
- data/spec/models/update_auth_method_cert_spec.rb +130 -0
- metadata +508 -456
@@ -43,6 +43,12 @@ module Akeyless
|
|
43
43
|
# Auth Method name
|
44
44
|
attr_accessor :name
|
45
45
|
|
46
|
+
# RequiredScopes is a list of required scopes that the oidc method will request from the oidc provider and the user must approve
|
47
|
+
attr_accessor :required_scopes
|
48
|
+
|
49
|
+
# RequiredScopesPrefix is a a prefix to add to all required-scopes when requesting them from the oidc server (for example, azures' Application ID URI)
|
50
|
+
attr_accessor :required_scopes_prefix
|
51
|
+
|
46
52
|
# Authentication token (see `/auth` and `/configure`)
|
47
53
|
attr_accessor :token
|
48
54
|
|
@@ -64,6 +70,8 @@ module Akeyless
|
|
64
70
|
:'issuer' => :'issuer',
|
65
71
|
:'jwt_ttl' => :'jwt-ttl',
|
66
72
|
:'name' => :'name',
|
73
|
+
:'required_scopes' => :'required-scopes',
|
74
|
+
:'required_scopes_prefix' => :'required-scopes-prefix',
|
67
75
|
:'token' => :'token',
|
68
76
|
:'uid_token' => :'uid-token',
|
69
77
|
:'unique_identifier' => :'unique-identifier'
|
@@ -87,6 +95,8 @@ module Akeyless
|
|
87
95
|
:'issuer' => :'String',
|
88
96
|
:'jwt_ttl' => :'Integer',
|
89
97
|
:'name' => :'String',
|
98
|
+
:'required_scopes' => :'Array<String>',
|
99
|
+
:'required_scopes_prefix' => :'String',
|
90
100
|
:'token' => :'String',
|
91
101
|
:'uid_token' => :'String',
|
92
102
|
:'unique_identifier' => :'String'
|
@@ -158,6 +168,16 @@ module Akeyless
|
|
158
168
|
self.name = attributes[:'name']
|
159
169
|
end
|
160
170
|
|
171
|
+
if attributes.key?(:'required_scopes')
|
172
|
+
if (value = attributes[:'required_scopes']).is_a?(Array)
|
173
|
+
self.required_scopes = value
|
174
|
+
end
|
175
|
+
end
|
176
|
+
|
177
|
+
if attributes.key?(:'required_scopes_prefix')
|
178
|
+
self.required_scopes_prefix = attributes[:'required_scopes_prefix']
|
179
|
+
end
|
180
|
+
|
161
181
|
if attributes.key?(:'token')
|
162
182
|
self.token = attributes[:'token']
|
163
183
|
end
|
@@ -208,6 +228,8 @@ module Akeyless
|
|
208
228
|
issuer == o.issuer &&
|
209
229
|
jwt_ttl == o.jwt_ttl &&
|
210
230
|
name == o.name &&
|
231
|
+
required_scopes == o.required_scopes &&
|
232
|
+
required_scopes_prefix == o.required_scopes_prefix &&
|
211
233
|
token == o.token &&
|
212
234
|
uid_token == o.uid_token &&
|
213
235
|
unique_identifier == o.unique_identifier
|
@@ -222,7 +244,7 @@ module Akeyless
|
|
222
244
|
# Calculates hash code according to all attributes.
|
223
245
|
# @return [Integer] Hash code
|
224
246
|
def hash
|
225
|
-
[access_expires, allowed_redirect_uri, bound_ips, client_id, client_secret, force_sub_claims, issuer, jwt_ttl, name, token, uid_token, unique_identifier].hash
|
247
|
+
[access_expires, allowed_redirect_uri, bound_ips, client_id, client_secret, force_sub_claims, issuer, jwt_ttl, name, required_scopes, required_scopes_prefix, token, uid_token, unique_identifier].hash
|
226
248
|
end
|
227
249
|
|
228
250
|
# Builds the object from hash
|
@@ -25,6 +25,9 @@ module Akeyless
|
|
25
25
|
# Base64-encoded classic key value
|
26
26
|
attr_accessor :key_data
|
27
27
|
|
28
|
+
# A list of allowed operations for the key (required for azure targets)
|
29
|
+
attr_accessor :key_operations
|
30
|
+
|
28
31
|
# Metadata about the classic key
|
29
32
|
attr_accessor :metadata
|
30
33
|
|
@@ -46,19 +49,24 @@ module Akeyless
|
|
46
49
|
# The universal identity token, Required only for universal_identity authentication
|
47
50
|
attr_accessor :uid_token
|
48
51
|
|
52
|
+
# Name of the vault used (required for azure targets)
|
53
|
+
attr_accessor :vault_name
|
54
|
+
|
49
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
50
56
|
def self.attribute_map
|
51
57
|
{
|
52
58
|
:'alg' => :'alg',
|
53
59
|
:'cert_file_data' => :'cert-file-data',
|
54
60
|
:'key_data' => :'key-data',
|
61
|
+
:'key_operations' => :'key-operations',
|
55
62
|
:'metadata' => :'metadata',
|
56
63
|
:'name' => :'name',
|
57
64
|
:'protection_key_name' => :'protection-key-name',
|
58
65
|
:'tags' => :'tags',
|
59
66
|
:'target_name' => :'target-name',
|
60
67
|
:'token' => :'token',
|
61
|
-
:'uid_token' => :'uid-token'
|
68
|
+
:'uid_token' => :'uid-token',
|
69
|
+
:'vault_name' => :'vault-name'
|
62
70
|
}
|
63
71
|
end
|
64
72
|
|
@@ -73,13 +81,15 @@ module Akeyless
|
|
73
81
|
:'alg' => :'String',
|
74
82
|
:'cert_file_data' => :'String',
|
75
83
|
:'key_data' => :'String',
|
84
|
+
:'key_operations' => :'Array<String>',
|
76
85
|
:'metadata' => :'String',
|
77
86
|
:'name' => :'String',
|
78
87
|
:'protection_key_name' => :'String',
|
79
88
|
:'tags' => :'Array<String>',
|
80
89
|
:'target_name' => :'String',
|
81
90
|
:'token' => :'String',
|
82
|
-
:'uid_token' => :'String'
|
91
|
+
:'uid_token' => :'String',
|
92
|
+
:'vault_name' => :'String'
|
83
93
|
}
|
84
94
|
end
|
85
95
|
|
@@ -116,6 +126,12 @@ module Akeyless
|
|
116
126
|
self.key_data = attributes[:'key_data']
|
117
127
|
end
|
118
128
|
|
129
|
+
if attributes.key?(:'key_operations')
|
130
|
+
if (value = attributes[:'key_operations']).is_a?(Array)
|
131
|
+
self.key_operations = value
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
119
135
|
if attributes.key?(:'metadata')
|
120
136
|
self.metadata = attributes[:'metadata']
|
121
137
|
end
|
@@ -145,6 +161,10 @@ module Akeyless
|
|
145
161
|
if attributes.key?(:'uid_token')
|
146
162
|
self.uid_token = attributes[:'uid_token']
|
147
163
|
end
|
164
|
+
|
165
|
+
if attributes.key?(:'vault_name')
|
166
|
+
self.vault_name = attributes[:'vault_name']
|
167
|
+
end
|
148
168
|
end
|
149
169
|
|
150
170
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -178,13 +198,15 @@ module Akeyless
|
|
178
198
|
alg == o.alg &&
|
179
199
|
cert_file_data == o.cert_file_data &&
|
180
200
|
key_data == o.key_data &&
|
201
|
+
key_operations == o.key_operations &&
|
181
202
|
metadata == o.metadata &&
|
182
203
|
name == o.name &&
|
183
204
|
protection_key_name == o.protection_key_name &&
|
184
205
|
tags == o.tags &&
|
185
206
|
target_name == o.target_name &&
|
186
207
|
token == o.token &&
|
187
|
-
uid_token == o.uid_token
|
208
|
+
uid_token == o.uid_token &&
|
209
|
+
vault_name == o.vault_name
|
188
210
|
end
|
189
211
|
|
190
212
|
# @see the `==` method
|
@@ -196,7 +218,7 @@ module Akeyless
|
|
196
218
|
# Calculates hash code according to all attributes.
|
197
219
|
# @return [Integer] Hash code
|
198
220
|
def hash
|
199
|
-
[alg, cert_file_data, key_data, metadata, name, protection_key_name, tags, target_name, token, uid_token].hash
|
221
|
+
[alg, cert_file_data, key_data, key_operations, metadata, name, protection_key_name, tags, target_name, token, uid_token, vault_name].hash
|
200
222
|
end
|
201
223
|
|
202
224
|
# Builds the object from hash
|
@@ -185,6 +185,10 @@ module Akeyless
|
|
185
185
|
|
186
186
|
attr_accessor :groups
|
187
187
|
|
188
|
+
attr_accessor :hanadb_creation_statements
|
189
|
+
|
190
|
+
attr_accessor :hanadb_revocation_statements
|
191
|
+
|
188
192
|
attr_accessor :host_name
|
189
193
|
|
190
194
|
attr_accessor :host_port
|
@@ -446,6 +450,8 @@ module Akeyless
|
|
446
450
|
:'gke_service_account_key' => :'gke_service_account_key',
|
447
451
|
:'gke_service_account_name' => :'gke_service_account_name',
|
448
452
|
:'groups' => :'groups',
|
453
|
+
:'hanadb_creation_statements' => :'hanadb_creation_statements',
|
454
|
+
:'hanadb_revocation_statements' => :'hanadb_revocation_statements',
|
449
455
|
:'host_name' => :'host_name',
|
450
456
|
:'host_port' => :'host_port',
|
451
457
|
:'is_fixed_user' => :'is_fixed_user',
|
@@ -624,6 +630,8 @@ module Akeyless
|
|
624
630
|
:'gke_service_account_key' => :'String',
|
625
631
|
:'gke_service_account_name' => :'String',
|
626
632
|
:'groups' => :'String',
|
633
|
+
:'hanadb_creation_statements' => :'String',
|
634
|
+
:'hanadb_revocation_statements' => :'String',
|
627
635
|
:'host_name' => :'String',
|
628
636
|
:'host_port' => :'String',
|
629
637
|
:'is_fixed_user' => :'String',
|
@@ -1073,6 +1081,14 @@ module Akeyless
|
|
1073
1081
|
self.groups = attributes[:'groups']
|
1074
1082
|
end
|
1075
1083
|
|
1084
|
+
if attributes.key?(:'hanadb_creation_statements')
|
1085
|
+
self.hanadb_creation_statements = attributes[:'hanadb_creation_statements']
|
1086
|
+
end
|
1087
|
+
|
1088
|
+
if attributes.key?(:'hanadb_revocation_statements')
|
1089
|
+
self.hanadb_revocation_statements = attributes[:'hanadb_revocation_statements']
|
1090
|
+
end
|
1091
|
+
|
1076
1092
|
if attributes.key?(:'host_name')
|
1077
1093
|
self.host_name = attributes[:'host_name']
|
1078
1094
|
end
|
@@ -1516,6 +1532,8 @@ module Akeyless
|
|
1516
1532
|
gke_service_account_key == o.gke_service_account_key &&
|
1517
1533
|
gke_service_account_name == o.gke_service_account_name &&
|
1518
1534
|
groups == o.groups &&
|
1535
|
+
hanadb_creation_statements == o.hanadb_creation_statements &&
|
1536
|
+
hanadb_revocation_statements == o.hanadb_revocation_statements &&
|
1519
1537
|
host_name == o.host_name &&
|
1520
1538
|
host_port == o.host_port &&
|
1521
1539
|
is_fixed_user == o.is_fixed_user &&
|
@@ -1610,7 +1628,7 @@ module Akeyless
|
|
1610
1628
|
# Calculates hash code according to all attributes.
|
1611
1629
|
# @return [Integer] Hash code
|
1612
1630
|
def hash
|
1613
|
-
[active, admin_name, admin_pwd, admin_rotation_interval_days, artifactory_admin_apikey, artifactory_admin_username, artifactory_base_url, artifactory_token_audience, artifactory_token_scope, aws_access_key_id, aws_access_mode, aws_region, aws_role_arns, aws_secret_access_key, aws_session_token, aws_user_console_access, aws_user_groups, aws_user_policies, aws_user_programmatic_access, azure_app_object_id, azure_client_id, azure_client_secret, azure_fixed_user_name_sub_claim_key, azure_fixed_user_only, azure_tenant_id, azure_user_groups_obj_id, azure_user_portal_access, azure_user_programmatic_access, azure_user_roles_template_id, cassandra_creation_statements, chef_organizations, chef_server_access_mode, chef_server_host_name, chef_server_key, chef_server_port, chef_server_url, chef_server_username, chef_skip_ssl, create_sync_url, db_host_name, db_isolation_level, db_max_idle_conns, db_max_open_conns, db_name, db_port, db_pwd, db_server_certificates, db_server_name, db_user_name, dynamic_secret_id, dynamic_secret_key, dynamic_secret_name, dynamic_secret_type, eks_access_key_id, eks_assume_role, eks_cluster_ca_certificate, eks_cluster_endpoint, eks_cluster_name, eks_region, eks_secret_access_key, enable_admin_rotation, externally_provided_user, failure_message, fixed_user_only, gcp_key_algo, gcp_service_account_email, gcp_service_account_key, gcp_token_lifetime, gcp_token_scope, gcp_token_type, github_app_id, github_app_private_key, github_base_url, github_installation_id, github_installation_token_permissions, github_installation_token_repositories, github_installation_token_repositories_ids, github_repository_path, gke_cluster_ca_certificate, gke_cluster_endpoint, gke_cluster_name, gke_service_account_key, gke_service_account_name, groups, host_name, host_port, is_fixed_user, item_targets_assoc, k8s_bearer_token, k8s_cluster_ca_certificate, k8s_cluster_endpoint, k8s_namespace, k8s_service_account, last_admin_rotation, ldap_audience, ldap_bind_dn, ldap_bind_password, ldap_certificate, ldap_token_expiration, ldap_url, ldap_user_attr, ldap_user_dn, mongodb_atlas_api_private_key, mongodb_atlas_api_public_key, mongodb_atlas_project_id, mongodb_custom_data, mongodb_db_name, mongodb_default_auth_db, mongodb_host_port, mongodb_is_atlas, mongodb_password, mongodb_roles, mongodb_uri_connection, mongodb_uri_options, mongodb_username, mssql_creation_statements, mssql_revocation_statements, mysql_creation_statements, oracle_creation_statements, password, password_length, password_policy, payload, postgres_creation_statements, postgres_revocation_statements, rabbitmq_server_password, rabbitmq_server_uri, rabbitmq_server_user, rabbitmq_user_conf_permission, rabbitmq_user_read_permission, rabbitmq_user_tags, rabbitmq_user_vhost, rabbitmq_user_write_permission, redshift_creation_statements, revoke_sync_url, rotate_sync_url, scopes, secure_remote_access_details, session_extension_warn_interval_min, sf_account, sf_user_role, sf_warehouse_name, should_stop, ssl_connection_certificate, ssl_connection_mode, tags, timeout_seconds, use_gw_cloud_identity, user_name, user_principal_name, user_ttl, username_length, username_policy, venafi_allow_subdomains, venafi_allowed_domains, venafi_api_key, venafi_auto_generated_folder, venafi_base_url, venafi_root_first_in_chain, venafi_sign_using_akeyless_pki, venafi_signer_key_name, venafi_store_private_key, venafi_tpp_password, venafi_tpp_username, venafi_use_tpp, venafi_zone, warn_before_user_expiration_min].hash
|
1631
|
+
[active, admin_name, admin_pwd, admin_rotation_interval_days, artifactory_admin_apikey, artifactory_admin_username, artifactory_base_url, artifactory_token_audience, artifactory_token_scope, aws_access_key_id, aws_access_mode, aws_region, aws_role_arns, aws_secret_access_key, aws_session_token, aws_user_console_access, aws_user_groups, aws_user_policies, aws_user_programmatic_access, azure_app_object_id, azure_client_id, azure_client_secret, azure_fixed_user_name_sub_claim_key, azure_fixed_user_only, azure_tenant_id, azure_user_groups_obj_id, azure_user_portal_access, azure_user_programmatic_access, azure_user_roles_template_id, cassandra_creation_statements, chef_organizations, chef_server_access_mode, chef_server_host_name, chef_server_key, chef_server_port, chef_server_url, chef_server_username, chef_skip_ssl, create_sync_url, db_host_name, db_isolation_level, db_max_idle_conns, db_max_open_conns, db_name, db_port, db_pwd, db_server_certificates, db_server_name, db_user_name, dynamic_secret_id, dynamic_secret_key, dynamic_secret_name, dynamic_secret_type, eks_access_key_id, eks_assume_role, eks_cluster_ca_certificate, eks_cluster_endpoint, eks_cluster_name, eks_region, eks_secret_access_key, enable_admin_rotation, externally_provided_user, failure_message, fixed_user_only, gcp_key_algo, gcp_service_account_email, gcp_service_account_key, gcp_token_lifetime, gcp_token_scope, gcp_token_type, github_app_id, github_app_private_key, github_base_url, github_installation_id, github_installation_token_permissions, github_installation_token_repositories, github_installation_token_repositories_ids, github_repository_path, gke_cluster_ca_certificate, gke_cluster_endpoint, gke_cluster_name, gke_service_account_key, gke_service_account_name, groups, hanadb_creation_statements, hanadb_revocation_statements, host_name, host_port, is_fixed_user, item_targets_assoc, k8s_bearer_token, k8s_cluster_ca_certificate, k8s_cluster_endpoint, k8s_namespace, k8s_service_account, last_admin_rotation, ldap_audience, ldap_bind_dn, ldap_bind_password, ldap_certificate, ldap_token_expiration, ldap_url, ldap_user_attr, ldap_user_dn, mongodb_atlas_api_private_key, mongodb_atlas_api_public_key, mongodb_atlas_project_id, mongodb_custom_data, mongodb_db_name, mongodb_default_auth_db, mongodb_host_port, mongodb_is_atlas, mongodb_password, mongodb_roles, mongodb_uri_connection, mongodb_uri_options, mongodb_username, mssql_creation_statements, mssql_revocation_statements, mysql_creation_statements, oracle_creation_statements, password, password_length, password_policy, payload, postgres_creation_statements, postgres_revocation_statements, rabbitmq_server_password, rabbitmq_server_uri, rabbitmq_server_user, rabbitmq_user_conf_permission, rabbitmq_user_read_permission, rabbitmq_user_tags, rabbitmq_user_vhost, rabbitmq_user_write_permission, redshift_creation_statements, revoke_sync_url, rotate_sync_url, scopes, secure_remote_access_details, session_extension_warn_interval_min, sf_account, sf_user_role, sf_warehouse_name, should_stop, ssl_connection_certificate, ssl_connection_mode, tags, timeout_seconds, use_gw_cloud_identity, user_name, user_principal_name, user_ttl, username_length, username_policy, venafi_allow_subdomains, venafi_allowed_domains, venafi_api_key, venafi_auto_generated_folder, venafi_base_url, venafi_root_first_in_chain, venafi_sign_using_akeyless_pki, venafi_signer_key_name, venafi_store_private_key, venafi_tpp_password, venafi_tpp_username, venafi_use_tpp, venafi_zone, warn_before_user_expiration_min].hash
|
1614
1632
|
end
|
1615
1633
|
|
1616
1634
|
# Builds the object from hash
|
@@ -15,9 +15,15 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Akeyless
|
17
17
|
class GatewayCreateProducerCustom
|
18
|
+
# Define rotation interval in days
|
19
|
+
attr_accessor :admin_rotation_interval_days
|
20
|
+
|
18
21
|
# URL of an endpoint that implements /sync/create method, for example https://webhook.example.com/sync/create
|
19
22
|
attr_accessor :create_sync_url
|
20
23
|
|
24
|
+
# Should admin credentials be rotated
|
25
|
+
attr_accessor :enable_admin_rotation
|
26
|
+
|
21
27
|
# Producer name
|
22
28
|
attr_accessor :name
|
23
29
|
|
@@ -51,7 +57,9 @@ module Akeyless
|
|
51
57
|
# Attribute mapping from ruby-style variable name to JSON key.
|
52
58
|
def self.attribute_map
|
53
59
|
{
|
60
|
+
:'admin_rotation_interval_days' => :'admin_rotation_interval_days',
|
54
61
|
:'create_sync_url' => :'create-sync-url',
|
62
|
+
:'enable_admin_rotation' => :'enable_admin_rotation',
|
55
63
|
:'name' => :'name',
|
56
64
|
:'payload' => :'payload',
|
57
65
|
:'producer_encryption_key_name' => :'producer-encryption-key-name',
|
@@ -73,7 +81,9 @@ module Akeyless
|
|
73
81
|
# Attribute type mapping.
|
74
82
|
def self.openapi_types
|
75
83
|
{
|
84
|
+
:'admin_rotation_interval_days' => :'Integer',
|
76
85
|
:'create_sync_url' => :'String',
|
86
|
+
:'enable_admin_rotation' => :'Boolean',
|
77
87
|
:'name' => :'String',
|
78
88
|
:'payload' => :'String',
|
79
89
|
:'producer_encryption_key_name' => :'String',
|
@@ -108,10 +118,20 @@ module Akeyless
|
|
108
118
|
h[k.to_sym] = v
|
109
119
|
}
|
110
120
|
|
121
|
+
if attributes.key?(:'admin_rotation_interval_days')
|
122
|
+
self.admin_rotation_interval_days = attributes[:'admin_rotation_interval_days']
|
123
|
+
end
|
124
|
+
|
111
125
|
if attributes.key?(:'create_sync_url')
|
112
126
|
self.create_sync_url = attributes[:'create_sync_url']
|
113
127
|
end
|
114
128
|
|
129
|
+
if attributes.key?(:'enable_admin_rotation')
|
130
|
+
self.enable_admin_rotation = attributes[:'enable_admin_rotation']
|
131
|
+
else
|
132
|
+
self.enable_admin_rotation = false
|
133
|
+
end
|
134
|
+
|
115
135
|
if attributes.key?(:'name')
|
116
136
|
self.name = attributes[:'name']
|
117
137
|
end
|
@@ -192,7 +212,9 @@ module Akeyless
|
|
192
212
|
def ==(o)
|
193
213
|
return true if self.equal?(o)
|
194
214
|
self.class == o.class &&
|
215
|
+
admin_rotation_interval_days == o.admin_rotation_interval_days &&
|
195
216
|
create_sync_url == o.create_sync_url &&
|
217
|
+
enable_admin_rotation == o.enable_admin_rotation &&
|
196
218
|
name == o.name &&
|
197
219
|
payload == o.payload &&
|
198
220
|
producer_encryption_key_name == o.producer_encryption_key_name &&
|
@@ -214,7 +236,7 @@ module Akeyless
|
|
214
236
|
# Calculates hash code according to all attributes.
|
215
237
|
# @return [Integer] Hash code
|
216
238
|
def hash
|
217
|
-
[create_sync_url, name, payload, producer_encryption_key_name, revoke_sync_url, rotate_sync_url, tags, timeout_sec, token, uid_token, user_ttl].hash
|
239
|
+
[admin_rotation_interval_days, create_sync_url, enable_admin_rotation, name, payload, producer_encryption_key_name, revoke_sync_url, rotate_sync_url, tags, timeout_sec, token, uid_token, user_ttl].hash
|
218
240
|
end
|
219
241
|
|
220
242
|
# Builds the object from hash
|