Skip to content

Commit

Permalink
chore(all): re-generate OpenAPI client(s) (#232)
Browse files Browse the repository at this point in the history
Co-authored-by: app-services-ci <[email protected]>
  • Loading branch information
app-services-ci and app-services-ci authored Aug 11, 2021
1 parent e47dcfb commit da34c5d
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 2 deletions.
28 changes: 28 additions & 0 deletions kafkainstance/apiv1internal/client/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -998,6 +998,34 @@ paths:
minimum: 1
type: number
style: form
- description: Order of the ACL binding sorting.
explode: true
in: query
name: order
required: false
schema:
default: desc
enum:
- asc
- desc
type: string
style: form
- description: Order key to sort the items by.
explode: true
in: query
name: orderKey
required: false
schema:
default: permission
enum:
- resourceType
- resourceName
- patternType
- principal
- operation
- permission
type: string
style: form
responses:
"200":
content:
Expand Down
16 changes: 16 additions & 0 deletions kafkainstance/apiv1internal/client/api_acls.go

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

8 changes: 6 additions & 2 deletions kafkainstance/apiv1internal/client/docs/AclsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ Other parameters are passed through a pointer to a apiGetAclResourceOperationsRe

## GetAcls

> AclBindingListPage GetAcls(ctx).ResourceType(resourceType).ResourceName(resourceName).PatternType(patternType).Principal(principal).Operation(operation).Permission(permission).Page(page).Size(size).Execute()
> AclBindingListPage GetAcls(ctx).ResourceType(resourceType).ResourceName(resourceName).PatternType(patternType).Principal(principal).Operation(operation).Permission(permission).Page(page).Size(size).Order(order).OrderKey(orderKey).Execute()
List ACL bindings

Expand All @@ -241,10 +241,12 @@ func main() {
permission := openapiclient.AclPermissionTypeFilter("ALLOW") // AclPermissionTypeFilter | ACL Permission Type Filter (optional) (default to "ANY")
page := float32(8.14) // float32 | Page number for result lists (optional) (default to 1)
size := float32(8.14) // float32 | Page size for result lists (optional) (default to 10)
order := "order_example" // string | Order of the ACL binding sorting. (optional) (default to "desc")
orderKey := "orderKey_example" // string | Order key to sort the items by. (optional) (default to "permission")

configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.AclsApi.GetAcls(context.Background()).ResourceType(resourceType).ResourceName(resourceName).PatternType(patternType).Principal(principal).Operation(operation).Permission(permission).Page(page).Size(size).Execute()
resp, r, err := api_client.AclsApi.GetAcls(context.Background()).ResourceType(resourceType).ResourceName(resourceName).PatternType(patternType).Principal(principal).Operation(operation).Permission(permission).Page(page).Size(size).Order(order).OrderKey(orderKey).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AclsApi.GetAcls``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
Expand Down Expand Up @@ -273,6 +275,8 @@ Name | Type | Description | Notes
**permission** | [**AclPermissionTypeFilter**](AclPermissionTypeFilter.md) | ACL Permission Type Filter | [default to &quot;ANY&quot;]
**page** | **float32** | Page number for result lists | [default to 1]
**size** | **float32** | Page size for result lists | [default to 10]
**order** | **string** | Order of the ACL binding sorting. | [default to &quot;desc&quot;]
**orderKey** | **string** | Order key to sort the items by. | [default to &quot;permission&quot;]

### Return type

Expand Down

0 comments on commit da34c5d

Please sign in to comment.