Skip to content

Commit

Permalink
Add role display property
Browse files Browse the repository at this point in the history
  • Loading branch information
Treetreewu committed Mar 14, 2022
1 parent afb9aaf commit e45d9c1
Show file tree
Hide file tree
Showing 5 changed files with 132 additions and 0 deletions.
6 changes: 6 additions & 0 deletions keystone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -991,6 +991,9 @@ paths:
description:
description: Add description about the role.
type: string
display:
description: Show this role in ECP or not.
type: boolean
responses:
'201':
$ref: '#/components/responses/role_response'
Expand Down Expand Up @@ -2682,6 +2685,9 @@ components:
type:
type: string
description: The role type in keystone.roles.extra.
display:
description: Show this role in ECP or not.
type: boolean
type: object
self_link:
description: The links to the resource.
Expand Down
26 changes: 26 additions & 0 deletions openapi/docs/Role.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Name | Type | Description | Notes
**Links** | Pointer to [**SelfLink**](SelfLink.md) | | [optional]
**Description** | Pointer to **string** | The role description. | [optional]
**Type** | Pointer to **string** | The role type in keystone.roles.extra. | [optional]
**Display** | Pointer to **bool** | Show this role in ECP or not. | [optional]

## Methods

Expand Down Expand Up @@ -180,6 +181,31 @@ SetType sets Type field to given value.

HasType returns a boolean if a field has been set.

### GetDisplay

`func (o *Role) GetDisplay() bool`

GetDisplay returns the Display field if non-nil, zero value otherwise.

### GetDisplayOk

`func (o *Role) GetDisplayOk() (*bool, bool)`

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

### SetDisplay

`func (o *Role) SetDisplay(v bool)`

SetDisplay sets Display field to given value.

### HasDisplay

`func (o *Role) HasDisplay() bool`

HasDisplay 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)

Expand Down
26 changes: 26 additions & 0 deletions openapi/docs/RoleCreate.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Name | Type | Description | Notes
**Type** | Pointer to **string** | The role type. | [optional]
**DomainId** | Pointer to **string** | The ID of the domain of the role. | [optional]
**Description** | Pointer to **string** | Add description about the role. | [optional]
**Display** | Pointer to **bool** | Show this role in ECP or not. | [optional]

## Methods

Expand Down Expand Up @@ -123,6 +124,31 @@ SetDescription sets Description field to given value.

HasDescription returns a boolean if a field has been set.

### GetDisplay

`func (o *RoleCreate) GetDisplay() bool`

GetDisplay returns the Display field if non-nil, zero value otherwise.

### GetDisplayOk

`func (o *RoleCreate) GetDisplayOk() (*bool, bool)`

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

### SetDisplay

`func (o *RoleCreate) SetDisplay(v bool)`

SetDisplay sets Display field to given value.

### HasDisplay

`func (o *RoleCreate) HasDisplay() bool`

HasDisplay 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)

Expand Down
37 changes: 37 additions & 0 deletions openapi/model_role.go

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

37 changes: 37 additions & 0 deletions openapi/model_role_create.go

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

0 comments on commit e45d9c1

Please sign in to comment.