Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HAL links to Authorize Application resources and roles #357

Merged
merged 1 commit into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
103 changes: 99 additions & 4 deletions authorize/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2512,10 +2512,17 @@ components:
parent:
id: id
type: null
_links:
next:
href: https://openapi-generator.tech
self:
href: https://openapi-generator.tech
name: name
description: description
id: id
properties:
_links:
$ref: '#/components/schemas/LinksHATEOAS'
description:
description: The application resource's description.
type: string
Expand All @@ -2535,13 +2542,20 @@ components:
example:
environment:
id: id
_links:
next:
href: https://openapi-generator.tech
self:
href: https://openapi-generator.tech
resource:
name: name
id: id
action: action
description: description
id: id
properties:
_links:
$ref: '#/components/schemas/LinksHATEOAS'
action:
description: The action associated with this permission.
type: string
Expand All @@ -2561,10 +2575,17 @@ components:
type: object
ApplicationRole:
example:
_links:
next:
href: https://openapi-generator.tech
self:
href: https://openapi-generator.tech
name: name
description: description
id: id
properties:
_links:
$ref: '#/components/schemas/LinksHATEOAS'
description:
description: The description of the application role.
type: string
Expand All @@ -2582,6 +2603,11 @@ components:
example:
environment:
id: id
_links:
next:
href: https://openapi-generator.tech
self:
href: https://openapi-generator.tech
resource:
name: name
id: id
Expand All @@ -2590,6 +2616,8 @@ components:
id: id
key: key
properties:
_links:
$ref: '#/components/schemas/LinksHATEOAS'
id:
description: The ID of the application resource permission to associate
with this role.
Expand All @@ -2614,9 +2642,16 @@ components:
ApplicationRoleAssignment:
example:
role: "{}"
_links:
next:
href: https://openapi-generator.tech
self:
href: https://openapi-generator.tech
subject: "{}"
id: id
properties:
_links:
$ref: '#/components/schemas/LinksHATEOAS'
id:
description: The ID of the API server operation. This is randomly generated
when the operation is created.
Expand Down Expand Up @@ -2768,31 +2803,61 @@ components:
_embedded:
assignments:
- role: "{}"
_links:
next:
href: https://openapi-generator.tech
self:
href: https://openapi-generator.tech
subject: "{}"
id: id
- role: "{}"
_links:
next:
href: https://openapi-generator.tech
self:
href: https://openapi-generator.tech
subject: "{}"
id: id
permissions:
- null
- null
roles:
- name: name
- _links:
next:
href: https://openapi-generator.tech
self:
href: https://openapi-generator.tech
name: name
description: description
id: id
- name: name
- _links:
next:
href: https://openapi-generator.tech
self:
href: https://openapi-generator.tech
name: name
description: description
id: id
resources:
- parent:
id: id
type: null
_links:
next:
href: https://openapi-generator.tech
self:
href: https://openapi-generator.tech
name: name
description: description
id: id
- parent:
id: id
type: null
_links:
next:
href: https://openapi-generator.tech
self:
href: https://openapi-generator.tech
name: name
description: description
id: id
Expand Down Expand Up @@ -3298,31 +3363,61 @@ components:
example:
assignments:
- role: "{}"
_links:
next:
href: https://openapi-generator.tech
self:
href: https://openapi-generator.tech
subject: "{}"
id: id
- role: "{}"
_links:
next:
href: https://openapi-generator.tech
self:
href: https://openapi-generator.tech
subject: "{}"
id: id
permissions:
- null
- null
roles:
- name: name
- _links:
next:
href: https://openapi-generator.tech
self:
href: https://openapi-generator.tech
name: name
description: description
id: id
- name: name
- _links:
next:
href: https://openapi-generator.tech
self:
href: https://openapi-generator.tech
name: name
description: description
id: id
resources:
- parent:
id: id
type: null
_links:
next:
href: https://openapi-generator.tech
self:
href: https://openapi-generator.tech
name: name
description: description
id: id
- parent:
id: id
type: null
_links:
next:
href: https://openapi-generator.tech
self:
href: https://openapi-generator.tech
name: name
description: description
id: id
Expand Down
26 changes: 26 additions & 0 deletions authorize/docs/ApplicationResource.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Links** | Pointer to [**LinksHATEOAS**](LinksHATEOAS.md) | | [optional]
**Description** | Pointer to **string** | The application resource's description. | [optional]
**Id** | Pointer to **string** | The resource's unique identifier. | [optional] [readonly]
**Name** | **string** | The application resource name. The name value must be unique. |
Expand All @@ -28,6 +29,31 @@ NewApplicationResourceWithDefaults instantiates a new ApplicationResource 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

