Skip to content

Commit

Permalink
feat: RHOSE API SDK changes (#497)
Browse files Browse the repository at this point in the history
  • Loading branch information
wtrocki authored Aug 8, 2022
1 parent e554d44 commit 03a8bd1
Show file tree
Hide file tree
Showing 27 changed files with 514 additions and 1,279 deletions.
1,049 changes: 0 additions & 1,049 deletions .openapi/smartevents-mgmt.yaml

This file was deleted.

159 changes: 125 additions & 34 deletions packages/smart-events-management-sdk/src/generated/api/bridges-api.ts

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
import { CloudProviderListResponse } from '../model';
// @ts-ignore
import { CloudRegionListResponse } from '../model';
// @ts-ignore
import { ErrorsList } from '../model';
/**
* CloudProvidersApi - axios parameter creator
* @export
Expand All @@ -37,9 +39,9 @@ export const CloudProvidersApiAxiosParamCreator = function (configuration?: Conf
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
cloudProviderAPIGetCloudProvider: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
getCloudProvider: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists('cloudProviderAPIGetCloudProvider', 'id', id)
assertParamExists('getCloudProvider', 'id', id)
const localVarPath = `/api/smartevents_mgmt/v1/cloud_providers/{id}`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
Expand Down Expand Up @@ -73,9 +75,9 @@ export const CloudProvidersApiAxiosParamCreator = function (configuration?: Conf
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
cloudProviderAPIListCloudProviderRegions: async (id: string, page?: number, size?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
listCloudProviderRegions: async (id: string, page?: number, size?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists('cloudProviderAPIListCloudProviderRegions', 'id', id)
assertParamExists('listCloudProviderRegions', 'id', id)
const localVarPath = `/api/smartevents_mgmt/v1/cloud_providers/{id}/regions`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
Expand Down Expand Up @@ -116,7 +118,7 @@ export const CloudProvidersApiAxiosParamCreator = function (configuration?: Conf
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
cloudProviderAPIListCloudProviders: async (page?: number, size?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
listCloudProviders: async (page?: number, size?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/api/smartevents_mgmt/v1/cloud_providers`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
Expand Down Expand Up @@ -165,8 +167,8 @@ export const CloudProvidersApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async cloudProviderAPIGetCloudProvider(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CloudProviderListResponse>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.cloudProviderAPIGetCloudProvider(id, options);
async getCloudProvider(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CloudProviderListResponse>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getCloudProvider(id, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
Expand All @@ -178,8 +180,8 @@ export const CloudProvidersApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async cloudProviderAPIListCloudProviderRegions(id: string, page?: number, size?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CloudRegionListResponse>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.cloudProviderAPIListCloudProviderRegions(id, page, size, options);
async listCloudProviderRegions(id: string, page?: number, size?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CloudRegionListResponse>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.listCloudProviderRegions(id, page, size, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
Expand All @@ -190,8 +192,8 @@ export const CloudProvidersApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async cloudProviderAPIListCloudProviders(page?: number, size?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CloudProviderListResponse>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.cloudProviderAPIListCloudProviders(page, size, options);
async listCloudProviders(page?: number, size?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CloudProviderListResponse>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.listCloudProviders(page, size, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
}
Expand All @@ -211,8 +213,8 @@ export const CloudProvidersApiFactory = function (configuration?: Configuration,
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
cloudProviderAPIGetCloudProvider(id: string, options?: any): AxiosPromise<CloudProviderListResponse> {
return localVarFp.cloudProviderAPIGetCloudProvider(id, options).then((request) => request(axios, basePath));
getCloudProvider(id: string, options?: any): AxiosPromise<CloudProviderListResponse> {
return localVarFp.getCloudProvider(id, options).then((request) => request(axios, basePath));
},
/**
* Returns the list of supported Regions of the specified Cloud Provider.
Expand All @@ -223,8 +225,8 @@ export const CloudProvidersApiFactory = function (configuration?: Configuration,
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
cloudProviderAPIListCloudProviderRegions(id: string, page?: number, size?: number, options?: any): AxiosPromise<CloudRegionListResponse> {
return localVarFp.cloudProviderAPIListCloudProviderRegions(id, page, size, options).then((request) => request(axios, basePath));
listCloudProviderRegions(id: string, page?: number, size?: number, options?: any): AxiosPromise<CloudRegionListResponse> {
return localVarFp.listCloudProviderRegions(id, page, size, options).then((request) => request(axios, basePath));
},
/**
* Returns the list of supported Cloud Providers.
Expand All @@ -234,8 +236,8 @@ export const CloudProvidersApiFactory = function (configuration?: Configuration,
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
cloudProviderAPIListCloudProviders(page?: number, size?: number, options?: any): AxiosPromise<CloudProviderListResponse> {
return localVarFp.cloudProviderAPIListCloudProviders(page, size, options).then((request) => request(axios, basePath));
listCloudProviders(page?: number, size?: number, options?: any): AxiosPromise<CloudProviderListResponse> {
return localVarFp.listCloudProviders(page, size, options).then((request) => request(axios, basePath));
},
};
};
Expand All @@ -254,7 +256,7 @@ export interface CloudProvidersApiInterface {
* @throws {RequiredError}
* @memberof CloudProvidersApiInterface
*/
cloudProviderAPIGetCloudProvider(id: string, options?: AxiosRequestConfig): AxiosPromise<CloudProviderListResponse>;
getCloudProvider(id: string, options?: AxiosRequestConfig): AxiosPromise<CloudProviderListResponse>;

/**
* Returns the list of supported Regions of the specified Cloud Provider.
Expand All @@ -266,7 +268,7 @@ export interface CloudProvidersApiInterface {
* @throws {RequiredError}
* @memberof CloudProvidersApiInterface
*/
cloudProviderAPIListCloudProviderRegions(id: string, page?: number, size?: number, options?: AxiosRequestConfig): AxiosPromise<CloudRegionListResponse>;
listCloudProviderRegions(id: string, page?: number, size?: number, options?: AxiosRequestConfig): AxiosPromise<CloudRegionListResponse>;

/**
* Returns the list of supported Cloud Providers.
Expand All @@ -277,7 +279,7 @@ export interface CloudProvidersApiInterface {
* @throws {RequiredError}
* @memberof CloudProvidersApiInterface
*/
cloudProviderAPIListCloudProviders(page?: number, size?: number, options?: AxiosRequestConfig): AxiosPromise<CloudProviderListResponse>;
listCloudProviders(page?: number, size?: number, options?: AxiosRequestConfig): AxiosPromise<CloudProviderListResponse>;

}

