akeyless 3.6.0 → 3.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -1
- data/docs/Auth.md +4 -0
- data/docs/AuthMethodAccessInfo.md +2 -0
- data/docs/Configure.md +5 -1
- data/docs/CreateAuthMethodOCI.md +40 -0
- data/docs/CreateAuthMethodOCIOutput.md +18 -0
- data/docs/OCIAccessRules.md +20 -0
- data/docs/UpdateAuthMethodOCI.md +42 -0
- data/docs/UpdateAuthMethodOCIOutput.md +18 -0
- data/docs/V2Api.md +126 -0
- data/lib/akeyless/api/v2_api.rb +128 -0
- data/lib/akeyless/models/auth.rb +25 -1
- data/lib/akeyless/models/auth_method_access_info.rb +10 -1
- data/lib/akeyless/models/configure.rb +28 -4
- data/lib/akeyless/models/create_auth_method_oci.rb +359 -0
- data/lib/akeyless/models/create_auth_method_oci_output.rb +214 -0
- data/lib/akeyless/models/oci_access_rules.rb +226 -0
- data/lib/akeyless/models/update_auth_method_oci.rb +369 -0
- data/lib/akeyless/models/update_auth_method_oci_output.rb +214 -0
- data/lib/akeyless/version.rb +1 -1
- data/lib/akeyless.rb +5 -0
- data/spec/models/create_auth_method_oci_output_spec.rb +36 -0
- data/spec/models/create_auth_method_oci_spec.rb +102 -0
- data/spec/models/oci_access_rules_spec.rb +42 -0
- data/spec/models/update_auth_method_oci_output_spec.rb +36 -0
- data/spec/models/update_auth_method_oci_spec.rb +108 -0
- metadata +21 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 974410ce7805e63abde2e9137835da712d0fad807349a57eb6bc2a70e7563b5c
|
4
|
+
data.tar.gz: 32c59cb5f82cc6ca16d97721a406cb75d705ec9f17287660274bf74319b55bde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82deff84c6bbc1ba7e0c2f39ea952a13b83ad96851d8e0d00765e4392a230cfccebc9b56c4e49b874c119f4ceebaeda0680544fe70ac5dad16bcbf29e7c1a9a1
|
7
|
+
data.tar.gz: 3f0d459c3f3ace2207d8e61e1eaacb61c712197d01a9e94b70be85f3e8e73973df633d60f7941f366b3780745358000a5c2ec937fc2cb957d51e197eb26d5756
|
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: 2.0
|
10
|
-
- Package version: 3.6.
|
10
|
+
- Package version: 3.6.1
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [http://akeyless.io](http://akeyless.io)
|
13
13
|
|
@@ -75,6 +75,7 @@ Class | Method | HTTP request | Description
|
|
75
75
|
*Akeyless::V2Api* | [**create_auth_method_k8_s**](docs/V2Api.md#create_auth_method_k8_s) | **POST** /create-auth-method-k8s |
|
76
76
|
*Akeyless::V2Api* | [**create_auth_method_ldap**](docs/V2Api.md#create_auth_method_ldap) | **POST** /create-auth-method-ldap |
|
77
77
|
*Akeyless::V2Api* | [**create_auth_method_o_auth2**](docs/V2Api.md#create_auth_method_o_auth2) | **POST** /create-auth-method-oauth2 |
|
78
|
+
*Akeyless::V2Api* | [**create_auth_method_oci**](docs/V2Api.md#create_auth_method_oci) | **POST** /create-auth-method-oci |
|
78
79
|
*Akeyless::V2Api* | [**create_auth_method_oidc**](docs/V2Api.md#create_auth_method_oidc) | **POST** /create-auth-method-oidc |
|
79
80
|
*Akeyless::V2Api* | [**create_auth_method_saml**](docs/V2Api.md#create_auth_method_saml) | **POST** /create-auth-method-saml |
|
80
81
|
*Akeyless::V2Api* | [**create_auth_method_universal_identity**](docs/V2Api.md#create_auth_method_universal_identity) | **POST** /create-auth-method-universal-identity |
|
@@ -313,6 +314,7 @@ Class | Method | HTTP request | Description
|
|
313
314
|
*Akeyless::V2Api* | [**update_auth_method_k8_s**](docs/V2Api.md#update_auth_method_k8_s) | **POST** /update-auth-method-k8s |
|
314
315
|
*Akeyless::V2Api* | [**update_auth_method_ldap**](docs/V2Api.md#update_auth_method_ldap) | **POST** /update-auth-method-ldap |
|
315
316
|
*Akeyless::V2Api* | [**update_auth_method_o_auth2**](docs/V2Api.md#update_auth_method_o_auth2) | **POST** /update-auth-method-oauth2 |
|
317
|
+
*Akeyless::V2Api* | [**update_auth_method_oci**](docs/V2Api.md#update_auth_method_oci) | **POST** /update-auth-method-oci |
|
316
318
|
*Akeyless::V2Api* | [**update_auth_method_oidc**](docs/V2Api.md#update_auth_method_oidc) | **POST** /update-auth-method-oidc |
|
317
319
|
*Akeyless::V2Api* | [**update_auth_method_saml**](docs/V2Api.md#update_auth_method_saml) | **POST** /update-auth-method-saml |
|
318
320
|
*Akeyless::V2Api* | [**update_auth_method_universal_identity**](docs/V2Api.md#update_auth_method_universal_identity) | **POST** /update-auth-method-universal-identity |
|
@@ -451,6 +453,8 @@ Class | Method | HTTP request | Description
|
|
451
453
|
- [Akeyless::CreateAuthMethodLDAPOutput](docs/CreateAuthMethodLDAPOutput.md)
|
452
454
|
- [Akeyless::CreateAuthMethodOAuth2](docs/CreateAuthMethodOAuth2.md)
|
453
455
|
- [Akeyless::CreateAuthMethodOAuth2Output](docs/CreateAuthMethodOAuth2Output.md)
|
456
|
+
- [Akeyless::CreateAuthMethodOCI](docs/CreateAuthMethodOCI.md)
|
457
|
+
- [Akeyless::CreateAuthMethodOCIOutput](docs/CreateAuthMethodOCIOutput.md)
|
454
458
|
- [Akeyless::CreateAuthMethodOIDC](docs/CreateAuthMethodOIDC.md)
|
455
459
|
- [Akeyless::CreateAuthMethodOIDCOutput](docs/CreateAuthMethodOIDCOutput.md)
|
456
460
|
- [Akeyless::CreateAuthMethodOutput](docs/CreateAuthMethodOutput.md)
|
@@ -896,6 +900,7 @@ Class | Method | HTTP request | Description
|
|
896
900
|
- [Akeyless::NotiForwarder](docs/NotiForwarder.md)
|
897
901
|
- [Akeyless::OAuth2AccessRules](docs/OAuth2AccessRules.md)
|
898
902
|
- [Akeyless::OAuth2CustomClaim](docs/OAuth2CustomClaim.md)
|
903
|
+
- [Akeyless::OCIAccessRules](docs/OCIAccessRules.md)
|
899
904
|
- [Akeyless::OIDCAccessRules](docs/OIDCAccessRules.md)
|
900
905
|
- [Akeyless::OIDCCustomClaim](docs/OIDCCustomClaim.md)
|
901
906
|
- [Akeyless::ObjectVersionSettingsOutput](docs/ObjectVersionSettingsOutput.md)
|
@@ -1017,6 +1022,8 @@ Class | Method | HTTP request | Description
|
|
1017
1022
|
- [Akeyless::UpdateAuthMethodLDAP](docs/UpdateAuthMethodLDAP.md)
|
1018
1023
|
- [Akeyless::UpdateAuthMethodLDAPOutput](docs/UpdateAuthMethodLDAPOutput.md)
|
1019
1024
|
- [Akeyless::UpdateAuthMethodOAuth2](docs/UpdateAuthMethodOAuth2.md)
|
1025
|
+
- [Akeyless::UpdateAuthMethodOCI](docs/UpdateAuthMethodOCI.md)
|
1026
|
+
- [Akeyless::UpdateAuthMethodOCIOutput](docs/UpdateAuthMethodOCIOutput.md)
|
1020
1027
|
- [Akeyless::UpdateAuthMethodOIDC](docs/UpdateAuthMethodOIDC.md)
|
1021
1028
|
- [Akeyless::UpdateAuthMethodOutput](docs/UpdateAuthMethodOutput.md)
|
1022
1029
|
- [Akeyless::UpdateAuthMethodSAML](docs/UpdateAuthMethodSAML.md)
|
data/docs/Auth.md
CHANGED
@@ -22,6 +22,8 @@
|
|
22
22
|
| **key_data** | **String** | Private key data encoded in base64. Used if file was not provided.(relevant only for access-type=cert) | [optional] |
|
23
23
|
| **ldap_password** | **String** | LDAP password (relevant only for access-type=ldap) | [optional] |
|
24
24
|
| **ldap_username** | **String** | LDAP username (relevant only for access-type=ldap) | [optional] |
|
25
|
+
| **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'] |
|
26
|
+
| **oci_group_ocid** | **Array<String>** | A list of Oracle Cloud IDs groups (relevant only for access-type=oci) | [optional] |
|
25
27
|
| **uid_token** | **String** | The universal_identity token (relevant only for access-type=universal_identity) | [optional] |
|
26
28
|
|
27
29
|
## Example
|
@@ -48,6 +50,8 @@ instance = Akeyless::Auth.new(
|
|
48
50
|
key_data: null,
|
49
51
|
ldap_password: null,
|
50
52
|
ldap_username: null,
|
53
|
+
oci_auth_type: null,
|
54
|
+
oci_group_ocid: null,
|
51
55
|
uid_token: null
|
52
56
|
)
|
53
57
|
```
|
@@ -20,6 +20,7 @@
|
|
20
20
|
| **k8s_access_rules** | [**KubernetesAccessRules**](KubernetesAccessRules.md) | | [optional] |
|
21
21
|
| **ldap_access_rules** | [**LDAPAccessRules**](LDAPAccessRules.md) | | [optional] |
|
22
22
|
| **oauth2_access_rules** | [**OAuth2AccessRules**](OAuth2AccessRules.md) | | [optional] |
|
23
|
+
| **oci_access_rules** | [**OCIAccessRules**](OCIAccessRules.md) | | [optional] |
|
23
24
|
| **oidc_access_rules** | [**OIDCAccessRules**](OIDCAccessRules.md) | | [optional] |
|
24
25
|
| **rules_type** | **String** | | [optional] |
|
25
26
|
| **saml_access_rules** | [**SAMLAccessRules**](SAMLAccessRules.md) | | [optional] |
|
@@ -48,6 +49,7 @@ instance = Akeyless::AuthMethodAccessInfo.new(
|
|
48
49
|
k8s_access_rules: null,
|
49
50
|
ldap_access_rules: null,
|
50
51
|
oauth2_access_rules: null,
|
52
|
+
oci_access_rules: null,
|
51
53
|
oidc_access_rules: null,
|
52
54
|
rules_type: null,
|
53
55
|
saml_access_rules: null,
|
data/docs/Configure.md
CHANGED
@@ -16,6 +16,8 @@
|
|
16
16
|
| **json** | **Boolean** | Set output format to JSON | [optional][default to false] |
|
17
17
|
| **k8s_auth_config_name** | **String** | The K8S Auth config name (relevant only for access-type=k8s) | [optional] |
|
18
18
|
| **key_data** | **String** | Private key data encoded in base64. Used if file was not provided.(relevant only for access-type=cert in Curl Context) | [optional] |
|
19
|
+
| **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'] |
|
20
|
+
| **oci_group_ocid** | **Array<String>** | A list of Oracle Cloud IDs groups (relevant only for access-type=oci) | [optional] |
|
19
21
|
|
20
22
|
## Example
|
21
23
|
|
@@ -34,7 +36,9 @@ instance = Akeyless::Configure.new(
|
|
34
36
|
gcp_audience: null,
|
35
37
|
json: null,
|
36
38
|
k8s_auth_config_name: null,
|
37
|
-
key_data: null
|
39
|
+
key_data: null,
|
40
|
+
oci_auth_type: null,
|
41
|
+
oci_group_ocid: null
|
38
42
|
)
|
39
43
|
```
|
40
44
|
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# Akeyless::CreateAuthMethodOCI
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **access_expires** | **Integer** | Access expiration date in Unix timestamp (select 0 for access without expiry date) | [optional][default to 0] |
|
8
|
+
| **bound_ips** | **Array<String>** | A CIDR whitelist with the IPs that the access is restricted to | [optional] |
|
9
|
+
| **description** | **String** | Auth Method description | [optional] |
|
10
|
+
| **force_sub_claims** | **Boolean** | if true: enforce role-association must include sub claims | [optional] |
|
11
|
+
| **group_ocid** | **Array<String>** | A list of required groups ocids | |
|
12
|
+
| **gw_bound_ips** | **Array<String>** | A CIDR whitelist with the GW IPs that the access is restricted to | [optional] |
|
13
|
+
| **json** | **Boolean** | Set output format to JSON | [optional][default to false] |
|
14
|
+
| **jwt_ttl** | **Integer** | Jwt TTL | [optional][default to 0] |
|
15
|
+
| **name** | **String** | Auth Method name | |
|
16
|
+
| **tenant_ocid** | **String** | The Oracle Cloud tenant ID | |
|
17
|
+
| **token** | **String** | Authentication token (see `/auth` and `/configure`) | [optional] |
|
18
|
+
| **uid_token** | **String** | The universal identity token, Required only for universal_identity authentication | [optional] |
|
19
|
+
|
20
|
+
## Example
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
require 'akeyless'
|
24
|
+
|
25
|
+
instance = Akeyless::CreateAuthMethodOCI.new(
|
26
|
+
access_expires: null,
|
27
|
+
bound_ips: null,
|
28
|
+
description: null,
|
29
|
+
force_sub_claims: null,
|
30
|
+
group_ocid: null,
|
31
|
+
gw_bound_ips: null,
|
32
|
+
json: null,
|
33
|
+
jwt_ttl: null,
|
34
|
+
name: null,
|
35
|
+
tenant_ocid: null,
|
36
|
+
token: null,
|
37
|
+
uid_token: null
|
38
|
+
)
|
39
|
+
```
|
40
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# Akeyless::CreateAuthMethodOCIOutput
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **access_id** | **String** | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'akeyless'
|
13
|
+
|
14
|
+
instance = Akeyless::CreateAuthMethodOCIOutput.new(
|
15
|
+
access_id: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Akeyless::OCIAccessRules
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **group_ocids** | **Array<String>** | | [optional] |
|
8
|
+
| **tenant_ocid** | **String** | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'akeyless'
|
14
|
+
|
15
|
+
instance = Akeyless::OCIAccessRules.new(
|
16
|
+
group_ocids: null,
|
17
|
+
tenant_ocid: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# Akeyless::UpdateAuthMethodOCI
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **access_expires** | **Integer** | Access expiration date in Unix timestamp (select 0 for access without expiry date) | [optional][default to 0] |
|
8
|
+
| **bound_ips** | **Array<String>** | A CIDR whitelist with the IPs that the access is restricted to | [optional] |
|
9
|
+
| **description** | **String** | Auth Method description | [optional] |
|
10
|
+
| **force_sub_claims** | **Boolean** | if true: enforce role-association must include sub claims | [optional] |
|
11
|
+
| **group_ocid** | **Array<String>** | A list of required groups ocids | |
|
12
|
+
| **gw_bound_ips** | **Array<String>** | A CIDR whitelist with the GW IPs that the access is restricted to | [optional] |
|
13
|
+
| **json** | **Boolean** | Set output format to JSON | [optional][default to false] |
|
14
|
+
| **jwt_ttl** | **Integer** | Jwt TTL | [optional][default to 0] |
|
15
|
+
| **name** | **String** | Auth Method name | |
|
16
|
+
| **new_name** | **String** | Auth Method new name | [optional] |
|
17
|
+
| **tenant_ocid** | **String** | The Oracle Cloud tenant ID | |
|
18
|
+
| **token** | **String** | Authentication token (see `/auth` and `/configure`) | [optional] |
|
19
|
+
| **uid_token** | **String** | The universal identity token, Required only for universal_identity authentication | [optional] |
|
20
|
+
|
21
|
+
## Example
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
require 'akeyless'
|
25
|
+
|
26
|
+
instance = Akeyless::UpdateAuthMethodOCI.new(
|
27
|
+
access_expires: null,
|
28
|
+
bound_ips: null,
|
29
|
+
description: null,
|
30
|
+
force_sub_claims: null,
|
31
|
+
group_ocid: null,
|
32
|
+
gw_bound_ips: null,
|
33
|
+
json: null,
|
34
|
+
jwt_ttl: null,
|
35
|
+
name: null,
|
36
|
+
new_name: null,
|
37
|
+
tenant_ocid: null,
|
38
|
+
token: null,
|
39
|
+
uid_token: null
|
40
|
+
)
|
41
|
+
```
|
42
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# Akeyless::UpdateAuthMethodOCIOutput
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **access_id** | **String** | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'akeyless'
|
13
|
+
|
14
|
+
instance = Akeyless::UpdateAuthMethodOCIOutput.new(
|
15
|
+
access_id: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
data/docs/V2Api.md
CHANGED
@@ -20,6 +20,7 @@ All URIs are relative to *https://api.akeyless.io*
|
|
20
20
|
| [**create_auth_method_k8_s**](V2Api.md#create_auth_method_k8_s) | **POST** /create-auth-method-k8s | |
|
21
21
|
| [**create_auth_method_ldap**](V2Api.md#create_auth_method_ldap) | **POST** /create-auth-method-ldap | |
|
22
22
|
| [**create_auth_method_o_auth2**](V2Api.md#create_auth_method_o_auth2) | **POST** /create-auth-method-oauth2 | |
|
23
|
+
| [**create_auth_method_oci**](V2Api.md#create_auth_method_oci) | **POST** /create-auth-method-oci | |
|
23
24
|
| [**create_auth_method_oidc**](V2Api.md#create_auth_method_oidc) | **POST** /create-auth-method-oidc | |
|
24
25
|
| [**create_auth_method_saml**](V2Api.md#create_auth_method_saml) | **POST** /create-auth-method-saml | |
|
25
26
|
| [**create_auth_method_universal_identity**](V2Api.md#create_auth_method_universal_identity) | **POST** /create-auth-method-universal-identity | |
|
@@ -258,6 +259,7 @@ All URIs are relative to *https://api.akeyless.io*
|
|
258
259
|
| [**update_auth_method_k8_s**](V2Api.md#update_auth_method_k8_s) | **POST** /update-auth-method-k8s | |
|
259
260
|
| [**update_auth_method_ldap**](V2Api.md#update_auth_method_ldap) | **POST** /update-auth-method-ldap | |
|
260
261
|
| [**update_auth_method_o_auth2**](V2Api.md#update_auth_method_o_auth2) | **POST** /update-auth-method-oauth2 | |
|
262
|
+
| [**update_auth_method_oci**](V2Api.md#update_auth_method_oci) | **POST** /update-auth-method-oci | |
|
261
263
|
| [**update_auth_method_oidc**](V2Api.md#update_auth_method_oidc) | **POST** /update-auth-method-oidc | |
|
262
264
|
| [**update_auth_method_saml**](V2Api.md#update_auth_method_saml) | **POST** /update-auth-method-saml | |
|
263
265
|
| [**update_auth_method_universal_identity**](V2Api.md#update_auth_method_universal_identity) | **POST** /update-auth-method-universal-identity | |
|
@@ -1310,6 +1312,68 @@ No authorization required
|
|
1310
1312
|
- **Accept**: application/json
|
1311
1313
|
|
1312
1314
|
|
1315
|
+
## create_auth_method_oci
|
1316
|
+
|
1317
|
+
> <CreateAuthMethodOCIOutput> create_auth_method_oci(body)
|
1318
|
+
|
1319
|
+
|
1320
|
+
|
1321
|
+
### Examples
|
1322
|
+
|
1323
|
+
```ruby
|
1324
|
+
require 'time'
|
1325
|
+
require 'akeyless'
|
1326
|
+
|
1327
|
+
api_instance = Akeyless::V2Api.new
|
1328
|
+
body = Akeyless::CreateAuthMethodOCI.new({group_ocid: ['group_ocid_example'], name: 'name_example', tenant_ocid: 'tenant_ocid_example'}) # CreateAuthMethodOCI |
|
1329
|
+
|
1330
|
+
begin
|
1331
|
+
|
1332
|
+
result = api_instance.create_auth_method_oci(body)
|
1333
|
+
p result
|
1334
|
+
rescue Akeyless::ApiError => e
|
1335
|
+
puts "Error when calling V2Api->create_auth_method_oci: #{e}"
|
1336
|
+
end
|
1337
|
+
```
|
1338
|
+
|
1339
|
+
#### Using the create_auth_method_oci_with_http_info variant
|
1340
|
+
|
1341
|
+
This returns an Array which contains the response data, status code and headers.
|
1342
|
+
|
1343
|
+
> <Array(<CreateAuthMethodOCIOutput>, Integer, Hash)> create_auth_method_oci_with_http_info(body)
|
1344
|
+
|
1345
|
+
```ruby
|
1346
|
+
begin
|
1347
|
+
|
1348
|
+
data, status_code, headers = api_instance.create_auth_method_oci_with_http_info(body)
|
1349
|
+
p status_code # => 2xx
|
1350
|
+
p headers # => { ... }
|
1351
|
+
p data # => <CreateAuthMethodOCIOutput>
|
1352
|
+
rescue Akeyless::ApiError => e
|
1353
|
+
puts "Error when calling V2Api->create_auth_method_oci_with_http_info: #{e}"
|
1354
|
+
end
|
1355
|
+
```
|
1356
|
+
|
1357
|
+
### Parameters
|
1358
|
+
|
1359
|
+
| Name | Type | Description | Notes |
|
1360
|
+
| ---- | ---- | ----------- | ----- |
|
1361
|
+
| **body** | [**CreateAuthMethodOCI**](CreateAuthMethodOCI.md) | | |
|
1362
|
+
|
1363
|
+
### Return type
|
1364
|
+
|
1365
|
+
[**CreateAuthMethodOCIOutput**](CreateAuthMethodOCIOutput.md)
|
1366
|
+
|
1367
|
+
### Authorization
|
1368
|
+
|
1369
|
+
No authorization required
|
1370
|
+
|
1371
|
+
### HTTP request headers
|
1372
|
+
|
1373
|
+
- **Content-Type**: application/json
|
1374
|
+
- **Accept**: application/json
|
1375
|
+
|
1376
|
+
|
1313
1377
|
## create_auth_method_oidc
|
1314
1378
|
|
1315
1379
|
> <CreateAuthMethodOIDCOutput> create_auth_method_oidc(body)
|
@@ -16090,6 +16154,68 @@ No authorization required
|
|
16090
16154
|
- **Accept**: application/json
|
16091
16155
|
|
16092
16156
|
|
16157
|
+
## update_auth_method_oci
|
16158
|
+
|
16159
|
+
> <UpdateAuthMethodOCIOutput> update_auth_method_oci(body)
|
16160
|
+
|
16161
|
+
|
16162
|
+
|
16163
|
+
### Examples
|
16164
|
+
|
16165
|
+
```ruby
|
16166
|
+
require 'time'
|
16167
|
+
require 'akeyless'
|
16168
|
+
|
16169
|
+
api_instance = Akeyless::V2Api.new
|
16170
|
+
body = Akeyless::UpdateAuthMethodOCI.new({group_ocid: ['group_ocid_example'], name: 'name_example', tenant_ocid: 'tenant_ocid_example'}) # UpdateAuthMethodOCI |
|
16171
|
+
|
16172
|
+
begin
|
16173
|
+
|
16174
|
+
result = api_instance.update_auth_method_oci(body)
|
16175
|
+
p result
|
16176
|
+
rescue Akeyless::ApiError => e
|
16177
|
+
puts "Error when calling V2Api->update_auth_method_oci: #{e}"
|
16178
|
+
end
|
16179
|
+
```
|
16180
|
+
|
16181
|
+
#### Using the update_auth_method_oci_with_http_info variant
|
16182
|
+
|
16183
|
+
This returns an Array which contains the response data, status code and headers.
|
16184
|
+
|
16185
|
+
> <Array(<UpdateAuthMethodOCIOutput>, Integer, Hash)> update_auth_method_oci_with_http_info(body)
|
16186
|
+
|
16187
|
+
```ruby
|
16188
|
+
begin
|
16189
|
+
|
16190
|
+
data, status_code, headers = api_instance.update_auth_method_oci_with_http_info(body)
|
16191
|
+
p status_code # => 2xx
|
16192
|
+
p headers # => { ... }
|
16193
|
+
p data # => <UpdateAuthMethodOCIOutput>
|
16194
|
+
rescue Akeyless::ApiError => e
|
16195
|
+
puts "Error when calling V2Api->update_auth_method_oci_with_http_info: #{e}"
|
16196
|
+
end
|
16197
|
+
```
|
16198
|
+
|
16199
|
+
### Parameters
|
16200
|
+
|
16201
|
+
| Name | Type | Description | Notes |
|
16202
|
+
| ---- | ---- | ----------- | ----- |
|
16203
|
+
| **body** | [**UpdateAuthMethodOCI**](UpdateAuthMethodOCI.md) | | |
|
16204
|
+
|
16205
|
+
### Return type
|
16206
|
+
|
16207
|
+
[**UpdateAuthMethodOCIOutput**](UpdateAuthMethodOCIOutput.md)
|
16208
|
+
|
16209
|
+
### Authorization
|
16210
|
+
|
16211
|
+
No authorization required
|
16212
|
+
|
16213
|
+
### HTTP request headers
|
16214
|
+
|
16215
|
+
- **Content-Type**: application/json
|
16216
|
+
- **Accept**: application/json
|
16217
|
+
|
16218
|
+
|
16093
16219
|
## update_auth_method_oidc
|
16094
16220
|
|
16095
16221
|
> Object update_auth_method_oidc(body)
|
data/lib/akeyless/api/v2_api.rb
CHANGED
@@ -1043,6 +1043,70 @@ module Akeyless
|
|
1043
1043
|
return data, status_code, headers
|
1044
1044
|
end
|
1045
1045
|
|
1046
|
+
# @param body [CreateAuthMethodOCI]
|
1047
|
+
# @param [Hash] opts the optional parameters
|
1048
|
+
# @return [CreateAuthMethodOCIOutput]
|
1049
|
+
def create_auth_method_oci(body, opts = {})
|
1050
|
+
data, _status_code, _headers = create_auth_method_oci_with_http_info(body, opts)
|
1051
|
+
data
|
1052
|
+
end
|
1053
|
+
|
1054
|
+
# @param body [CreateAuthMethodOCI]
|
1055
|
+
# @param [Hash] opts the optional parameters
|
1056
|
+
# @return [Array<(CreateAuthMethodOCIOutput, Integer, Hash)>] CreateAuthMethodOCIOutput data, response status code and response headers
|
1057
|
+
def create_auth_method_oci_with_http_info(body, opts = {})
|
1058
|
+
if @api_client.config.debugging
|
1059
|
+
@api_client.config.logger.debug 'Calling API: V2Api.create_auth_method_oci ...'
|
1060
|
+
end
|
1061
|
+
# verify the required parameter 'body' is set
|
1062
|
+
if @api_client.config.client_side_validation && body.nil?
|
1063
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.create_auth_method_oci"
|
1064
|
+
end
|
1065
|
+
# resource path
|
1066
|
+
local_var_path = '/create-auth-method-oci'
|
1067
|
+
|
1068
|
+
# query parameters
|
1069
|
+
query_params = opts[:query_params] || {}
|
1070
|
+
|
1071
|
+
# header parameters
|
1072
|
+
header_params = opts[:header_params] || {}
|
1073
|
+
# HTTP header 'Accept' (if needed)
|
1074
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1075
|
+
# HTTP header 'Content-Type'
|
1076
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
1077
|
+
if !content_type.nil?
|
1078
|
+
header_params['Content-Type'] = content_type
|
1079
|
+
end
|
1080
|
+
|
1081
|
+
# form parameters
|
1082
|
+
form_params = opts[:form_params] || {}
|
1083
|
+
|
1084
|
+
# http body (model)
|
1085
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
1086
|
+
|
1087
|
+
# return_type
|
1088
|
+
return_type = opts[:debug_return_type] || 'CreateAuthMethodOCIOutput'
|
1089
|
+
|
1090
|
+
# auth_names
|
1091
|
+
auth_names = opts[:debug_auth_names] || []
|
1092
|
+
|
1093
|
+
new_options = opts.merge(
|
1094
|
+
:operation => :"V2Api.create_auth_method_oci",
|
1095
|
+
:header_params => header_params,
|
1096
|
+
:query_params => query_params,
|
1097
|
+
:form_params => form_params,
|
1098
|
+
:body => post_body,
|
1099
|
+
:auth_names => auth_names,
|
1100
|
+
:return_type => return_type
|
1101
|
+
)
|
1102
|
+
|
1103
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1104
|
+
if @api_client.config.debugging
|
1105
|
+
@api_client.config.logger.debug "API called: V2Api#create_auth_method_oci\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1106
|
+
end
|
1107
|
+
return data, status_code, headers
|
1108
|
+
end
|
1109
|
+
|
1046
1110
|
# @param body [CreateAuthMethodOIDC]
|
1047
1111
|
# @param [Hash] opts the optional parameters
|
1048
1112
|
# @return [CreateAuthMethodOIDCOutput]
|
@@ -16185,6 +16249,70 @@ module Akeyless
|
|
16185
16249
|
return data, status_code, headers
|
16186
16250
|
end
|
16187
16251
|
|
16252
|
+
# @param body [UpdateAuthMethodOCI]
|
16253
|
+
# @param [Hash] opts the optional parameters
|
16254
|
+
# @return [UpdateAuthMethodOCIOutput]
|
16255
|
+
def update_auth_method_oci(body, opts = {})
|
16256
|
+
data, _status_code, _headers = update_auth_method_oci_with_http_info(body, opts)
|
16257
|
+
data
|
16258
|
+
end
|
16259
|
+
|
16260
|
+
# @param body [UpdateAuthMethodOCI]
|
16261
|
+
# @param [Hash] opts the optional parameters
|
16262
|
+
# @return [Array<(UpdateAuthMethodOCIOutput, Integer, Hash)>] UpdateAuthMethodOCIOutput data, response status code and response headers
|
16263
|
+
def update_auth_method_oci_with_http_info(body, opts = {})
|
16264
|
+
if @api_client.config.debugging
|
16265
|
+
@api_client.config.logger.debug 'Calling API: V2Api.update_auth_method_oci ...'
|
16266
|
+
end
|
16267
|
+
# verify the required parameter 'body' is set
|
16268
|
+
if @api_client.config.client_side_validation && body.nil?
|
16269
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling V2Api.update_auth_method_oci"
|
16270
|
+
end
|
16271
|
+
# resource path
|
16272
|
+
local_var_path = '/update-auth-method-oci'
|
16273
|
+
|
16274
|
+
# query parameters
|
16275
|
+
query_params = opts[:query_params] || {}
|
16276
|
+
|
16277
|
+
# header parameters
|
16278
|
+
header_params = opts[:header_params] || {}
|
16279
|
+
# HTTP header 'Accept' (if needed)
|
16280
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
16281
|
+
# HTTP header 'Content-Type'
|
16282
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
16283
|
+
if !content_type.nil?
|
16284
|
+
header_params['Content-Type'] = content_type
|
16285
|
+
end
|
16286
|
+
|
16287
|
+
# form parameters
|
16288
|
+
form_params = opts[:form_params] || {}
|
16289
|
+
|
16290
|
+
# http body (model)
|
16291
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
16292
|
+
|
16293
|
+
# return_type
|
16294
|
+
return_type = opts[:debug_return_type] || 'UpdateAuthMethodOCIOutput'
|
16295
|
+
|
16296
|
+
# auth_names
|
16297
|
+
auth_names = opts[:debug_auth_names] || []
|
16298
|
+
|
16299
|
+
new_options = opts.merge(
|
16300
|
+
:operation => :"V2Api.update_auth_method_oci",
|
16301
|
+
:header_params => header_params,
|
16302
|
+
:query_params => query_params,
|
16303
|
+
:form_params => form_params,
|
16304
|
+
:body => post_body,
|
16305
|
+
:auth_names => auth_names,
|
16306
|
+
:return_type => return_type
|
16307
|
+
)
|
16308
|
+
|
16309
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
16310
|
+
if @api_client.config.debugging
|
16311
|
+
@api_client.config.logger.debug "API called: V2Api#update_auth_method_oci\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
16312
|
+
end
|
16313
|
+
return data, status_code, headers
|
16314
|
+
end
|
16315
|
+
|
16188
16316
|
# @param body [UpdateAuthMethodOIDC]
|
16189
16317
|
# @param [Hash] opts the optional parameters
|
16190
16318
|
# @return [Object]
|
data/lib/akeyless/models/auth.rb
CHANGED
@@ -68,6 +68,12 @@ module Akeyless
|
|
68
68
|
# LDAP username (relevant only for access-type=ldap)
|
69
69
|
attr_accessor :ldap_username
|
70
70
|
|
71
|
+
# The type of the OCI configuration to use [instance/apikey/resource] (relevant only for access-type=oci)
|
72
|
+
attr_accessor :oci_auth_type
|
73
|
+
|
74
|
+
# A list of Oracle Cloud IDs groups (relevant only for access-type=oci)
|
75
|
+
attr_accessor :oci_group_ocid
|
76
|
+
|
71
77
|
# The universal_identity token (relevant only for access-type=universal_identity)
|
72
78
|
attr_accessor :uid_token
|
73
79
|
|
@@ -92,6 +98,8 @@ module Akeyless
|
|
92
98
|
:'key_data' => :'key-data',
|
93
99
|
:'ldap_password' => :'ldap_password',
|
94
100
|
:'ldap_username' => :'ldap_username',
|
101
|
+
:'oci_auth_type' => :'oci-auth-type',
|
102
|
+
:'oci_group_ocid' => :'oci-group-ocid',
|
95
103
|
:'uid_token' => :'uid_token'
|
96
104
|
}
|
97
105
|
end
|
@@ -122,6 +130,8 @@ module Akeyless
|
|
122
130
|
:'key_data' => :'String',
|
123
131
|
:'ldap_password' => :'String',
|
124
132
|
:'ldap_username' => :'String',
|
133
|
+
:'oci_auth_type' => :'String',
|
134
|
+
:'oci_group_ocid' => :'Array<String>',
|
125
135
|
:'uid_token' => :'String'
|
126
136
|
}
|
127
137
|
end
|
@@ -225,6 +235,18 @@ module Akeyless
|
|
225
235
|
self.ldap_username = attributes[:'ldap_username']
|
226
236
|
end
|
227
237
|
|
238
|
+
if attributes.key?(:'oci_auth_type')
|
239
|
+
self.oci_auth_type = attributes[:'oci_auth_type']
|
240
|
+
else
|
241
|
+
self.oci_auth_type = 'apikey'
|
242
|
+
end
|
243
|
+
|
244
|
+
if attributes.key?(:'oci_group_ocid')
|
245
|
+
if (value = attributes[:'oci_group_ocid']).is_a?(Array)
|
246
|
+
self.oci_group_ocid = value
|
247
|
+
end
|
248
|
+
end
|
249
|
+
|
228
250
|
if attributes.key?(:'uid_token')
|
229
251
|
self.uid_token = attributes[:'uid_token']
|
230
252
|
end
|
@@ -268,6 +290,8 @@ module Akeyless
|
|
268
290
|
key_data == o.key_data &&
|
269
291
|
ldap_password == o.ldap_password &&
|
270
292
|
ldap_username == o.ldap_username &&
|
293
|
+
oci_auth_type == o.oci_auth_type &&
|
294
|
+
oci_group_ocid == o.oci_group_ocid &&
|
271
295
|
uid_token == o.uid_token
|
272
296
|
end
|
273
297
|
|
@@ -280,7 +304,7 @@ module Akeyless
|
|
280
304
|
# Calculates hash code according to all attributes.
|
281
305
|
# @return [Integer] Hash code
|
282
306
|
def hash
|
283
|
-
[access_id, access_key, access_type, account_id, admin_email, admin_password, cert_data, cloud_id, debug, gateway_url, gcp_audience, json, jwt, k8s_auth_config_name, k8s_service_account_token, key_data, ldap_password, ldap_username, uid_token].hash
|
307
|
+
[access_id, access_key, access_type, account_id, admin_email, admin_password, cert_data, cloud_id, debug, gateway_url, gcp_audience, json, jwt, k8s_auth_config_name, k8s_service_account_token, key_data, ldap_password, ldap_username, oci_auth_type, oci_group_ocid, uid_token].hash
|
284
308
|
end
|
285
309
|
|
286
310
|
# Builds the object from hash
|
@@ -49,6 +49,8 @@ module Akeyless
|
|
49
49
|
|
50
50
|
attr_accessor :oauth2_access_rules
|
51
51
|
|
52
|
+
attr_accessor :oci_access_rules
|
53
|
+
|
52
54
|
attr_accessor :oidc_access_rules
|
53
55
|
|
54
56
|
attr_accessor :rules_type
|
@@ -78,6 +80,7 @@ module Akeyless
|
|
78
80
|
:'k8s_access_rules' => :'k8s_access_rules',
|
79
81
|
:'ldap_access_rules' => :'ldap_access_rules',
|
80
82
|
:'oauth2_access_rules' => :'oauth2_access_rules',
|
83
|
+
:'oci_access_rules' => :'oci_access_rules',
|
81
84
|
:'oidc_access_rules' => :'oidc_access_rules',
|
82
85
|
:'rules_type' => :'rules_type',
|
83
86
|
:'saml_access_rules' => :'saml_access_rules',
|
@@ -110,6 +113,7 @@ module Akeyless
|
|
110
113
|
:'k8s_access_rules' => :'KubernetesAccessRules',
|
111
114
|
:'ldap_access_rules' => :'LDAPAccessRules',
|
112
115
|
:'oauth2_access_rules' => :'OAuth2AccessRules',
|
116
|
+
:'oci_access_rules' => :'OCIAccessRules',
|
113
117
|
:'oidc_access_rules' => :'OIDCAccessRules',
|
114
118
|
:'rules_type' => :'String',
|
115
119
|
:'saml_access_rules' => :'SAMLAccessRules',
|
@@ -203,6 +207,10 @@ module Akeyless
|
|
203
207
|
self.oauth2_access_rules = attributes[:'oauth2_access_rules']
|
204
208
|
end
|
205
209
|
|
210
|
+
if attributes.key?(:'oci_access_rules')
|
211
|
+
self.oci_access_rules = attributes[:'oci_access_rules']
|
212
|
+
end
|
213
|
+
|
206
214
|
if attributes.key?(:'oidc_access_rules')
|
207
215
|
self.oidc_access_rules = attributes[:'oidc_access_rules']
|
208
216
|
end
|
@@ -262,6 +270,7 @@ module Akeyless
|
|
262
270
|
k8s_access_rules == o.k8s_access_rules &&
|
263
271
|
ldap_access_rules == o.ldap_access_rules &&
|
264
272
|
oauth2_access_rules == o.oauth2_access_rules &&
|
273
|
+
oci_access_rules == o.oci_access_rules &&
|
265
274
|
oidc_access_rules == o.oidc_access_rules &&
|
266
275
|
rules_type == o.rules_type &&
|
267
276
|
saml_access_rules == o.saml_access_rules &&
|
@@ -278,7 +287,7 @@ module Akeyless
|
|
278
287
|
# Calculates hash code according to all attributes.
|
279
288
|
# @return [Integer] Hash code
|
280
289
|
def hash
|
281
|
-
[access_expires, access_id_alias, api_key_access_rules, aws_iam_access_rules, azure_ad_access_rules, cert_access_rules, cidr_whitelist, email_pass_access_rules, force_sub_claims, gcp_access_rules, gw_cidr_whitelist, huawei_access_rules, jwt_ttl, k8s_access_rules, ldap_access_rules, oauth2_access_rules, oidc_access_rules, rules_type, saml_access_rules, sub_claims_delimiters, universal_identity_access_rules].hash
|
290
|
+
[access_expires, access_id_alias, api_key_access_rules, aws_iam_access_rules, azure_ad_access_rules, cert_access_rules, cidr_whitelist, email_pass_access_rules, force_sub_claims, gcp_access_rules, gw_cidr_whitelist, huawei_access_rules, jwt_ttl, k8s_access_rules, ldap_access_rules, oauth2_access_rules, oci_access_rules, oidc_access_rules, rules_type, saml_access_rules, sub_claims_delimiters, universal_identity_access_rules].hash
|
282
291
|
end
|
283
292
|
|
284
293
|
# Builds the object from hash
|