Skip to content

Commit

Permalink
chore(all): re-generate OpenAPI client(s) (#502)
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 Jul 1, 2022
1 parent 1eb16e1 commit 0d021bf
Show file tree
Hide file tree
Showing 45 changed files with 853 additions and 109 deletions.
4 changes: 4 additions & 0 deletions serviceaccounts/apiv1internal/client/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@ api_service_accounts.go
client.go
configuration.go
docs/Error.md
docs/RedHatErrorRepresentation.md
docs/ServiceAccountCreateRequestData.md
docs/ServiceAccountData.md
docs/ServiceAccountRequestData.md
docs/ServiceAccountsApi.md
docs/ValidationExceptionData.md
model_error.go
model_red_hat_error_representation.go
model_service_account_create_request_data.go
model_service_account_data.go
model_service_account_request_data.go
model_validation_exception_data.go
response.go
utils.go
62 changes: 62 additions & 0 deletions serviceaccounts/apiv1internal/client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,47 @@ Class | Method | HTTP request | Description
## Documentation For Models

- [Error](docs/Error.md)
- [RedHatErrorRepresentation](docs/RedHatErrorRepresentation.md)
- [ServiceAccountCreateRequestData](docs/ServiceAccountCreateRequestData.md)
- [ServiceAccountData](docs/ServiceAccountData.md)
- [ServiceAccountRequestData](docs/ServiceAccountRequestData.md)
- [ValidationExceptionData](docs/ValidationExceptionData.md)


## Documentation For Authorization



### authFlow


- **Type**: OAuth
- **Flow**: accessCode
- **Authorization URL**: /auth/realms/redhat-external/protocol/openid-connect/auth
- **Scopes**:
- **openid**: Treat as an OIDC request
- **api.iam.service_accounts**: Grants access to the service accounts api

Example

```golang
auth := context.WithValue(context.Background(), sw.ContextAccessToken, "ACCESSTOKENSTRING")
r, err := client.Service.Operation(auth, args)
```

Or via OAuth2 module to automatically refresh tokens and perform user authentication.

```golang
import "golang.org/x/oauth2"

/* Perform OAuth2 round trip request and obtain a token */

tokenSource := oauth2cfg.TokenSource(createContext(httpClient), &token)
auth := context.WithValue(oauth2.NoContext, sw.ContextOAuth2, tokenSource)
r, err := client.Service.Operation(auth, args)
```


### bearerAuth

- **Type**: HTTP Bearer token authentication
Expand All @@ -110,6 +142,36 @@ r, err := client.Service.Operation(auth, args)
```


### serviceAccounts


- **Type**: OAuth
- **Flow**: application
- **Authorization URL**:
- **Scopes**:
- **openid**: Treat as an OIDC request
- **api.iam.service_accounts**: Grants access to the service accounts api

Example

```golang
auth := context.WithValue(context.Background(), sw.ContextAccessToken, "ACCESSTOKENSTRING")
r, err := client.Service.Operation(auth, args)
```

Or via OAuth2 module to automatically refresh tokens and perform user authentication.

```golang
import "golang.org/x/oauth2"

/* Perform OAuth2 round trip request and obtain a token */

tokenSource := oauth2cfg.TokenSource(createContext(httpClient), &token)
auth := context.WithValue(oauth2.NoContext, sw.ContextOAuth2, tokenSource)
r, err := client.Service.Operation(auth, args)
```


## Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains
Expand Down
Loading

0 comments on commit 0d021bf

Please sign in to comment.