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

Migrate scaffolding form to use Scaffolding Service proxy via sidecar #879

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .versions/ide-sidecar.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.134.1
v0.139.0
159 changes: 93 additions & 66 deletions src/clients/sidecar-openapi-specs/sidecar.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,23 @@ components:
type: array
items:
$ref: "#/components/schemas/Error"
GlobalObjectReference:
required:
- id
type: object
properties:
id:
maxLength: 255
minLength: 1
type: string
related:
format: uri
minLength: 1
type: string
resource_name:
format: uri
minLength: 1
type: string
Instant:
format: date-time
type: string
Expand Down Expand Up @@ -934,31 +951,6 @@ components:
type: string
resource_name:
type: string
OptionProperties:
required:
- display_name
- description
type: object
properties:
display_name:
type: string
description:
type: string
hint:
type: string
format:
type: string
pattern:
type: string
enum:
type: array
items:
type: string
initial_value:
type: string
min_length:
format: int32
type: integer
PartitionConsumeData:
type: object
properties:
Expand Down Expand Up @@ -1052,6 +1044,72 @@ components:
type: string
trust_all_certificates:
type: boolean
ScaffoldV1TemplateOption:
required:
- display_name
- description
type: object
properties:
display_name:
maxLength: 60
type: string
description:
type: string
hint:
type: string
format:
type: string
pattern:
type: string
_enum:
type: array
items:
type: string
initial_value:
type: string
min_length:
format: int32
minimum: 0
type: integer
examples:
type: array
items:
type: string
enum:
type: array
items:
type: string
ScaffoldV1TemplateSpec:
type: object
properties:
name:
maxLength: 253
minLength: 2
pattern: "^[a-z0-9]+[a-z0-9-]{0,251}[a-z0-9]+$"
type: string
display_name:
maxLength: 60
type: string
description:
maxLength: 300
type: string
version:
pattern: "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\\
d*|\\d*[a-zA-Z-] [0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\\
+([0-9a-zA-Z-] +(?:\\.[0-9a-zA-Z-]+)*))?$"
type: string
language:
type: string
tags:
type: array
items:
type: string
options:
type: object
additionalProperties:
$ref: "#/components/schemas/ScaffoldV1TemplateOption"
template_collection:
$ref: "#/components/schemas/GlobalObjectReference"
SchemaRegistryConfig:
description: Schema Registry configuration.
required:
Expand Down Expand Up @@ -1207,7 +1265,7 @@ components:
metadata:
$ref: "#/components/schemas/ObjectMetadata"
spec:
$ref: "#/components/schemas/TemplateManifest"
$ref: "#/components/schemas/ScaffoldV1TemplateSpec"
TemplateList:
required:
- api_version
Expand All @@ -1226,37 +1284,6 @@ components:
type: array
items:
$ref: "#/components/schemas/Template"
TemplateManifest:
required:
- template_api_version
- name
- display_name
- description
- language
- version
- tags
type: object
properties:
template_api_version:
type: string
name:
type: string
display_name:
type: string
description:
type: string
language:
type: string
version:
type: string
tags:
type: array
items:
type: string
options:
type: object
additionalProperties:
$ref: "#/components/schemas/OptionProperties"
TimestampType:
enum:
- NO_TIMESTAMP_TYPE
Expand Down Expand Up @@ -1307,25 +1334,25 @@ components:
HealthResponse:
type: object
properties:
checks:
type: array
items:
$ref: "#/components/schemas/HealthCheck"
status:
enum:
- UP
- DOWN
type: string
checks:
type: array
items:
$ref: "#/components/schemas/HealthCheck"
HealthCheck:
type: object
properties:
status:
enum:
- UP
- DOWN
name:
type: string
data:
type: object
nullable: true
name:
status:
enum:
- UP
- DOWN
type: string
5 changes: 3 additions & 2 deletions src/clients/sidecar/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ models/ConnectionType.ts
models/ConnectionsList.ts
models/ExceededFields.ts
models/Failure.ts
models/GlobalObjectReference.ts
models/HealthCheck.ts
models/HealthResponse.ts
models/JsonNode.ts
Expand All @@ -40,14 +41,15 @@ models/LocalConfig.ts
models/ModelError.ts
models/OAuthCredentials.ts
models/ObjectMetadata.ts
models/OptionProperties.ts
models/PartitionConsumeData.ts
models/PartitionConsumeRecord.ts
models/PartitionConsumeRecordHeader.ts
models/PartitionOffset.ts
models/Preferences.ts
models/PreferencesMetadata.ts
models/PreferencesSpec.ts
models/ScaffoldV1TemplateOption.ts
models/ScaffoldV1TemplateSpec.ts
models/SchemaRegistryConfig.ts
models/SchemaRegistryConfigCredentials.ts
models/SchemaRegistryStatus.ts
Expand All @@ -60,7 +62,6 @@ models/StoreType.ts
models/TLSConfig.ts
models/Template.ts
models/TemplateList.ts
models/TemplateManifest.ts
models/TimestampType.ts
models/TrustStore.ts
models/UserInfo.ts
Expand Down
85 changes: 85 additions & 0 deletions src/clients/sidecar/models/GlobalObjectReference.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
/* tslint:disable */
/* eslint-disable */
/**
* Confluent ide-sidecar API
* API for the Confluent ide-sidecar, part of Confluent for VS Code
*
* The version of the OpenAPI document: 1.0.1
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

import { mapValues } from "../runtime";
/**
*
* @export
* @interface GlobalObjectReference
*/
export interface GlobalObjectReference {
/**
*
* @type {string}
* @memberof GlobalObjectReference
*/
id: string;
/**
*
* @type {string}
* @memberof GlobalObjectReference
*/
related?: string;
/**
*
* @type {string}
* @memberof GlobalObjectReference
*/
resource_name?: string;
}

