Skip to content

Commit 443dbe7

Browse files
fix(connector-mgmt/v1): update connector-mgmt/v1 SDK (#375)
Co-authored-by: app-services-ci <app-services-ci@users.noreply.github.com>
1 parent c8320bd commit 443dbe7

47 files changed

Lines changed: 1253 additions & 73 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.openapi/connector_mgmt.yaml

Lines changed: 87 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,44 @@ paths:
158158
$ref: "#/components/examples/500Example"
159159
description: Unexpected error occurred
160160

161+
"/api/connector_mgmt/v1/kafka_connector_types/labels":
162+
get:
163+
tags:
164+
- Connector Types
165+
security:
166+
- Bearer: [ ]
167+
operationId: getConnectorTypeLabels
168+
summary: Returns a list of connector type labels
169+
description: Returns a list of connector type labels
170+
parameters:
171+
- $ref: "#/components/parameters/orderBy"
172+
- $ref: "#/components/parameters/search"
173+
responses:
174+
"200":
175+
content:
176+
application/json:
177+
schema:
178+
$ref: "#/components/schemas/ConnectorTypeLabelCountList"
179+
description: A list of connector type labels
180+
"401":
181+
content:
182+
application/json:
183+
schema:
184+
$ref: "#/components/schemas/Error"
185+
examples:
186+
401Example:
187+
$ref: "#/components/examples/401Example"
188+
description: Auth token is invalid
189+
"500":
190+
content:
191+
application/json:
192+
schema:
193+
$ref: "#/components/schemas/Error"
194+
examples:
195+
500Example:
196+
$ref: "#/components/examples/500Example"
197+
description: Unexpected error occurred
198+
161199
#
162200
# Connector
163201
#
@@ -1122,6 +1160,12 @@ components:
11221160
# Connector Cluster
11231161
#
11241162

1163+
ConnectorResourceAnnotations:
1164+
description: Name-value string annotations for resource
1165+
type: object
1166+
additionalProperties:
1167+
type: "string"
1168+
11251169
ConnectorClusterState:
11261170
type: string
11271171
enum:
@@ -1130,9 +1174,12 @@ components:
11301174
- deleting
11311175

11321176
ConnectorClusterRequestMeta:
1177+
type: object
11331178
properties:
11341179
name:
11351180
type: string
1181+
annotations:
1182+
$ref: "#/components/schemas/ConnectorResourceAnnotations"
11361183

11371184
ConnectorClusterRequest:
11381185
description: "Schema for the request to update a data plane cluster's name"
@@ -1221,6 +1268,7 @@ components:
12211268
type: object
12221269

12231270
ConnectorRequestMeta:
1271+
type: object
12241272
required:
12251273
- name
12261274
- connector_type_id
@@ -1237,6 +1285,9 @@ components:
12371285
$ref: "#/components/schemas/Channel"
12381286
desired_state:
12391287
$ref: "#/components/schemas/ConnectorDesiredState"
1288+
annotations:
1289+
$ref: "#/components/schemas/ConnectorResourceAnnotations"
1290+
12401291

12411292
ConnectorRequest:
12421293
allOf:
@@ -1315,8 +1366,14 @@ components:
13151366
type: array
13161367
items:
13171368
type: string
1369+
annotations:
1370+
$ref: "#/components/schemas/ConnectorResourceAnnotations"
1371+
featured_rank:
1372+
description: Ranking for featured connectors
1373+
type: integer
1374+
format: int32
13181375
capabilities:
1319-
description: The capabilities supported by the conenctor
1376+
description: The capabilities supported by the connector
13201377
type: array
13211378
items:
13221379
type: string
@@ -1336,6 +1393,29 @@ components:
13361393
items:
13371394
$ref: "#/components/schemas/ConnectorType"
13381395

1396+
ConnectorTypeLabelCount:
1397+
description: Represents a connector type label and the number of types with that label
1398+
required:
1399+
- label
1400+
- count
1401+
type: object
1402+
properties:
1403+
label:
1404+
description: Name of the connector type label.
1405+
type: string
1406+
count:
1407+
description: Number of connector types with this label.
1408+
type: integer
1409+
format: int32
1410+
1411+
ConnectorTypeLabelCountList:
1412+
type: object
1413+
properties:
1414+
items:
1415+
type: array
1416+
items:
1417+
$ref: "#/components/schemas/ConnectorTypeLabelCount"
1418+
13391419
#
13401420
# Connector Namespaces
13411421
#
@@ -1347,9 +1427,7 @@ components:
13471427
pattern: "^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$"
13481428
description: Namespace name must match pattern `^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$`, or it may be empty to be auto-generated.
13491429
annotations:
1350-
type: object
1351-
additionalProperties:
1352-
type: "string"
1430+
$ref: "#/components/schemas/ConnectorResourceAnnotations"
13531431

13541432
ConnectorNamespaceQuota:
13551433
type: object
@@ -1560,7 +1638,7 @@ components:
15601638
15611639
* Cluster: id, created_at, updated_at, owner, organisation_id, name, state, client_id
15621640
* Namespace: id, created_at, updated_at, name, cluster_id, owner, expiration, tenant_user_id, tenant_organisation_id, state
1563-
* Connector Types: id, created_at, updated_at, version, name, description, label, channel
1641+
* Connector Types: id, created_at, updated_at, version, name, description, label, channel, featured_rank, pricing_tier
15641642
* 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
15651643
15661644
Allowed operators are `<>`, `=`, `LIKE`, or `ILIKE`.
@@ -1624,6 +1702,8 @@ components:
16241702
icon_href: "/api/connector_mgmt/v1/kafka_connector_types/log_sink.png"
16251703
labels:
16261704
- sink
1705+
annotations:
1706+
- "cos.bf2.org/name": value
16271707
capabilities:
16281708
- data_shape
16291709
- processors
@@ -1749,12 +1829,12 @@ components:
17491829
name: "MyNamespace"
17501830
cluster_id: "9bsv0s7tne7g02gh5g4g"
17511831
annotations:
1752-
"connector_mgmt.bf2.org/profile": "default-profile"
1832+
"cos.bf2.org/profile": "default-profile"
17531833
ConnectorNamespaceEvalCreateExample:
17541834
value:
17551835
name: "MyEvalNamespace"
17561836
annotations:
1757-
"connector_mgmt.bf2.org/profile": "evaluation-profile"
1837+
"cos.bf2.org/profile": "evaluation-profile"
17581838
400CreationExample:
17591839
value:
17601840
id: "103"

packages/connector-management-sdk/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ Class | Method | HTTP request | Description
130130
*ConnectorNamespacesApi* | [**listConnectorNamespaces**](docs/ConnectorNamespacesApi.md#listConnectorNamespaces) | **GET** /api/connector_mgmt/v1/kafka_connector_namespaces | Returns a list of connector namespaces
131131
*ConnectorServiceApi* | [**getVersionMetadata**](docs/ConnectorServiceApi.md#getVersionMetadata) | **GET** /api/connector_mgmt/v1 | Returns the version metadata
132132
*ConnectorTypesApi* | [**getConnectorTypeByID**](docs/ConnectorTypesApi.md#getConnectorTypeByID) | **GET** /api/connector_mgmt/v1/kafka_connector_types/{connector_type_id} | Get a connector type by id
133+
*ConnectorTypesApi* | [**getConnectorTypeLabels**](docs/ConnectorTypesApi.md#getConnectorTypeLabels) | **GET** /api/connector_mgmt/v1/kafka_connector_types/labels | Returns a list of connector type labels
133134
*ConnectorTypesApi* | [**getConnectorTypes**](docs/ConnectorTypesApi.md#getConnectorTypes) | **GET** /api/connector_mgmt/v1/kafka_connector_types | Returns a list of connector types
134135
*ConnectorsApi* | [**createConnector**](docs/ConnectorsApi.md#createConnector) | **POST** /api/connector_mgmt/v1/kafka_connectors | Create a new connector
135136
*ConnectorsApi* | [**deleteConnector**](docs/ConnectorsApi.md#deleteConnector) | **DELETE** /api/connector_mgmt/v1/kafka_connectors/{id} | Delete a connector
@@ -181,6 +182,8 @@ Class | Method | HTTP request | Description
181182
- [ConnectorStatusStatus](docs/ConnectorStatusStatus.md)
182183
- [ConnectorType](docs/ConnectorType.md)
183184
- [ConnectorTypeAllOf](docs/ConnectorTypeAllOf.md)
185+
- [ConnectorTypeLabelCount](docs/ConnectorTypeLabelCount.md)
186+
- [ConnectorTypeLabelCountList](docs/ConnectorTypeLabelCountList.md)
184187
- [ConnectorTypeList](docs/ConnectorTypeList.md)
185188
- [ConnectorTypeListAllOf](docs/ConnectorTypeListAllOf.md)
186189
- [Error](docs/Error.md)

0 commit comments

Comments
 (0)