Skip to content
Snippets Groups Projects
Commit 7d256d28 authored by L. Ellenbeck's avatar L. Ellenbeck
Browse files

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

parent fde73329
Branches Issue/2001-extendAnalyticsLogger
Tags
3 merge requests!23Release: Sprint/2022 05 :robot:,!22Chore: 1.4.0,!20New: Analytics logger function (coscine/issues#2001)
......@@ -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}
*/
......@@ -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}
*/
......@@ -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}
*/
......@@ -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
......
......@@ -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).
......@@ -18,7 +18,7 @@ import { Configuration } from "./configuration";
// @ts-ignore
import globalAxios, { AxiosPromise, AxiosInstance } from 'axios';
export const BASE_PATH = "https://d-sp23.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Project".replace(/\/+$/, "");
export const BASE_PATH = "https://d-sp12.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Project".replace(/\/+$/, "");
/**
*
......
......@@ -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).
......
......@@ -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).
......
......@@ -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).
......
import implementations from './apis';
import instance from './axios-basic';
export { implementations as apiImplementations, instance as axiosInstance };
const apis = implementations(instance);
export const ActivatedFeaturesApi = apis.ActivatedFeaturesApi;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment