Skip to content

Commit

Permalink
model changes (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
laliconfigcat authored Oct 8, 2024
1 parent 6ca35e2 commit f19ba45
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publicapi-go-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
go: [1.18.x, 1.19.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Get dependencies
Expand Down
5 changes: 5 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8391,6 +8391,7 @@ components:
order: 0
reasonRequired: true
canDeleteConfig: true
canDisable2FA: true
canDeleteEnvironment: true
canCreateOrUpdateConfig: true
canTagSetting: true
Expand Down Expand Up @@ -8468,6 +8469,10 @@ components:
canViewProductStatistics:
description: Group members has access to product statistics.
type: boolean
canDisable2FA:
description: Group members can disable two-factor authentication for other
members.
type: boolean
accessType:
$ref: '#/components/schemas/AccessType'
newEnvironmentAccessType:
Expand Down
26 changes: 26 additions & 0 deletions docs/PermissionGroupModel.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Name | Type | Description | Notes
**CanDeleteSegments** | Pointer to **bool** | Group members can delete Segments. | [optional]
**CanViewProductAuditLog** | Pointer to **bool** | Group members has access to audit logs. | [optional]
**CanViewProductStatistics** | Pointer to **bool** | Group members has access to product statistics. | [optional]
**CanDisable2FA** | Pointer to **bool** | Group members can disable two-factor authentication for other members. | [optional]
**AccessType** | Pointer to [**AccessType**](AccessType.md) | | [optional]
**NewEnvironmentAccessType** | Pointer to [**EnvironmentAccessType**](EnvironmentAccessType.md) | | [optional]
**EnvironmentAccesses** | Pointer to [**[]EnvironmentAccessModel**](EnvironmentAccessModel.md) | List of environment specific permissions. | [optional]
Expand Down Expand Up @@ -610,6 +611,31 @@ SetCanViewProductStatistics sets CanViewProductStatistics field to given value.

HasCanViewProductStatistics returns a boolean if a field has been set.

### GetCanDisable2FA

`func (o *PermissionGroupModel) GetCanDisable2FA() bool`

GetCanDisable2FA returns the CanDisable2FA field if non-nil, zero value otherwise.

### GetCanDisable2FAOk

`func (o *PermissionGroupModel) GetCanDisable2FAOk() (*bool, bool)`

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

### SetCanDisable2FA

`func (o *PermissionGroupModel) SetCanDisable2FA(v bool)`

SetCanDisable2FA sets CanDisable2FA field to given value.

### HasCanDisable2FA

`func (o *PermissionGroupModel) HasCanDisable2FA() bool`

HasCanDisable2FA returns a boolean if a field has been set.

### GetAccessType

`func (o *PermissionGroupModel) GetAccessType() AccessType`
Expand Down
37 changes: 37 additions & 0 deletions model_permission_group_model.go

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

0 comments on commit f19ba45

Please sign in to comment.