Skip to content

Commit

Permalink
Update the Flink SDK (#161)
Browse files Browse the repository at this point in the history
* Update the Flink SDK

* fix
  • Loading branch information
QifanWuCFLT authored May 15, 2024
1 parent 67a280e commit 54b0261
Show file tree
Hide file tree
Showing 11 changed files with 182 additions and 128 deletions.
28 changes: 28 additions & 0 deletions flink/v2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,34 @@ r, err := client.Service.Operation(auth, args)
```


### confluent-sts-access-token


- **Type**: OAuth
- **Flow**: application
- **Authorization URL**:
- **Scopes**: N/A

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
106 changes: 62 additions & 44 deletions flink/v2/api/openapi.yaml

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions flink/v2/api_compute_pools_fcpm_v2.go

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

4 changes: 2 additions & 2 deletions flink/v2/api_regions_fcpm_v2.go

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

8 changes: 8 additions & 0 deletions flink/v2/configuration.go

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

10 changes: 5 additions & 5 deletions flink/v2/docs/ComputePoolsFcpmV2Api.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Name | Type | Description | Notes

### Authorization

[cloud-api-key](../README.md#cloud-api-key)
[cloud-api-key](../README.md#cloud-api-key), [confluent-sts-access-token](../README.md#confluent-sts-access-token)

### HTTP request headers

Expand Down Expand Up @@ -136,7 +136,7 @@ Name | Type | Description | Notes

### Authorization

[cloud-api-key](../README.md#cloud-api-key)
[cloud-api-key](../README.md#cloud-api-key), [confluent-sts-access-token](../README.md#confluent-sts-access-token)

### HTTP request headers

Expand Down Expand Up @@ -208,7 +208,7 @@ Name | Type | Description | Notes

### Authorization

[cloud-api-key](../README.md#cloud-api-key)
[cloud-api-key](../README.md#cloud-api-key), [confluent-sts-access-token](../README.md#confluent-sts-access-token)

### HTTP request headers

Expand Down Expand Up @@ -282,7 +282,7 @@ Name | Type | Description | Notes

### Authorization

[cloud-api-key](../README.md#cloud-api-key)
[cloud-api-key](../README.md#cloud-api-key), [confluent-sts-access-token](../README.md#confluent-sts-access-token)

### HTTP request headers

Expand Down Expand Up @@ -354,7 +354,7 @@ Name | Type | Description | Notes

### Authorization

[cloud-api-key](../README.md#cloud-api-key)
[cloud-api-key](../README.md#cloud-api-key), [confluent-sts-access-token](../README.md#confluent-sts-access-token)

### HTTP request headers

Expand Down
26 changes: 0 additions & 26 deletions flink/v2/docs/FcpmV2ComputePoolSpec.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**DisplayName** | Pointer to **string** | The name of the Flink compute pool. | [optional]
**Cloud** | Pointer to **string** | The cloud service provider that runs the compute pool. | [optional]
**HttpEndpoint** | Pointer to **string** | The API endpoint of the Flink compute pool. | [optional] [readonly]
**Region** | Pointer to **string** | Flink compute pools in the region provided will be able to use this identity pool | [optional]
**MaxCfu** | Pointer to **int32** | Maximum number of Confluent Flink Units (CFUs) that the Flink compute pool should auto-scale to. | [optional]
**Environment** | Pointer to [**GlobalObjectReference**](GlobalObjectReference.md) | The environment to which this belongs. | [optional]
Expand Down Expand Up @@ -81,31 +80,6 @@ SetCloud sets Cloud field to given value.

HasCloud returns a boolean if a field has been set.

### GetHttpEndpoint

`func (o *FcpmV2ComputePoolSpec) GetHttpEndpoint() string`

GetHttpEndpoint returns the HttpEndpoint field if non-nil, zero value otherwise.

### GetHttpEndpointOk

`func (o *FcpmV2ComputePoolSpec) GetHttpEndpointOk() (*string, bool)`

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

### SetHttpEndpoint

`func (o *FcpmV2ComputePoolSpec) SetHttpEndpoint(v string)`

SetHttpEndpoint sets HttpEndpoint field to given value.

### HasHttpEndpoint

`func (o *FcpmV2ComputePoolSpec) HasHttpEndpoint() bool`

HasHttpEndpoint returns a boolean if a field has been set.

### GetRegion

`func (o *FcpmV2ComputePoolSpec) GetRegion() string`
Expand Down
28 changes: 27 additions & 1 deletion flink/v2/docs/FcpmV2Region.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ Name | Type | Description | Notes
**DisplayName** | Pointer to **string** | The display name. | [optional] [readonly]
**Cloud** | Pointer to **string** | The cloud service provider that hosts the region. | [optional] [readonly]
**RegionName** | Pointer to **string** | The region name. | [optional] [readonly]
**HttpEndpoint** | Pointer to **string** | The regional API endpoint for flink compute pools. | [optional] [readonly]
**HttpEndpoint** | Pointer to **string** | The regional API endpoint for Flink compute pools. | [optional] [readonly]
**PrivateHttpEndpoint** | Pointer to **string** | The private regional API endpoint for Flink compute pools. | [optional] [readonly]

## Methods

Expand Down Expand Up @@ -232,6 +233,31 @@ SetHttpEndpoint sets HttpEndpoint field to given value.

HasHttpEndpoint returns a boolean if a field has been set.

### GetPrivateHttpEndpoint

`func (o *FcpmV2Region) GetPrivateHttpEndpoint() string`

GetPrivateHttpEndpoint returns the PrivateHttpEndpoint field if non-nil, zero value otherwise.

### GetPrivateHttpEndpointOk

`func (o *FcpmV2Region) GetPrivateHttpEndpointOk() (*string, bool)`

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

### SetPrivateHttpEndpoint

`func (o *FcpmV2Region) SetPrivateHttpEndpoint(v string)`

SetPrivateHttpEndpoint sets PrivateHttpEndpoint field to given value.

### HasPrivateHttpEndpoint

`func (o *FcpmV2Region) HasPrivateHttpEndpoint() bool`

HasPrivateHttpEndpoint 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
2 changes: 1 addition & 1 deletion flink/v2/docs/RegionsFcpmV2Api.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Name | Type | Description | Notes

### Authorization

[cloud-api-key](../README.md#cloud-api-key)
[cloud-api-key](../README.md#cloud-api-key), [confluent-sts-access-token](../README.md#confluent-sts-access-token)

### HTTP request headers

Expand Down
38 changes: 0 additions & 38 deletions flink/v2/model_fcpm_v2_compute_pool_spec.go

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

Loading

0 comments on commit 54b0261

Please sign in to comment.