akeyless 5.0.5 → 5.0.7
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 +11 -1
- data/docs/AzureLogAnalyticsForwardingConfig.md +2 -0
- data/docs/CertificateTemplateInfo.md +2 -0
- data/docs/CreateClassicKey.md +3 -1
- data/docs/CreateDFCKey.md +3 -1
- data/docs/CreateGodaddyTarget.md +2 -0
- data/docs/CreateKey.md +3 -1
- data/docs/DynamicSecretCreateK8s.md +2 -0
- data/docs/DynamicSecretUpdateK8s.md +2 -0
- data/docs/GatewayCreateProducerNativeK8S.md +2 -0
- data/docs/GatewayUpdateLogForwardingAzureAnalytics.md +2 -0
- data/docs/GatewayUpdateLogForwardingSplunk.md +2 -0
- data/docs/GatewayUpdateProducerNativeK8S.md +2 -0
- data/docs/GatewayUpdateRemoteAccessRdpRecordings.md +6 -0
- data/docs/GeminiTargetDetails.md +22 -0
- data/docs/GenerateCsr.md +2 -0
- data/docs/GodaddyTargetDetails.md +2 -0
- data/docs/GwUpdateRemoteAccessSessionLogsAzureAnalytics.md +2 -0
- data/docs/GwUpdateRemoteAccessSessionLogsSplunk.md +2 -0
- data/docs/OpenAITargetDetails.md +26 -0
- data/docs/SplunkLogForwardingConfig.md +2 -0
- data/docs/StaticSecretSync.md +2 -0
- data/docs/TargetCreateGemini.md +36 -0
- data/docs/TargetCreateGodaddy.md +2 -0
- data/docs/TargetCreateOpenAI.md +40 -0
- data/docs/TargetTypeDetailsInput.md +4 -0
- data/docs/TargetUpdateGemini.md +42 -0
- data/docs/TargetUpdateGodaddy.md +2 -0
- data/docs/TargetUpdateOpenAI.md +46 -0
- data/docs/UpdateGodaddyTarget.md +2 -0
- data/docs/V2Api.md +252 -0
- data/docs/WebBastionRdpRecord.md +6 -0
- data/lib/akeyless/api/v2_api.rb +256 -0
- data/lib/akeyless/models/azure_log_analytics_forwarding_config.rb +10 -1
- data/lib/akeyless/models/certificate_template_info.rb +10 -1
- data/lib/akeyless/models/create_classic_key.rb +14 -2
- data/lib/akeyless/models/create_dfc_key.rb +14 -2
- data/lib/akeyless/models/create_godaddy_target.rb +11 -1
- data/lib/akeyless/models/create_key.rb +14 -2
- data/lib/akeyless/models/dynamic_secret_create_k8s.rb +11 -1
- data/lib/akeyless/models/dynamic_secret_update_k8s.rb +11 -1
- data/lib/akeyless/models/gateway_create_producer_native_k8_s.rb +11 -1
- data/lib/akeyless/models/gateway_update_log_forwarding_azure_analytics.rb +13 -1
- data/lib/akeyless/models/gateway_update_log_forwarding_splunk.rb +13 -1
- data/lib/akeyless/models/gateway_update_producer_native_k8_s.rb +11 -1
- data/lib/akeyless/models/gateway_update_remote_access_rdp_recordings.rb +31 -1
- data/lib/akeyless/models/gemini_target_details.rb +233 -0
- data/lib/akeyless/models/generate_csr.rb +13 -1
- data/lib/akeyless/models/godaddy_target_details.rb +11 -1
- data/lib/akeyless/models/gw_update_remote_access_session_logs_azure_analytics.rb +13 -1
- data/lib/akeyless/models/gw_update_remote_access_session_logs_splunk.rb +13 -1
- data/lib/akeyless/models/open_ai_target_details.rb +251 -0
- data/lib/akeyless/models/splunk_log_forwarding_config.rb +10 -1
- data/lib/akeyless/models/static_secret_sync.rb +11 -1
- data/lib/akeyless/models/target_create_gemini.rb +317 -0
- data/lib/akeyless/models/target_create_godaddy.rb +11 -1
- data/lib/akeyless/models/target_create_open_ai.rb +337 -0
- data/lib/akeyless/models/target_type_details_input.rb +19 -1
- data/lib/akeyless/models/target_update_gemini.rb +351 -0
- data/lib/akeyless/models/target_update_godaddy.rb +11 -1
- data/lib/akeyless/models/target_update_open_ai.rb +371 -0
- data/lib/akeyless/models/update_godaddy_target.rb +11 -1
- data/lib/akeyless/models/web_bastion_rdp_record.rb +28 -1
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +6 -0
- data/spec/models/gemini_target_details_spec.rb +48 -0
- data/spec/models/open_ai_target_details_spec.rb +60 -0
- data/spec/models/target_create_gemini_spec.rb +90 -0
- data/spec/models/target_create_open_ai_spec.rb +102 -0
- data/spec/models/target_update_gemini_spec.rb +108 -0
- data/spec/models/target_update_open_ai_spec.rb +120 -0
- metadata +26 -2
@@ -52,6 +52,9 @@ module Akeyless
|
|
52
52
|
# Specifies the type of the pre-existing K8S role [Role, ClusterRole] (relevant only for k8s-service-account-type=dynamic)
|
53
53
|
attr_accessor :k8s_predefined_role_type
|
54
54
|
|
55
|
+
# Content of the yaml in a Base64 format.
|
56
|
+
attr_accessor :k8s_rolebinding_yaml_data
|
57
|
+
|
55
58
|
# Path to yaml file that contains definitions of K8S role and role binding (relevant only for k8s-service-account-type=dynamic)
|
56
59
|
attr_accessor :k8s_rolebinding_yaml_def
|
57
60
|
|
@@ -130,6 +133,7 @@ module Akeyless
|
|
130
133
|
:'k8s_namespace' => :'k8s-namespace',
|
131
134
|
:'k8s_predefined_role_name' => :'k8s-predefined-role-name',
|
132
135
|
:'k8s_predefined_role_type' => :'k8s-predefined-role-type',
|
136
|
+
:'k8s_rolebinding_yaml_data' => :'k8s-rolebinding-yaml-data',
|
133
137
|
:'k8s_rolebinding_yaml_def' => :'k8s-rolebinding-yaml-def',
|
134
138
|
:'k8s_service_account' => :'k8s-service-account',
|
135
139
|
:'k8s_service_account_type' => :'k8s-service-account-type',
|
@@ -174,6 +178,7 @@ module Akeyless
|
|
174
178
|
:'k8s_namespace' => :'String',
|
175
179
|
:'k8s_predefined_role_name' => :'String',
|
176
180
|
:'k8s_predefined_role_type' => :'String',
|
181
|
+
:'k8s_rolebinding_yaml_data' => :'String',
|
177
182
|
:'k8s_rolebinding_yaml_def' => :'String',
|
178
183
|
:'k8s_service_account' => :'String',
|
179
184
|
:'k8s_service_account_type' => :'String',
|
@@ -269,6 +274,10 @@ module Akeyless
|
|
269
274
|
self.k8s_predefined_role_type = attributes[:'k8s_predefined_role_type']
|
270
275
|
end
|
271
276
|
|
277
|
+
if attributes.key?(:'k8s_rolebinding_yaml_data')
|
278
|
+
self.k8s_rolebinding_yaml_data = attributes[:'k8s_rolebinding_yaml_data']
|
279
|
+
end
|
280
|
+
|
272
281
|
if attributes.key?(:'k8s_rolebinding_yaml_def')
|
273
282
|
self.k8s_rolebinding_yaml_def = attributes[:'k8s_rolebinding_yaml_def']
|
274
283
|
end
|
@@ -403,6 +412,7 @@ module Akeyless
|
|
403
412
|
k8s_namespace == o.k8s_namespace &&
|
404
413
|
k8s_predefined_role_name == o.k8s_predefined_role_name &&
|
405
414
|
k8s_predefined_role_type == o.k8s_predefined_role_type &&
|
415
|
+
k8s_rolebinding_yaml_data == o.k8s_rolebinding_yaml_data &&
|
406
416
|
k8s_rolebinding_yaml_def == o.k8s_rolebinding_yaml_def &&
|
407
417
|
k8s_service_account == o.k8s_service_account &&
|
408
418
|
k8s_service_account_type == o.k8s_service_account_type &&
|
@@ -435,7 +445,7 @@ module Akeyless
|
|
435
445
|
# Calculates hash code according to all attributes.
|
436
446
|
# @return [Integer] Hash code
|
437
447
|
def hash
|
438
|
-
[custom_username_template, delete_protection, description, json, k8s_allowed_namespaces, k8s_cluster_ca_cert, k8s_cluster_endpoint, k8s_cluster_name, k8s_cluster_token, k8s_namespace, k8s_predefined_role_name, k8s_predefined_role_type, k8s_rolebinding_yaml_def, k8s_service_account, k8s_service_account_type, name, producer_encryption_key_name, secure_access_allow_port_forwading, secure_access_bastion_issuer, secure_access_certificate_issuer, secure_access_cluster_endpoint, secure_access_dashboard_url, secure_access_delay, secure_access_enable, secure_access_web, secure_access_web_browsing, secure_access_web_proxy, tags, target_name, token, uid_token, use_gw_service_account, user_ttl].hash
|
448
|
+
[custom_username_template, delete_protection, description, json, k8s_allowed_namespaces, k8s_cluster_ca_cert, k8s_cluster_endpoint, k8s_cluster_name, k8s_cluster_token, k8s_namespace, k8s_predefined_role_name, k8s_predefined_role_type, k8s_rolebinding_yaml_data, k8s_rolebinding_yaml_def, k8s_service_account, k8s_service_account_type, name, producer_encryption_key_name, secure_access_allow_port_forwading, secure_access_bastion_issuer, secure_access_certificate_issuer, secure_access_cluster_endpoint, secure_access_dashboard_url, secure_access_delay, secure_access_enable, secure_access_web, secure_access_web_browsing, secure_access_web_proxy, tags, target_name, token, uid_token, use_gw_service_account, user_ttl].hash
|
439
449
|
end
|
440
450
|
|
441
451
|
# Builds the object from hash
|
@@ -52,6 +52,9 @@ module Akeyless
|
|
52
52
|
# Specifies the type of the pre-existing K8S role [Role, ClusterRole] (relevant only for k8s-service-account-type=dynamic)
|
53
53
|
attr_accessor :k8s_predefined_role_type
|
54
54
|
|
55
|
+
# Content of the yaml in a Base64 format.
|
56
|
+
attr_accessor :k8s_rolebinding_yaml_data
|
57
|
+
|
55
58
|
# Path to yaml file that contains definitions of K8S role and role binding (relevant only for k8s-service-account-type=dynamic)
|
56
59
|
attr_accessor :k8s_rolebinding_yaml_def
|
57
60
|
|
@@ -133,6 +136,7 @@ module Akeyless
|
|
133
136
|
:'k8s_namespace' => :'k8s-namespace',
|
134
137
|
:'k8s_predefined_role_name' => :'k8s-predefined-role-name',
|
135
138
|
:'k8s_predefined_role_type' => :'k8s-predefined-role-type',
|
139
|
+
:'k8s_rolebinding_yaml_data' => :'k8s-rolebinding-yaml-data',
|
136
140
|
:'k8s_rolebinding_yaml_def' => :'k8s-rolebinding-yaml-def',
|
137
141
|
:'k8s_service_account' => :'k8s-service-account',
|
138
142
|
:'k8s_service_account_type' => :'k8s-service-account-type',
|
@@ -178,6 +182,7 @@ module Akeyless
|
|
178
182
|
:'k8s_namespace' => :'String',
|
179
183
|
:'k8s_predefined_role_name' => :'String',
|
180
184
|
:'k8s_predefined_role_type' => :'String',
|
185
|
+
:'k8s_rolebinding_yaml_data' => :'String',
|
181
186
|
:'k8s_rolebinding_yaml_def' => :'String',
|
182
187
|
:'k8s_service_account' => :'String',
|
183
188
|
:'k8s_service_account_type' => :'String',
|
@@ -274,6 +279,10 @@ module Akeyless
|
|
274
279
|
self.k8s_predefined_role_type = attributes[:'k8s_predefined_role_type']
|
275
280
|
end
|
276
281
|
|
282
|
+
if attributes.key?(:'k8s_rolebinding_yaml_data')
|
283
|
+
self.k8s_rolebinding_yaml_data = attributes[:'k8s_rolebinding_yaml_data']
|
284
|
+
end
|
285
|
+
|
277
286
|
if attributes.key?(:'k8s_rolebinding_yaml_def')
|
278
287
|
self.k8s_rolebinding_yaml_def = attributes[:'k8s_rolebinding_yaml_def']
|
279
288
|
end
|
@@ -412,6 +421,7 @@ module Akeyless
|
|
412
421
|
k8s_namespace == o.k8s_namespace &&
|
413
422
|
k8s_predefined_role_name == o.k8s_predefined_role_name &&
|
414
423
|
k8s_predefined_role_type == o.k8s_predefined_role_type &&
|
424
|
+
k8s_rolebinding_yaml_data == o.k8s_rolebinding_yaml_data &&
|
415
425
|
k8s_rolebinding_yaml_def == o.k8s_rolebinding_yaml_def &&
|
416
426
|
k8s_service_account == o.k8s_service_account &&
|
417
427
|
k8s_service_account_type == o.k8s_service_account_type &&
|
@@ -445,7 +455,7 @@ module Akeyless
|
|
445
455
|
# Calculates hash code according to all attributes.
|
446
456
|
# @return [Integer] Hash code
|
447
457
|
def hash
|
448
|
-
[custom_username_template, delete_protection, description, json, k8s_allowed_namespaces, k8s_cluster_ca_cert, k8s_cluster_endpoint, k8s_cluster_name, k8s_cluster_token, k8s_namespace, k8s_predefined_role_name, k8s_predefined_role_type, k8s_rolebinding_yaml_def, k8s_service_account, k8s_service_account_type, name, new_name, producer_encryption_key_name, secure_access_allow_port_forwading, secure_access_bastion_issuer, secure_access_certificate_issuer, secure_access_cluster_endpoint, secure_access_dashboard_url, secure_access_delay, secure_access_enable, secure_access_web, secure_access_web_browsing, secure_access_web_proxy, tags, target_name, token, uid_token, use_gw_service_account, user_ttl].hash
|
458
|
+
[custom_username_template, delete_protection, description, json, k8s_allowed_namespaces, k8s_cluster_ca_cert, k8s_cluster_endpoint, k8s_cluster_name, k8s_cluster_token, k8s_namespace, k8s_predefined_role_name, k8s_predefined_role_type, k8s_rolebinding_yaml_data, k8s_rolebinding_yaml_def, k8s_service_account, k8s_service_account_type, name, new_name, producer_encryption_key_name, secure_access_allow_port_forwading, secure_access_bastion_issuer, secure_access_certificate_issuer, secure_access_cluster_endpoint, secure_access_dashboard_url, secure_access_delay, secure_access_enable, secure_access_web, secure_access_web_browsing, secure_access_web_proxy, tags, target_name, token, uid_token, use_gw_service_account, user_ttl].hash
|
449
459
|
end
|
450
460
|
|
451
461
|
# Builds the object from hash
|
@@ -49,6 +49,9 @@ module Akeyless
|
|
49
49
|
# Specifies the type of the pre-existing K8S role [Role, ClusterRole] (relevant only for k8s-service-account-type=dynamic)
|
50
50
|
attr_accessor :k8s_predefined_role_type
|
51
51
|
|
52
|
+
# Content of the yaml in a Base64 format.
|
53
|
+
attr_accessor :k8s_rolebinding_yaml_data
|
54
|
+
|
52
55
|
# Path to yaml file that contains definitions of K8S role and role binding (relevant only for k8s-service-account-type=dynamic)
|
53
56
|
attr_accessor :k8s_rolebinding_yaml_def
|
54
57
|
|
@@ -126,6 +129,7 @@ module Akeyless
|
|
126
129
|
:'k8s_namespace' => :'k8s-namespace',
|
127
130
|
:'k8s_predefined_role_name' => :'k8s-predefined-role-name',
|
128
131
|
:'k8s_predefined_role_type' => :'k8s-predefined-role-type',
|
132
|
+
:'k8s_rolebinding_yaml_data' => :'k8s-rolebinding-yaml-data',
|
129
133
|
:'k8s_rolebinding_yaml_def' => :'k8s-rolebinding-yaml-def',
|
130
134
|
:'k8s_service_account' => :'k8s-service-account',
|
131
135
|
:'k8s_service_account_type' => :'k8s-service-account-type',
|
@@ -169,6 +173,7 @@ module Akeyless
|
|
169
173
|
:'k8s_namespace' => :'String',
|
170
174
|
:'k8s_predefined_role_name' => :'String',
|
171
175
|
:'k8s_predefined_role_type' => :'String',
|
176
|
+
:'k8s_rolebinding_yaml_data' => :'String',
|
172
177
|
:'k8s_rolebinding_yaml_def' => :'String',
|
173
178
|
:'k8s_service_account' => :'String',
|
174
179
|
:'k8s_service_account_type' => :'String',
|
@@ -260,6 +265,10 @@ module Akeyless
|
|
260
265
|
self.k8s_predefined_role_type = attributes[:'k8s_predefined_role_type']
|
261
266
|
end
|
262
267
|
|
268
|
+
if attributes.key?(:'k8s_rolebinding_yaml_data')
|
269
|
+
self.k8s_rolebinding_yaml_data = attributes[:'k8s_rolebinding_yaml_data']
|
270
|
+
end
|
271
|
+
|
263
272
|
if attributes.key?(:'k8s_rolebinding_yaml_def')
|
264
273
|
self.k8s_rolebinding_yaml_def = attributes[:'k8s_rolebinding_yaml_def']
|
265
274
|
end
|
@@ -393,6 +402,7 @@ module Akeyless
|
|
393
402
|
k8s_namespace == o.k8s_namespace &&
|
394
403
|
k8s_predefined_role_name == o.k8s_predefined_role_name &&
|
395
404
|
k8s_predefined_role_type == o.k8s_predefined_role_type &&
|
405
|
+
k8s_rolebinding_yaml_data == o.k8s_rolebinding_yaml_data &&
|
396
406
|
k8s_rolebinding_yaml_def == o.k8s_rolebinding_yaml_def &&
|
397
407
|
k8s_service_account == o.k8s_service_account &&
|
398
408
|
k8s_service_account_type == o.k8s_service_account_type &&
|
@@ -425,7 +435,7 @@ module Akeyless
|
|
425
435
|
# Calculates hash code according to all attributes.
|
426
436
|
# @return [Integer] Hash code
|
427
437
|
def hash
|
428
|
-
[custom_username_template, delete_protection, json, k8s_allowed_namespaces, k8s_cluster_ca_cert, k8s_cluster_endpoint, k8s_cluster_name, k8s_cluster_token, k8s_namespace, k8s_predefined_role_name, k8s_predefined_role_type, k8s_rolebinding_yaml_def, k8s_service_account, k8s_service_account_type, name, producer_encryption_key_name, secure_access_allow_port_forwading, secure_access_bastion_issuer, secure_access_certificate_issuer, secure_access_cluster_endpoint, secure_access_dashboard_url, secure_access_delay, secure_access_enable, secure_access_web, secure_access_web_browsing, secure_access_web_proxy, tags, target_name, token, uid_token, use_gw_service_account, user_ttl].hash
|
438
|
+
[custom_username_template, delete_protection, json, k8s_allowed_namespaces, k8s_cluster_ca_cert, k8s_cluster_endpoint, k8s_cluster_name, k8s_cluster_token, k8s_namespace, k8s_predefined_role_name, k8s_predefined_role_type, k8s_rolebinding_yaml_data, k8s_rolebinding_yaml_def, k8s_service_account, k8s_service_account_type, name, producer_encryption_key_name, secure_access_allow_port_forwading, secure_access_bastion_issuer, secure_access_certificate_issuer, secure_access_cluster_endpoint, secure_access_dashboard_url, secure_access_delay, secure_access_enable, secure_access_web, secure_access_web_browsing, secure_access_web_proxy, tags, target_name, token, uid_token, use_gw_service_account, user_ttl].hash
|
429
439
|
end
|
430
440
|
|
431
441
|
# Builds the object from hash
|
@@ -19,6 +19,9 @@ module Akeyless
|
|
19
19
|
# Enable Log Forwarding [true/false]
|
20
20
|
attr_accessor :enable
|
21
21
|
|
22
|
+
# Enable batch forwarding [true/false]
|
23
|
+
attr_accessor :enable_batch
|
24
|
+
|
22
25
|
# Set output format to JSON
|
23
26
|
attr_accessor :json
|
24
27
|
|
@@ -44,6 +47,7 @@ module Akeyless
|
|
44
47
|
def self.attribute_map
|
45
48
|
{
|
46
49
|
:'enable' => :'enable',
|
50
|
+
:'enable_batch' => :'enable-batch',
|
47
51
|
:'json' => :'json',
|
48
52
|
:'output_format' => :'output-format',
|
49
53
|
:'pull_interval' => :'pull-interval',
|
@@ -63,6 +67,7 @@ module Akeyless
|
|
63
67
|
def self.openapi_types
|
64
68
|
{
|
65
69
|
:'enable' => :'String',
|
70
|
+
:'enable_batch' => :'String',
|
66
71
|
:'json' => :'Boolean',
|
67
72
|
:'output_format' => :'String',
|
68
73
|
:'pull_interval' => :'String',
|
@@ -100,6 +105,12 @@ module Akeyless
|
|
100
105
|
self.enable = 'true'
|
101
106
|
end
|
102
107
|
|
108
|
+
if attributes.key?(:'enable_batch')
|
109
|
+
self.enable_batch = attributes[:'enable_batch']
|
110
|
+
else
|
111
|
+
self.enable_batch = 'true'
|
112
|
+
end
|
113
|
+
|
103
114
|
if attributes.key?(:'json')
|
104
115
|
self.json = attributes[:'json']
|
105
116
|
else
|
@@ -156,6 +167,7 @@ module Akeyless
|
|
156
167
|
return true if self.equal?(o)
|
157
168
|
self.class == o.class &&
|
158
169
|
enable == o.enable &&
|
170
|
+
enable_batch == o.enable_batch &&
|
159
171
|
json == o.json &&
|
160
172
|
output_format == o.output_format &&
|
161
173
|
pull_interval == o.pull_interval &&
|
@@ -174,7 +186,7 @@ module Akeyless
|
|
174
186
|
# Calculates hash code according to all attributes.
|
175
187
|
# @return [Integer] Hash code
|
176
188
|
def hash
|
177
|
-
[enable, json, output_format, pull_interval, token, uid_token, workspace_id, workspace_key].hash
|
189
|
+
[enable, enable_batch, json, output_format, pull_interval, token, uid_token, workspace_id, workspace_key].hash
|
178
190
|
end
|
179
191
|
|
180
192
|
# Builds the object from hash
|
@@ -19,6 +19,9 @@ module Akeyless
|
|
19
19
|
# Enable Log Forwarding [true/false]
|
20
20
|
attr_accessor :enable
|
21
21
|
|
22
|
+
# Enable batch forwarding [true/false]
|
23
|
+
attr_accessor :enable_batch
|
24
|
+
|
22
25
|
# Enable tls
|
23
26
|
attr_accessor :enable_tls
|
24
27
|
|
@@ -59,6 +62,7 @@ module Akeyless
|
|
59
62
|
def self.attribute_map
|
60
63
|
{
|
61
64
|
:'enable' => :'enable',
|
65
|
+
:'enable_batch' => :'enable-batch',
|
62
66
|
:'enable_tls' => :'enable-tls',
|
63
67
|
:'index' => :'index',
|
64
68
|
:'json' => :'json',
|
@@ -83,6 +87,7 @@ module Akeyless
|
|
83
87
|
def self.openapi_types
|
84
88
|
{
|
85
89
|
:'enable' => :'String',
|
90
|
+
:'enable_batch' => :'String',
|
86
91
|
:'enable_tls' => :'Boolean',
|
87
92
|
:'index' => :'String',
|
88
93
|
:'json' => :'Boolean',
|
@@ -125,6 +130,12 @@ module Akeyless
|
|
125
130
|
self.enable = 'true'
|
126
131
|
end
|
127
132
|
|
133
|
+
if attributes.key?(:'enable_batch')
|
134
|
+
self.enable_batch = attributes[:'enable_batch']
|
135
|
+
else
|
136
|
+
self.enable_batch = 'true'
|
137
|
+
end
|
138
|
+
|
128
139
|
if attributes.key?(:'enable_tls')
|
129
140
|
self.enable_tls = attributes[:'enable_tls']
|
130
141
|
end
|
@@ -207,6 +218,7 @@ module Akeyless
|
|
207
218
|
return true if self.equal?(o)
|
208
219
|
self.class == o.class &&
|
209
220
|
enable == o.enable &&
|
221
|
+
enable_batch == o.enable_batch &&
|
210
222
|
enable_tls == o.enable_tls &&
|
211
223
|
index == o.index &&
|
212
224
|
json == o.json &&
|
@@ -230,7 +242,7 @@ module Akeyless
|
|
230
242
|
# Calculates hash code according to all attributes.
|
231
243
|
# @return [Integer] Hash code
|
232
244
|
def hash
|
233
|
-
[enable, enable_tls, index, json, output_format, pull_interval, source, source_type, splunk_token, splunk_url, tls_certificate, token, uid_token].hash
|
245
|
+
[enable, enable_batch, enable_tls, index, json, output_format, pull_interval, source, source_type, splunk_token, splunk_url, tls_certificate, token, uid_token].hash
|
234
246
|
end
|
235
247
|
|
236
248
|
# Builds the object from hash
|
@@ -49,6 +49,9 @@ module Akeyless
|
|
49
49
|
# Specifies the type of the pre-existing K8S role [Role, ClusterRole] (relevant only for k8s-service-account-type=dynamic)
|
50
50
|
attr_accessor :k8s_predefined_role_type
|
51
51
|
|
52
|
+
# Content of the yaml in a Base64 format.
|
53
|
+
attr_accessor :k8s_rolebinding_yaml_data
|
54
|
+
|
52
55
|
# Path to yaml file that contains definitions of K8S role and role binding (relevant only for k8s-service-account-type=dynamic)
|
53
56
|
attr_accessor :k8s_rolebinding_yaml_def
|
54
57
|
|
@@ -129,6 +132,7 @@ module Akeyless
|
|
129
132
|
:'k8s_namespace' => :'k8s-namespace',
|
130
133
|
:'k8s_predefined_role_name' => :'k8s-predefined-role-name',
|
131
134
|
:'k8s_predefined_role_type' => :'k8s-predefined-role-type',
|
135
|
+
:'k8s_rolebinding_yaml_data' => :'k8s-rolebinding-yaml-data',
|
132
136
|
:'k8s_rolebinding_yaml_def' => :'k8s-rolebinding-yaml-def',
|
133
137
|
:'k8s_service_account' => :'k8s-service-account',
|
134
138
|
:'k8s_service_account_type' => :'k8s-service-account-type',
|
@@ -173,6 +177,7 @@ module Akeyless
|
|
173
177
|
:'k8s_namespace' => :'String',
|
174
178
|
:'k8s_predefined_role_name' => :'String',
|
175
179
|
:'k8s_predefined_role_type' => :'String',
|
180
|
+
:'k8s_rolebinding_yaml_data' => :'String',
|
176
181
|
:'k8s_rolebinding_yaml_def' => :'String',
|
177
182
|
:'k8s_service_account' => :'String',
|
178
183
|
:'k8s_service_account_type' => :'String',
|
@@ -265,6 +270,10 @@ module Akeyless
|
|
265
270
|
self.k8s_predefined_role_type = attributes[:'k8s_predefined_role_type']
|
266
271
|
end
|
267
272
|
|
273
|
+
if attributes.key?(:'k8s_rolebinding_yaml_data')
|
274
|
+
self.k8s_rolebinding_yaml_data = attributes[:'k8s_rolebinding_yaml_data']
|
275
|
+
end
|
276
|
+
|
268
277
|
if attributes.key?(:'k8s_rolebinding_yaml_def')
|
269
278
|
self.k8s_rolebinding_yaml_def = attributes[:'k8s_rolebinding_yaml_def']
|
270
279
|
end
|
@@ -402,6 +411,7 @@ module Akeyless
|
|
402
411
|
k8s_namespace == o.k8s_namespace &&
|
403
412
|
k8s_predefined_role_name == o.k8s_predefined_role_name &&
|
404
413
|
k8s_predefined_role_type == o.k8s_predefined_role_type &&
|
414
|
+
k8s_rolebinding_yaml_data == o.k8s_rolebinding_yaml_data &&
|
405
415
|
k8s_rolebinding_yaml_def == o.k8s_rolebinding_yaml_def &&
|
406
416
|
k8s_service_account == o.k8s_service_account &&
|
407
417
|
k8s_service_account_type == o.k8s_service_account_type &&
|
@@ -435,7 +445,7 @@ module Akeyless
|
|
435
445
|
# Calculates hash code according to all attributes.
|
436
446
|
# @return [Integer] Hash code
|
437
447
|
def hash
|
438
|
-
[custom_username_template, delete_protection, json, k8s_allowed_namespaces, k8s_cluster_ca_cert, k8s_cluster_endpoint, k8s_cluster_name, k8s_cluster_token, k8s_namespace, k8s_predefined_role_name, k8s_predefined_role_type, k8s_rolebinding_yaml_def, k8s_service_account, k8s_service_account_type, name, new_name, producer_encryption_key_name, secure_access_allow_port_forwading, secure_access_bastion_issuer, secure_access_certificate_issuer, secure_access_cluster_endpoint, secure_access_dashboard_url, secure_access_delay, secure_access_enable, secure_access_web, secure_access_web_browsing, secure_access_web_proxy, tags, target_name, token, uid_token, use_gw_service_account, user_ttl].hash
|
448
|
+
[custom_username_template, delete_protection, json, k8s_allowed_namespaces, k8s_cluster_ca_cert, k8s_cluster_endpoint, k8s_cluster_name, k8s_cluster_token, k8s_namespace, k8s_predefined_role_name, k8s_predefined_role_type, k8s_rolebinding_yaml_data, k8s_rolebinding_yaml_def, k8s_service_account, k8s_service_account_type, name, new_name, producer_encryption_key_name, secure_access_allow_port_forwading, secure_access_bastion_issuer, secure_access_certificate_issuer, secure_access_cluster_endpoint, secure_access_dashboard_url, secure_access_delay, secure_access_enable, secure_access_web, secure_access_web_browsing, secure_access_web_proxy, tags, target_name, token, uid_token, use_gw_service_account, user_ttl].hash
|
439
449
|
end
|
440
450
|
|
441
451
|
# Builds the object from hash
|
@@ -52,6 +52,15 @@ module Akeyless
|
|
52
52
|
# Enable recording of rdp session [true/false]
|
53
53
|
attr_accessor :rdp_session_recording
|
54
54
|
|
55
|
+
# Whether to compress recording files before upload
|
56
|
+
attr_accessor :rdp_session_recording_compress
|
57
|
+
|
58
|
+
# If provided, this key will be used to encrypt uploaded recordings.
|
59
|
+
attr_accessor :rdp_session_recording_encryption_key
|
60
|
+
|
61
|
+
# RDP session recording quality [low/medium/high]
|
62
|
+
attr_accessor :rdp_session_recording_quality
|
63
|
+
|
55
64
|
# Rdp session recording storage destination [local/aws/azure]
|
56
65
|
attr_accessor :rdp_session_storage
|
57
66
|
|
@@ -76,6 +85,9 @@ module Akeyless
|
|
76
85
|
:'azure_storage_tenant_id' => :'azure-storage-tenant-id',
|
77
86
|
:'json' => :'json',
|
78
87
|
:'rdp_session_recording' => :'rdp-session-recording',
|
88
|
+
:'rdp_session_recording_compress' => :'rdp-session-recording-compress',
|
89
|
+
:'rdp_session_recording_encryption_key' => :'rdp-session-recording-encryption-key',
|
90
|
+
:'rdp_session_recording_quality' => :'rdp-session-recording-quality',
|
79
91
|
:'rdp_session_storage' => :'rdp-session-storage',
|
80
92
|
:'token' => :'token',
|
81
93
|
:'uid_token' => :'uid-token'
|
@@ -102,6 +114,9 @@ module Akeyless
|
|
102
114
|
:'azure_storage_tenant_id' => :'String',
|
103
115
|
:'json' => :'Boolean',
|
104
116
|
:'rdp_session_recording' => :'String',
|
117
|
+
:'rdp_session_recording_compress' => :'Boolean',
|
118
|
+
:'rdp_session_recording_encryption_key' => :'String',
|
119
|
+
:'rdp_session_recording_quality' => :'String',
|
105
120
|
:'rdp_session_storage' => :'String',
|
106
121
|
:'token' => :'String',
|
107
122
|
:'uid_token' => :'String'
|
@@ -179,6 +194,18 @@ module Akeyless
|
|
179
194
|
self.rdp_session_recording = attributes[:'rdp_session_recording']
|
180
195
|
end
|
181
196
|
|
197
|
+
if attributes.key?(:'rdp_session_recording_compress')
|
198
|
+
self.rdp_session_recording_compress = attributes[:'rdp_session_recording_compress']
|
199
|
+
end
|
200
|
+
|
201
|
+
if attributes.key?(:'rdp_session_recording_encryption_key')
|
202
|
+
self.rdp_session_recording_encryption_key = attributes[:'rdp_session_recording_encryption_key']
|
203
|
+
end
|
204
|
+
|
205
|
+
if attributes.key?(:'rdp_session_recording_quality')
|
206
|
+
self.rdp_session_recording_quality = attributes[:'rdp_session_recording_quality']
|
207
|
+
end
|
208
|
+
|
182
209
|
if attributes.key?(:'rdp_session_storage')
|
183
210
|
self.rdp_session_storage = attributes[:'rdp_session_storage']
|
184
211
|
end
|
@@ -224,6 +251,9 @@ module Akeyless
|
|
224
251
|
azure_storage_tenant_id == o.azure_storage_tenant_id &&
|
225
252
|
json == o.json &&
|
226
253
|
rdp_session_recording == o.rdp_session_recording &&
|
254
|
+
rdp_session_recording_compress == o.rdp_session_recording_compress &&
|
255
|
+
rdp_session_recording_encryption_key == o.rdp_session_recording_encryption_key &&
|
256
|
+
rdp_session_recording_quality == o.rdp_session_recording_quality &&
|
227
257
|
rdp_session_storage == o.rdp_session_storage &&
|
228
258
|
token == o.token &&
|
229
259
|
uid_token == o.uid_token
|
@@ -238,7 +268,7 @@ module Akeyless
|
|
238
268
|
# Calculates hash code according to all attributes.
|
239
269
|
# @return [Integer] Hash code
|
240
270
|
def hash
|
241
|
-
[aws_storage_access_key_id, aws_storage_bucket_name, aws_storage_bucket_prefix, aws_storage_region, aws_storage_secret_access_key, azure_storage_account_name, azure_storage_client_id, azure_storage_client_secret, azure_storage_container_name, azure_storage_tenant_id, json, rdp_session_recording, rdp_session_storage, token, uid_token].hash
|
271
|
+
[aws_storage_access_key_id, aws_storage_bucket_name, aws_storage_bucket_prefix, aws_storage_region, aws_storage_secret_access_key, azure_storage_account_name, azure_storage_client_id, azure_storage_client_secret, azure_storage_container_name, azure_storage_tenant_id, json, rdp_session_recording, rdp_session_recording_compress, rdp_session_recording_encryption_key, rdp_session_recording_quality, rdp_session_storage, token, uid_token].hash
|
242
272
|
end
|
243
273
|
|
244
274
|
# Builds the object from hash
|
@@ -0,0 +1,233 @@
|
|
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: 3.0
|
7
|
+
Contact: support@akeyless.io
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.10.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Akeyless
|
17
|
+
# GeminiTargetDetails defines details related to connecting to a Google Gemini provider
|
18
|
+
class GeminiTargetDetails
|
19
|
+
attr_accessor :api_key
|
20
|
+
|
21
|
+
attr_accessor :base_url
|
22
|
+
|
23
|
+
attr_accessor :model
|
24
|
+
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
26
|
+
def self.attribute_map
|
27
|
+
{
|
28
|
+
:'api_key' => :'api_key',
|
29
|
+
:'base_url' => :'base_url',
|
30
|
+
:'model' => :'model'
|
31
|
+
}
|
32
|
+
end
|
33
|
+
|
34
|
+
# Returns all the JSON keys this model knows about
|
35
|
+
def self.acceptable_attributes
|
36
|
+
attribute_map.values
|
37
|
+
end
|
38
|
+
|
39
|
+
# Attribute type mapping.
|
40
|
+
def self.openapi_types
|
41
|
+
{
|
42
|
+
:'api_key' => :'String',
|
43
|
+
:'base_url' => :'String',
|
44
|
+
:'model' => :'String'
|
45
|
+
}
|
46
|
+
end
|
47
|
+
|
48
|
+
# List of attributes with nullable: true
|
49
|
+
def self.openapi_nullable
|
50
|
+
Set.new([
|
51
|
+
])
|
52
|
+
end
|
53
|
+
|
54
|
+
# Initializes the object
|
55
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
56
|
+
def initialize(attributes = {})
|
57
|
+
if (!attributes.is_a?(Hash))
|
58
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Akeyless::GeminiTargetDetails` initialize method"
|
59
|
+
end
|
60
|
+
|
61
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
62
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
63
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
64
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Akeyless::GeminiTargetDetails`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
65
|
+
end
|
66
|
+
h[k.to_sym] = v
|
67
|
+
}
|
68
|
+
|
69
|
+
if attributes.key?(:'api_key')
|
70
|
+
self.api_key = attributes[:'api_key']
|
71
|
+
end
|
72
|
+
|
73
|
+
if attributes.key?(:'base_url')
|
74
|
+
self.base_url = attributes[:'base_url']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.key?(:'model')
|
78
|
+
self.model = attributes[:'model']
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
83
|
+
# @return Array for valid properties with the reasons
|
84
|
+
def list_invalid_properties
|
85
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
86
|
+
invalid_properties = Array.new
|
87
|
+
invalid_properties
|
88
|
+
end
|
89
|
+
|
90
|
+
# Check to see if the all the properties in the model are valid
|
91
|
+
# @return true if the model is valid
|
92
|
+
def valid?
|
93
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
94
|
+
true
|
95
|
+
end
|
96
|
+
|
97
|
+
# Checks equality by comparing each attribute.
|
98
|
+
# @param [Object] Object to be compared
|
99
|
+
def ==(o)
|
100
|
+
return true if self.equal?(o)
|
101
|
+
self.class == o.class &&
|
102
|
+
api_key == o.api_key &&
|
103
|
+
base_url == o.base_url &&
|
104
|
+
model == o.model
|
105
|
+
end
|
106
|
+
|
107
|
+
# @see the `==` method
|
108
|
+
# @param [Object] Object to be compared
|
109
|
+
def eql?(o)
|
110
|
+
self == o
|
111
|
+
end
|
112
|
+
|
113
|
+
# Calculates hash code according to all attributes.
|
114
|
+
# @return [Integer] Hash code
|
115
|
+
def hash
|
116
|
+
[api_key, base_url, model].hash
|
117
|
+
end
|
118
|
+
|
119
|
+
# Builds the object from hash
|
120
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
121
|
+
# @return [Object] Returns the model itself
|
122
|
+
def self.build_from_hash(attributes)
|
123
|
+
return nil unless attributes.is_a?(Hash)
|
124
|
+
attributes = attributes.transform_keys(&:to_sym)
|
125
|
+
transformed_hash = {}
|
126
|
+
openapi_types.each_pair do |key, type|
|
127
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
128
|
+
transformed_hash["#{key}"] = nil
|
129
|
+
elsif type =~ /\AArray<(.*)>/i
|
130
|
+
# check to ensure the input is an array given that the attribute
|
131
|
+
# is documented as an array but the input is not
|
132
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
133
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
134
|
+
end
|
135
|
+
elsif !attributes[attribute_map[key]].nil?
|
136
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
137
|
+
end
|
138
|
+
end
|
139
|
+
new(transformed_hash)
|
140
|
+
end
|
141
|
+
|
142
|
+
# Deserializes the data based on type
|
143
|
+
# @param string type Data type
|
144
|
+
# @param string value Value to be deserialized
|
145
|
+
# @return [Object] Deserialized data
|
146
|
+
def self._deserialize(type, value)
|
147
|
+
case type.to_sym
|
148
|
+
when :Time
|
149
|
+
Time.parse(value)
|
150
|
+
when :Date
|
151
|
+
Date.parse(value)
|
152
|
+
when :String
|
153
|
+
value.to_s
|
154
|
+
when :Integer
|
155
|
+
value.to_i
|
156
|
+
when :Float
|
157
|
+
value.to_f
|
158
|
+
when :Boolean
|
159
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
160
|
+
true
|
161
|
+
else
|
162
|
+
false
|
163
|
+
end
|
164
|
+
when :Object
|
165
|
+
# generic object (usually a Hash), return directly
|
166
|
+
value
|
167
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
168
|
+
inner_type = Regexp.last_match[:inner_type]
|
169
|
+
value.map { |v| _deserialize(inner_type, v) }
|
170
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
171
|
+
k_type = Regexp.last_match[:k_type]
|
172
|
+
v_type = Regexp.last_match[:v_type]
|
173
|
+
{}.tap do |hash|
|
174
|
+
value.each do |k, v|
|
175
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
176
|
+
end
|
177
|
+
end
|
178
|
+
else # model
|
179
|
+
# models (e.g. Pet) or oneOf
|
180
|
+
klass = Akeyless.const_get(type)
|
181
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
182
|
+
end
|
183
|
+
end
|
184
|
+
|
185
|
+
# Returns the string representation of the object
|
186
|
+
# @return [String] String presentation of the object
|
187
|
+
def to_s
|
188
|
+
to_hash.to_s
|
189
|
+
end
|
190
|
+
|
191
|
+
# to_body is an alias to to_hash (backward compatibility)
|
192
|
+
# @return [Hash] Returns the object in the form of hash
|
193
|
+
def to_body
|
194
|
+
to_hash
|
195
|
+
end
|
196
|
+
|
197
|
+
# Returns the object in the form of hash
|
198
|
+
# @return [Hash] Returns the object in the form of hash
|
199
|
+
def to_hash
|
200
|
+
hash = {}
|
201
|
+
self.class.attribute_map.each_pair do |attr, param|
|
202
|
+
value = self.send(attr)
|
203
|
+
if value.nil?
|
204
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
205
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
206
|
+
end
|
207
|
+
|
208
|
+
hash[param] = _to_hash(value)
|
209
|
+
end
|
210
|
+
hash
|
211
|
+
end
|
212
|
+
|
213
|
+
# Outputs non-array value in the form of hash
|
214
|
+
# For object, use to_hash. Otherwise, just return the value
|
215
|
+
# @param [Object] value Any valid value
|
216
|
+
# @return [Hash] Returns the value in the form of hash
|
217
|
+
def _to_hash(value)
|
218
|
+
if value.is_a?(Array)
|
219
|
+
value.compact.map { |v| _to_hash(v) }
|
220
|
+
elsif value.is_a?(Hash)
|
221
|
+
{}.tap do |hash|
|
222
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
223
|
+
end
|
224
|
+
elsif value.respond_to? :to_hash
|
225
|
+
value.to_hash
|
226
|
+
else
|
227
|
+
value
|
228
|
+
end
|
229
|
+
end
|
230
|
+
|
231
|
+
end
|
232
|
+
|
233
|
+
end
|