Skip to content

Commit

Permalink
chore(all): re-generate OpenAPI client(s) (#550)
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 9, 2022
1 parent 1d12968 commit 989fe16
Show file tree
Hide file tree
Showing 64 changed files with 4,099 additions and 2,092 deletions.
203 changes: 174 additions & 29 deletions connectormgmt/apiv1/client/api/openapi.yaml

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions connectormgmt/apiv1/client/api_connector_clusters.go

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

16 changes: 10 additions & 6 deletions connectormgmt/apiv1/client/docs/ConnectorClustersApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,8 @@ func main() {
connectorClusterId := "connectorClusterId_example" // string | The id of the connector cluster
page := "1" // string | Page index (optional)
size := "100" // string | Number of items in each page (optional)
orderBy := "name asc" // string | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the `order by` clause of an SQL statement. Each query can be ordered by any of the `ConnectorType` fields. For example, to return all Connector types ordered by their name, use the following syntax: ```sql name asc ``` To return all Connector types ordered by their name _and_ version, use the following syntax: ```sql name asc, version asc ``` If the parameter isn't provided, or if the value is empty, then the results are ordered by name. (optional)
search := "name = aws-sqs-source and channel = stable" // string | Search criteria. The syntax of this parameter is similar to the syntax of the `where` clause of a SQL statement. Allowed fields in the search are `name`, `description`, `version`, `label`, and `channel`. Allowed operators are `<>`, `=`, or `LIKE`. Allowed conjunctive operators are `AND` and `OR`. However, you can use a maximum of 10 conjunctions in a search query. Examples: To return a Connector Type with the name `aws-sqs-source` and the channel `stable`, use the following syntax: ``` name = aws-sqs-source and channel = stable ```[p-] To return a Kafka instance with a name that starts with `aws`, use the following syntax: ``` name like aws%25 ``` If the parameter isn't provided, or if the value is empty, then all the Connector Type that the user has permission to see are returned. Note. If the query is invalid, an error is returned. (optional)
orderBy := "name asc" // string | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the `order by` clause of an SQL statement. Each query can be ordered by any of the underlying resource fields supported in the search parameter. For example, to return all Connector types ordered by their name, use the following syntax: ```sql name asc ``` To return all Connector types ordered by their name _and_ version, use the following syntax: ```sql name asc, version asc ``` If the parameter isn't provided, or if the value is empty, then the results are ordered by name. (optional)
search := "name = aws-sqs-source and channel = stable" // string | Search criteria. The syntax of this parameter is similar to the syntax of the `where` clause of a SQL statement. Allowed fields in the search depend on the resource type: * Cluster: id, created_at, updated_at, owner, organisation_id, name, state, client_id * Namespace: id, created_at, updated_at, name, cluster_id, owner, expiration, tenant_user_id, tenant_organisation_id, state * Connector Types: id, created_at, updated_at, version, name, description, label, channel * Connectors: id, created_at, updated_at, name, owner, organisation_id, connector_type_id, desired_state, state, channel, namespace_id, kafka_id, kafka_bootstrap_server, service_account_client_id, schema_registry_id, schema_registry_url Allowed operators are `<>`, `=`, `LIKE`, or `ILIKE`. Allowed conjunctive operators are `AND` and `OR`. However, you can use a maximum of 10 conjunctions in a search query. Examples: To return a Connector Type with the name `aws-sqs-source` and the channel `stable`, use the following syntax: ``` name = aws-sqs-source and channel = stable ```[p-] To return a connector instance with a name that starts with `aws`, use the following syntax: ``` name like aws%25 ``` To return a connector type with a name containing `aws` matching any character case combination, use the following syntax: ``` name ilike %25aws%25 ``` If the parameter isn't provided, or if the value is empty, then all the resources that the user has permission to see are returned. Note. If the query is invalid, an error is returned. (optional)

configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
Expand Down Expand Up @@ -351,8 +351,8 @@ Name | Type | Description | Notes

**page** | **string** | Page index |
**size** | **string** | Number of items in each page |
**orderBy** | **string** | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the &#x60;order by&#x60; clause of an SQL statement. Each query can be ordered by any of the &#x60;ConnectorType&#x60; fields. For example, to return all Connector types ordered by their name, use the following syntax: &#x60;&#x60;&#x60;sql name asc &#x60;&#x60;&#x60; To return all Connector types ordered by their name _and_ version, use the following syntax: &#x60;&#x60;&#x60;sql name asc, version asc &#x60;&#x60;&#x60; If the parameter isn&#39;t provided, or if the value is empty, then the results are ordered by name. |
**search** | **string** | Search criteria. The syntax of this parameter is similar to the syntax of the &#x60;where&#x60; clause of a SQL statement. Allowed fields in the search are &#x60;name&#x60;, &#x60;description&#x60;, &#x60;version&#x60;, &#x60;label&#x60;, and &#x60;channel&#x60;. Allowed operators are &#x60;&lt;&gt;&#x60;, &#x60;&#x3D;&#x60;, or &#x60;LIKE&#x60;. Allowed conjunctive operators are &#x60;AND&#x60; and &#x60;OR&#x60;. However, you can use a maximum of 10 conjunctions in a search query. Examples: To return a Connector Type with the name &#x60;aws-sqs-source&#x60; and the channel &#x60;stable&#x60;, use the following syntax: &#x60;&#x60;&#x60; name &#x3D; aws-sqs-source and channel &#x3D; stable &#x60;&#x60;&#x60;[p-] To return a Kafka instance with a name that starts with &#x60;aws&#x60;, use the following syntax: &#x60;&#x60;&#x60; name like aws%25 &#x60;&#x60;&#x60; If the parameter isn&#39;t provided, or if the value is empty, then all the Connector Type that the user has permission to see are returned. Note. If the query is invalid, an error is returned. |
**orderBy** | **string** | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the &#x60;order by&#x60; clause of an SQL statement. Each query can be ordered by any of the underlying resource fields supported in the search parameter. For example, to return all Connector types ordered by their name, use the following syntax: &#x60;&#x60;&#x60;sql name asc &#x60;&#x60;&#x60; To return all Connector types ordered by their name _and_ version, use the following syntax: &#x60;&#x60;&#x60;sql name asc, version asc &#x60;&#x60;&#x60; If the parameter isn&#39;t provided, or if the value is empty, then the results are ordered by name. |
**search** | **string** | Search criteria. The syntax of this parameter is similar to the syntax of the &#x60;where&#x60; clause of a SQL statement. Allowed fields in the search depend on the resource type: * Cluster: id, created_at, updated_at, owner, organisation_id, name, state, client_id * Namespace: id, created_at, updated_at, name, cluster_id, owner, expiration, tenant_user_id, tenant_organisation_id, state * Connector Types: id, created_at, updated_at, version, name, description, label, channel * Connectors: id, created_at, updated_at, name, owner, organisation_id, connector_type_id, desired_state, state, channel, namespace_id, kafka_id, kafka_bootstrap_server, service_account_client_id, schema_registry_id, schema_registry_url Allowed operators are &#x60;&lt;&gt;&#x60;, &#x60;&#x3D;&#x60;, &#x60;LIKE&#x60;, or &#x60;ILIKE&#x60;. Allowed conjunctive operators are &#x60;AND&#x60; and &#x60;OR&#x60;. However, you can use a maximum of 10 conjunctions in a search query. Examples: To return a Connector Type with the name &#x60;aws-sqs-source&#x60; and the channel &#x60;stable&#x60;, use the following syntax: &#x60;&#x60;&#x60; name &#x3D; aws-sqs-source and channel &#x3D; stable &#x60;&#x60;&#x60;[p-] To return a connector instance with a name that starts with &#x60;aws&#x60;, use the following syntax: &#x60;&#x60;&#x60; name like aws%25 &#x60;&#x60;&#x60; To return a connector type with a name containing &#x60;aws&#x60; matching any character case combination, use the following syntax: &#x60;&#x60;&#x60; name ilike %25aws%25 &#x60;&#x60;&#x60; If the parameter isn&#39;t provided, or if the value is empty, then all the resources that the user has permission to see are returned. Note. If the query is invalid, an error is returned. |

### Return type

Expand All @@ -374,7 +374,7 @@ Name | Type | Description | Notes

## ListConnectorClusters

> ConnectorClusterList ListConnectorClusters(ctx).Page(page).Size(size).Execute()
> ConnectorClusterList ListConnectorClusters(ctx).Page(page).Size(size).OrderBy(orderBy).Search(search).Execute()
Returns a list of connector clusters

Expand All @@ -395,10 +395,12 @@ import (
func main() {
page := "1" // string | Page index (optional)
size := "100" // string | Number of items in each page (optional)
orderBy := "name asc" // string | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the `order by` clause of an SQL statement. Each query can be ordered by any of the underlying resource fields supported in the search parameter. For example, to return all Connector types ordered by their name, use the following syntax: ```sql name asc ``` To return all Connector types ordered by their name _and_ version, use the following syntax: ```sql name asc, version asc ``` If the parameter isn't provided, or if the value is empty, then the results are ordered by name. (optional)
search := "name = aws-sqs-source and channel = stable" // string | Search criteria. The syntax of this parameter is similar to the syntax of the `where` clause of a SQL statement. Allowed fields in the search depend on the resource type: * Cluster: id, created_at, updated_at, owner, organisation_id, name, state, client_id * Namespace: id, created_at, updated_at, name, cluster_id, owner, expiration, tenant_user_id, tenant_organisation_id, state * Connector Types: id, created_at, updated_at, version, name, description, label, channel * Connectors: id, created_at, updated_at, name, owner, organisation_id, connector_type_id, desired_state, state, channel, namespace_id, kafka_id, kafka_bootstrap_server, service_account_client_id, schema_registry_id, schema_registry_url Allowed operators are `<>`, `=`, `LIKE`, or `ILIKE`. Allowed conjunctive operators are `AND` and `OR`. However, you can use a maximum of 10 conjunctions in a search query. Examples: To return a Connector Type with the name `aws-sqs-source` and the channel `stable`, use the following syntax: ``` name = aws-sqs-source and channel = stable ```[p-] To return a connector instance with a name that starts with `aws`, use the following syntax: ``` name like aws%25 ``` To return a connector type with a name containing `aws` matching any character case combination, use the following syntax: ``` name ilike %25aws%25 ``` If the parameter isn't provided, or if the value is empty, then all the resources that the user has permission to see are returned. Note. If the query is invalid, an error is returned. (optional)

configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.ConnectorClustersApi.ListConnectorClusters(context.Background()).Page(page).Size(size).Execute()
resp, r, err := api_client.ConnectorClustersApi.ListConnectorClusters(context.Background()).Page(page).Size(size).OrderBy(orderBy).Search(search).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ConnectorClustersApi.ListConnectorClusters``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
Expand All @@ -421,6 +423,8 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**page** | **string** | Page index |
**size** | **string** | Number of items in each page |
**orderBy** | **string** | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the &#x60;order by&#x60; clause of an SQL statement. Each query can be ordered by any of the underlying resource fields supported in the search parameter. For example, to return all Connector types ordered by their name, use the following syntax: &#x60;&#x60;&#x60;sql name asc &#x60;&#x60;&#x60; To return all Connector types ordered by their name _and_ version, use the following syntax: &#x60;&#x60;&#x60;sql name asc, version asc &#x60;&#x60;&#x60; If the parameter isn&#39;t provided, or if the value is empty, then the results are ordered by name. |
**search** | **string** | Search criteria. The syntax of this parameter is similar to the syntax of the &#x60;where&#x60; clause of a SQL statement. Allowed fields in the search depend on the resource type: * Cluster: id, created_at, updated_at, owner, organisation_id, name, state, client_id * Namespace: id, created_at, updated_at, name, cluster_id, owner, expiration, tenant_user_id, tenant_organisation_id, state * Connector Types: id, created_at, updated_at, version, name, description, label, channel * Connectors: id, created_at, updated_at, name, owner, organisation_id, connector_type_id, desired_state, state, channel, namespace_id, kafka_id, kafka_bootstrap_server, service_account_client_id, schema_registry_id, schema_registry_url Allowed operators are &#x60;&lt;&gt;&#x60;, &#x60;&#x3D;&#x60;, &#x60;LIKE&#x60;, or &#x60;ILIKE&#x60;. Allowed conjunctive operators are &#x60;AND&#x60; and &#x60;OR&#x60;. However, you can use a maximum of 10 conjunctions in a search query. Examples: To return a Connector Type with the name &#x60;aws-sqs-source&#x60; and the channel &#x60;stable&#x60;, use the following syntax: &#x60;&#x60;&#x60; name &#x3D; aws-sqs-source and channel &#x3D; stable &#x60;&#x60;&#x60;[p-] To return a connector instance with a name that starts with &#x60;aws&#x60;, use the following syntax: &#x60;&#x60;&#x60; name like aws%25 &#x60;&#x60;&#x60; To return a connector type with a name containing &#x60;aws&#x60; matching any character case combination, use the following syntax: &#x60;&#x60;&#x60; name ilike %25aws%25 &#x60;&#x60;&#x60; If the parameter isn&#39;t provided, or if the value is empty, then all the resources that the user has permission to see are returned. Note. If the query is invalid, an error is returned. |

### Return type

Expand Down
Loading

0 comments on commit 989fe16

Please sign in to comment.