akeyless 2.15.32 → 2.16.0
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 +13 -1
- data/docs/Auth.md +5 -1
- data/docs/AuthMethodAccessInfo.md +2 -0
- data/docs/CertAccessRules.md +34 -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/GatewayCreateProducerCustom.md +4 -0
- data/docs/GatewayCreateProducerOracleDb.md +8 -0
- data/docs/GatewayMessageQueueInfo.md +1 -3
- data/docs/GatewayUpdateProducerCustom.md +4 -0
- data/docs/GatewayUpdateProducerOracleDb.md +8 -0
- data/docs/KMIPClient.md +2 -0
- data/docs/KMIPServer.md +4 -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 +3 -1
- data/docs/ListRoles.md +2 -0
- data/docs/ListTargets.md +2 -0
- data/docs/OIDCAccessRules.md +4 -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/UpdateOutput.md +2 -0
- data/docs/V2Api.md +256 -0
- data/lib/akeyless/api/v2_api.rb +248 -0
- data/lib/akeyless/api_client.rb +3 -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/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/gateway_create_producer_custom.rb +23 -1
- 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_oracle_db.rb +39 -1
- data/lib/akeyless/models/kmip_client.rb +10 -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 +19 -1
- data/lib/akeyless/models/list_auth_methods.rb +12 -2
- 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/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_output.rb +10 -1
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +8 -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/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/update_auth_method_cert_output_spec.rb +34 -0
- data/spec/models/update_auth_method_cert_spec.rb +130 -0
- metadata +34 -2
|
@@ -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
|
|
@@ -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
|
|
@@ -46,6 +46,14 @@ module Akeyless
|
|
|
46
46
|
# Dynamic producer encryption key
|
|
47
47
|
attr_accessor :producer_encryption_key_name
|
|
48
48
|
|
|
49
|
+
attr_accessor :secure_access_bastion_issuer
|
|
50
|
+
|
|
51
|
+
attr_accessor :secure_access_enable
|
|
52
|
+
|
|
53
|
+
attr_accessor :secure_access_host
|
|
54
|
+
|
|
55
|
+
attr_accessor :secure_access_web
|
|
56
|
+
|
|
49
57
|
# List of the tags attached to this secret
|
|
50
58
|
attr_accessor :tags
|
|
51
59
|
|
|
@@ -74,6 +82,10 @@ module Akeyless
|
|
|
74
82
|
:'oracle_service_name' => :'oracle-service-name',
|
|
75
83
|
:'oracle_username' => :'oracle-username',
|
|
76
84
|
:'producer_encryption_key_name' => :'producer-encryption-key-name',
|
|
85
|
+
:'secure_access_bastion_issuer' => :'secure-access-bastion-issuer',
|
|
86
|
+
:'secure_access_enable' => :'secure-access-enable',
|
|
87
|
+
:'secure_access_host' => :'secure-access-host',
|
|
88
|
+
:'secure_access_web' => :'secure-access-web',
|
|
77
89
|
:'tags' => :'tags',
|
|
78
90
|
:'target_name' => :'target-name',
|
|
79
91
|
:'token' => :'token',
|
|
@@ -100,6 +112,10 @@ module Akeyless
|
|
|
100
112
|
:'oracle_service_name' => :'String',
|
|
101
113
|
:'oracle_username' => :'String',
|
|
102
114
|
:'producer_encryption_key_name' => :'String',
|
|
115
|
+
:'secure_access_bastion_issuer' => :'String',
|
|
116
|
+
:'secure_access_enable' => :'String',
|
|
117
|
+
:'secure_access_host' => :'Array<String>',
|
|
118
|
+
:'secure_access_web' => :'Boolean',
|
|
103
119
|
:'tags' => :'Array<String>',
|
|
104
120
|
:'target_name' => :'String',
|
|
105
121
|
:'token' => :'String',
|
|
@@ -173,6 +189,24 @@ module Akeyless
|
|
|
173
189
|
self.producer_encryption_key_name = attributes[:'producer_encryption_key_name']
|
|
174
190
|
end
|
|
175
191
|
|
|
192
|
+
if attributes.key?(:'secure_access_bastion_issuer')
|
|
193
|
+
self.secure_access_bastion_issuer = attributes[:'secure_access_bastion_issuer']
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
if attributes.key?(:'secure_access_enable')
|
|
197
|
+
self.secure_access_enable = attributes[:'secure_access_enable']
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
if attributes.key?(:'secure_access_host')
|
|
201
|
+
if (value = attributes[:'secure_access_host']).is_a?(Array)
|
|
202
|
+
self.secure_access_host = value
|
|
203
|
+
end
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
if attributes.key?(:'secure_access_web')
|
|
207
|
+
self.secure_access_web = attributes[:'secure_access_web']
|
|
208
|
+
end
|
|
209
|
+
|
|
176
210
|
if attributes.key?(:'tags')
|
|
177
211
|
if (value = attributes[:'tags']).is_a?(Array)
|
|
178
212
|
self.tags = value
|
|
@@ -231,6 +265,10 @@ module Akeyless
|
|
|
231
265
|
oracle_service_name == o.oracle_service_name &&
|
|
232
266
|
oracle_username == o.oracle_username &&
|
|
233
267
|
producer_encryption_key_name == o.producer_encryption_key_name &&
|
|
268
|
+
secure_access_bastion_issuer == o.secure_access_bastion_issuer &&
|
|
269
|
+
secure_access_enable == o.secure_access_enable &&
|
|
270
|
+
secure_access_host == o.secure_access_host &&
|
|
271
|
+
secure_access_web == o.secure_access_web &&
|
|
234
272
|
tags == o.tags &&
|
|
235
273
|
target_name == o.target_name &&
|
|
236
274
|
token == o.token &&
|
|
@@ -247,7 +285,7 @@ module Akeyless
|
|
|
247
285
|
# Calculates hash code according to all attributes.
|
|
248
286
|
# @return [Integer] Hash code
|
|
249
287
|
def hash
|
|
250
|
-
[db_server_certificates, db_server_name, name, oracle_host, oracle_password, oracle_port, oracle_screation_statements, oracle_service_name, oracle_username, producer_encryption_key_name, tags, target_name, token, uid_token, user_ttl].hash
|
|
288
|
+
[db_server_certificates, db_server_name, name, oracle_host, oracle_password, oracle_port, oracle_screation_statements, oracle_service_name, oracle_username, producer_encryption_key_name, secure_access_bastion_issuer, secure_access_enable, secure_access_host, secure_access_web, tags, target_name, token, uid_token, user_ttl].hash
|
|
251
289
|
end
|
|
252
290
|
|
|
253
291
|
# Builds the object from hash
|
|
@@ -21,15 +21,12 @@ module Akeyless
|
|
|
21
21
|
|
|
22
22
|
attr_accessor :queue_url
|
|
23
23
|
|
|
24
|
-
attr_accessor :use_new_queue
|
|
25
|
-
|
|
26
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
25
|
def self.attribute_map
|
|
28
26
|
{
|
|
29
27
|
:'mq_type' => :'mq_type',
|
|
30
28
|
:'queue_name' => :'queue_name',
|
|
31
|
-
:'queue_url' => :'queue_url'
|
|
32
|
-
:'use_new_queue' => :'use_new_queue'
|
|
29
|
+
:'queue_url' => :'queue_url'
|
|
33
30
|
}
|
|
34
31
|
end
|
|
35
32
|
|
|
@@ -43,8 +40,7 @@ module Akeyless
|
|
|
43
40
|
{
|
|
44
41
|
:'mq_type' => :'String',
|
|
45
42
|
:'queue_name' => :'String',
|
|
46
|
-
:'queue_url' => :'String'
|
|
47
|
-
:'use_new_queue' => :'Boolean'
|
|
43
|
+
:'queue_url' => :'String'
|
|
48
44
|
}
|
|
49
45
|
end
|
|
50
46
|
|
|
@@ -80,10 +76,6 @@ module Akeyless
|
|
|
80
76
|
if attributes.key?(:'queue_url')
|
|
81
77
|
self.queue_url = attributes[:'queue_url']
|
|
82
78
|
end
|
|
83
|
-
|
|
84
|
-
if attributes.key?(:'use_new_queue')
|
|
85
|
-
self.use_new_queue = attributes[:'use_new_queue']
|
|
86
|
-
end
|
|
87
79
|
end
|
|
88
80
|
|
|
89
81
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -106,8 +98,7 @@ module Akeyless
|
|
|
106
98
|
self.class == o.class &&
|
|
107
99
|
mq_type == o.mq_type &&
|
|
108
100
|
queue_name == o.queue_name &&
|
|
109
|
-
queue_url == o.queue_url
|
|
110
|
-
use_new_queue == o.use_new_queue
|
|
101
|
+
queue_url == o.queue_url
|
|
111
102
|
end
|
|
112
103
|
|
|
113
104
|
# @see the `==` method
|
|
@@ -119,7 +110,7 @@ module Akeyless
|
|
|
119
110
|
# Calculates hash code according to all attributes.
|
|
120
111
|
# @return [Integer] Hash code
|
|
121
112
|
def hash
|
|
122
|
-
[mq_type, queue_name, queue_url
|
|
113
|
+
[mq_type, queue_name, queue_url].hash
|
|
123
114
|
end
|
|
124
115
|
|
|
125
116
|
# Builds the object from hash
|
|
@@ -15,9 +15,15 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Akeyless
|
|
17
17
|
class GatewayUpdateProducerCustom
|
|
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
|
|
|
@@ -54,7 +60,9 @@ module Akeyless
|
|
|
54
60
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
55
61
|
def self.attribute_map
|
|
56
62
|
{
|
|
63
|
+
:'admin_rotation_interval_days' => :'admin_rotation_interval_days',
|
|
57
64
|
:'create_sync_url' => :'create-sync-url',
|
|
65
|
+
:'enable_admin_rotation' => :'enable_admin_rotation',
|
|
58
66
|
:'name' => :'name',
|
|
59
67
|
:'new_name' => :'new-name',
|
|
60
68
|
:'payload' => :'payload',
|
|
@@ -77,7 +85,9 @@ module Akeyless
|
|
|
77
85
|
# Attribute type mapping.
|
|
78
86
|
def self.openapi_types
|
|
79
87
|
{
|
|
88
|
+
:'admin_rotation_interval_days' => :'Integer',
|
|
80
89
|
:'create_sync_url' => :'String',
|
|
90
|
+
:'enable_admin_rotation' => :'Boolean',
|
|
81
91
|
:'name' => :'String',
|
|
82
92
|
:'new_name' => :'String',
|
|
83
93
|
:'payload' => :'String',
|
|
@@ -113,10 +123,20 @@ module Akeyless
|
|
|
113
123
|
h[k.to_sym] = v
|
|
114
124
|
}
|
|
115
125
|
|
|
126
|
+
if attributes.key?(:'admin_rotation_interval_days')
|
|
127
|
+
self.admin_rotation_interval_days = attributes[:'admin_rotation_interval_days']
|
|
128
|
+
end
|
|
129
|
+
|
|
116
130
|
if attributes.key?(:'create_sync_url')
|
|
117
131
|
self.create_sync_url = attributes[:'create_sync_url']
|
|
118
132
|
end
|
|
119
133
|
|
|
134
|
+
if attributes.key?(:'enable_admin_rotation')
|
|
135
|
+
self.enable_admin_rotation = attributes[:'enable_admin_rotation']
|
|
136
|
+
else
|
|
137
|
+
self.enable_admin_rotation = false
|
|
138
|
+
end
|
|
139
|
+
|
|
120
140
|
if attributes.key?(:'name')
|
|
121
141
|
self.name = attributes[:'name']
|
|
122
142
|
end
|
|
@@ -201,7 +221,9 @@ module Akeyless
|
|
|
201
221
|
def ==(o)
|
|
202
222
|
return true if self.equal?(o)
|
|
203
223
|
self.class == o.class &&
|
|
224
|
+
admin_rotation_interval_days == o.admin_rotation_interval_days &&
|
|
204
225
|
create_sync_url == o.create_sync_url &&
|
|
226
|
+
enable_admin_rotation == o.enable_admin_rotation &&
|
|
205
227
|
name == o.name &&
|
|
206
228
|
new_name == o.new_name &&
|
|
207
229
|
payload == o.payload &&
|
|
@@ -224,7 +246,7 @@ module Akeyless
|
|
|
224
246
|
# Calculates hash code according to all attributes.
|
|
225
247
|
# @return [Integer] Hash code
|
|
226
248
|
def hash
|
|
227
|
-
[create_sync_url, name, new_name, payload, producer_encryption_key_name, revoke_sync_url, rotate_sync_url, tags, timeout_sec, token, uid_token, user_ttl].hash
|
|
249
|
+
[admin_rotation_interval_days, create_sync_url, enable_admin_rotation, name, new_name, payload, producer_encryption_key_name, revoke_sync_url, rotate_sync_url, tags, timeout_sec, token, uid_token, user_ttl].hash
|
|
228
250
|
end
|
|
229
251
|
|
|
230
252
|
# Builds the object from hash
|
|
@@ -49,6 +49,14 @@ module Akeyless
|
|
|
49
49
|
# Dynamic producer encryption key
|
|
50
50
|
attr_accessor :producer_encryption_key_name
|
|
51
51
|
|
|
52
|
+
attr_accessor :secure_access_bastion_issuer
|
|
53
|
+
|
|
54
|
+
attr_accessor :secure_access_enable
|
|
55
|
+
|
|
56
|
+
attr_accessor :secure_access_host
|
|
57
|
+
|
|
58
|
+
attr_accessor :secure_access_web
|
|
59
|
+
|
|
52
60
|
# List of the tags attached to this secret
|
|
53
61
|
attr_accessor :tags
|
|
54
62
|
|
|
@@ -78,6 +86,10 @@ module Akeyless
|
|
|
78
86
|
:'oracle_service_name' => :'oracle-service-name',
|
|
79
87
|
:'oracle_username' => :'oracle-username',
|
|
80
88
|
:'producer_encryption_key_name' => :'producer-encryption-key-name',
|
|
89
|
+
:'secure_access_bastion_issuer' => :'secure-access-bastion-issuer',
|
|
90
|
+
:'secure_access_enable' => :'secure-access-enable',
|
|
91
|
+
:'secure_access_host' => :'secure-access-host',
|
|
92
|
+
:'secure_access_web' => :'secure-access-web',
|
|
81
93
|
:'tags' => :'tags',
|
|
82
94
|
:'target_name' => :'target-name',
|
|
83
95
|
:'token' => :'token',
|
|
@@ -105,6 +117,10 @@ module Akeyless
|
|
|
105
117
|
:'oracle_service_name' => :'String',
|
|
106
118
|
:'oracle_username' => :'String',
|
|
107
119
|
:'producer_encryption_key_name' => :'String',
|
|
120
|
+
:'secure_access_bastion_issuer' => :'String',
|
|
121
|
+
:'secure_access_enable' => :'String',
|
|
122
|
+
:'secure_access_host' => :'Array<String>',
|
|
123
|
+
:'secure_access_web' => :'Boolean',
|
|
108
124
|
:'tags' => :'Array<String>',
|
|
109
125
|
:'target_name' => :'String',
|
|
110
126
|
:'token' => :'String',
|
|
@@ -182,6 +198,24 @@ module Akeyless
|
|
|
182
198
|
self.producer_encryption_key_name = attributes[:'producer_encryption_key_name']
|
|
183
199
|
end
|
|
184
200
|
|
|
201
|
+
if attributes.key?(:'secure_access_bastion_issuer')
|
|
202
|
+
self.secure_access_bastion_issuer = attributes[:'secure_access_bastion_issuer']
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
if attributes.key?(:'secure_access_enable')
|
|
206
|
+
self.secure_access_enable = attributes[:'secure_access_enable']
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
if attributes.key?(:'secure_access_host')
|
|
210
|
+
if (value = attributes[:'secure_access_host']).is_a?(Array)
|
|
211
|
+
self.secure_access_host = value
|
|
212
|
+
end
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
if attributes.key?(:'secure_access_web')
|
|
216
|
+
self.secure_access_web = attributes[:'secure_access_web']
|
|
217
|
+
end
|
|
218
|
+
|
|
185
219
|
if attributes.key?(:'tags')
|
|
186
220
|
if (value = attributes[:'tags']).is_a?(Array)
|
|
187
221
|
self.tags = value
|
|
@@ -241,6 +275,10 @@ module Akeyless
|
|
|
241
275
|
oracle_service_name == o.oracle_service_name &&
|
|
242
276
|
oracle_username == o.oracle_username &&
|
|
243
277
|
producer_encryption_key_name == o.producer_encryption_key_name &&
|
|
278
|
+
secure_access_bastion_issuer == o.secure_access_bastion_issuer &&
|
|
279
|
+
secure_access_enable == o.secure_access_enable &&
|
|
280
|
+
secure_access_host == o.secure_access_host &&
|
|
281
|
+
secure_access_web == o.secure_access_web &&
|
|
244
282
|
tags == o.tags &&
|
|
245
283
|
target_name == o.target_name &&
|
|
246
284
|
token == o.token &&
|
|
@@ -257,7 +295,7 @@ module Akeyless
|
|
|
257
295
|
# Calculates hash code according to all attributes.
|
|
258
296
|
# @return [Integer] Hash code
|
|
259
297
|
def hash
|
|
260
|
-
[db_server_certificates, db_server_name, name, new_name, oracle_host, oracle_password, oracle_port, oracle_screation_statements, oracle_service_name, oracle_username, producer_encryption_key_name, tags, target_name, token, uid_token, user_ttl].hash
|
|
298
|
+
[db_server_certificates, db_server_name, name, new_name, oracle_host, oracle_password, oracle_port, oracle_screation_statements, oracle_service_name, oracle_username, producer_encryption_key_name, secure_access_bastion_issuer, secure_access_enable, secure_access_host, secure_access_web, tags, target_name, token, uid_token, user_ttl].hash
|
|
261
299
|
end
|
|
262
300
|
|
|
263
301
|
# Builds the object from hash
|
|
@@ -17,6 +17,8 @@ module Akeyless
|
|
|
17
17
|
class KMIPClient
|
|
18
18
|
attr_accessor :certificate_issue_date
|
|
19
19
|
|
|
20
|
+
attr_accessor :certificate_ttl_in_seconds
|
|
21
|
+
|
|
20
22
|
attr_accessor :id
|
|
21
23
|
|
|
22
24
|
attr_accessor :name
|
|
@@ -27,6 +29,7 @@ module Akeyless
|
|
|
27
29
|
def self.attribute_map
|
|
28
30
|
{
|
|
29
31
|
:'certificate_issue_date' => :'certificate_issue_date',
|
|
32
|
+
:'certificate_ttl_in_seconds' => :'certificate_ttl_in_seconds',
|
|
30
33
|
:'id' => :'id',
|
|
31
34
|
:'name' => :'name',
|
|
32
35
|
:'rules' => :'rules'
|
|
@@ -42,6 +45,7 @@ module Akeyless
|
|
|
42
45
|
def self.openapi_types
|
|
43
46
|
{
|
|
44
47
|
:'certificate_issue_date' => :'Time',
|
|
48
|
+
:'certificate_ttl_in_seconds' => :'Integer',
|
|
45
49
|
:'id' => :'String',
|
|
46
50
|
:'name' => :'String',
|
|
47
51
|
:'rules' => :'Array<PathRule>'
|
|
@@ -73,6 +77,10 @@ module Akeyless
|
|
|
73
77
|
self.certificate_issue_date = attributes[:'certificate_issue_date']
|
|
74
78
|
end
|
|
75
79
|
|
|
80
|
+
if attributes.key?(:'certificate_ttl_in_seconds')
|
|
81
|
+
self.certificate_ttl_in_seconds = attributes[:'certificate_ttl_in_seconds']
|
|
82
|
+
end
|
|
83
|
+
|
|
76
84
|
if attributes.key?(:'id')
|
|
77
85
|
self.id = attributes[:'id']
|
|
78
86
|
end
|
|
@@ -107,6 +115,7 @@ module Akeyless
|
|
|
107
115
|
return true if self.equal?(o)
|
|
108
116
|
self.class == o.class &&
|
|
109
117
|
certificate_issue_date == o.certificate_issue_date &&
|
|
118
|
+
certificate_ttl_in_seconds == o.certificate_ttl_in_seconds &&
|
|
110
119
|
id == o.id &&
|
|
111
120
|
name == o.name &&
|
|
112
121
|
rules == o.rules
|
|
@@ -121,7 +130,7 @@ module Akeyless
|
|
|
121
130
|
# Calculates hash code according to all attributes.
|
|
122
131
|
# @return [Integer] Hash code
|
|
123
132
|
def hash
|
|
124
|
-
[certificate_issue_date, id, name, rules].hash
|
|
133
|
+
[certificate_issue_date, certificate_ttl_in_seconds, id, name, rules].hash
|
|
125
134
|
end
|
|
126
135
|
|
|
127
136
|
# Builds the object from hash
|