diff --git a/packages/connector-management-sdk/src/generated/api/connector-namespaces-api.ts b/packages/connector-management-sdk/src/generated/api/connector-namespaces-api.ts index c23dc4fd..039f42f2 100644 --- a/packages/connector-management-sdk/src/generated/api/connector-namespaces-api.ts +++ b/packages/connector-management-sdk/src/generated/api/connector-namespaces-api.ts @@ -26,56 +26,12 @@ import { ConnectorNamespace } from '../model'; import { ConnectorNamespaceEvalRequest } from '../model'; // @ts-ignore import { ConnectorNamespaceList } from '../model'; -// @ts-ignore -import { ConnectorNamespacePatchRequest } from '../model'; -// @ts-ignore -import { ConnectorNamespaceRequest } from '../model'; /** * ConnectorNamespacesApi - axios parameter creator * @export */ export const ConnectorNamespacesApiAxiosParamCreator = function (configuration?: Configuration) { return { - /** - * Create a new connector namespace - * @summary Create a new connector namespace - * @param {ConnectorNamespaceRequest} connectorNamespaceRequest Connector namespace data - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createConnectorNamespace: async (connectorNamespaceRequest: ConnectorNamespaceRequest, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'connectorNamespaceRequest' is not null or undefined - assertParamExists('createConnectorNamespace', 'connectorNamespaceRequest', connectorNamespaceRequest) - const localVarPath = `/api/connector_mgmt/v1/kafka_connector_namespaces`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication Bearer required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(connectorNamespaceRequest, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, /** * Create a new evaluation connector namespace * @summary Create a new short lived evaluation connector namespace @@ -116,44 +72,6 @@ export const ConnectorNamespacesApiAxiosParamCreator = function (configuration?: options: localVarRequestOptions, }; }, - /** - * Delete a connector namespace - * @summary Delete a connector namespace - * @param {string} connectorNamespaceId The id of the connector namespace - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteConnectorNamespace: async (connectorNamespaceId: string, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'connectorNamespaceId' is not null or undefined - assertParamExists('deleteConnectorNamespace', 'connectorNamespaceId', connectorNamespaceId) - const localVarPath = `/api/connector_mgmt/v1/kafka_connector_namespaces/{connector_namespace_id}` - .replace(`{${"connector_namespace_id"}}`, encodeURIComponent(String(connectorNamespaceId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication Bearer required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, /** * Get a connector namespace * @summary Get a connector namespace @@ -241,50 +159,6 @@ export const ConnectorNamespacesApiAxiosParamCreator = function (configuration?: let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * udpate a connector namespace - * @summary udpate a connector namespace - * @param {string} connectorNamespaceId The id of the connector namespace - * @param {ConnectorNamespacePatchRequest} connectorNamespacePatchRequest Data to update namespace with - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateConnectorNamespaceById: async (connectorNamespaceId: string, connectorNamespacePatchRequest: ConnectorNamespacePatchRequest, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'connectorNamespaceId' is not null or undefined - assertParamExists('updateConnectorNamespaceById', 'connectorNamespaceId', connectorNamespaceId) - // verify required parameter 'connectorNamespacePatchRequest' is not null or undefined - assertParamExists('updateConnectorNamespaceById', 'connectorNamespacePatchRequest', connectorNamespacePatchRequest) - const localVarPath = `/api/connector_mgmt/v1/kafka_connector_namespaces/{connector_namespace_id}` - .replace(`{${"connector_namespace_id"}}`, encodeURIComponent(String(connectorNamespaceId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication Bearer required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(connectorNamespacePatchRequest, localVarRequestOptions, configuration) - return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, @@ -300,17 +174,6 @@ export const ConnectorNamespacesApiAxiosParamCreator = function (configuration?: export const ConnectorNamespacesApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = ConnectorNamespacesApiAxiosParamCreator(configuration) return { - /** - * Create a new connector namespace - * @summary Create a new connector namespace - * @param {ConnectorNamespaceRequest} connectorNamespaceRequest Connector namespace data - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createConnectorNamespace(connectorNamespaceRequest: ConnectorNamespaceRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createConnectorNamespace(connectorNamespaceRequest, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, /** * Create a new evaluation connector namespace * @summary Create a new short lived evaluation connector namespace @@ -322,17 +185,6 @@ export const ConnectorNamespacesApiFp = function(configuration?: Configuration) const localVarAxiosArgs = await localVarAxiosParamCreator.createEvaluationNamespace(connectorNamespaceEvalRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, - /** - * Delete a connector namespace - * @summary Delete a connector namespace - * @param {string} connectorNamespaceId The id of the connector namespace - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async deleteConnectorNamespace(connectorNamespaceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.deleteConnectorNamespace(connectorNamespaceId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, /** * Get a connector namespace * @summary Get a connector namespace @@ -358,18 +210,6 @@ export const ConnectorNamespacesApiFp = function(configuration?: Configuration) const localVarAxiosArgs = await localVarAxiosParamCreator.listConnectorNamespaces(page, size, orderBy, search, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, - /** - * udpate a connector namespace - * @summary udpate a connector namespace - * @param {string} connectorNamespaceId The id of the connector namespace - * @param {ConnectorNamespacePatchRequest} connectorNamespacePatchRequest Data to update namespace with - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updateConnectorNamespaceById(connectorNamespaceId: string, connectorNamespacePatchRequest: ConnectorNamespacePatchRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateConnectorNamespaceById(connectorNamespaceId, connectorNamespacePatchRequest, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, } }; @@ -380,16 +220,6 @@ export const ConnectorNamespacesApiFp = function(configuration?: Configuration) export const ConnectorNamespacesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = ConnectorNamespacesApiFp(configuration) return { - /** - * Create a new connector namespace - * @summary Create a new connector namespace - * @param {ConnectorNamespaceRequest} connectorNamespaceRequest Connector namespace data - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createConnectorNamespace(connectorNamespaceRequest: ConnectorNamespaceRequest, options?: any): AxiosPromise { - return localVarFp.createConnectorNamespace(connectorNamespaceRequest, options).then((request) => request(axios, basePath)); - }, /** * Create a new evaluation connector namespace * @summary Create a new short lived evaluation connector namespace @@ -400,16 +230,6 @@ export const ConnectorNamespacesApiFactory = function (configuration?: Configura createEvaluationNamespace(connectorNamespaceEvalRequest: ConnectorNamespaceEvalRequest, options?: any): AxiosPromise { return localVarFp.createEvaluationNamespace(connectorNamespaceEvalRequest, options).then((request) => request(axios, basePath)); }, - /** - * Delete a connector namespace - * @summary Delete a connector namespace - * @param {string} connectorNamespaceId The id of the connector namespace - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - deleteConnectorNamespace(connectorNamespaceId: string, options?: any): AxiosPromise { - return localVarFp.deleteConnectorNamespace(connectorNamespaceId, options).then((request) => request(axios, basePath)); - }, /** * Get a connector namespace * @summary Get a connector namespace @@ -433,17 +253,6 @@ export const ConnectorNamespacesApiFactory = function (configuration?: Configura listConnectorNamespaces(page?: string, size?: string, orderBy?: string, search?: string, options?: any): AxiosPromise { return localVarFp.listConnectorNamespaces(page, size, orderBy, search, options).then((request) => request(axios, basePath)); }, - /** - * udpate a connector namespace - * @summary udpate a connector namespace - * @param {string} connectorNamespaceId The id of the connector namespace - * @param {ConnectorNamespacePatchRequest} connectorNamespacePatchRequest Data to update namespace with - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateConnectorNamespaceById(connectorNamespaceId: string, connectorNamespacePatchRequest: ConnectorNamespacePatchRequest, options?: any): AxiosPromise { - return localVarFp.updateConnectorNamespaceById(connectorNamespaceId, connectorNamespacePatchRequest, options).then((request) => request(axios, basePath)); - }, }; }; @@ -453,16 +262,6 @@ export const ConnectorNamespacesApiFactory = function (configuration?: Configura * @interface ConnectorNamespacesApi */ export interface ConnectorNamespacesApiInterface { - /** - * Create a new connector namespace - * @summary Create a new connector namespace - * @param {ConnectorNamespaceRequest} connectorNamespaceRequest Connector namespace data - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ConnectorNamespacesApiInterface - */ - createConnectorNamespace(connectorNamespaceRequest: ConnectorNamespaceRequest, options?: AxiosRequestConfig): AxiosPromise; - /** * Create a new evaluation connector namespace * @summary Create a new short lived evaluation connector namespace @@ -473,16 +272,6 @@ export interface ConnectorNamespacesApiInterface { */ createEvaluationNamespace(connectorNamespaceEvalRequest: ConnectorNamespaceEvalRequest, options?: AxiosRequestConfig): AxiosPromise; - /** - * Delete a connector namespace - * @summary Delete a connector namespace - * @param {string} connectorNamespaceId The id of the connector namespace - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ConnectorNamespacesApiInterface - */ - deleteConnectorNamespace(connectorNamespaceId: string, options?: AxiosRequestConfig): AxiosPromise; - /** * Get a connector namespace * @summary Get a connector namespace @@ -506,17 +295,6 @@ export interface ConnectorNamespacesApiInterface { */ listConnectorNamespaces(page?: string, size?: string, orderBy?: string, search?: string, options?: AxiosRequestConfig): AxiosPromise; - /** - * udpate a connector namespace - * @summary udpate a connector namespace - * @param {string} connectorNamespaceId The id of the connector namespace - * @param {ConnectorNamespacePatchRequest} connectorNamespacePatchRequest Data to update namespace with - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ConnectorNamespacesApiInterface - */ - updateConnectorNamespaceById(connectorNamespaceId: string, connectorNamespacePatchRequest: ConnectorNamespacePatchRequest, options?: AxiosRequestConfig): AxiosPromise; - } /** @@ -526,18 +304,6 @@ export interface ConnectorNamespacesApiInterface { * @extends {BaseAPI} */ export class ConnectorNamespacesApi extends BaseAPI implements ConnectorNamespacesApiInterface { - /** - * Create a new connector namespace - * @summary Create a new connector namespace - * @param {ConnectorNamespaceRequest} connectorNamespaceRequest Connector namespace data - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ConnectorNamespacesApi - */ - public createConnectorNamespace(connectorNamespaceRequest: ConnectorNamespaceRequest, options?: AxiosRequestConfig) { - return ConnectorNamespacesApiFp(this.configuration).createConnectorNamespace(connectorNamespaceRequest, options).then((request) => request(this.axios, this.basePath)); - } - /** * Create a new evaluation connector namespace * @summary Create a new short lived evaluation connector namespace @@ -550,18 +316,6 @@ export class ConnectorNamespacesApi extends BaseAPI implements ConnectorNamespac return ConnectorNamespacesApiFp(this.configuration).createEvaluationNamespace(connectorNamespaceEvalRequest, options).then((request) => request(this.axios, this.basePath)); } - /** - * Delete a connector namespace - * @summary Delete a connector namespace - * @param {string} connectorNamespaceId The id of the connector namespace - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ConnectorNamespacesApi - */ - public deleteConnectorNamespace(connectorNamespaceId: string, options?: AxiosRequestConfig) { - return ConnectorNamespacesApiFp(this.configuration).deleteConnectorNamespace(connectorNamespaceId, options).then((request) => request(this.axios, this.basePath)); - } - /** * Get a connector namespace * @summary Get a connector namespace @@ -588,17 +342,4 @@ export class ConnectorNamespacesApi extends BaseAPI implements ConnectorNamespac public listConnectorNamespaces(page?: string, size?: string, orderBy?: string, search?: string, options?: AxiosRequestConfig) { return ConnectorNamespacesApiFp(this.configuration).listConnectorNamespaces(page, size, orderBy, search, options).then((request) => request(this.axios, this.basePath)); } - - /** - * udpate a connector namespace - * @summary udpate a connector namespace - * @param {string} connectorNamespaceId The id of the connector namespace - * @param {ConnectorNamespacePatchRequest} connectorNamespacePatchRequest Data to update namespace with - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ConnectorNamespacesApi - */ - public updateConnectorNamespaceById(connectorNamespaceId: string, connectorNamespacePatchRequest: ConnectorNamespacePatchRequest, options?: AxiosRequestConfig) { - return ConnectorNamespacesApiFp(this.configuration).updateConnectorNamespaceById(connectorNamespaceId, connectorNamespacePatchRequest, options).then((request) => request(this.axios, this.basePath)); - } } diff --git a/packages/connector-management-sdk/src/generated/model/connector-namespace-request-meta.ts b/packages/connector-management-sdk/src/generated/model/connector-namespace-request-meta.ts index a4fc6f13..5d60aa8b 100644 --- a/packages/connector-management-sdk/src/generated/model/connector-namespace-request-meta.ts +++ b/packages/connector-management-sdk/src/generated/model/connector-namespace-request-meta.ts @@ -22,7 +22,7 @@ import { ConnectorNamespaceRequestMetaAnnotations } from './connector-namespace- */ export interface ConnectorNamespaceRequestMeta { /** - * + * 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. * @type {string} * @memberof ConnectorNamespaceRequestMeta */ diff --git a/packages/connector-management-sdk/src/generated/model/connector-namespace-state.ts b/packages/connector-management-sdk/src/generated/model/connector-namespace-state.ts index 51d45561..d2a514a8 100644 --- a/packages/connector-management-sdk/src/generated/model/connector-namespace-state.ts +++ b/packages/connector-management-sdk/src/generated/model/connector-namespace-state.ts @@ -23,7 +23,8 @@ export const ConnectorNamespaceState = { Disconnected: 'disconnected', Ready: 'ready', - Deleting: 'deleting' + Deleting: 'deleting', + Deleted: 'deleted' } as const; export type ConnectorNamespaceState = typeof ConnectorNamespaceState[keyof typeof ConnectorNamespaceState]; diff --git a/packages/connector-management-sdk/src/generated/model/connector-request-meta.ts b/packages/connector-management-sdk/src/generated/model/connector-request-meta.ts index 5b7bca75..48c17fd2 100644 --- a/packages/connector-management-sdk/src/generated/model/connector-request-meta.ts +++ b/packages/connector-management-sdk/src/generated/model/connector-request-meta.ts @@ -39,7 +39,7 @@ export interface ConnectorRequestMeta { * @type {string} * @memberof ConnectorRequestMeta */ - 'namespace_id'?: string; + 'namespace_id': string; /** * * @type {Channel}