Skip to content

Commit

Permalink
Merge pull request #17 from opalsecurity/andrewsy/1.0.27
Browse files Browse the repository at this point in the history
Update to latest schema
  • Loading branch information
andrewsy-opal committed Aug 28, 2023
2 parents 54ca14c + 97c2be0 commit 91a262f
Show file tree
Hide file tree
Showing 21 changed files with 615 additions and 130 deletions.
2 changes: 2 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ docs/AppsApi.md
docs/AppsList.md
docs/AwsPermissionSetMetadata.md
docs/AwsPermissionSetMetadataAwsPermissionSet.md
docs/Condition.md
docs/ConfigurationTemplate.md
docs/ConfigurationTemplatesApi.md
docs/CreateConfigurationTemplateInfo.md
Expand Down Expand Up @@ -147,6 +148,7 @@ model_app_type_enum.go
model_apps_list.go
model_aws_permission_set_metadata.go
model_aws_permission_set_metadata_aws_permission_set.go
model_condition.go
model_configuration_template.go
model_create_configuration_template_info.go
model_create_group_info.go
Expand Down
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.4.0
6.6.0
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ Class | Method | HTTP request | Description
- [AppsList](docs/AppsList.md)
- [AwsPermissionSetMetadata](docs/AwsPermissionSetMetadata.md)
- [AwsPermissionSetMetadataAwsPermissionSet](docs/AwsPermissionSetMetadataAwsPermissionSet.md)
- [Condition](docs/Condition.md)
- [ConfigurationTemplate](docs/ConfigurationTemplate.md)
- [CreateConfigurationTemplateInfo](docs/CreateConfigurationTemplateInfo.md)
- [CreateGroupInfo](docs/CreateGroupInfo.md)
Expand Down Expand Up @@ -274,7 +275,7 @@ Class | Method | HTTP request | Description
## Documentation For Authorization



Authentication schemes defined for the API:
### BearerAuth

