Skip to content

Commit

Permalink
Corrections to APIServer model (#359)
Browse files Browse the repository at this point in the history
* Corrections to `APIServer` model

* correction to `APIServerOperationAccessControlGroupGroupsInner` model
  • Loading branch information
patrickcping authored Jun 5, 2024
1 parent c02bbb3 commit 097619f
Show file tree
Hide file tree
Showing 11 changed files with 154 additions and 210 deletions.
2 changes: 0 additions & 2 deletions authorize/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ docs/APIServerOperation.md
docs/APIServerOperationAccessControl.md
docs/APIServerOperationAccessControlGroup.md
docs/APIServerOperationAccessControlGroupGroupsInner.md
docs/APIServerOperationAccessControlGroupGroupsInnerElement.md
docs/APIServerOperationAccessControlPermission.md
docs/APIServerOperationAccessControlScope.md
docs/APIServerOperationAccessControlScopeScopesInner.md
Expand Down Expand Up @@ -93,7 +92,6 @@ model_api_server_operation.go
model_api_server_operation_access_control.go
model_api_server_operation_access_control_group.go
model_api_server_operation_access_control_group_groups_inner.go
model_api_server_operation_access_control_group_groups_inner_element.go
model_api_server_operation_access_control_permission.go
model_api_server_operation_access_control_scope.go
model_api_server_operation_access_control_scope_scopes_inner.go
Expand Down
1 change: 0 additions & 1 deletion authorize/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ Class | Method | HTTP request | Description
- [APIServerOperationAccessControl](docs/APIServerOperationAccessControl.md)
- [APIServerOperationAccessControlGroup](docs/APIServerOperationAccessControlGroup.md)
- [APIServerOperationAccessControlGroupGroupsInner](docs/APIServerOperationAccessControlGroupGroupsInner.md)
- [APIServerOperationAccessControlGroupGroupsInnerElement](docs/APIServerOperationAccessControlGroupGroupsInnerElement.md)
- [APIServerOperationAccessControlPermission](docs/APIServerOperationAccessControlPermission.md)
- [APIServerOperationAccessControlScope](docs/APIServerOperationAccessControlScope.md)
- [APIServerOperationAccessControlScopeScopesInner](docs/APIServerOperationAccessControlScopeScopesInner.md)
Expand Down
156 changes: 54 additions & 102 deletions authorize/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2525,9 +2525,9 @@ components:
accessControl:
custom:
enabled: true
baseURLs:
- baseURLs
- baseURLs
baseUrls:
- baseUrls
- baseUrls
_links:
next:
href: https://openapi-generator.tech
Expand All @@ -2550,7 +2550,7 @@ components:
$ref: '#/components/schemas/APIServer_accessControl'
authorizationServer:
$ref: '#/components/schemas/APIServer_authorizationServer'
baseURLs:
baseUrls:
description: "An array of string that specifies the possible base URLs that\
\ an end-user will use to access the APIs hosted on the customer's API\
\ server. Multiple base URLs may be specified to support cases where the\
Expand Down Expand Up @@ -2580,7 +2580,7 @@ components:
$ref: '#/components/schemas/APIServer_policy'
required:
- authorizationServer
- baseURLs
- baseUrls
- name
type: object
APIServerDeployment:
Expand Down Expand Up @@ -2638,16 +2638,11 @@ components:
id: id
group:
groups:
- element:
id: id
- element:
id: id
- element:
id: id
- element:
id: id
- element:
id: id
- id: id
- id: id
- id: id
- id: id
- id: id
_links:
next:
href: https://openapi-generator.tech
Expand Down Expand Up @@ -3036,16 +3031,11 @@ components:
id: id
group:
groups:
- element:
id: id
- element:
id: id
- element:
id: id
- element:
id: id
- element:
id: id
- id: id
- id: id
- id: id
- id: id
- id: id
_links:
next:
href: https://openapi-generator.tech
Expand Down Expand Up @@ -3082,16 +3072,11 @@ components:
id: id
group:
groups:
- element:
id: id
- element:
id: id
- element:
id: id
- element:
id: id
- element:
id: id
- id: id
- id: id
- id: id
- id: id
- id: id
_links:
next:
href: https://openapi-generator.tech
Expand Down Expand Up @@ -3165,9 +3150,9 @@ components:
- accessControl:
custom:
enabled: true
baseURLs:
- baseURLs
- baseURLs
baseUrls:
- baseUrls
- baseUrls
_links:
next:
href: https://openapi-generator.tech
Expand All @@ -3186,9 +3171,9 @@ components:
- accessControl:
custom:
enabled: true
baseURLs:
- baseURLs
- baseURLs
baseUrls:
- baseUrls
- baseUrls
_links:
next:
href: https://openapi-generator.tech
Expand Down Expand Up @@ -3394,7 +3379,7 @@ components:
type:
$ref: '#/components/schemas/EnumAPIServerAuthorizationServerType'
required:
- resource
- type
type: object
APIServer_directory:
description: "A container object for fields related to the user directory used\
Expand Down Expand Up @@ -3514,10 +3499,7 @@ components:
error:
$ref: '#/components/schemas/APIServerDeployment_status_error'
type: object
APIServerOperation_accessControl_group_groups_inner_element:
description: "The ID of the group, wrapped in an object, for future extensibility.\
\ This is a required property if `operations.value.accessControl.group` is\
\ set."
APIServerOperation_accessControl_group_groups_inner:
example:
id: id
properties:
Expand All @@ -3528,32 +3510,17 @@ components:
required:
- id
type: object
APIServerOperation_accessControl_group_groups_inner:
example:
element:
id: id
properties:
element:
$ref: '#/components/schemas/APIServerOperation_accessControl_group_groups_inner_element'
required:
- element
type: object
APIServerOperation_accessControl_group:
description: The group membership requirements for the operation. The `groups`
array must be non-empty when the `group` object is included. The `groups`
array must not contain more than 25 elements.
example:
groups:
- element:
id: id
- element:
id: id
- element:
id: id
- element:
id: id
- element:
id: id
- id: id
- id: id
- id: id
- id: id
- id: id
properties:
groups:
description: "The list of groups that define the access requirements for\
Expand Down Expand Up @@ -3627,16 +3594,11 @@ components:
id: id
group:
groups:
- element:
id: id
- element:
id: id
- element:
id: id
- element:
id: id
- element:
id: id
- id: id
- id: id
- id: id
- id: id
- id: id
properties:
group:
$ref: '#/components/schemas/APIServerOperation_accessControl_group'
Expand Down Expand Up @@ -3784,16 +3746,11 @@ components:
id: id
group:
groups:
- element:
id: id
- element:
id: id
- element:
id: id
- element:
id: id
- element:
id: id
- id: id
- id: id
- id: id
- id: id
- id: id
_links:
next:
href: https://openapi-generator.tech
Expand Down Expand Up @@ -3830,16 +3787,11 @@ components:
id: id
group:
groups:
- element:
id: id
- element:
id: id
- element:
id: id
- element:
id: id
- element:
id: id
- id: id
- id: id
- id: id
- id: id
- id: id
_links:
next:
href: https://openapi-generator.tech
Expand Down Expand Up @@ -3913,9 +3865,9 @@ components:
- accessControl:
custom:
enabled: true
baseURLs:
- baseURLs
- baseURLs
baseUrls:
- baseUrls
- baseUrls
_links:
next:
href: https://openapi-generator.tech
Expand All @@ -3934,9 +3886,9 @@ components:
- accessControl:
custom:
enabled: true
baseURLs:
- baseURLs
- baseURLs
baseUrls:
- baseUrls
- baseUrls
_links:
next:
href: https://openapi-generator.tech
Expand Down
22 changes: 11 additions & 11 deletions authorize/docs/APIServer.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Name | Type | Description | Notes
**Links** | Pointer to [**LinksHATEOAS**](LinksHATEOAS.md) | | [optional]
**AccessControl** | Pointer to [**APIServerAccessControl**](APIServerAccessControl.md) | | [optional]
**AuthorizationServer** | [**APIServerAuthorizationServer**](APIServerAuthorizationServer.md) | |
**BaseURLs** | **[]string** | An array of string that specifies the possible base URLs that an end-user will use to access the APIs hosted on the customer's API server. Multiple base URLs may be specified to support cases where the same API may be available from multiple URLs (for example, from a user-friendly domain URL and an internal domain URL). Base URLs must be valid absolute URLs with the https or http scheme. If the path component is non-empty, it must not end in a trailing slash. The path must not contain empty backslash, dot, or double-dot segments. It must not have a query or fragment present, and the host portion of the authority must be a DNS hostname or valid IP (IPv4 or IPv6). The length must be less than or equal to 256 characters. |
**BaseUrls** | **[]string** | An array of string that specifies the possible base URLs that an end-user will use to access the APIs hosted on the customer's API server. Multiple base URLs may be specified to support cases where the same API may be available from multiple URLs (for example, from a user-friendly domain URL and an internal domain URL). Base URLs must be valid absolute URLs with the https or http scheme. If the path component is non-empty, it must not end in a trailing slash. The path must not contain empty backslash, dot, or double-dot segments. It must not have a query or fragment present, and the host portion of the authority must be a DNS hostname or valid IP (IPv4 or IPv6). The length must be less than or equal to 256 characters. |
**Directory** | Pointer to [**APIServerDirectory**](APIServerDirectory.md) | | [optional]
**Id** | Pointer to **string** | A string that specifies the resource's unique identifier. | [optional] [readonly]
**Name** | **string** | A string that specifies the API server resource name. The name value must be unique among all API servers, and it must be a valid resource name. |
Expand All @@ -17,7 +17,7 @@ Name | Type | Description | Notes

### NewAPIServer

`func NewAPIServer(authorizationServer APIServerAuthorizationServer, baseURLs []string, name string, ) *APIServer`
`func NewAPIServer(authorizationServer APIServerAuthorizationServer, baseUrls []string, name string, ) *APIServer`

NewAPIServer instantiates a new APIServer object
This constructor will assign default values to properties that have it defined,
Expand Down Expand Up @@ -102,24 +102,24 @@ and a boolean to check if the value has been set.
SetAuthorizationServer sets AuthorizationServer field to given value.


### GetBaseURLs
### GetBaseUrls

`func (o *APIServer) GetBaseURLs() []string`
`func (o *APIServer) GetBaseUrls() []string`

GetBaseURLs returns the BaseURLs field if non-nil, zero value otherwise.
GetBaseUrls returns the BaseUrls field if non-nil, zero value otherwise.

### GetBaseURLsOk
### GetBaseUrlsOk

`func (o *APIServer) GetBaseURLsOk() (*[]string, bool)`
`func (o *APIServer) GetBaseUrlsOk() (*[]string, bool)`

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

### SetBaseURLs
### SetBaseUrls

`func (o *APIServer) SetBaseURLs(v []string)`
`func (o *APIServer) SetBaseUrls(v []string)`

SetBaseURLs sets BaseURLs field to given value.
SetBaseUrls sets BaseUrls field to given value.


### GetDirectory
Expand Down
16 changes: 8 additions & 8 deletions authorize/docs/APIServerAuthorizationServer.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Resource** | [**APIServerAuthorizationServerResource**](APIServerAuthorizationServerResource.md) | |
**Type** | Pointer to [**EnumAPIServerAuthorizationServerType**](EnumAPIServerAuthorizationServerType.md) | | [optional]
**Resource** | Pointer to [**APIServerAuthorizationServerResource**](APIServerAuthorizationServerResource.md) | | [optional]
**Type** | [**EnumAPIServerAuthorizationServerType**](EnumAPIServerAuthorizationServerType.md) | |

## Methods

### NewAPIServerAuthorizationServer

`func NewAPIServerAuthorizationServer(resource APIServerAuthorizationServerResource, ) *APIServerAuthorizationServer`
`func NewAPIServerAuthorizationServer(type_ EnumAPIServerAuthorizationServerType, ) *APIServerAuthorizationServer`

NewAPIServerAuthorizationServer instantiates a new APIServerAuthorizationServer object
This constructor will assign default values to properties that have it defined,
Expand Down Expand Up @@ -45,6 +45,11 @@ and a boolean to check if the value has been set.

SetResource sets Resource field to given value.

### HasResource

`func (o *APIServerAuthorizationServer) HasResource() bool`

HasResource returns a boolean if a field has been set.

### GetType

Expand All @@ -65,11 +70,6 @@ and a boolean to check if the value has been set.

SetType sets Type field to given value.

### HasType

`func (o *APIServerAuthorizationServer) HasType() bool`

HasType 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
Loading

0 comments on commit 097619f

Please sign in to comment.