### GetLinks

`func (o *ApplicationResource) GetLinks() LinksHATEOAS`

GetLinks returns the Links field if non-nil, zero value otherwise.

### GetLinksOk

`func (o *ApplicationResource) GetLinksOk() (*LinksHATEOAS, bool)`

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

### SetLinks

`func (o *ApplicationResource) SetLinks(v LinksHATEOAS)`

SetLinks sets Links field to given value.

### HasLinks

`func (o *ApplicationResource) HasLinks() bool`

HasLinks returns a boolean if a field has been set.

### GetDescription

`func (o *ApplicationResource) GetDescription() string`
Expand Down
26 changes: 26 additions & 0 deletions authorize/docs/ApplicationResourcePermission.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Links** | Pointer to [**LinksHATEOAS**](LinksHATEOAS.md) | | [optional]
**Action** | **string** | The action associated with this permission. |
**Description** | Pointer to **string** | The resource's description. | [optional]
**Environment** | Pointer to [**ObjectEnvironment**](ObjectEnvironment.md) | | [optional]
Expand All @@ -29,6 +30,31 @@ NewApplicationResourcePermissionWithDefaults instantiates a new ApplicationResou
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

### GetLinks

`func (o *ApplicationResourcePermission) GetLinks() LinksHATEOAS`

GetLinks returns the Links field if non-nil, zero value otherwise.

### GetLinksOk

`func (o *ApplicationResourcePermission) GetLinksOk() (*LinksHATEOAS, bool)`

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

### SetLinks

`func (o *ApplicationResourcePermission) SetLinks(v LinksHATEOAS)`

SetLinks sets Links field to given value.

### HasLinks

`func (o *ApplicationResourcePermission) HasLinks() bool`

HasLinks returns a boolean if a field has been set.

### GetAction

`func (o *ApplicationResourcePermission) GetAction() string`
Expand Down
26 changes: 26 additions & 0 deletions authorize/docs/ApplicationRole.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Links** | Pointer to [**LinksHATEOAS**](LinksHATEOAS.md) | | [optional]
**Description** | Pointer to **string** | The description of the application role. | [optional]
**Id** | Pointer to **string** | The ID of the application role. | [optional] [readonly]
**Name** | **string** | The name of the application role. |
Expand All @@ -27,6 +28,31 @@ NewApplicationRoleWithDefaults instantiates a new ApplicationRole 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

### GetLinks

`func (o *ApplicationRole) GetLinks() LinksHATEOAS`

GetLinks returns the Links field if non-nil, zero value otherwise.

### GetLinksOk

`func (o *ApplicationRole) GetLinksOk() (*LinksHATEOAS, bool)`

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

### SetLinks

`func (o *ApplicationRole) SetLinks(v LinksHATEOAS)`

SetLinks sets Links field to given value.

### HasLinks

`func (o *ApplicationRole) HasLinks() bool`

HasLinks returns a boolean if a field has been set.

### GetDescription

`func (o *ApplicationRole) GetDescription() string`
Expand Down
26 changes: 26 additions & 0 deletions authorize/docs/ApplicationRoleAssignment.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Links** | Pointer to [**LinksHATEOAS**](LinksHATEOAS.md) | | [optional]
**Id** | Pointer to **string** | The ID of the API server operation. This is randomly generated when the operation is created. | [optional]
**Role** | Pointer to **map[string]interface{}** | The role associated with the role assignment. | [optional]
**Subject** | Pointer to **map[string]interface{}** | The user associated with the role assignment. | [optional]
Expand All @@ -27,6 +28,31 @@ NewApplicationRoleAssignmentWithDefaults instantiates a new ApplicationRoleAssig
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

### GetLinks

`func (o *ApplicationRoleAssignment) GetLinks() LinksHATEOAS`

GetLinks returns the Links field if non-nil, zero value otherwise.

### GetLinksOk

`func (o *ApplicationRoleAssignment) GetLinksOk() (*LinksHATEOAS, bool)`

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

### SetLinks

`func (o *ApplicationRoleAssignment) SetLinks(v LinksHATEOAS)`

SetLinks sets Links field to given value.

### HasLinks

`func (o *ApplicationRoleAssignment) HasLinks() bool`

HasLinks returns a boolean if a field has been set.

### GetId

`func (o *ApplicationRoleAssignment) GetId() string`
Expand Down
Loading
Loading