/**
* Check if a given object implements the GlobalObjectReference interface.
*/
export function instanceOfGlobalObjectReference(value: object): value is GlobalObjectReference {
if (!("id" in value) || value["id"] === undefined) return false;
return true;
}

export function GlobalObjectReferenceFromJSON(json: any): GlobalObjectReference {
return GlobalObjectReferenceFromJSONTyped(json, false);
}

export function GlobalObjectReferenceFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): GlobalObjectReference {
if (json == null) {
return json;
}
return {
id: json["id"],
related: json["related"] == null ? undefined : json["related"],
resource_name: json["resource_name"] == null ? undefined : json["resource_name"],
};
}

export function GlobalObjectReferenceToJSON(json: any): GlobalObjectReference {
return GlobalObjectReferenceToJSONTyped(json, false);
}

export function GlobalObjectReferenceToJSONTyped(
value?: GlobalObjectReference | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}

return {
id: value["id"],
related: value["related"],
resource_name: value["resource_name"],
};
}
12 changes: 6 additions & 6 deletions src/clients/sidecar/models/HealthCheck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export interface HealthCheck {
* @type {string}
* @memberof HealthCheck
*/
status?: HealthCheckStatusEnum;
name?: string;
/**
*
* @type {object}
Expand All @@ -36,7 +36,7 @@ export interface HealthCheck {
* @type {string}
* @memberof HealthCheck
*/
name?: string;
status?: HealthCheckStatusEnum;
}

/**
Expand Down Expand Up @@ -65,9 +65,9 @@ export function HealthCheckFromJSONTyped(json: any, ignoreDiscriminator: boolean
return json;
}
return {
status: json["status"] == null ? undefined : json["status"],
data: json["data"] == null ? undefined : json["data"],
name: json["name"] == null ? undefined : json["name"],
data: json["data"] == null ? undefined : json["data"],
status: json["status"] == null ? undefined : json["status"],
};
}

Expand All @@ -84,8 +84,8 @@ export function HealthCheckToJSONTyped(
}

return {
status: value["status"],
data: value["data"],
name: value["name"],
data: value["data"],
status: value["status"],
};
}
Loading