Skip to content

Commit 1577154

Browse files
committed
BREAKING(registry-mgmt) - change id of registry from integer to string
1 parent 7018696 commit 1577154

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

packages/registry-management-sdk/src/generated/api/registries-api.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ export const RegistriesApiAxiosParamCreator = function (configuration?: Configur
7575
/**
7676
* Deletes an existing `Registry`.
7777
* @summary Delete a Registry
78-
* @param {number} id A unique identifier for a `Registry`.
78+
* @param {string} id A unique identifier for a `Registry`.
7979
* @param {*} [options] Override http request option.
8080
* @throws {RequiredError}
8181
*/
82-
deleteRegistry: async (id: number, options: any = {}): Promise<RequestArgs> => {
82+
deleteRegistry: async (id: string, options: any = {}): Promise<RequestArgs> => {
8383
// verify required parameter 'id' is not null or undefined
8484
assertParamExists('deleteRegistry', 'id', id)
8585
const localVarPath = `/api/serviceregistry_mgmt/v1/{id}`
@@ -167,11 +167,11 @@ export const RegistriesApiAxiosParamCreator = function (configuration?: Configur
167167
/**
168168
* Gets the details of a single instance of a `Registry`.
169169
* @summary Get a Registry
170-
* @param {number} id A unique identifier for a &#x60;Registry&#x60;.
170+
* @param {string} id A unique identifier for a &#x60;Registry&#x60;.
171171
* @param {*} [options] Override http request option.
172172
* @throws {RequiredError}
173173
*/
174-
getRegistry: async (id: number, options: any = {}): Promise<RequestArgs> => {
174+
getRegistry: async (id: string, options: any = {}): Promise<RequestArgs> => {
175175
// verify required parameter 'id' is not null or undefined
176176
assertParamExists('getRegistry', 'id', id)
177177
const localVarPath = `/api/serviceregistry_mgmt/v1/{id}`
@@ -226,11 +226,11 @@ export const RegistriesApiFp = function(configuration?: Configuration) {
226226
/**
227227
* Deletes an existing `Registry`.
228228
* @summary Delete a Registry
229-
* @param {number} id A unique identifier for a &#x60;Registry&#x60;.
229+
* @param {string} id A unique identifier for a &#x60;Registry&#x60;.
230230
* @param {*} [options] Override http request option.
231231
* @throws {RequiredError}
232232
*/
233-
async deleteRegistry(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
233+
async deleteRegistry(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
234234
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRegistry(id, options);
235235
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
236236
},
@@ -251,11 +251,11 @@ export const RegistriesApiFp = function(configuration?: Configuration) {
251251
/**
252252
* Gets the details of a single instance of a `Registry`.
253253
* @summary Get a Registry
254-
* @param {number} id A unique identifier for a &#x60;Registry&#x60;.
254+
* @param {string} id A unique identifier for a &#x60;Registry&#x60;.
255255
* @param {*} [options] Override http request option.
256256
* @throws {RequiredError}
257257
*/
258-
async getRegistry(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Registry>> {
258+
async getRegistry(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Registry>> {
259259
const localVarAxiosArgs = await localVarAxiosParamCreator.getRegistry(id, options);
260260
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
261261
},
@@ -282,11 +282,11 @@ export const RegistriesApiFactory = function (configuration?: Configuration, bas
282282
/**
283283
* Deletes an existing `Registry`.
284284
* @summary Delete a Registry
285-
* @param {number} id A unique identifier for a &#x60;Registry&#x60;.
285+
* @param {string} id A unique identifier for a &#x60;Registry&#x60;.
286286
* @param {*} [options] Override http request option.
287287
* @throws {RequiredError}
288288
*/
289-
deleteRegistry(id: number, options?: any): AxiosPromise<void> {
289+
deleteRegistry(id: string, options?: any): AxiosPromise<void> {
290290
return localVarFp.deleteRegistry(id, options).then((request) => request(axios, basePath));
291291
},
292292
/**
@@ -305,11 +305,11 @@ export const RegistriesApiFactory = function (configuration?: Configuration, bas
305305
/**
306306
* Gets the details of a single instance of a `Registry`.
307307
* @summary Get a Registry
308-
* @param {number} id A unique identifier for a &#x60;Registry&#x60;.
308+
* @param {string} id A unique identifier for a &#x60;Registry&#x60;.
309309
* @param {*} [options] Override http request option.
310310
* @throws {RequiredError}
311311
*/
312-
getRegistry(id: number, options?: any): AxiosPromise<Registry> {
312+
getRegistry(id: string, options?: any): AxiosPromise<Registry> {
313313
return localVarFp.getRegistry(id, options).then((request) => request(axios, basePath));
314314
},
315315
};
@@ -334,12 +334,12 @@ export interface RegistriesApiInterface {
334334
/**
335335
* Deletes an existing `Registry`.
336336
* @summary Delete a Registry
337-
* @param {number} id A unique identifier for a &#x60;Registry&#x60;.
337+
* @param {string} id A unique identifier for a &#x60;Registry&#x60;.
338338
* @param {*} [options] Override http request option.
339339
* @throws {RequiredError}
340340
* @memberof RegistriesApiInterface
341341
*/
342-
deleteRegistry(id: number, options?: any): AxiosPromise<void>;
342+
deleteRegistry(id: string, options?: any): AxiosPromise<void>;
343343

344344
/**
345345
*
@@ -357,12 +357,12 @@ export interface RegistriesApiInterface {
357357
/**
358358
* Gets the details of a single instance of a `Registry`.
359359
* @summary Get a Registry
360-
* @param {number} id A unique identifier for a &#x60;Registry&#x60;.
360+
* @param {string} id A unique identifier for a &#x60;Registry&#x60;.
361361
* @param {*} [options] Override http request option.
362362
* @throws {RequiredError}
363363
* @memberof RegistriesApiInterface
364364
*/
365-
getRegistry(id: number, options?: any): AxiosPromise<Registry>;
365+
getRegistry(id: string, options?: any): AxiosPromise<Registry>;
366366

367367
}
368368

@@ -388,12 +388,12 @@ export class RegistriesApi extends BaseAPI implements RegistriesApiInterface {
388388
/**
389389
* Deletes an existing `Registry`.
390390
* @summary Delete a Registry
391-
* @param {number} id A unique identifier for a &#x60;Registry&#x60;.
391+
* @param {string} id A unique identifier for a &#x60;Registry&#x60;.
392392
* @param {*} [options] Override http request option.
393393
* @throws {RequiredError}
394394
* @memberof RegistriesApi
395395
*/
396-
public deleteRegistry(id: number, options?: any) {
396+
public deleteRegistry(id: string, options?: any) {
397397
return RegistriesApiFp(this.configuration).deleteRegistry(id, options).then((request) => request(this.axios, this.basePath));
398398
}
399399

@@ -415,12 +415,12 @@ export class RegistriesApi extends BaseAPI implements RegistriesApiInterface {
415415
/**
416416
* Gets the details of a single instance of a `Registry`.
417417
* @summary Get a Registry
418-
* @param {number} id A unique identifier for a &#x60;Registry&#x60;.
418+
* @param {string} id A unique identifier for a &#x60;Registry&#x60;.
419419
* @param {*} [options] Override http request option.
420420
* @throws {RequiredError}
421421
* @memberof RegistriesApi
422422
*/
423-
public getRegistry(id: number, options?: any) {
423+
public getRegistry(id: string, options?: any) {
424424
return RegistriesApiFp(this.configuration).getRegistry(id, options).then((request) => request(this.axios, this.basePath));
425425
}
426426
}

0 commit comments

Comments
 (0)