- **Type**: HTTP Bearer token authentication
Expand Down
93 changes: 67 additions & 26 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3478,6 +3478,12 @@ components:
to this group.
example: false
type: boolean
request_configuration_list:
description: A list of request configurations for this group.
example: []
items:
$ref: '#/components/schemas/RequestConfiguration'
type: array
metadata:
description: "JSON metadata about the remote group. Only set for items linked\
\ to remote systems. See [this guide](https://docs.opal.dev/reference/end-system-objects)\
Expand Down Expand Up @@ -3647,25 +3653,28 @@ components:
format: uuid
type: string
max_duration:
deprecated: true
description: The maximum duration for which the group can be requested (in
minutes). Use -1 to set to indefinite.
minutes). Use -1 to set to indefinite. Deprecated in favor of `request_configuration_list`.
example: 120
type: integer
recommended_duration:
deprecated: true
description: The recommended duration for which the group should be requested
(in minutes). Will be the default value in a request. Use -1 to set to
indefinite and 0 to unset.
indefinite and 0 to unset. Deprecated in favor of `request_configuration_list`.
example: 120
type: integer
require_manager_approval:
deprecated: true
description: A bool representing whether or not access requests to the group
require manager approval.
require manager approval. Deprecated in favor of `request_configuration_list`.
example: false
type: boolean
require_support_ticket:
deprecated: true
description: A bool representing whether or not access requests to the group
require an access ticket.
require an access ticket. Deprecated in favor of `request_configuration_list`.
example: false
type: boolean
folder_id:
Expand All @@ -3680,13 +3689,15 @@ components:
example: false
type: boolean
require_mfa_to_request:
deprecated: true
description: A bool representing whether or not to require MFA for requesting
access to this group.
access to this group. Deprecated in favor of `request_configuration_list`.
example: false
type: boolean
auto_approval:
deprecated: true
description: A bool representing whether or not to automatically approve
requests to this group.
requests to this group. Deprecated in favor of `request_configuration_list`.
example: false
type: boolean
configuration_template_id:
Expand All @@ -3695,15 +3706,20 @@ components:
format: uuid
type: string
request_template_id:
description: The ID of the associated request template.
deprecated: true
description: The ID of the associated request template. Deprecated in favor
of `request_configuration_list`.
example: 06851574-e50d-40ca-8c78-f72ae6ab4304
format: uuid
type: string
is_requestable:
deprecated: true
description: A bool representing whether or not to allow access requests
to this group.
to this group. Deprecated in favor of `request_configuration_list`.
example: false
type: boolean
request_configuration_list:
$ref: '#/components/schemas/CreateRequestConfigurationInfoList'
required:
- group_id
type: object
Expand Down Expand Up @@ -3962,10 +3978,6 @@ components:
format: uuid
type: string
type: array
stage:
description: The stage of the reviewer stage.
example: 1
type: integer
required:
- operator
- owner_ids
Expand Down Expand Up @@ -4867,6 +4879,11 @@ components:
example: 06851574-e50d-40ca-8c78-f72ae6ab4304
format: uuid
type: string
request_configuration_list:
description: A list of configurations for requests to this resource.
items:
$ref: '#/components/schemas/RequestConfiguration'
type: array
metadata:
description: "JSON metadata about the remote resource. Only set for items\
\ linked to remote systems. See [this guide](https://docs.opal.dev/reference/end-system-objects)\
Expand Down Expand Up @@ -4950,14 +4967,16 @@ components:
format: uuid
type: string
max_duration:
deprecated: true
description: The maximum duration for which the resource can be requested
(in minutes). Use -1 to set to indefinite.
(in minutes). Use -1 to set to indefinite. Deprecated in favor of `request_configuration_list`.
example: 120
type: integer
recommended_duration:
deprecated: true
description: The recommended duration for which the resource should be requested
(in minutes). Will be the default value in a request. Use -1 to set to
indefinite and 0 to unset.
indefinite and 0 to unset. Deprecated in favor of `request_configuration_list`.
example: 120
type: integer
require_manager_approval:
Expand All @@ -4967,8 +4986,9 @@ components:
example: false
type: boolean
require_support_ticket:
deprecated: true
description: A bool representing whether or not access requests to the resource
require an access ticket.
require an access ticket. Deprecated in favor of `request_configuration_list`.
example: false
type: boolean
folder_id:
Expand All @@ -4983,8 +5003,9 @@ components:
example: false
type: boolean
require_mfa_to_request:
deprecated: true
description: A bool representing whether or not to require MFA for requesting
access to this resource.
access to this resource. Deprecated in favor of `request_configuration_list`.
example: false
type: boolean
require_mfa_to_connect:
Expand All @@ -4993,8 +5014,9 @@ components:
example: false
type: boolean
auto_approval:
deprecated: true
description: A bool representing whether or not to automatically approve
requests to this resource.
requests to this resource. Deprecated in favor of `request_configuration_list`.
example: false
type: boolean
configuration_template_id:
Expand All @@ -5003,15 +5025,20 @@ components:
format: uuid
type: string
request_template_id:
description: The ID of the associated request template.
deprecated: true
description: The ID of the associated request template. Deprecated in favor
of `request_configuration_list`.
example: 06851574-e50d-40ca-8c78-f72ae6ab4304
format: uuid
type: string
is_requestable:
deprecated: true
description: A bool representing whether or not to allow access requests
to this resource.
to this resource. Deprecated in favor of `request_configuration_list`.
example: false
type: boolean
request_configuration_list:
$ref: '#/components/schemas/CreateRequestConfigurationInfoList'
required:
- resource_id
type: object
Expand Down Expand Up @@ -5313,6 +5340,25 @@ components:
required:
- owner_id
type: object
Condition:
description: |-
# Condition Object
### Description
The `Condition` object is used to represent a condition.
### Usage Example
Used to match request configurations to users in `RequestConfiguration`
example:
group_ids: 1b978423-db0a-4037-a4cf-f79c60cb67b3
properties:
group_ids:
description: The list of group IDs to match.
example: 1b978423-db0a-4037-a4cf-f79c60cb67b3
items:
format: uuid
type: string
type: array
type: object
RequestConfiguration:
description: |-
# Request Configuration Object
Expand Down Expand Up @@ -5343,13 +5389,7 @@ components:
priority: 1
properties:
condition:
description: The condition for the request configuration.
example: |-
{
"group_id": "1b978423-db0a-4037-a4cf-f79c60cb67b3",
}
format: json
type: string
$ref: '#/components/schemas/Condition'
allow_requests:
description: A bool representing whether or not to allow requests for this
resource.
Expand Down Expand Up @@ -5402,6 +5442,7 @@ components:
- require_mfa_to_request
- require_support_ticket
- reviewer_stages
type: object
CreateRequestConfigurationInfoList:
description: |-
# CreateRequestConfigurationInfoList Object
Expand Down
17 changes: 9 additions & 8 deletions client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 56 additions & 0 deletions docs/Condition.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Condition

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**GroupIds** | Pointer to **[]string** | The list of group IDs to match. | [optional]

