Skip to content
Snippets Groups Projects

New: Analytics logger function (coscine/issues#2001)

6 files
+ 88
20
Compare changes
  • Side-by-side
  • Inline

Files

+ 83
13
@@ -4,7 +4,7 @@
* Coscine.Api.Project
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.4.3
* The version of the OpenAPI document: 2.6.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2196,6 +2196,43 @@ export class LicenseApi extends BaseAPI {
*/
export const ProjectApiAxiosParamCreator = function (configuration?: Configuration) {
return {
/**
*
* @summary Call to analytics logger.
* @param {string} projectId Project id of the project
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
projectCreateApplicationProfile: async (projectId: string, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'projectId' is not null or undefined
assertParamExists('projectCreateApplicationProfile', 'projectId', projectId)
const localVarPath = `/Project/{projectId}/-/create-profile`
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
// 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: 'GET', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
// authentication JWT token required
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
*
* @summary Deletes the selected project
@@ -2272,8 +2309,8 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati
},
/**
*
* @summary This returns the the project if the user has access to it
* @param {string} id Id of the resource
* @summary This returns the project if the user has access to it
* @param {string} id Id of the project
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
@@ -2677,7 +2714,7 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati
},
/**
*
* @summary Updates the selected project
* @summary Updates the selected project
* @param {string} id Id of the resource
* @param {*} [options] Override http request option.
* @throws {RequiredError}
@@ -2769,6 +2806,17 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati
export const ProjectApiFp = function(configuration?: Configuration) {
const localVarAxiosParamCreator = ProjectApiAxiosParamCreator(configuration)
return {
/**
*
* @summary Call to analytics logger.
* @param {string} projectId Project id of the project
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async projectCreateApplicationProfile(projectId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.projectCreateApplicationProfile(projectId, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
*
* @summary Deletes the selected project
@@ -2793,8 +2841,8 @@ export const ProjectApiFp = function(configuration?: Configuration) {
},
/**
*
* @summary This returns the the project if the user has access to it
* @param {string} id Id of the resource
* @summary This returns the project if the user has access to it
* @param {string} id Id of the project
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
@@ -2913,7 +2961,7 @@ export const ProjectApiFp = function(configuration?: Configuration) {
},
/**
*
* @summary Updates the selected project
* @summary Updates the selected project
* @param {string} id Id of the resource
* @param {*} [options] Override http request option.
* @throws {RequiredError}
@@ -2945,6 +2993,16 @@ export const ProjectApiFp = function(configuration?: Configuration) {
export const ProjectApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
const localVarFp = ProjectApiFp(configuration)
return {
/**
*
* @summary Call to analytics logger.
* @param {string} projectId Project id of the project
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
projectCreateApplicationProfile(projectId: string, options?: any): AxiosPromise<any> {
return localVarFp.projectCreateApplicationProfile(projectId, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Deletes the selected project
@@ -2967,8 +3025,8 @@ export const ProjectApiFactory = function (configuration?: Configuration, basePa
},
/**
*
* @summary This returns the the project if the user has access to it
* @param {string} id Id of the resource
* @summary This returns the project if the user has access to it
* @param {string} id Id of the project
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
@@ -3076,7 +3134,7 @@ export const ProjectApiFactory = function (configuration?: Configuration, basePa
},
/**
*
* @summary Updates the selected project
* @summary Updates the selected project
* @param {string} id Id of the resource
* @param {*} [options] Override http request option.
* @throws {RequiredError}
@@ -3106,6 +3164,18 @@ export const ProjectApiFactory = function (configuration?: Configuration, basePa
* @extends {BaseAPI}
*/
export class ProjectApi extends BaseAPI {
/**
*
* @summary Call to analytics logger.
* @param {string} projectId Project id of the project
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ProjectApi
*/
public projectCreateApplicationProfile(projectId: string, options?: any) {
return ProjectApiFp(this.configuration).projectCreateApplicationProfile(projectId, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Deletes the selected project
@@ -3132,8 +3202,8 @@ export class ProjectApi extends BaseAPI {
/**
*
* @summary This returns the the project if the user has access to it
* @param {string} id Id of the resource
* @summary This returns the project if the user has access to it
* @param {string} id Id of the project
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ProjectApi
@@ -3263,7 +3333,7 @@ export class ProjectApi extends BaseAPI {
/**
*
* @summary Updates the selected project
* @summary Updates the selected project
* @param {string} id Id of the resource
* @param {*} [options] Override http request option.
* @throws {RequiredError}
Loading