Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(): automated openapi files update #27

Merged
merged 1 commit into from
Dec 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 22 additions & 7 deletions .openapi/connector_mgmt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1160,6 +1160,12 @@ components:
# Connector Cluster
#

ConnectorResourceAnnotations:
description: Name-value string annotations for resource
type: object
additionalProperties:
type: "string"

ConnectorClusterState:
type: string
enum:
Expand All @@ -1168,9 +1174,12 @@ components:
- deleting

ConnectorClusterRequestMeta:
type: object
properties:
name:
type: string
annotations:
$ref: "#/components/schemas/ConnectorResourceAnnotations"

ConnectorClusterRequest:
description: "Schema for the request to update a data plane cluster's name"
Expand Down Expand Up @@ -1259,6 +1268,7 @@ components:
type: object

ConnectorRequestMeta:
type: object
required:
- name
- connector_type_id
Expand All @@ -1275,6 +1285,9 @@ components:
$ref: "#/components/schemas/Channel"
desired_state:
$ref: "#/components/schemas/ConnectorDesiredState"
annotations:
$ref: "#/components/schemas/ConnectorResourceAnnotations"


ConnectorRequest:
allOf:
Expand Down Expand Up @@ -1353,12 +1366,14 @@ components:
type: array
items:
type: string
annotations:
$ref: "#/components/schemas/ConnectorResourceAnnotations"
featured_rank:
description: Ranking for featured connectors
type: integer
format: int32
capabilities:
description: The capabilities supported by the conenctor
description: The capabilities supported by the connector
type: array
items:
type: string
Expand Down Expand Up @@ -1412,9 +1427,7 @@ components:
pattern: "^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$"
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.
annotations:
type: object
additionalProperties:
type: "string"
$ref: "#/components/schemas/ConnectorResourceAnnotations"

ConnectorNamespaceQuota:
type: object
Expand Down Expand Up @@ -1625,7 +1638,7 @@ components:

* 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, featured_rank
* Connector Types: id, created_at, updated_at, version, name, description, label, channel, featured_rank, pricing_tier
* 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`.
Expand Down Expand Up @@ -1689,6 +1702,8 @@ components:
icon_href: "/api/connector_mgmt/v1/kafka_connector_types/log_sink.png"
labels:
- sink
annotations:
- "cos.bf2.org/name": value
capabilities:
- data_shape
- processors
Expand Down Expand Up @@ -1814,12 +1829,12 @@ components:
name: "MyNamespace"
cluster_id: "9bsv0s7tne7g02gh5g4g"
annotations:
"connector_mgmt.bf2.org/profile": "default-profile"
"cos.bf2.org/profile": "default-profile"
ConnectorNamespaceEvalCreateExample:
value:
name: "MyEvalNamespace"
annotations:
"connector_mgmt.bf2.org/profile": "evaluation-profile"
"cos.bf2.org/profile": "evaluation-profile"
400CreationExample:
value:
id: "103"
Expand Down