## Methods

### NewCondition

`func NewCondition() *Condition`

NewCondition instantiates a new Condition object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed

### NewConditionWithDefaults

`func NewConditionWithDefaults() *Condition`

NewConditionWithDefaults instantiates a new Condition object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set

### GetGroupIds

`func (o *Condition) GetGroupIds() []string`

GetGroupIds returns the GroupIds field if non-nil, zero value otherwise.

### GetGroupIdsOk

`func (o *Condition) GetGroupIdsOk() (*[]string, bool)`

GetGroupIdsOk returns a tuple with the GroupIds field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetGroupIds

`func (o *Condition) SetGroupIds(v []string)`

SetGroupIds sets GroupIds field to given value.

### HasGroupIds

`func (o *Condition) HasGroupIds() bool`

HasGroupIds returns a boolean if a field has been set.


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


26 changes: 26 additions & 0 deletions docs/Group.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Name | Type | Description | Notes
**RequestTemplateId** | Pointer to **string** | The ID of the associated request template. | [optional]
**ConfigurationTemplateId** | Pointer to **string** | The ID of the associated configuration template. | [optional]
**IsRequestable** | Pointer to **bool** | A bool representing whether or not to allow access requests to this group. | [optional]
**RequestConfigurationList** | Pointer to [**[]RequestConfiguration**](RequestConfiguration.md) | A list of request configurations for this group. | [optional]
**Metadata** | Pointer to **string** | JSON metadata about the remote group. Only set for items linked to remote systems. See [this guide](https://docs.opal.dev/reference/end-system-objects) for details. | [optional]

## Methods
Expand Down Expand Up @@ -488,6 +489,31 @@ SetIsRequestable sets IsRequestable field to given value.

HasIsRequestable returns a boolean if a field has been set.

### GetRequestConfigurationList

`func (o *Group) GetRequestConfigurationList() []RequestConfiguration`

GetRequestConfigurationList returns the RequestConfigurationList field if non-nil, zero value otherwise.

### GetRequestConfigurationListOk

`func (o *Group) GetRequestConfigurationListOk() (*[]RequestConfiguration, bool)`

GetRequestConfigurationListOk returns a tuple with the RequestConfigurationList field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetRequestConfigurationList

`func (o *Group) SetRequestConfigurationList(v []RequestConfiguration)`

SetRequestConfigurationList sets RequestConfigurationList field to given value.

### HasRequestConfigurationList

`func (o *Group) HasRequestConfigurationList() bool`

HasRequestConfigurationList returns a boolean if a field has been set.

### GetMetadata

`func (o *Group) GetMetadata() string`
Expand Down

0 comments on commit 91a262f

Please sign in to comment.