Expand All @@ -296,8 +298,8 @@ export class CloudProvidersApi extends BaseAPI implements CloudProvidersApiInter
* @throws {RequiredError}
* @memberof CloudProvidersApi
*/
public cloudProviderAPIGetCloudProvider(id: string, options?: AxiosRequestConfig) {
return CloudProvidersApiFp(this.configuration).cloudProviderAPIGetCloudProvider(id, options).then((request) => request(this.axios, this.basePath));
public getCloudProvider(id: string, options?: AxiosRequestConfig) {
return CloudProvidersApiFp(this.configuration).getCloudProvider(id, options).then((request) => request(this.axios, this.basePath));
}

/**
Expand All @@ -310,8 +312,8 @@ export class CloudProvidersApi extends BaseAPI implements CloudProvidersApiInter
* @throws {RequiredError}
* @memberof CloudProvidersApi
*/
public cloudProviderAPIListCloudProviderRegions(id: string, page?: number, size?: number, options?: AxiosRequestConfig) {
return CloudProvidersApiFp(this.configuration).cloudProviderAPIListCloudProviderRegions(id, page, size, options).then((request) => request(this.axios, this.basePath));
public listCloudProviderRegions(id: string, page?: number, size?: number, options?: AxiosRequestConfig) {
return CloudProvidersApiFp(this.configuration).listCloudProviderRegions(id, page, size, options).then((request) => request(this.axios, this.basePath));
}

/**
Expand All @@ -323,7 +325,7 @@ export class CloudProvidersApi extends BaseAPI implements CloudProvidersApiInter
* @throws {RequiredError}
* @memberof CloudProvidersApi
*/
public cloudProviderAPIListCloudProviders(page?: number, size?: number, options?: AxiosRequestConfig) {
return CloudProvidersApiFp(this.configuration).cloudProviderAPIListCloudProviders(page, size, options).then((request) => request(this.axios, this.basePath));
public listCloudProviders(page?: number, size?: number, options?: AxiosRequestConfig) {
return CloudProvidersApiFp(this.configuration).listCloudProviders(page, size, options).then((request) => request(this.axios, this.basePath));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
import { BridgeError } from '../model';
// @ts-ignore
import { ErrorListResponse } from '../model';
// @ts-ignore
import { ErrorsList } from '../model';
/**
* ErrorCatalogApi - axios parameter creator
* @export
Expand All @@ -37,9 +39,9 @@ export const ErrorCatalogApiAxiosParamCreator = function (configuration?: Config
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
errorsAPIGetError: async (id: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
getError: async (id: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists('errorsAPIGetError', 'id', id)
assertParamExists('getError', 'id', id)
const localVarPath = `/api/smartevents_mgmt/v1/errors/{id}`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
Expand Down Expand Up @@ -72,7 +74,7 @@ export const ErrorCatalogApiAxiosParamCreator = function (configuration?: Config
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
errorsAPIGetErrors: async (page?: number, size?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
getErrors: async (page?: number, size?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/api/smartevents_mgmt/v1/errors`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
Expand Down Expand Up @@ -121,8 +123,8 @@ export const ErrorCatalogApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async errorsAPIGetError(id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BridgeError>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.errorsAPIGetError(id, options);
async getError(id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BridgeError>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getError(id, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
Expand All @@ -133,8 +135,8 @@ export const ErrorCatalogApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async errorsAPIGetErrors(page?: number, size?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ErrorListResponse>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.errorsAPIGetErrors(page, size, options);
async getErrors(page?: number, size?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ErrorListResponse>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getErrors(page, size, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
}
Expand All @@ -154,8 +156,8 @@ export const ErrorCatalogApiFactory = function (configuration?: Configuration, b
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
errorsAPIGetError(id: number, options?: any): AxiosPromise<BridgeError> {
return localVarFp.errorsAPIGetError(id, options).then((request) => request(axios, basePath));
getError(id: number, options?: any): AxiosPromise<BridgeError> {
return localVarFp.getError(id, options).then((request) => request(axios, basePath));
},
/**
* Get the list of errors from the error catalog.
Expand All @@ -165,8 +167,8 @@ export const ErrorCatalogApiFactory = function (configuration?: Configuration, b
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
errorsAPIGetErrors(page?: number, size?: number, options?: any): AxiosPromise<ErrorListResponse> {
return localVarFp.errorsAPIGetErrors(page, size, options).then((request) => request(axios, basePath));
getErrors(page?: number, size?: number, options?: any): AxiosPromise<ErrorListResponse> {
return localVarFp.getErrors(page, size, options).then((request) => request(axios, basePath));
},
};
};
Expand All @@ -185,7 +187,7 @@ export interface ErrorCatalogApiInterface {
* @throws {RequiredError}
* @memberof ErrorCatalogApiInterface
*/
errorsAPIGetError(id: number, options?: AxiosRequestConfig): AxiosPromise<BridgeError>;
getError(id: number, options?: AxiosRequestConfig): AxiosPromise<BridgeError>;

/**
* Get the list of errors from the error catalog.
Expand All @@ -196,7 +198,7 @@ export interface ErrorCatalogApiInterface {
* @throws {RequiredError}
* @memberof ErrorCatalogApiInterface
*/
errorsAPIGetErrors(page?: number, size?: number, options?: AxiosRequestConfig): AxiosPromise<ErrorListResponse>;
getErrors(page?: number, size?: number, options?: AxiosRequestConfig): AxiosPromise<ErrorListResponse>;

}

Expand All @@ -215,8 +217,8 @@ export class ErrorCatalogApi extends BaseAPI implements ErrorCatalogApiInterface
* @throws {RequiredError}
* @memberof ErrorCatalogApi
*/
public errorsAPIGetError(id: number, options?: AxiosRequestConfig) {
return ErrorCatalogApiFp(this.configuration).errorsAPIGetError(id, options).then((request) => request(this.axios, this.basePath));
public getError(id: number, options?: AxiosRequestConfig) {
return ErrorCatalogApiFp(this.configuration).getError(id, options).then((request) => request(this.axios, this.basePath));
}

/**
Expand All @@ -228,7 +230,7 @@ export class ErrorCatalogApi extends BaseAPI implements ErrorCatalogApiInterface
* @throws {RequiredError}
* @memberof ErrorCatalogApi
*/
public errorsAPIGetErrors(page?: number, size?: number, options?: AxiosRequestConfig) {
return ErrorCatalogApiFp(this.configuration).errorsAPIGetErrors(page, size, options).then((request) => request(this.axios, this.basePath));
public getErrors(page?: number, size?: number, options?: AxiosRequestConfig) {
return ErrorCatalogApiFp(this.configuration).getErrors(page, size, options).then((request) => request(this.axios, this.basePath));
}
}
Loading

0 comments on commit 03a8bd1

Please sign in to comment.