Skip to content

Commit be85e9b

Browse files
chore(all): re-generate OpenAPI client(s) (#266)
Co-authored-by: app-services-ci <app-services-ci@users.noreply.github.com>
1 parent 4adbf24 commit be85e9b

Some content is hidden

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

54 files changed

+1086
-437
lines changed

packages/connector-management-sdk/src/generated/api.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Connector Service Fleet Manager
55
* Connector Service Fleet Manager is a Rest API to manage connectors.
66
*
7-
* The version of the OpenAPI document: 0.0.3
7+
* The version of the OpenAPI document: 0.1.0
88
*
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -15,6 +15,7 @@
1515

1616

1717
export * from './api/connector-clusters-api';
18+
export * from './api/connector-service-api';
1819
export * from './api/connector-types-api';
1920
export * from './api/connectors-api';
2021

packages/connector-management-sdk/src/generated/api/connector-clusters-api.ts

Lines changed: 65 additions & 63 deletions
Large diffs are not rendered by default.
Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* Connector Service Fleet Manager
5+
* Connector Service Fleet Manager is a Rest API to manage connectors.
6+
*
7+
* The version of the OpenAPI document: 0.1.0
8+
*
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
15+
16+
import globalAxios, { AxiosPromise, AxiosInstance } from 'axios';
17+
import { Configuration } from '../configuration';
18+
// Some imports not used depending on template conditions
19+
// @ts-ignore
20+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21+
// @ts-ignore
22+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23+
// @ts-ignore
24+
import { VersionMetadata } from '../model';
25+
/**
26+
* ConnectorServiceApi - axios parameter creator
27+
* @export
28+
*/
29+
export const ConnectorServiceApiAxiosParamCreator = function (configuration?: Configuration) {
30+
return {
31+
/**
32+
* Returns the version metadata
33+
* @summary Returns the version metadata
34+
* @param {*} [options] Override http request option.
35+
* @throws {RequiredError}
36+
*/
37+
getVersionMetadata: async (options: any = {}): Promise<RequestArgs> => {
38+
const localVarPath = `/api/connector_mgmt/v1`;
39+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
40+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
41+
let baseOptions;
42+
if (configuration) {
43+
baseOptions = configuration.baseOptions;
44+
}
45+
46+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
47+
const localVarHeaderParameter = {} as any;
48+
const localVarQueryParameter = {} as any;
49+
50+
51+
52+
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
53+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
54+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
55+
56+
return {
57+
url: toPathString(localVarUrlObj),
58+
options: localVarRequestOptions,
59+
};
60+
},
61+
}
62+
};
63+
64+
/**
65+
* ConnectorServiceApi - functional programming interface
66+
* @export
67+
*/
68+
export const ConnectorServiceApiFp = function(configuration?: Configuration) {
69+
const localVarAxiosParamCreator = ConnectorServiceApiAxiosParamCreator(configuration)
70+
return {
71+
/**
72+
* Returns the version metadata
73+
* @summary Returns the version metadata
74+
* @param {*} [options] Override http request option.
75+
* @throws {RequiredError}
76+
*/
77+
async getVersionMetadata(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VersionMetadata>> {
78+
const localVarAxiosArgs = await localVarAxiosParamCreator.getVersionMetadata(options);
79+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
80+
},
81+
}
82+
};
83+
84+
/**
85+
* ConnectorServiceApi - factory interface
86+
* @export
87+
*/
88+
export const ConnectorServiceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
89+
const localVarFp = ConnectorServiceApiFp(configuration)
90+
return {
91+
/**
92+
* Returns the version metadata
93+
* @summary Returns the version metadata
94+
* @param {*} [options] Override http request option.
95+
* @throws {RequiredError}
96+
*/
97+
getVersionMetadata(options?: any): AxiosPromise<VersionMetadata> {
98+
return localVarFp.getVersionMetadata(options).then((request) => request(axios, basePath));
99+
},
100+
};
101+
};
102+
103+
/**
104+
* ConnectorServiceApi - interface
105+
* @export
106+
* @interface ConnectorServiceApi
107+
*/
108+
export interface ConnectorServiceApiInterface {
109+
/**
110+
* Returns the version metadata
111+
* @summary Returns the version metadata
112+
* @param {*} [options] Override http request option.
113+
* @throws {RequiredError}
114+
* @memberof ConnectorServiceApiInterface
115+
*/
116+
getVersionMetadata(options?: any): AxiosPromise<VersionMetadata>;
117+
118+
}
119+
120+
/**
121+
* ConnectorServiceApi - object-oriented interface
122+
* @export
123+
* @class ConnectorServiceApi
124+
* @extends {BaseAPI}
125+
*/
126+
export class ConnectorServiceApi extends BaseAPI implements ConnectorServiceApiInterface {
127+
/**
128+
* Returns the version metadata
129+
* @summary Returns the version metadata
130+
* @param {*} [options] Override http request option.
131+
* @throws {RequiredError}
132+
* @memberof ConnectorServiceApi
133+
*/
134+
public getVersionMetadata(options?: any) {
135+
return ConnectorServiceApiFp(this.configuration).getVersionMetadata(options).then((request) => request(this.axios, this.basePath));
136+
}
137+
}

packages/connector-management-sdk/src/generated/api/connector-types-api.ts

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Connector Service Fleet Manager
55
* Connector Service Fleet Manager is a Rest API to manage connectors.
66
*
7-
* The version of the OpenAPI document: 0.0.3
7+
* The version of the OpenAPI document: 0.1.0
88
*
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -31,7 +31,7 @@ import { ConnectorTypeList } from '../model';
3131
export const ConnectorTypesApiAxiosParamCreator = function (configuration?: Configuration) {
3232
return {
3333
/**
34-
*
34+
* Get a connector type by id
3535
* @summary Get a connector type by id
3636
* @param {string} connectorTypeId The id of the connector type
3737
* @param {*} [options] Override http request option.
@@ -69,7 +69,7 @@ export const ConnectorTypesApiAxiosParamCreator = function (configuration?: Conf
6969
};
7070
},
7171
/**
72-
*
72+
* Returns a list of connector types
7373
* @summary Returns a list of connector types
7474
* @param {string} [page] Page index
7575
* @param {string} [size] Number of items in each page
@@ -78,7 +78,7 @@ export const ConnectorTypesApiAxiosParamCreator = function (configuration?: Conf
7878
* @param {*} [options] Override http request option.
7979
* @throws {RequiredError}
8080
*/
81-
listConnectorTypes: async (page?: string, size?: string, orderBy?: string, search?: string, options: any = {}): Promise<RequestArgs> => {
81+
getConnectorTypes: async (page?: string, size?: string, orderBy?: string, search?: string, options: any = {}): Promise<RequestArgs> => {
8282
const localVarPath = `/api/connector_mgmt/v1/kafka_connector_types`;
8383
// use dummy base URL string because the URL constructor only accepts absolute URLs.
8484
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -133,7 +133,7 @@ export const ConnectorTypesApiFp = function(configuration?: Configuration) {
133133
const localVarAxiosParamCreator = ConnectorTypesApiAxiosParamCreator(configuration)
134134
return {
135135
/**
136-
*
136+
* Get a connector type by id
137137
* @summary Get a connector type by id
138138
* @param {string} connectorTypeId The id of the connector type
139139
* @param {*} [options] Override http request option.
@@ -144,7 +144,7 @@ export const ConnectorTypesApiFp = function(configuration?: Configuration) {
144144
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
145145
},
146146
/**
147-
*
147+
* Returns a list of connector types
148148
* @summary Returns a list of connector types
149149
* @param {string} [page] Page index
150150
* @param {string} [size] Number of items in each page
@@ -153,8 +153,8 @@ export const ConnectorTypesApiFp = function(configuration?: Configuration) {
153153
* @param {*} [options] Override http request option.
154154
* @throws {RequiredError}
155155
*/
156-
async listConnectorTypes(page?: string, size?: string, orderBy?: string, search?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConnectorTypeList>> {
157-
const localVarAxiosArgs = await localVarAxiosParamCreator.listConnectorTypes(page, size, orderBy, search, options);
156+
async getConnectorTypes(page?: string, size?: string, orderBy?: string, search?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConnectorTypeList>> {
157+
const localVarAxiosArgs = await localVarAxiosParamCreator.getConnectorTypes(page, size, orderBy, search, options);
158158
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
159159
},
160160
}
@@ -168,7 +168,7 @@ export const ConnectorTypesApiFactory = function (configuration?: Configuration,
168168
const localVarFp = ConnectorTypesApiFp(configuration)
169169
return {
170170
/**
171-
*
171+
* Get a connector type by id
172172
* @summary Get a connector type by id
173173
* @param {string} connectorTypeId The id of the connector type
174174
* @param {*} [options] Override http request option.
@@ -178,7 +178,7 @@ export const ConnectorTypesApiFactory = function (configuration?: Configuration,
178178
return localVarFp.getConnectorTypeByID(connectorTypeId, options).then((request) => request(axios, basePath));
179179
},
180180
/**
181-
*
181+
* Returns a list of connector types
182182
* @summary Returns a list of connector types
183183
* @param {string} [page] Page index
184184
* @param {string} [size] Number of items in each page
@@ -187,8 +187,8 @@ export const ConnectorTypesApiFactory = function (configuration?: Configuration,
187187
* @param {*} [options] Override http request option.
188188
* @throws {RequiredError}
189189
*/
190-
listConnectorTypes(page?: string, size?: string, orderBy?: string, search?: string, options?: any): AxiosPromise<ConnectorTypeList> {
191-
return localVarFp.listConnectorTypes(page, size, orderBy, search, options).then((request) => request(axios, basePath));
190+
getConnectorTypes(page?: string, size?: string, orderBy?: string, search?: string, options?: any): AxiosPromise<ConnectorTypeList> {
191+
return localVarFp.getConnectorTypes(page, size, orderBy, search, options).then((request) => request(axios, basePath));
192192
},
193193
};
194194
};
@@ -200,7 +200,7 @@ export const ConnectorTypesApiFactory = function (configuration?: Configuration,
200200
*/
201201
export interface ConnectorTypesApiInterface {
202202
/**
203-
*
203+
* Get a connector type by id
204204
* @summary Get a connector type by id
205205
* @param {string} connectorTypeId The id of the connector type
206206
* @param {*} [options] Override http request option.
@@ -210,7 +210,7 @@ export interface ConnectorTypesApiInterface {
210210
getConnectorTypeByID(connectorTypeId: string, options?: any): AxiosPromise<ConnectorType>;
211211

212212
/**
213-
*
213+
* Returns a list of connector types
214214
* @summary Returns a list of connector types
215215
* @param {string} [page] Page index
216216
* @param {string} [size] Number of items in each page
@@ -220,7 +220,7 @@ export interface ConnectorTypesApiInterface {
220220
* @throws {RequiredError}
221221
* @memberof ConnectorTypesApiInterface
222222
*/
223-
listConnectorTypes(page?: string, size?: string, orderBy?: string, search?: string, options?: any): AxiosPromise<ConnectorTypeList>;
223+
getConnectorTypes(page?: string, size?: string, orderBy?: string, search?: string, options?: any): AxiosPromise<ConnectorTypeList>;
224224

225225
}
226226

@@ -232,7 +232,7 @@ export interface ConnectorTypesApiInterface {
232232
*/
233233
export class ConnectorTypesApi extends BaseAPI implements ConnectorTypesApiInterface {
234234
/**
235-
*
235+
* Get a connector type by id
236236
* @summary Get a connector type by id
237237
* @param {string} connectorTypeId The id of the connector type
238238
* @param {*} [options] Override http request option.
@@ -244,7 +244,7 @@ export class ConnectorTypesApi extends BaseAPI implements ConnectorTypesApiInter
244244
}
245245

246246
/**
247-
*
247+
* Returns a list of connector types
248248
* @summary Returns a list of connector types
249249
* @param {string} [page] Page index
250250
* @param {string} [size] Number of items in each page
@@ -254,7 +254,7 @@ export class ConnectorTypesApi extends BaseAPI implements ConnectorTypesApiInter
254254
* @throws {RequiredError}
255255
* @memberof ConnectorTypesApi
256256
*/
257-
public listConnectorTypes(page?: string, size?: string, orderBy?: string, search?: string, options?: any) {
258-
return ConnectorTypesApiFp(this.configuration).listConnectorTypes(page, size, orderBy, search, options).then((request) => request(this.axios, this.basePath));
257+
public getConnectorTypes(page?: string, size?: string, orderBy?: string, search?: string, options?: any) {
258+
return ConnectorTypesApiFp(this.configuration).getConnectorTypes(page, size, orderBy, search, options).then((request) => request(this.axios, this.basePath));
259259
}
260260
}

0 commit comments

Comments
 (0)