akeyless 5.0.19 → 5.0.21
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 +28 -1
- data/docs/CertificateStore.md +2 -0
- data/docs/CreateUSC.md +2 -0
- data/docs/GCPPayload.md +5 -1
- data/docs/GatewayCreateMigration.md +5 -1
- data/docs/GatewayUpdateMigration.md +5 -1
- data/docs/GatewayUpdateTlsCert.md +2 -0
- data/docs/GeneralConfigPart.md +6 -0
- data/docs/GetKubeExecCreds.md +1 -1
- data/docs/GetPKICertificate.md +1 -1
- data/docs/LetsEncryptTargetDetails.md +38 -0
- data/docs/PoliciesCreateOutput.md +18 -0
- data/docs/PoliciesDelete.md +24 -0
- data/docs/PoliciesGet.md +24 -0
- data/docs/PoliciesGetOutput.md +18 -0
- data/docs/PoliciesList.md +30 -0
- data/docs/PoliciesListOutput.md +18 -0
- data/docs/PolicyCreateKeys.md +34 -0
- data/docs/PolicyOutput.md +34 -0
- data/docs/PolicyUpdateKeys.md +36 -0
- data/docs/RotatedSecretCreateAws.md +4 -2
- data/docs/RotatedSecretCreateAzure.md +4 -2
- data/docs/RotatedSecretCreateCassandra.md +1 -1
- data/docs/RotatedSecretCreateCustom.md +1 -1
- data/docs/RotatedSecretCreateDockerhub.md +1 -1
- data/docs/RotatedSecretCreateGcp.md +4 -2
- data/docs/RotatedSecretCreateHanadb.md +1 -1
- data/docs/RotatedSecretCreateLdap.md +1 -1
- data/docs/RotatedSecretCreateMongodb.md +1 -1
- data/docs/RotatedSecretCreateMssql.md +1 -1
- data/docs/RotatedSecretCreateMysql.md +1 -1
- data/docs/RotatedSecretCreateOpenAI.md +1 -1
- data/docs/RotatedSecretCreateOracledb.md +1 -1
- data/docs/RotatedSecretCreatePostgresql.md +1 -1
- data/docs/RotatedSecretCreateRedis.md +1 -1
- data/docs/RotatedSecretCreateRedshift.md +1 -1
- data/docs/RotatedSecretCreateSnowflake.md +1 -1
- data/docs/RotatedSecretCreateSplunk.md +68 -0
- data/docs/RotatedSecretCreateSsh.md +1 -1
- data/docs/RotatedSecretCreateWindows.md +1 -1
- data/docs/RotatedSecretDetailsInfo.md +2 -0
- data/docs/RotatedSecretUpdateAws.md +3 -1
- data/docs/RotatedSecretUpdateAzure.md +3 -1
- data/docs/RotatedSecretUpdateGcp.md +3 -1
- data/docs/RotatedSecretUpdateSplunk.md +64 -0
- data/docs/SecretInfo.md +2 -0
- data/docs/SplunkPayload.md +30 -0
- data/docs/SplunkTargetDetails.md +34 -0
- data/docs/TargetCreateLetsEncrypt.md +46 -0
- data/docs/TargetCreateSplunk.md +42 -0
- data/docs/TargetTypeDetailsInput.md +4 -0
- data/docs/TargetUpdateLetsEncrypt.md +50 -0
- data/docs/UpdateItem.md +2 -0
- data/docs/UscCreate.md +2 -0
- data/docs/V2Api.md +659 -29
- data/lib/akeyless/api/v2_api.rb +640 -0
- data/lib/akeyless/models/certificate_store.rb +12 -1
- data/lib/akeyless/models/create_usc.rb +11 -1
- data/lib/akeyless/models/gateway_create_migration.rb +24 -4
- data/lib/akeyless/models/gateway_update_migration.rb +24 -4
- data/lib/akeyless/models/gateway_update_tls_cert.rb +13 -1
- data/lib/akeyless/models/gcp_payload.rb +22 -4
- data/lib/akeyless/models/general_config_part.rb +30 -1
- data/lib/akeyless/models/get_kube_exec_creds.rb +1 -1
- data/lib/akeyless/models/get_pki_certificate.rb +1 -1
- data/lib/akeyless/models/lets_encrypt_target_details.rb +315 -0
- data/lib/akeyless/models/policies_create_output.rb +214 -0
- data/lib/akeyless/models/policies_delete.rb +254 -0
- data/lib/akeyless/models/policies_get.rb +254 -0
- data/lib/akeyless/models/policies_get_output.rb +214 -0
- data/lib/akeyless/models/policies_list.rb +283 -0
- data/lib/akeyless/models/policies_list_output.rb +216 -0
- data/lib/akeyless/models/policy_create_keys.rb +312 -0
- data/lib/akeyless/models/policy_output.rb +295 -0
- data/lib/akeyless/models/policy_update_keys.rb +322 -0
- data/lib/akeyless/models/rotated_secret_create_aws.rb +13 -3
- data/lib/akeyless/models/rotated_secret_create_azure.rb +13 -3
- data/lib/akeyless/models/rotated_secret_create_cassandra.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_custom.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_dockerhub.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_gcp.rb +13 -3
- data/lib/akeyless/models/rotated_secret_create_hanadb.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_ldap.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_mongodb.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_mssql.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_mysql.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_open_ai.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_oracledb.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_postgresql.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_redis.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_redshift.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_snowflake.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_splunk.rb +497 -0
- data/lib/akeyless/models/rotated_secret_create_ssh.rb +1 -1
- data/lib/akeyless/models/rotated_secret_create_windows.rb +1 -1
- data/lib/akeyless/models/rotated_secret_details_info.rb +10 -1
- data/lib/akeyless/models/rotated_secret_update_aws.rb +12 -2
- data/lib/akeyless/models/rotated_secret_update_azure.rb +12 -2
- data/lib/akeyless/models/rotated_secret_update_gcp.rb +12 -2
- data/lib/akeyless/models/rotated_secret_update_splunk.rb +467 -0
- data/lib/akeyless/models/secret_info.rb +10 -1
- data/lib/akeyless/models/splunk_payload.rb +268 -0
- data/lib/akeyless/models/splunk_target_details.rb +294 -0
- data/lib/akeyless/models/target_create_lets_encrypt.rb +368 -0
- data/lib/akeyless/models/target_create_splunk.rb +354 -0
- data/lib/akeyless/models/target_type_details_input.rb +19 -1
- data/lib/akeyless/models/target_update_lets_encrypt.rb +388 -0
- data/lib/akeyless/models/update_item.rb +11 -1
- data/lib/akeyless/models/usc_create.rb +11 -1
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +17 -0
- data/spec/models/lets_encrypt_target_details_spec.rb +96 -0
- data/spec/models/policies_create_output_spec.rb +36 -0
- data/spec/models/policies_delete_spec.rb +54 -0
- data/spec/models/policies_get_output_spec.rb +36 -0
- data/spec/models/policies_get_spec.rb +54 -0
- data/spec/models/policies_list_output_spec.rb +36 -0
- data/spec/models/policies_list_spec.rb +72 -0
- data/spec/models/policy_create_keys_spec.rb +84 -0
- data/spec/models/policy_output_spec.rb +84 -0
- data/spec/models/policy_update_keys_spec.rb +90 -0
- data/spec/models/rotated_secret_create_splunk_spec.rb +186 -0
- data/spec/models/rotated_secret_update_splunk_spec.rb +174 -0
- data/spec/models/splunk_payload_spec.rb +72 -0
- data/spec/models/splunk_target_details_spec.rb +84 -0
- data/spec/models/target_create_lets_encrypt_spec.rb +120 -0
- data/spec/models/target_create_splunk_spec.rb +108 -0
- data/spec/models/target_update_lets_encrypt_spec.rb +132 -0
- metadata +69 -1
|
@@ -21,6 +21,8 @@ module Akeyless
|
|
|
21
21
|
|
|
22
22
|
attr_accessor :expiration_date
|
|
23
23
|
|
|
24
|
+
attr_accessor :expiration_events
|
|
25
|
+
|
|
24
26
|
attr_accessor :name
|
|
25
27
|
|
|
26
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -29,6 +31,7 @@ module Akeyless
|
|
|
29
31
|
:'certificate_pem' => :'certificate_pem',
|
|
30
32
|
:'common_name' => :'common_name',
|
|
31
33
|
:'expiration_date' => :'expiration_date',
|
|
34
|
+
:'expiration_events' => :'expiration_events',
|
|
32
35
|
:'name' => :'name'
|
|
33
36
|
}
|
|
34
37
|
end
|
|
@@ -44,6 +47,7 @@ module Akeyless
|
|
|
44
47
|
:'certificate_pem' => :'String',
|
|
45
48
|
:'common_name' => :'String',
|
|
46
49
|
:'expiration_date' => :'Time',
|
|
50
|
+
:'expiration_events' => :'Array<CertificateExpirationEvent>',
|
|
47
51
|
:'name' => :'String'
|
|
48
52
|
}
|
|
49
53
|
end
|
|
@@ -81,6 +85,12 @@ module Akeyless
|
|
|
81
85
|
self.expiration_date = attributes[:'expiration_date']
|
|
82
86
|
end
|
|
83
87
|
|
|
88
|
+
if attributes.key?(:'expiration_events')
|
|
89
|
+
if (value = attributes[:'expiration_events']).is_a?(Array)
|
|
90
|
+
self.expiration_events = value
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
|
|
84
94
|
if attributes.key?(:'name')
|
|
85
95
|
self.name = attributes[:'name']
|
|
86
96
|
end
|
|
@@ -109,6 +119,7 @@ module Akeyless
|
|
|
109
119
|
certificate_pem == o.certificate_pem &&
|
|
110
120
|
common_name == o.common_name &&
|
|
111
121
|
expiration_date == o.expiration_date &&
|
|
122
|
+
expiration_events == o.expiration_events &&
|
|
112
123
|
name == o.name
|
|
113
124
|
end
|
|
114
125
|
|
|
@@ -121,7 +132,7 @@ module Akeyless
|
|
|
121
132
|
# Calculates hash code according to all attributes.
|
|
122
133
|
# @return [Integer] Hash code
|
|
123
134
|
def hash
|
|
124
|
-
[certificate_pem, common_name, expiration_date, name].hash
|
|
135
|
+
[certificate_pem, common_name, expiration_date, expiration_events, name].hash
|
|
125
136
|
end
|
|
126
137
|
|
|
127
138
|
# Builds the object from hash
|
|
@@ -28,6 +28,9 @@ module Akeyless
|
|
|
28
28
|
# GCP Project ID (Relevant only for GCP targets)
|
|
29
29
|
attr_accessor :gcp_project_id
|
|
30
30
|
|
|
31
|
+
# GCP Secret Manager regions to query for regional secrets (comma-separated, e.g., us-east1,us-west1). Max 12 regions. Required when listing with object-type=regional-secrets.
|
|
32
|
+
attr_accessor :gcp_sm_regions
|
|
33
|
+
|
|
31
34
|
# Additional custom fields to associate with the item
|
|
32
35
|
attr_accessor :item_custom_fields
|
|
33
36
|
|
|
@@ -65,6 +68,7 @@ module Akeyless
|
|
|
65
68
|
:'delete_protection' => :'delete_protection',
|
|
66
69
|
:'description' => :'description',
|
|
67
70
|
:'gcp_project_id' => :'gcp-project-id',
|
|
71
|
+
:'gcp_sm_regions' => :'gcp-sm-regions',
|
|
68
72
|
:'item_custom_fields' => :'item-custom-fields',
|
|
69
73
|
:'json' => :'json',
|
|
70
74
|
:'k8s_namespace' => :'k8s-namespace',
|
|
@@ -90,6 +94,7 @@ module Akeyless
|
|
|
90
94
|
:'delete_protection' => :'String',
|
|
91
95
|
:'description' => :'String',
|
|
92
96
|
:'gcp_project_id' => :'String',
|
|
97
|
+
:'gcp_sm_regions' => :'String',
|
|
93
98
|
:'item_custom_fields' => :'Hash<String, String>',
|
|
94
99
|
:'json' => :'Boolean',
|
|
95
100
|
:'k8s_namespace' => :'String',
|
|
@@ -140,6 +145,10 @@ module Akeyless
|
|
|
140
145
|
self.gcp_project_id = attributes[:'gcp_project_id']
|
|
141
146
|
end
|
|
142
147
|
|
|
148
|
+
if attributes.key?(:'gcp_sm_regions')
|
|
149
|
+
self.gcp_sm_regions = attributes[:'gcp_sm_regions']
|
|
150
|
+
end
|
|
151
|
+
|
|
143
152
|
if attributes.key?(:'item_custom_fields')
|
|
144
153
|
if (value = attributes[:'item_custom_fields']).is_a?(Hash)
|
|
145
154
|
self.item_custom_fields = value
|
|
@@ -227,6 +236,7 @@ module Akeyless
|
|
|
227
236
|
delete_protection == o.delete_protection &&
|
|
228
237
|
description == o.description &&
|
|
229
238
|
gcp_project_id == o.gcp_project_id &&
|
|
239
|
+
gcp_sm_regions == o.gcp_sm_regions &&
|
|
230
240
|
item_custom_fields == o.item_custom_fields &&
|
|
231
241
|
json == o.json &&
|
|
232
242
|
k8s_namespace == o.k8s_namespace &&
|
|
@@ -248,7 +258,7 @@ module Akeyless
|
|
|
248
258
|
# Calculates hash code according to all attributes.
|
|
249
259
|
# @return [Integer] Hash code
|
|
250
260
|
def hash
|
|
251
|
-
[azure_kv_name, delete_protection, description, gcp_project_id, item_custom_fields, json, k8s_namespace, name, tags, target_to_associate, token, uid_token, usc_prefix, use_prefix_as_filter].hash
|
|
261
|
+
[azure_kv_name, delete_protection, description, gcp_project_id, gcp_sm_regions, item_custom_fields, json, k8s_namespace, name, tags, target_to_associate, token, uid_token, usc_prefix, use_prefix_as_filter].hash
|
|
252
262
|
end
|
|
253
263
|
|
|
254
264
|
# Builds the object from hash
|
|
@@ -114,6 +114,9 @@ module Akeyless
|
|
|
114
114
|
# Base64-encoded GCP Service Account private key text with sufficient permissions to Secrets Manager, Minimum required permission is Secret Manager Secret Accessor, e.g. 'roles/secretmanager.secretAccessor' (relevant only for GCP migration)
|
|
115
115
|
attr_accessor :gcp_key
|
|
116
116
|
|
|
117
|
+
# GCP Project ID (cross-project override)
|
|
118
|
+
attr_accessor :gcp_project_id
|
|
119
|
+
|
|
117
120
|
# Import secret key as json value or independent secrets (relevant only for HasiCorp Vault migration) [true/false]
|
|
118
121
|
attr_accessor :hashi_json
|
|
119
122
|
|
|
@@ -204,6 +207,9 @@ module Akeyless
|
|
|
204
207
|
# The universal identity token, Required only for universal_identity authentication
|
|
205
208
|
attr_accessor :uid_token
|
|
206
209
|
|
|
210
|
+
# Use the GW's Cloud IAM
|
|
211
|
+
attr_accessor :use_gw_cloud_identity
|
|
212
|
+
|
|
207
213
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
208
214
|
def self.attribute_map
|
|
209
215
|
{
|
|
@@ -240,6 +246,7 @@ module Akeyless
|
|
|
240
246
|
:'azure_tenant_id' => :'azure-tenant-id',
|
|
241
247
|
:'expiration_event_in' => :'expiration-event-in',
|
|
242
248
|
:'gcp_key' => :'gcp-key',
|
|
249
|
+
:'gcp_project_id' => :'gcp-project-id',
|
|
243
250
|
:'hashi_json' => :'hashi-json',
|
|
244
251
|
:'hashi_ns' => :'hashi-ns',
|
|
245
252
|
:'hashi_token' => :'hashi-token',
|
|
@@ -269,7 +276,8 @@ module Akeyless
|
|
|
269
276
|
:'target_location' => :'target-location',
|
|
270
277
|
:'token' => :'token',
|
|
271
278
|
:'type' => :'type',
|
|
272
|
-
:'uid_token' => :'uid-token'
|
|
279
|
+
:'uid_token' => :'uid-token',
|
|
280
|
+
:'use_gw_cloud_identity' => :'use-gw-cloud-identity'
|
|
273
281
|
}
|
|
274
282
|
end
|
|
275
283
|
|
|
@@ -314,6 +322,7 @@ module Akeyless
|
|
|
314
322
|
:'azure_tenant_id' => :'String',
|
|
315
323
|
:'expiration_event_in' => :'Array<String>',
|
|
316
324
|
:'gcp_key' => :'String',
|
|
325
|
+
:'gcp_project_id' => :'String',
|
|
317
326
|
:'hashi_json' => :'String',
|
|
318
327
|
:'hashi_ns' => :'Array<String>',
|
|
319
328
|
:'hashi_token' => :'String',
|
|
@@ -343,7 +352,8 @@ module Akeyless
|
|
|
343
352
|
:'target_location' => :'String',
|
|
344
353
|
:'token' => :'String',
|
|
345
354
|
:'type' => :'String',
|
|
346
|
-
:'uid_token' => :'String'
|
|
355
|
+
:'uid_token' => :'String',
|
|
356
|
+
:'use_gw_cloud_identity' => :'Boolean'
|
|
347
357
|
}
|
|
348
358
|
end
|
|
349
359
|
|
|
@@ -520,6 +530,10 @@ module Akeyless
|
|
|
520
530
|
self.gcp_key = attributes[:'gcp_key']
|
|
521
531
|
end
|
|
522
532
|
|
|
533
|
+
if attributes.key?(:'gcp_project_id')
|
|
534
|
+
self.gcp_project_id = attributes[:'gcp_project_id']
|
|
535
|
+
end
|
|
536
|
+
|
|
523
537
|
if attributes.key?(:'hashi_json')
|
|
524
538
|
self.hashi_json = attributes[:'hashi_json']
|
|
525
539
|
else
|
|
@@ -665,6 +679,10 @@ module Akeyless
|
|
|
665
679
|
if attributes.key?(:'uid_token')
|
|
666
680
|
self.uid_token = attributes[:'uid_token']
|
|
667
681
|
end
|
|
682
|
+
|
|
683
|
+
if attributes.key?(:'use_gw_cloud_identity')
|
|
684
|
+
self.use_gw_cloud_identity = attributes[:'use_gw_cloud_identity']
|
|
685
|
+
end
|
|
668
686
|
end
|
|
669
687
|
|
|
670
688
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -745,6 +763,7 @@ module Akeyless
|
|
|
745
763
|
azure_tenant_id == o.azure_tenant_id &&
|
|
746
764
|
expiration_event_in == o.expiration_event_in &&
|
|
747
765
|
gcp_key == o.gcp_key &&
|
|
766
|
+
gcp_project_id == o.gcp_project_id &&
|
|
748
767
|
hashi_json == o.hashi_json &&
|
|
749
768
|
hashi_ns == o.hashi_ns &&
|
|
750
769
|
hashi_token == o.hashi_token &&
|
|
@@ -774,7 +793,8 @@ module Akeyless
|
|
|
774
793
|
target_location == o.target_location &&
|
|
775
794
|
token == o.token &&
|
|
776
795
|
type == o.type &&
|
|
777
|
-
uid_token == o.uid_token
|
|
796
|
+
uid_token == o.uid_token &&
|
|
797
|
+
use_gw_cloud_identity == o.use_gw_cloud_identity
|
|
778
798
|
end
|
|
779
799
|
|
|
780
800
|
# @see the `==` method
|
|
@@ -786,7 +806,7 @@ module Akeyless
|
|
|
786
806
|
# Calculates hash code according to all attributes.
|
|
787
807
|
# @return [Integer] Hash code
|
|
788
808
|
def hash
|
|
789
|
-
[service_account_key_decoded, ad_auto_rotate, ad_computer_base_dn, ad_discover_iis_app, ad_discover_services, ad_discovery_types, ad_domain_name, ad_domain_users_path_template, ad_local_users_ignore, ad_local_users_path_template, ad_os_filter, ad_rotation_hour, ad_rotation_interval, ad_sra_enable_rdp, ad_ssh_port, ad_target_format, ad_target_name, ad_targets_path_template, ad_targets_type, ad_user_base_dn, ad_user_groups, ad_winrm_over_http, ad_winrm_port, ad_discover_local_users, aws_key, aws_key_id, aws_region, azure_client_id, azure_kv_name, azure_secret, azure_tenant_id, expiration_event_in, gcp_key, hashi_json, hashi_ns, hashi_token, hashi_url, hosts, json, k8s_ca_certificate, k8s_client_certificate, k8s_client_key, k8s_namespace, k8s_password, k8s_skip_system, k8s_token, k8s_url, k8s_username, name, port_ranges, protection_key, si_auto_rotate, si_rotation_hour, si_rotation_interval, si_sra_enable_rdp, si_target_name, si_user_groups, si_users_ignore, si_users_path_template, target_location, token, type, uid_token].hash
|
|
809
|
+
[service_account_key_decoded, ad_auto_rotate, ad_computer_base_dn, ad_discover_iis_app, ad_discover_services, ad_discovery_types, ad_domain_name, ad_domain_users_path_template, ad_local_users_ignore, ad_local_users_path_template, ad_os_filter, ad_rotation_hour, ad_rotation_interval, ad_sra_enable_rdp, ad_ssh_port, ad_target_format, ad_target_name, ad_targets_path_template, ad_targets_type, ad_user_base_dn, ad_user_groups, ad_winrm_over_http, ad_winrm_port, ad_discover_local_users, aws_key, aws_key_id, aws_region, azure_client_id, azure_kv_name, azure_secret, azure_tenant_id, expiration_event_in, gcp_key, gcp_project_id, hashi_json, hashi_ns, hashi_token, hashi_url, hosts, json, k8s_ca_certificate, k8s_client_certificate, k8s_client_key, k8s_namespace, k8s_password, k8s_skip_system, k8s_token, k8s_url, k8s_username, name, port_ranges, protection_key, si_auto_rotate, si_rotation_hour, si_rotation_interval, si_sra_enable_rdp, si_target_name, si_user_groups, si_users_ignore, si_users_path_template, target_location, token, type, uid_token, use_gw_cloud_identity].hash
|
|
790
810
|
end
|
|
791
811
|
|
|
792
812
|
# Builds the object from hash
|
|
@@ -114,6 +114,9 @@ module Akeyless
|
|
|
114
114
|
# Base64-encoded GCP Service Account private key text with sufficient permissions to Secrets Manager, Minimum required permission is Secret Manager Secret Accessor, e.g. 'roles/secretmanager.secretAccessor' (relevant only for GCP migration)
|
|
115
115
|
attr_accessor :gcp_key
|
|
116
116
|
|
|
117
|
+
# GCP Project ID (cross-project override)
|
|
118
|
+
attr_accessor :gcp_project_id
|
|
119
|
+
|
|
117
120
|
# Import secret key as json value or independent secrets (relevant only for HasiCorp Vault migration) [true/false]
|
|
118
121
|
attr_accessor :hashi_json
|
|
119
122
|
|
|
@@ -207,6 +210,9 @@ module Akeyless
|
|
|
207
210
|
# The universal identity token, Required only for universal_identity authentication
|
|
208
211
|
attr_accessor :uid_token
|
|
209
212
|
|
|
213
|
+
# Use the GW's Cloud IAM
|
|
214
|
+
attr_accessor :use_gw_cloud_identity
|
|
215
|
+
|
|
210
216
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
211
217
|
def self.attribute_map
|
|
212
218
|
{
|
|
@@ -243,6 +249,7 @@ module Akeyless
|
|
|
243
249
|
:'azure_tenant_id' => :'azure-tenant-id',
|
|
244
250
|
:'expiration_event_in' => :'expiration-event-in',
|
|
245
251
|
:'gcp_key' => :'gcp-key',
|
|
252
|
+
:'gcp_project_id' => :'gcp-project-id',
|
|
246
253
|
:'hashi_json' => :'hashi-json',
|
|
247
254
|
:'hashi_ns' => :'hashi-ns',
|
|
248
255
|
:'hashi_token' => :'hashi-token',
|
|
@@ -273,7 +280,8 @@ module Akeyless
|
|
|
273
280
|
:'si_users_path_template' => :'si-users-path-template',
|
|
274
281
|
:'target_location' => :'target-location',
|
|
275
282
|
:'token' => :'token',
|
|
276
|
-
:'uid_token' => :'uid-token'
|
|
283
|
+
:'uid_token' => :'uid-token',
|
|
284
|
+
:'use_gw_cloud_identity' => :'use-gw-cloud-identity'
|
|
277
285
|
}
|
|
278
286
|
end
|
|
279
287
|
|
|
@@ -318,6 +326,7 @@ module Akeyless
|
|
|
318
326
|
:'azure_tenant_id' => :'String',
|
|
319
327
|
:'expiration_event_in' => :'Array<String>',
|
|
320
328
|
:'gcp_key' => :'String',
|
|
329
|
+
:'gcp_project_id' => :'String',
|
|
321
330
|
:'hashi_json' => :'String',
|
|
322
331
|
:'hashi_ns' => :'Array<String>',
|
|
323
332
|
:'hashi_token' => :'String',
|
|
@@ -348,7 +357,8 @@ module Akeyless
|
|
|
348
357
|
:'si_users_path_template' => :'String',
|
|
349
358
|
:'target_location' => :'String',
|
|
350
359
|
:'token' => :'String',
|
|
351
|
-
:'uid_token' => :'String'
|
|
360
|
+
:'uid_token' => :'String',
|
|
361
|
+
:'use_gw_cloud_identity' => :'Boolean'
|
|
352
362
|
}
|
|
353
363
|
end
|
|
354
364
|
|
|
@@ -525,6 +535,10 @@ module Akeyless
|
|
|
525
535
|
self.gcp_key = attributes[:'gcp_key']
|
|
526
536
|
end
|
|
527
537
|
|
|
538
|
+
if attributes.key?(:'gcp_project_id')
|
|
539
|
+
self.gcp_project_id = attributes[:'gcp_project_id']
|
|
540
|
+
end
|
|
541
|
+
|
|
528
542
|
if attributes.key?(:'hashi_json')
|
|
529
543
|
self.hashi_json = attributes[:'hashi_json']
|
|
530
544
|
else
|
|
@@ -672,6 +686,10 @@ module Akeyless
|
|
|
672
686
|
if attributes.key?(:'uid_token')
|
|
673
687
|
self.uid_token = attributes[:'uid_token']
|
|
674
688
|
end
|
|
689
|
+
|
|
690
|
+
if attributes.key?(:'use_gw_cloud_identity')
|
|
691
|
+
self.use_gw_cloud_identity = attributes[:'use_gw_cloud_identity']
|
|
692
|
+
end
|
|
675
693
|
end
|
|
676
694
|
|
|
677
695
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -747,6 +765,7 @@ module Akeyless
|
|
|
747
765
|
azure_tenant_id == o.azure_tenant_id &&
|
|
748
766
|
expiration_event_in == o.expiration_event_in &&
|
|
749
767
|
gcp_key == o.gcp_key &&
|
|
768
|
+
gcp_project_id == o.gcp_project_id &&
|
|
750
769
|
hashi_json == o.hashi_json &&
|
|
751
770
|
hashi_ns == o.hashi_ns &&
|
|
752
771
|
hashi_token == o.hashi_token &&
|
|
@@ -777,7 +796,8 @@ module Akeyless
|
|
|
777
796
|
si_users_path_template == o.si_users_path_template &&
|
|
778
797
|
target_location == o.target_location &&
|
|
779
798
|
token == o.token &&
|
|
780
|
-
uid_token == o.uid_token
|
|
799
|
+
uid_token == o.uid_token &&
|
|
800
|
+
use_gw_cloud_identity == o.use_gw_cloud_identity
|
|
781
801
|
end
|
|
782
802
|
|
|
783
803
|
# @see the `==` method
|
|
@@ -789,7 +809,7 @@ module Akeyless
|
|
|
789
809
|
# Calculates hash code according to all attributes.
|
|
790
810
|
# @return [Integer] Hash code
|
|
791
811
|
def hash
|
|
792
|
-
[service_account_key_decoded, ad_auto_rotate, ad_computer_base_dn, ad_discover_iis_app, ad_discover_services, ad_discovery_types, ad_domain_name, ad_domain_users_path_template, ad_local_users_ignore, ad_local_users_path_template, ad_os_filter, ad_rotation_hour, ad_rotation_interval, ad_sra_enable_rdp, ad_ssh_port, ad_target_format, ad_target_name, ad_targets_path_template, ad_targets_type, ad_user_base_dn, ad_user_groups, ad_winrm_over_http, ad_winrm_port, ad_discover_local_users, aws_key, aws_key_id, aws_region, azure_client_id, azure_kv_name, azure_secret, azure_tenant_id, expiration_event_in, gcp_key, hashi_json, hashi_ns, hashi_token, hashi_url, hosts, id, json, k8s_ca_certificate, k8s_client_certificate, k8s_client_key, k8s_namespace, k8s_password, k8s_skip_system, k8s_token, k8s_url, k8s_username, name, new_name, port_ranges, protection_key, si_auto_rotate, si_rotation_hour, si_rotation_interval, si_sra_enable_rdp, si_target_name, si_user_groups, si_users_ignore, si_users_path_template, target_location, token, uid_token].hash
|
|
812
|
+
[service_account_key_decoded, ad_auto_rotate, ad_computer_base_dn, ad_discover_iis_app, ad_discover_services, ad_discovery_types, ad_domain_name, ad_domain_users_path_template, ad_local_users_ignore, ad_local_users_path_template, ad_os_filter, ad_rotation_hour, ad_rotation_interval, ad_sra_enable_rdp, ad_ssh_port, ad_target_format, ad_target_name, ad_targets_path_template, ad_targets_type, ad_user_base_dn, ad_user_groups, ad_winrm_over_http, ad_winrm_port, ad_discover_local_users, aws_key, aws_key_id, aws_region, azure_client_id, azure_kv_name, azure_secret, azure_tenant_id, expiration_event_in, gcp_key, gcp_project_id, hashi_json, hashi_ns, hashi_token, hashi_url, hosts, id, json, k8s_ca_certificate, k8s_client_certificate, k8s_client_key, k8s_namespace, k8s_password, k8s_skip_system, k8s_token, k8s_url, k8s_username, name, new_name, port_ranges, protection_key, si_auto_rotate, si_rotation_hour, si_rotation_interval, si_sra_enable_rdp, si_target_name, si_user_groups, si_users_ignore, si_users_path_template, target_location, token, uid_token, use_gw_cloud_identity].hash
|
|
793
813
|
end
|
|
794
814
|
|
|
795
815
|
# Builds the object from hash
|
|
@@ -19,6 +19,9 @@ module Akeyless
|
|
|
19
19
|
# TLS Certificate (base64 encoded)
|
|
20
20
|
attr_accessor :cert_data
|
|
21
21
|
|
|
22
|
+
# How many days before the expiration of the certificate would you like to be notified.
|
|
23
|
+
attr_accessor :expiration_event_in
|
|
24
|
+
|
|
22
25
|
# Set output format to JSON
|
|
23
26
|
attr_accessor :json
|
|
24
27
|
|
|
@@ -35,6 +38,7 @@ module Akeyless
|
|
|
35
38
|
def self.attribute_map
|
|
36
39
|
{
|
|
37
40
|
:'cert_data' => :'cert-data',
|
|
41
|
+
:'expiration_event_in' => :'expiration-event-in',
|
|
38
42
|
:'json' => :'json',
|
|
39
43
|
:'key_data' => :'key-data',
|
|
40
44
|
:'token' => :'token',
|
|
@@ -51,6 +55,7 @@ module Akeyless
|
|
|
51
55
|
def self.openapi_types
|
|
52
56
|
{
|
|
53
57
|
:'cert_data' => :'String',
|
|
58
|
+
:'expiration_event_in' => :'Array<String>',
|
|
54
59
|
:'json' => :'Boolean',
|
|
55
60
|
:'key_data' => :'String',
|
|
56
61
|
:'token' => :'String',
|
|
@@ -83,6 +88,12 @@ module Akeyless
|
|
|
83
88
|
self.cert_data = attributes[:'cert_data']
|
|
84
89
|
end
|
|
85
90
|
|
|
91
|
+
if attributes.key?(:'expiration_event_in')
|
|
92
|
+
if (value = attributes[:'expiration_event_in']).is_a?(Array)
|
|
93
|
+
self.expiration_event_in = value
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
|
|
86
97
|
if attributes.key?(:'json')
|
|
87
98
|
self.json = attributes[:'json']
|
|
88
99
|
else
|
|
@@ -123,6 +134,7 @@ module Akeyless
|
|
|
123
134
|
return true if self.equal?(o)
|
|
124
135
|
self.class == o.class &&
|
|
125
136
|
cert_data == o.cert_data &&
|
|
137
|
+
expiration_event_in == o.expiration_event_in &&
|
|
126
138
|
json == o.json &&
|
|
127
139
|
key_data == o.key_data &&
|
|
128
140
|
token == o.token &&
|
|
@@ -138,7 +150,7 @@ module Akeyless
|
|
|
138
150
|
# Calculates hash code according to all attributes.
|
|
139
151
|
# @return [Integer] Hash code
|
|
140
152
|
def hash
|
|
141
|
-
[cert_data, json, key_data, token, uid_token].hash
|
|
153
|
+
[cert_data, expiration_event_in, json, key_data, token, uid_token].hash
|
|
142
154
|
end
|
|
143
155
|
|
|
144
156
|
# Builds the object from hash
|
|
@@ -17,10 +17,16 @@ module Akeyless
|
|
|
17
17
|
class GCPPayload
|
|
18
18
|
attr_accessor :gcp_credentials_json
|
|
19
19
|
|
|
20
|
+
attr_accessor :project_id
|
|
21
|
+
|
|
22
|
+
attr_accessor :use_gw_cloud_identity
|
|
23
|
+
|
|
20
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
25
|
def self.attribute_map
|
|
22
26
|
{
|
|
23
|
-
:'gcp_credentials_json' => :'gcp_credentials_json'
|
|
27
|
+
:'gcp_credentials_json' => :'gcp_credentials_json',
|
|
28
|
+
:'project_id' => :'project_id',
|
|
29
|
+
:'use_gw_cloud_identity' => :'use_gw_cloud_identity'
|
|
24
30
|
}
|
|
25
31
|
end
|
|
26
32
|
|
|
@@ -32,7 +38,9 @@ module Akeyless
|
|
|
32
38
|
# Attribute type mapping.
|
|
33
39
|
def self.openapi_types
|
|
34
40
|
{
|
|
35
|
-
:'gcp_credentials_json' => :'String'
|
|
41
|
+
:'gcp_credentials_json' => :'String',
|
|
42
|
+
:'project_id' => :'String',
|
|
43
|
+
:'use_gw_cloud_identity' => :'Boolean'
|
|
36
44
|
}
|
|
37
45
|
end
|
|
38
46
|
|
|
@@ -60,6 +68,14 @@ module Akeyless
|
|
|
60
68
|
if attributes.key?(:'gcp_credentials_json')
|
|
61
69
|
self.gcp_credentials_json = attributes[:'gcp_credentials_json']
|
|
62
70
|
end
|
|
71
|
+
|
|
72
|
+
if attributes.key?(:'project_id')
|
|
73
|
+
self.project_id = attributes[:'project_id']
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
if attributes.key?(:'use_gw_cloud_identity')
|
|
77
|
+
self.use_gw_cloud_identity = attributes[:'use_gw_cloud_identity']
|
|
78
|
+
end
|
|
63
79
|
end
|
|
64
80
|
|
|
65
81
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -82,7 +98,9 @@ module Akeyless
|
|
|
82
98
|
def ==(o)
|
|
83
99
|
return true if self.equal?(o)
|
|
84
100
|
self.class == o.class &&
|
|
85
|
-
gcp_credentials_json == o.gcp_credentials_json
|
|
101
|
+
gcp_credentials_json == o.gcp_credentials_json &&
|
|
102
|
+
project_id == o.project_id &&
|
|
103
|
+
use_gw_cloud_identity == o.use_gw_cloud_identity
|
|
86
104
|
end
|
|
87
105
|
|
|
88
106
|
# @see the `==` method
|
|
@@ -94,7 +112,7 @@ module Akeyless
|
|
|
94
112
|
# Calculates hash code according to all attributes.
|
|
95
113
|
# @return [Integer] Hash code
|
|
96
114
|
def hash
|
|
97
|
-
[gcp_credentials_json].hash
|
|
115
|
+
[gcp_credentials_json, project_id, use_gw_cloud_identity].hash
|
|
98
116
|
end
|
|
99
117
|
|
|
100
118
|
# Builds the object from hash
|
|
@@ -42,6 +42,12 @@ module Akeyless
|
|
|
42
42
|
|
|
43
43
|
attr_accessor :tls_cert
|
|
44
44
|
|
|
45
|
+
attr_accessor :tls_cert_common_name
|
|
46
|
+
|
|
47
|
+
attr_accessor :tls_cert_expiration_date
|
|
48
|
+
|
|
49
|
+
attr_accessor :tls_cert_expiration_events
|
|
50
|
+
|
|
45
51
|
attr_accessor :tls_key
|
|
46
52
|
|
|
47
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -60,6 +66,9 @@ module Akeyless
|
|
|
60
66
|
:'notify_on_status_change' => :'notify_on_status_change',
|
|
61
67
|
:'tcp_port' => :'tcp_port',
|
|
62
68
|
:'tls_cert' => :'tls_cert',
|
|
69
|
+
:'tls_cert_common_name' => :'tls_cert_common_name',
|
|
70
|
+
:'tls_cert_expiration_date' => :'tls_cert_expiration_date',
|
|
71
|
+
:'tls_cert_expiration_events' => :'tls_cert_expiration_events',
|
|
63
72
|
:'tls_key' => :'tls_key'
|
|
64
73
|
}
|
|
65
74
|
end
|
|
@@ -85,6 +94,9 @@ module Akeyless
|
|
|
85
94
|
:'notify_on_status_change' => :'Boolean',
|
|
86
95
|
:'tcp_port' => :'String',
|
|
87
96
|
:'tls_cert' => :'String',
|
|
97
|
+
:'tls_cert_common_name' => :'String',
|
|
98
|
+
:'tls_cert_expiration_date' => :'Time',
|
|
99
|
+
:'tls_cert_expiration_events' => :'Array<CertificateExpirationEvent>',
|
|
88
100
|
:'tls_key' => :'String'
|
|
89
101
|
}
|
|
90
102
|
end
|
|
@@ -162,6 +174,20 @@ module Akeyless
|
|
|
162
174
|
self.tls_cert = attributes[:'tls_cert']
|
|
163
175
|
end
|
|
164
176
|
|
|
177
|
+
if attributes.key?(:'tls_cert_common_name')
|
|
178
|
+
self.tls_cert_common_name = attributes[:'tls_cert_common_name']
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
if attributes.key?(:'tls_cert_expiration_date')
|
|
182
|
+
self.tls_cert_expiration_date = attributes[:'tls_cert_expiration_date']
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
if attributes.key?(:'tls_cert_expiration_events')
|
|
186
|
+
if (value = attributes[:'tls_cert_expiration_events']).is_a?(Array)
|
|
187
|
+
self.tls_cert_expiration_events = value
|
|
188
|
+
end
|
|
189
|
+
end
|
|
190
|
+
|
|
165
191
|
if attributes.key?(:'tls_key')
|
|
166
192
|
self.tls_key = attributes[:'tls_key']
|
|
167
193
|
end
|
|
@@ -200,6 +226,9 @@ module Akeyless
|
|
|
200
226
|
notify_on_status_change == o.notify_on_status_change &&
|
|
201
227
|
tcp_port == o.tcp_port &&
|
|
202
228
|
tls_cert == o.tls_cert &&
|
|
229
|
+
tls_cert_common_name == o.tls_cert_common_name &&
|
|
230
|
+
tls_cert_expiration_date == o.tls_cert_expiration_date &&
|
|
231
|
+
tls_cert_expiration_events == o.tls_cert_expiration_events &&
|
|
203
232
|
tls_key == o.tls_key
|
|
204
233
|
end
|
|
205
234
|
|
|
@@ -212,7 +241,7 @@ module Akeyless
|
|
|
212
241
|
# Calculates hash code according to all attributes.
|
|
213
242
|
# @return [Integer] Hash code
|
|
214
243
|
def hash
|
|
215
|
-
[akeyless_url, api_token_ttl, display_name, enable_sni_proxy, enable_tls, enable_tls_configure, enable_tls_curl, enable_tls_hvp, gw_cluster_url, hvp_route_version, notify_on_status_change, tcp_port, tls_cert, tls_key].hash
|
|
244
|
+
[akeyless_url, api_token_ttl, display_name, enable_sni_proxy, enable_tls, enable_tls_configure, enable_tls_curl, enable_tls_hvp, gw_cluster_url, hvp_route_version, notify_on_status_change, tcp_port, tls_cert, tls_cert_common_name, tls_cert_expiration_date, tls_cert_expiration_events, tls_key].hash
|
|
216
245
|
end
|
|
217
246
|
|
|
218
247
|
# Builds the object from hash
|
|
@@ -31,7 +31,7 @@ module Akeyless
|
|
|
31
31
|
# Certificate Signing Request contents encoded in base64 to generate the certificate with
|
|
32
32
|
attr_accessor :csr_data_base64
|
|
33
33
|
|
|
34
|
-
# A comma-separated list of extended key usage requests which will be used for certificate issuance. Supported values: 'clientauth', 'serverauth'. If critical is present the extension will be marked as critical
|
|
34
|
+
# A comma-separated list of extended key usage requests which will be used for certificate issuance. Supported values: 'clientauth', 'serverauth', 'codesigning'. If critical is present the extension will be marked as critical
|
|
35
35
|
attr_accessor :extended_key_usage
|
|
36
36
|
|
|
37
37
|
# A json string that defines the requested extra extensions for the certificate
|
|
@@ -27,7 +27,7 @@ module Akeyless
|
|
|
27
27
|
# Certificate Signing Request contents encoded in base64 to generate the certificate with
|
|
28
28
|
attr_accessor :csr_data_base64
|
|
29
29
|
|
|
30
|
-
# A comma-separated list of extended key usage requests which will be used for certificate issuance. Supported values: 'clientauth', 'serverauth'. If critical is present the extension will be marked as critical
|
|
30
|
+
# A comma-separated list of extended key usage requests which will be used for certificate issuance. Supported values: 'clientauth', 'serverauth', 'codesigning'. If critical is present the extension will be marked as critical
|
|
31
31
|
attr_accessor :extended_key_usage
|
|
32
32
|
|
|
33
33
|
# A json string that defines the requested extra extensions for the certificate
|