akeyless 5.0.7 → 5.0.8
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 +4 -1
- data/docs/Auth.md +4 -0
- data/docs/AuthOutput.md +2 -0
- data/docs/CreateRole.md +2 -0
- data/docs/GatewayCreateAllowedAccess.md +1 -1
- data/docs/GatewayUpdateAllowedAccess.md +1 -1
- data/docs/GeminiTargetDetails.md +2 -2
- data/docs/GetCertChallenge.md +22 -0
- data/docs/GetCertChallengeOutput.md +18 -0
- data/docs/OpenAITargetDetails.md +2 -2
- data/docs/PathRule.md +2 -0
- data/docs/ReverseRBACClient.md +2 -0
- data/docs/RoleAuthMethodAssociation.md +2 -0
- data/docs/SharingItemFullInfo.md +2 -0
- data/docs/TargetItemAssociation.md +2 -0
- data/docs/UpdateRole.md +2 -0
- data/docs/V2Api.md +63 -0
- data/lib/akeyless/api/v2_api.rb +64 -0
- data/lib/akeyless/models/auth.rb +21 -1
- data/lib/akeyless/models/auth_output.rb +10 -1
- data/lib/akeyless/models/create_role.rb +11 -1
- data/lib/akeyless/models/gateway_create_allowed_access.rb +1 -1
- data/lib/akeyless/models/gateway_update_allowed_access.rb +1 -1
- data/lib/akeyless/models/gemini_target_details.rb +7 -7
- data/lib/akeyless/models/get_cert_challenge.rb +238 -0
- data/lib/akeyless/models/get_cert_challenge_output.rb +214 -0
- data/lib/akeyless/models/open_ai_target_details.rb +10 -10
- data/lib/akeyless/models/path_rule.rb +11 -1
- data/lib/akeyless/models/reverse_rbac_client.rb +10 -1
- data/lib/akeyless/models/role_auth_method_association.rb +10 -1
- data/lib/akeyless/models/sharing_item_full_info.rb +11 -1
- data/lib/akeyless/models/target_item_association.rb +10 -1
- data/lib/akeyless/models/update_role.rb +11 -1
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +2 -0
- data/spec/models/get_cert_challenge_output_spec.rb +36 -0
- data/spec/models/get_cert_challenge_spec.rb +48 -0
- metadata +9 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5aeed76a9191a3055f61ad80a54554ed61d542195055e3354745652907bad4ef
|
4
|
+
data.tar.gz: 07e8a579218ef4a36bcd75725a1e8d483374c5aebb2e858b2de18adef9ed2d79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ad4b1b89377e8e2cc473bc4a35de82cacf25eb97416ac115f08d5171fe2c5061e0e5f00c5e4aa7a45713efbae96b906a25847b819b0c3ee502f821d5cf8d642
|
7
|
+
data.tar.gz: c44d403cccc988f262ba0dfc73509d0edd08b8b57e21f4082a8256abff107234a817d830bb54673a6ca420643acd7d68d884e2ebf26fbe18f85d35627e7dce50
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ The purpose of this application is to provide access to Akeyless API.
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: 3.0
|
10
|
-
- Package version: 5.0.
|
10
|
+
- Package version: 5.0.8
|
11
11
|
- Generator version: 7.10.0
|
12
12
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
13
13
|
For more information, please visit [http://akeyless.io](http://akeyless.io)
|
@@ -376,6 +376,7 @@ Class | Method | HTTP request | Description
|
|
376
376
|
*Akeyless::V2Api* | [**get_account_settings**](docs/V2Api.md#get_account_settings) | **POST** /get-account-settings |
|
377
377
|
*Akeyless::V2Api* | [**get_analytics_data**](docs/V2Api.md#get_analytics_data) | **POST** /get-analytics-data |
|
378
378
|
*Akeyless::V2Api* | [**get_auth_method**](docs/V2Api.md#get_auth_method) | **POST** /get-auth-method |
|
379
|
+
*Akeyless::V2Api* | [**get_cert_challenge**](docs/V2Api.md#get_cert_challenge) | **POST** /get-cert-challenge |
|
379
380
|
*Akeyless::V2Api* | [**get_certificate_value**](docs/V2Api.md#get_certificate_value) | **POST** /get-certificate-value |
|
380
381
|
*Akeyless::V2Api* | [**get_dynamic_secret_value**](docs/V2Api.md#get_dynamic_secret_value) | **POST** /get-dynamic-secret-value |
|
381
382
|
*Akeyless::V2Api* | [**get_event_forwarder**](docs/V2Api.md#get_event_forwarder) | **POST** /get-event-forwarder |
|
@@ -1230,6 +1231,8 @@ Class | Method | HTTP request | Description
|
|
1230
1231
|
- [Akeyless::GetAccountSettingsCommandOutput](docs/GetAccountSettingsCommandOutput.md)
|
1231
1232
|
- [Akeyless::GetAnalyticsData](docs/GetAnalyticsData.md)
|
1232
1233
|
- [Akeyless::GetAuthMethod](docs/GetAuthMethod.md)
|
1234
|
+
- [Akeyless::GetCertChallenge](docs/GetCertChallenge.md)
|
1235
|
+
- [Akeyless::GetCertChallengeOutput](docs/GetCertChallengeOutput.md)
|
1233
1236
|
- [Akeyless::GetCertificateValue](docs/GetCertificateValue.md)
|
1234
1237
|
- [Akeyless::GetCertificateValueOutput](docs/GetCertificateValueOutput.md)
|
1235
1238
|
- [Akeyless::GetDynamicSecretValue](docs/GetDynamicSecretValue.md)
|
data/docs/Auth.md
CHANGED
@@ -10,6 +10,7 @@
|
|
10
10
|
| **account_id** | **String** | Account id (relevant only for access-type=password where the email address is associated with more than one account) | [optional] |
|
11
11
|
| **admin_email** | **String** | Email (relevant only for access-type=password) | [optional] |
|
12
12
|
| **admin_password** | **String** | Password (relevant only for access-type=password) | [optional] |
|
13
|
+
| **cert_challenge** | **String** | Certificate challenge encoded in base64. (relevant only for access-type=cert) | [optional] |
|
13
14
|
| **cert_data** | **String** | Certificate data encoded in base64. Used if file was not provided. (relevant only for access-type=cert) | [optional] |
|
14
15
|
| **cloud_id** | **String** | The cloud identity (relevant only for access-type=azure_ad,aws_iam,gcp) | [optional] |
|
15
16
|
| **debug** | **Boolean** | | [optional] |
|
@@ -30,6 +31,7 @@
|
|
30
31
|
| **oci_auth_type** | **String** | The type of the OCI configuration to use [instance/apikey/resource] (relevant only for access-type=oci) | [optional][default to 'apikey'] |
|
31
32
|
| **oci_group_ocid** | **Array<String>** | A list of Oracle Cloud IDs groups (relevant only for access-type=oci) | [optional] |
|
32
33
|
| **otp** | **String** | | [optional] |
|
34
|
+
| **signed_cert_challenge** | **String** | Signed certificate challenge encoded in base64. (relevant only for access-type=cert) | [optional] |
|
33
35
|
| **uid_token** | **String** | The universal_identity token (relevant only for access-type=universal_identity) | [optional] |
|
34
36
|
| **use_remote_browser** | **Boolean** | Returns a link to complete the authentication remotely (relevant only for access-type=saml/oidc) | [optional] |
|
35
37
|
| **username** | **String** | LDAP username (relevant only for access-type=ldap) | [optional] |
|
@@ -46,6 +48,7 @@ instance = Akeyless::Auth.new(
|
|
46
48
|
account_id: null,
|
47
49
|
admin_email: null,
|
48
50
|
admin_password: null,
|
51
|
+
cert_challenge: null,
|
49
52
|
cert_data: null,
|
50
53
|
cloud_id: null,
|
51
54
|
debug: null,
|
@@ -66,6 +69,7 @@ instance = Akeyless::Auth.new(
|
|
66
69
|
oci_auth_type: null,
|
67
70
|
oci_group_ocid: null,
|
68
71
|
otp: null,
|
72
|
+
signed_cert_challenge: null,
|
69
73
|
uid_token: null,
|
70
74
|
use_remote_browser: null,
|
71
75
|
username: null
|
data/docs/AuthOutput.md
CHANGED
@@ -6,6 +6,7 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **complete_auth_link** | **String** | | [optional] |
|
8
8
|
| **creds** | [**SystemAccessCredentialsReplyObj**](SystemAccessCredentialsReplyObj.md) | | [optional] |
|
9
|
+
| **expiration** | **String** | | [optional] |
|
9
10
|
| **token** | **String** | | [optional] |
|
10
11
|
|
11
12
|
## Example
|
@@ -16,6 +17,7 @@ require 'akeyless'
|
|
16
17
|
instance = Akeyless::AuthOutput.new(
|
17
18
|
complete_auth_link: null,
|
18
19
|
creds: null,
|
20
|
+
expiration: null,
|
19
21
|
token: null
|
20
22
|
)
|
21
23
|
```
|
data/docs/CreateRole.md
CHANGED
@@ -14,6 +14,7 @@
|
|
14
14
|
| **gw_analytics_access** | **String** | Allow this role to view gw analytics. Currently only 'none', 'own', 'all' values are supported, allowing associated auth methods to view reports produced by the same auth methods. | [optional] |
|
15
15
|
| **json** | **Boolean** | Set output format to JSON | [optional][default to false] |
|
16
16
|
| **name** | **String** | Role name | |
|
17
|
+
| **reverse_rbac_access** | **String** | Allow this role to view Reverse RBAC. Supported values: 'own', 'all'. | [optional] |
|
17
18
|
| **sra_reports_access** | **String** | Allow this role to view SRA Clusters. Currently only 'none', 'own', 'all' values are supported. | [optional] |
|
18
19
|
| **token** | **String** | Authentication token (see `/auth` and `/configure`) | [optional] |
|
19
20
|
| **uid_token** | **String** | The universal identity token, Required only for universal_identity authentication | [optional] |
|
@@ -35,6 +36,7 @@ instance = Akeyless::CreateRole.new(
|
|
35
36
|
gw_analytics_access: null,
|
36
37
|
json: null,
|
37
38
|
name: null,
|
39
|
+
reverse_rbac_access: null,
|
38
40
|
sra_reports_access: null,
|
39
41
|
token: null,
|
40
42
|
uid_token: null,
|
@@ -10,7 +10,7 @@
|
|
10
10
|
| **description** | **String** | Allowed access description | [optional] |
|
11
11
|
| **json** | **Boolean** | Set output format to JSON | [optional][default to false] |
|
12
12
|
| **name** | **String** | Allowed access name | |
|
13
|
-
| **permissions** | **String** | Permissions Comma-seperated list of permissions for this allowed access. Available permissions: [defaults,targets,classic_keys,automatic_migration,ldap_auth,dynamic_secret,k8s_auth,log_forwarding,zero_knowledge_encryption,rotated_secret,caching,event_forwarding,admin,kmip,general] | [optional] |
|
13
|
+
| **permissions** | **String** | Permissions Comma-seperated list of permissions for this allowed access. Available permissions: [defaults,targets,classic_keys,automatic_migration,ldap_auth,dynamic_secret,k8s_auth,log_forwarding,zero_knowledge_encryption,rotated_secret,caching,event_forwarding,admin,kmip,general,rotate_secret_value] | [optional] |
|
14
14
|
| **sub_claims** | **Hash<String, String>** | Sub claims key/val of sub claims, e.g group=admins,developers | [optional] |
|
15
15
|
| **token** | **String** | Authentication token (see `/auth` and `/configure`) | [optional] |
|
16
16
|
| **uid_token** | **String** | The universal identity token, Required only for universal_identity authentication | [optional] |
|
@@ -11,7 +11,7 @@
|
|
11
11
|
| **json** | **Boolean** | Set output format to JSON | [optional][default to false] |
|
12
12
|
| **name** | **String** | Allowed access name | |
|
13
13
|
| **new_name** | **String** | New allowed access name | [optional] |
|
14
|
-
| **permissions** | **String** | Permissions Comma-seperated list of permissions for this allowed access. Available permissions: [defaults,targets,classic_keys,automatic_migration,ldap_auth,dynamic_secret,k8s_auth,log_forwarding,zero_knowledge_encryption,rotated_secret,caching,event_forwarding,admin,kmip,general] | [optional] |
|
14
|
+
| **permissions** | **String** | Permissions Comma-seperated list of permissions for this allowed access. Available permissions: [defaults,targets,classic_keys,automatic_migration,ldap_auth,dynamic_secret,k8s_auth,log_forwarding,zero_knowledge_encryption,rotated_secret,caching,event_forwarding,admin,kmip,general,rotate_secret_value] | [optional] |
|
15
15
|
| **sub_claims** | **Hash<String, String>** | Sub claims key/val of sub claims, e.g group=admins,developers | [optional] |
|
16
16
|
| **token** | **String** | Authentication token (see `/auth` and `/configure`) | [optional] |
|
17
17
|
| **uid_token** | **String** | The universal identity token, Required only for universal_identity authentication | [optional] |
|
data/docs/GeminiTargetDetails.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **api_key** | **String** | | [optional] |
|
8
|
-
| **
|
8
|
+
| **gemini_url** | **String** | | [optional] |
|
9
9
|
| **model** | **String** | | [optional] |
|
10
10
|
|
11
11
|
## Example
|
@@ -15,7 +15,7 @@ require 'akeyless'
|
|
15
15
|
|
16
16
|
instance = Akeyless::GeminiTargetDetails.new(
|
17
17
|
api_key: null,
|
18
|
-
|
18
|
+
gemini_url: null,
|
19
19
|
model: null
|
20
20
|
)
|
21
21
|
```
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Akeyless::GetCertChallenge
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **access_id** | **String** | Access ID | [optional] |
|
8
|
+
| **cert_data** | **String** | Certificate data encoded in base64. Used if file was not provided. | [optional] |
|
9
|
+
| **json** | **Boolean** | Set output format to JSON | [optional][default to false] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'akeyless'
|
15
|
+
|
16
|
+
instance = Akeyless::GetCertChallenge.new(
|
17
|
+
access_id: null,
|
18
|
+
cert_data: null,
|
19
|
+
json: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# Akeyless::GetCertChallengeOutput
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **challenge** | **String** | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'akeyless'
|
13
|
+
|
14
|
+
instance = Akeyless::GetCertChallengeOutput.new(
|
15
|
+
challenge: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
data/docs/OpenAITargetDetails.md
CHANGED
@@ -6,8 +6,8 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **api_key** | **String** | | [optional] |
|
8
8
|
| **api_key_id** | **String** | | [optional] |
|
9
|
-
| **base_url** | **String** | | [optional] |
|
10
9
|
| **model** | **String** | | [optional] |
|
10
|
+
| **openai_url** | **String** | | [optional] |
|
11
11
|
| **organization_id** | **String** | | [optional] |
|
12
12
|
|
13
13
|
## Example
|
@@ -18,8 +18,8 @@ require 'akeyless'
|
|
18
18
|
instance = Akeyless::OpenAITargetDetails.new(
|
19
19
|
api_key: null,
|
20
20
|
api_key_id: null,
|
21
|
-
base_url: null,
|
22
21
|
model: null,
|
22
|
+
openai_url: null,
|
23
23
|
organization_id: null
|
24
24
|
)
|
25
25
|
```
|
data/docs/PathRule.md
CHANGED
@@ -8,6 +8,7 @@
|
|
8
8
|
| **capabilities** | **Array<String>** | The approved/denied capabilities in the path | [optional] |
|
9
9
|
| **cb** | **Integer** | | [optional] |
|
10
10
|
| **is_limit_access** | **Boolean** | flag that indicate that this rule is allowed to be access RemainingAccess of times. | [optional] |
|
11
|
+
| **item_id** | **Integer** | The item id this rule directly refers to (when applicable) | [optional] |
|
11
12
|
| **number_of_access_used** | **Integer** | | [optional] |
|
12
13
|
| **number_of_allowed_access** | **Integer** | | [optional] |
|
13
14
|
| **path** | **String** | The path the rule refers to | [optional] |
|
@@ -25,6 +26,7 @@ instance = Akeyless::PathRule.new(
|
|
25
26
|
capabilities: null,
|
26
27
|
cb: null,
|
27
28
|
is_limit_access: null,
|
29
|
+
item_id: null,
|
28
30
|
number_of_access_used: null,
|
29
31
|
number_of_allowed_access: null,
|
30
32
|
path: null,
|
data/docs/ReverseRBACClient.md
CHANGED
@@ -5,6 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **assocs** | [**Array<AuthMethodRoleAssociation>**](AuthMethodRoleAssociation.md) | | [optional] |
|
8
|
+
| **auth_method_id** | **Integer** | | [optional] |
|
8
9
|
| **auth_method_name** | **String** | | [optional] |
|
9
10
|
|
10
11
|
## Example
|
@@ -14,6 +15,7 @@ require 'akeyless'
|
|
14
15
|
|
15
16
|
instance = Akeyless::ReverseRBACClient.new(
|
16
17
|
assocs: null,
|
18
|
+
auth_method_id: null,
|
17
19
|
auth_method_name: null
|
18
20
|
)
|
19
21
|
```
|
@@ -6,6 +6,7 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **assoc_id** | **String** | | [optional] |
|
8
8
|
| **auth_method_access_id** | **String** | | [optional] |
|
9
|
+
| **auth_method_id** | **Integer** | | [optional] |
|
9
10
|
| **auth_method_name** | **String** | | [optional] |
|
10
11
|
| **auth_method_sub_claims** | **Hash<String, Array<String>>** | | [optional] |
|
11
12
|
| **is_subclaims_with_operator** | **Boolean** | | [optional] |
|
@@ -19,6 +20,7 @@ require 'akeyless'
|
|
19
20
|
instance = Akeyless::RoleAuthMethodAssociation.new(
|
20
21
|
assoc_id: null,
|
21
22
|
auth_method_access_id: null,
|
23
|
+
auth_method_id: null,
|
22
24
|
auth_method_name: null,
|
23
25
|
auth_method_sub_claims: null,
|
24
26
|
is_subclaims_with_operator: null,
|
data/docs/SharingItemFullInfo.md
CHANGED
@@ -8,6 +8,7 @@
|
|
8
8
|
| **capabilities** | **Array<String>** | The approved/denied capabilities in the path | [optional] |
|
9
9
|
| **cb** | **Integer** | | [optional] |
|
10
10
|
| **is_limit_access** | **Boolean** | flag that indicate that this rule is allowed to be access RemainingAccess of times. | [optional] |
|
11
|
+
| **item_id** | **Integer** | The item id this rule directly refers to (when applicable) | [optional] |
|
11
12
|
| **name** | **String** | | [optional] |
|
12
13
|
| **number_of_access_used** | **Integer** | | [optional] |
|
13
14
|
| **number_of_allowed_access** | **Integer** | | [optional] |
|
@@ -26,6 +27,7 @@ instance = Akeyless::SharingItemFullInfo.new(
|
|
26
27
|
capabilities: null,
|
27
28
|
cb: null,
|
28
29
|
is_limit_access: null,
|
30
|
+
item_id: null,
|
29
31
|
name: null,
|
30
32
|
number_of_access_used: null,
|
31
33
|
number_of_allowed_access: null,
|
@@ -7,6 +7,7 @@
|
|
7
7
|
| **assoc_id** | **String** | | [optional] |
|
8
8
|
| **attributes** | **Hash<String, String>** | | [optional] |
|
9
9
|
| **cluster_id** | **Integer** | | [optional] |
|
10
|
+
| **item_id** | **Integer** | | [optional] |
|
10
11
|
| **item_name** | **String** | | [optional] |
|
11
12
|
| **item_type** | **String** | | [optional] |
|
12
13
|
| **relationship** | **String** | | [optional] |
|
@@ -20,6 +21,7 @@ instance = Akeyless::TargetItemAssociation.new(
|
|
20
21
|
assoc_id: null,
|
21
22
|
attributes: null,
|
22
23
|
cluster_id: null,
|
24
|
+
item_id: null,
|
23
25
|
item_name: null,
|
24
26
|
item_type: null,
|
25
27
|
relationship: null
|
data/docs/UpdateRole.md
CHANGED
@@ -15,6 +15,7 @@
|
|
15
15
|
| **name** | **String** | Role name | |
|
16
16
|
| **new_comment** | **String** | Deprecated - use description | [optional][default to 'default_comment'] |
|
17
17
|
| **new_name** | **String** | New Role name | [optional] |
|
18
|
+
| **reverse_rbac_access** | **String** | Allow this role to view Reverse RBAC. Supported values: 'own', 'all'. | [optional] |
|
18
19
|
| **sra_reports_access** | **String** | Allow this role to view SRA Clusters. Currently only 'none', 'own', 'all' values are supported. | [optional] |
|
19
20
|
| **token** | **String** | Authentication token (see `/auth` and `/configure`) | [optional] |
|
20
21
|
| **uid_token** | **String** | The universal identity token, Required only for universal_identity authentication | [optional] |
|
@@ -37,6 +38,7 @@ instance = Akeyless::UpdateRole.new(
|
|
37
38
|
name: null,
|
38
39
|
new_comment: null,
|
39
40
|
new_name: null,
|
41
|
+
reverse_rbac_access: null,
|
40
42
|
sra_reports_access: null,
|
41
43
|
token: null,
|
42
44
|
uid_token: null,
|
data/docs/V2Api.md
CHANGED
@@ -320,6 +320,7 @@ All URIs are relative to *https://api.akeyless.io*
|
|
320
320
|
| [**get_account_settings**](V2Api.md#get_account_settings) | **POST** /get-account-settings | |
|
321
321
|
| [**get_analytics_data**](V2Api.md#get_analytics_data) | **POST** /get-analytics-data | |
|
322
322
|
| [**get_auth_method**](V2Api.md#get_auth_method) | **POST** /get-auth-method | |
|
323
|
+
| [**get_cert_challenge**](V2Api.md#get_cert_challenge) | **POST** /get-cert-challenge | |
|
323
324
|
| [**get_certificate_value**](V2Api.md#get_certificate_value) | **POST** /get-certificate-value | |
|
324
325
|
| [**get_dynamic_secret_value**](V2Api.md#get_dynamic_secret_value) | **POST** /get-dynamic-secret-value | |
|
325
326
|
| [**get_event_forwarder**](V2Api.md#get_event_forwarder) | **POST** /get-event-forwarder | |
|
@@ -20176,6 +20177,68 @@ No authorization required
|
|
20176
20177
|
- **Accept**: application/json
|
20177
20178
|
|
20178
20179
|
|
20180
|
+
## get_cert_challenge
|
20181
|
+
|
20182
|
+
> <GetCertChallengeOutput> get_cert_challenge(get_cert_challenge)
|
20183
|
+
|
20184
|
+
|
20185
|
+
|
20186
|
+
### Examples
|
20187
|
+
|
20188
|
+
```ruby
|
20189
|
+
require 'time'
|
20190
|
+
require 'akeyless'
|
20191
|
+
|
20192
|
+
api_instance = Akeyless::V2Api.new
|
20193
|
+
get_cert_challenge = Akeyless::GetCertChallenge.new # GetCertChallenge |
|
20194
|
+
|
20195
|
+
begin
|
20196
|
+
|
20197
|
+
result = api_instance.get_cert_challenge(get_cert_challenge)
|
20198
|
+
p result
|
20199
|
+
rescue Akeyless::ApiError => e
|
20200
|
+
puts "Error when calling V2Api->get_cert_challenge: #{e}"
|
20201
|
+
end
|
20202
|
+
```
|
20203
|
+
|
20204
|
+
#### Using the get_cert_challenge_with_http_info variant
|
20205
|
+
|
20206
|
+
This returns an Array which contains the response data, status code and headers.
|
20207
|
+
|
20208
|
+
> <Array(<GetCertChallengeOutput>, Integer, Hash)> get_cert_challenge_with_http_info(get_cert_challenge)
|
20209
|
+
|
20210
|
+
```ruby
|
20211
|
+
begin
|
20212
|
+
|
20213
|
+
data, status_code, headers = api_instance.get_cert_challenge_with_http_info(get_cert_challenge)
|
20214
|
+
p status_code # => 2xx
|
20215
|
+
p headers # => { ... }
|
20216
|
+
p data # => <GetCertChallengeOutput>
|
20217
|
+
rescue Akeyless::ApiError => e
|
20218
|
+
puts "Error when calling V2Api->get_cert_challenge_with_http_info: #{e}"
|
20219
|
+
end
|
20220
|
+
```
|
20221
|
+
|
20222
|
+
### Parameters
|
20223
|
+
|
20224
|
+
| Name | Type | Description | Notes |
|
20225
|
+
| ---- | ---- | ----------- | ----- |
|
20226
|
+
| **get_cert_challenge** | [**GetCertChallenge**](GetCertChallenge.md) | | |
|
20227
|
+
|
20228
|
+
### Return type
|
20229
|
+
|
20230
|
+
[**GetCertChallengeOutput**](GetCertChallengeOutput.md)
|
20231
|
+
|
20232
|
+
### Authorization
|
20233
|
+
|
20234
|
+
No authorization required
|
20235
|
+
|
20236
|
+
### HTTP request headers
|
20237
|
+
|
20238
|
+
- **Content-Type**: application/json
|
20239
|
+
- **Accept**: application/json
|
20240
|
+
|
20241
|
+
|
20179
20242
|
## get_certificate_value
|
20180
20243
|
|
20181
20244
|
> <GetCertificateValueOutput> get_certificate_value(get_certificate_value)
|
data/lib/akeyless/api/v2_api.rb
CHANGED
@@ -20212,6 +20212,70 @@ module Akeyless
|
|
20212
20212
|
return data, status_code, headers
|
20213
20213
|
end
|
20214
20214
|
|
20215
|
+
# @param get_cert_challenge [GetCertChallenge]
|
20216
|
+
# @param [Hash] opts the optional parameters
|
20217
|
+
# @return [GetCertChallengeOutput]
|
20218
|
+
def get_cert_challenge(get_cert_challenge, opts = {})
|
20219
|
+
data, _status_code, _headers = get_cert_challenge_with_http_info(get_cert_challenge, opts)
|
20220
|
+
data
|
20221
|
+
end
|
20222
|
+
|
20223
|
+
# @param get_cert_challenge [GetCertChallenge]
|
20224
|
+
# @param [Hash] opts the optional parameters
|
20225
|
+
# @return [Array<(GetCertChallengeOutput, Integer, Hash)>] GetCertChallengeOutput data, response status code and response headers
|
20226
|
+
def get_cert_challenge_with_http_info(get_cert_challenge, opts = {})
|
20227
|
+
if @api_client.config.debugging
|
20228
|
+
@api_client.config.logger.debug 'Calling API: V2Api.get_cert_challenge ...'
|
20229
|
+
end
|
20230
|
+
# verify the required parameter 'get_cert_challenge' is set
|
20231
|
+
if @api_client.config.client_side_validation && get_cert_challenge.nil?
|
20232
|
+
fail ArgumentError, "Missing the required parameter 'get_cert_challenge' when calling V2Api.get_cert_challenge"
|
20233
|
+
end
|
20234
|
+
# resource path
|
20235
|
+
local_var_path = '/get-cert-challenge'
|
20236
|
+
|
20237
|
+
# query parameters
|
20238
|
+
query_params = opts[:query_params] || {}
|
20239
|
+
|
20240
|
+
# header parameters
|
20241
|
+
header_params = opts[:header_params] || {}
|
20242
|
+
# HTTP header 'Accept' (if needed)
|
20243
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
20244
|
+
# HTTP header 'Content-Type'
|
20245
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
20246
|
+
if !content_type.nil?
|
20247
|
+
header_params['Content-Type'] = content_type
|
20248
|
+
end
|
20249
|
+
|
20250
|
+
# form parameters
|
20251
|
+
form_params = opts[:form_params] || {}
|
20252
|
+
|
20253
|
+
# http body (model)
|
20254
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(get_cert_challenge)
|
20255
|
+
|
20256
|
+
# return_type
|
20257
|
+
return_type = opts[:debug_return_type] || 'GetCertChallengeOutput'
|
20258
|
+
|
20259
|
+
# auth_names
|
20260
|
+
auth_names = opts[:debug_auth_names] || []
|
20261
|
+
|
20262
|
+
new_options = opts.merge(
|
20263
|
+
:operation => :"V2Api.get_cert_challenge",
|
20264
|
+
:header_params => header_params,
|
20265
|
+
:query_params => query_params,
|
20266
|
+
:form_params => form_params,
|
20267
|
+
:body => post_body,
|
20268
|
+
:auth_names => auth_names,
|
20269
|
+
:return_type => return_type
|
20270
|
+
)
|
20271
|
+
|
20272
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
20273
|
+
if @api_client.config.debugging
|
20274
|
+
@api_client.config.logger.debug "API called: V2Api#get_cert_challenge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
20275
|
+
end
|
20276
|
+
return data, status_code, headers
|
20277
|
+
end
|
20278
|
+
|
20215
20279
|
# @param get_certificate_value [GetCertificateValue]
|
20216
20280
|
# @param [Hash] opts the optional parameters
|
20217
20281
|
# @return [GetCertificateValueOutput]
|
data/lib/akeyless/models/auth.rb
CHANGED
@@ -33,6 +33,9 @@ module Akeyless
|
|
33
33
|
# Password (relevant only for access-type=password)
|
34
34
|
attr_accessor :admin_password
|
35
35
|
|
36
|
+
# Certificate challenge encoded in base64. (relevant only for access-type=cert)
|
37
|
+
attr_accessor :cert_challenge
|
38
|
+
|
36
39
|
# Certificate data encoded in base64. Used if file was not provided. (relevant only for access-type=cert)
|
37
40
|
attr_accessor :cert_data
|
38
41
|
|
@@ -91,6 +94,9 @@ module Akeyless
|
|
91
94
|
|
92
95
|
attr_accessor :otp
|
93
96
|
|
97
|
+
# Signed certificate challenge encoded in base64. (relevant only for access-type=cert)
|
98
|
+
attr_accessor :signed_cert_challenge
|
99
|
+
|
94
100
|
# The universal_identity token (relevant only for access-type=universal_identity)
|
95
101
|
attr_accessor :uid_token
|
96
102
|
|
@@ -109,6 +115,7 @@ module Akeyless
|
|
109
115
|
:'account_id' => :'account-id',
|
110
116
|
:'admin_email' => :'admin-email',
|
111
117
|
:'admin_password' => :'admin-password',
|
118
|
+
:'cert_challenge' => :'cert-challenge',
|
112
119
|
:'cert_data' => :'cert-data',
|
113
120
|
:'cloud_id' => :'cloud-id',
|
114
121
|
:'debug' => :'debug',
|
@@ -129,6 +136,7 @@ module Akeyless
|
|
129
136
|
:'oci_auth_type' => :'oci-auth-type',
|
130
137
|
:'oci_group_ocid' => :'oci-group-ocid',
|
131
138
|
:'otp' => :'otp',
|
139
|
+
:'signed_cert_challenge' => :'signed-cert-challenge',
|
132
140
|
:'uid_token' => :'uid-token',
|
133
141
|
:'use_remote_browser' => :'use-remote-browser',
|
134
142
|
:'username' => :'username'
|
@@ -149,6 +157,7 @@ module Akeyless
|
|
149
157
|
:'account_id' => :'String',
|
150
158
|
:'admin_email' => :'String',
|
151
159
|
:'admin_password' => :'String',
|
160
|
+
:'cert_challenge' => :'String',
|
152
161
|
:'cert_data' => :'String',
|
153
162
|
:'cloud_id' => :'String',
|
154
163
|
:'debug' => :'Boolean',
|
@@ -169,6 +178,7 @@ module Akeyless
|
|
169
178
|
:'oci_auth_type' => :'String',
|
170
179
|
:'oci_group_ocid' => :'Array<String>',
|
171
180
|
:'otp' => :'String',
|
181
|
+
:'signed_cert_challenge' => :'String',
|
172
182
|
:'uid_token' => :'String',
|
173
183
|
:'use_remote_browser' => :'Boolean',
|
174
184
|
:'username' => :'String'
|
@@ -222,6 +232,10 @@ module Akeyless
|
|
222
232
|
self.admin_password = attributes[:'admin_password']
|
223
233
|
end
|
224
234
|
|
235
|
+
if attributes.key?(:'cert_challenge')
|
236
|
+
self.cert_challenge = attributes[:'cert_challenge']
|
237
|
+
end
|
238
|
+
|
225
239
|
if attributes.key?(:'cert_data')
|
226
240
|
self.cert_data = attributes[:'cert_data']
|
227
241
|
end
|
@@ -310,6 +324,10 @@ module Akeyless
|
|
310
324
|
self.otp = attributes[:'otp']
|
311
325
|
end
|
312
326
|
|
327
|
+
if attributes.key?(:'signed_cert_challenge')
|
328
|
+
self.signed_cert_challenge = attributes[:'signed_cert_challenge']
|
329
|
+
end
|
330
|
+
|
313
331
|
if attributes.key?(:'uid_token')
|
314
332
|
self.uid_token = attributes[:'uid_token']
|
315
333
|
end
|
@@ -349,6 +367,7 @@ module Akeyless
|
|
349
367
|
account_id == o.account_id &&
|
350
368
|
admin_email == o.admin_email &&
|
351
369
|
admin_password == o.admin_password &&
|
370
|
+
cert_challenge == o.cert_challenge &&
|
352
371
|
cert_data == o.cert_data &&
|
353
372
|
cloud_id == o.cloud_id &&
|
354
373
|
debug == o.debug &&
|
@@ -369,6 +388,7 @@ module Akeyless
|
|
369
388
|
oci_auth_type == o.oci_auth_type &&
|
370
389
|
oci_group_ocid == o.oci_group_ocid &&
|
371
390
|
otp == o.otp &&
|
391
|
+
signed_cert_challenge == o.signed_cert_challenge &&
|
372
392
|
uid_token == o.uid_token &&
|
373
393
|
use_remote_browser == o.use_remote_browser &&
|
374
394
|
username == o.username
|
@@ -383,7 +403,7 @@ module Akeyless
|
|
383
403
|
# Calculates hash code according to all attributes.
|
384
404
|
# @return [Integer] Hash code
|
385
405
|
def hash
|
386
|
-
[access_id, access_key, access_type, account_id, admin_email, admin_password, cert_data, cloud_id, debug, disable_pafxfast, gateway_spn, gateway_url, gcp_audience, json, jwt, k8s_auth_config_name, k8s_service_account_token, kerberos_token, kerberos_username, key_data, keytab_data, krb5_conf_data, ldap_password, oci_auth_type, oci_group_ocid, otp, uid_token, use_remote_browser, username].hash
|
406
|
+
[access_id, access_key, access_type, account_id, admin_email, admin_password, cert_challenge, cert_data, cloud_id, debug, disable_pafxfast, gateway_spn, gateway_url, gcp_audience, json, jwt, k8s_auth_config_name, k8s_service_account_token, kerberos_token, kerberos_username, key_data, keytab_data, krb5_conf_data, ldap_password, oci_auth_type, oci_group_ocid, otp, signed_cert_challenge, uid_token, use_remote_browser, username].hash
|
387
407
|
end
|
388
408
|
|
389
409
|
# Builds the object from hash
|
@@ -19,6 +19,8 @@ module Akeyless
|
|
19
19
|
|
20
20
|
attr_accessor :creds
|
21
21
|
|
22
|
+
attr_accessor :expiration
|
23
|
+
|
22
24
|
attr_accessor :token
|
23
25
|
|
24
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -26,6 +28,7 @@ module Akeyless
|
|
26
28
|
{
|
27
29
|
:'complete_auth_link' => :'complete_auth_link',
|
28
30
|
:'creds' => :'creds',
|
31
|
+
:'expiration' => :'expiration',
|
29
32
|
:'token' => :'token'
|
30
33
|
}
|
31
34
|
end
|
@@ -40,6 +43,7 @@ module Akeyless
|
|
40
43
|
{
|
41
44
|
:'complete_auth_link' => :'String',
|
42
45
|
:'creds' => :'SystemAccessCredentialsReplyObj',
|
46
|
+
:'expiration' => :'String',
|
43
47
|
:'token' => :'String'
|
44
48
|
}
|
45
49
|
end
|
@@ -73,6 +77,10 @@ module Akeyless
|
|
73
77
|
self.creds = attributes[:'creds']
|
74
78
|
end
|
75
79
|
|
80
|
+
if attributes.key?(:'expiration')
|
81
|
+
self.expiration = attributes[:'expiration']
|
82
|
+
end
|
83
|
+
|
76
84
|
if attributes.key?(:'token')
|
77
85
|
self.token = attributes[:'token']
|
78
86
|
end
|
@@ -100,6 +108,7 @@ module Akeyless
|
|
100
108
|
self.class == o.class &&
|
101
109
|
complete_auth_link == o.complete_auth_link &&
|
102
110
|
creds == o.creds &&
|
111
|
+
expiration == o.expiration &&
|
103
112
|
token == o.token
|
104
113
|
end
|
105
114
|
|
@@ -112,7 +121,7 @@ module Akeyless
|
|
112
121
|
# Calculates hash code according to all attributes.
|
113
122
|
# @return [Integer] Hash code
|
114
123
|
def hash
|
115
|
-
[complete_auth_link, creds, token].hash
|
124
|
+
[complete_auth_link, creds, expiration, token].hash
|
116
125
|
end
|
117
126
|
|
118
127
|
# Builds the object from hash
|
@@ -45,6 +45,9 @@ module Akeyless
|
|
45
45
|
# Role name
|
46
46
|
attr_accessor :name
|
47
47
|
|
48
|
+
# Allow this role to view Reverse RBAC. Supported values: 'own', 'all'.
|
49
|
+
attr_accessor :reverse_rbac_access
|
50
|
+
|
48
51
|
# Allow this role to view SRA Clusters. Currently only 'none', 'own', 'all' values are supported.
|
49
52
|
attr_accessor :sra_reports_access
|
50
53
|
|
@@ -70,6 +73,7 @@ module Akeyless
|
|
70
73
|
:'gw_analytics_access' => :'gw-analytics-access',
|
71
74
|
:'json' => :'json',
|
72
75
|
:'name' => :'name',
|
76
|
+
:'reverse_rbac_access' => :'reverse-rbac-access',
|
73
77
|
:'sra_reports_access' => :'sra-reports-access',
|
74
78
|
:'token' => :'token',
|
75
79
|
:'uid_token' => :'uid-token',
|
@@ -95,6 +99,7 @@ module Akeyless
|
|
95
99
|
:'gw_analytics_access' => :'String',
|
96
100
|
:'json' => :'Boolean',
|
97
101
|
:'name' => :'String',
|
102
|
+
:'reverse_rbac_access' => :'String',
|
98
103
|
:'sra_reports_access' => :'String',
|
99
104
|
:'token' => :'String',
|
100
105
|
:'uid_token' => :'String',
|
@@ -167,6 +172,10 @@ module Akeyless
|
|
167
172
|
self.name = nil
|
168
173
|
end
|
169
174
|
|
175
|
+
if attributes.key?(:'reverse_rbac_access')
|
176
|
+
self.reverse_rbac_access = attributes[:'reverse_rbac_access']
|
177
|
+
end
|
178
|
+
|
170
179
|
if attributes.key?(:'sra_reports_access')
|
171
180
|
self.sra_reports_access = attributes[:'sra_reports_access']
|
172
181
|
end
|
@@ -219,6 +228,7 @@ module Akeyless
|
|
219
228
|
gw_analytics_access == o.gw_analytics_access &&
|
220
229
|
json == o.json &&
|
221
230
|
name == o.name &&
|
231
|
+
reverse_rbac_access == o.reverse_rbac_access &&
|
222
232
|
sra_reports_access == o.sra_reports_access &&
|
223
233
|
token == o.token &&
|
224
234
|
uid_token == o.uid_token &&
|
@@ -234,7 +244,7 @@ module Akeyless
|
|
234
244
|
# Calculates hash code according to all attributes.
|
235
245
|
# @return [Integer] Hash code
|
236
246
|
def hash
|
237
|
-
[analytics_access, audit_access, comment, delete_protection, description, event_center_access, event_forwarders_access, gw_analytics_access, json, name, sra_reports_access, token, uid_token, usage_reports_access].hash
|
247
|
+
[analytics_access, audit_access, comment, delete_protection, description, event_center_access, event_forwarders_access, gw_analytics_access, json, name, reverse_rbac_access, sra_reports_access, token, uid_token, usage_reports_access].hash
|
238
248
|
end
|
239
249
|
|
240
250
|
# Builds the object from hash
|