-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge(1139): merge from main, refs: #1139
- Loading branch information
Showing
40 changed files
with
1,329 additions
and
98 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
143 changes: 143 additions & 0 deletions
143
client-code-gen/gen/admin-management-api/api/admin-user-accesses-api.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* Forest Access Management - FAM - Admin Management API | ||
* Forest Access Management Admin Management API used by the Forest Access Management application to define admin access to forest applications. | ||
* | ||
* The version of the OpenAPI document: 0.0.1 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
|
||
import type { Configuration } from '../configuration'; | ||
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; | ||
import globalAxios from 'axios'; | ||
// Some imports not used depending on template conditions | ||
// @ts-ignore | ||
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; | ||
// @ts-ignore | ||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; | ||
// @ts-ignore | ||
import { AdminUserAccessResponse } from '../model'; | ||
/** | ||
* AdminUserAccessesApi - axios parameter creator | ||
* @export | ||
*/ | ||
export const AdminUserAccessesApiAxiosParamCreator = function (configuration?: Configuration) { | ||
return { | ||
/** | ||
* Access privilege for logged on admin user for what applications/roles(scoped) the user can grant. | ||
* @summary Admin User Access Privilege | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
adminUserAccessPrivilege: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
const localVarPath = `/admin-user-accesses`; | ||
// 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 6jfveou69mgford233or30hmta required | ||
// oauth required | ||
await setOAuthToObject(localVarHeaderParameter, "6jfveou69mgford233or30hmta", [], configuration) | ||
|
||
|
||
|
||
setSearchParams(localVarUrlObj, localVarQueryParameter); | ||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; | ||
|
||
return { | ||
url: toPathString(localVarUrlObj), | ||
options: localVarRequestOptions, | ||
}; | ||
}, | ||
} | ||
}; | ||
|
||
/** | ||
* AdminUserAccessesApi - functional programming interface | ||
* @export | ||
*/ | ||
export const AdminUserAccessesApiFp = function(configuration?: Configuration) { | ||
const localVarAxiosParamCreator = AdminUserAccessesApiAxiosParamCreator(configuration) | ||
return { | ||
/** | ||
* Access privilege for logged on admin user for what applications/roles(scoped) the user can grant. | ||
* @summary Admin User Access Privilege | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async adminUserAccessPrivilege(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminUserAccessResponse>> { | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.adminUserAccessPrivilege(options); | ||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
}, | ||
} | ||
}; | ||
|
||
/** | ||
* AdminUserAccessesApi - factory interface | ||
* @export | ||
*/ | ||
export const AdminUserAccessesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { | ||
const localVarFp = AdminUserAccessesApiFp(configuration) | ||
return { | ||
/** | ||
* Access privilege for logged on admin user for what applications/roles(scoped) the user can grant. | ||
* @summary Admin User Access Privilege | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
adminUserAccessPrivilege(options?: any): AxiosPromise<AdminUserAccessResponse> { | ||
return localVarFp.adminUserAccessPrivilege(options).then((request) => request(axios, basePath)); | ||
}, | ||
}; | ||
}; | ||
|
||
/** | ||
* AdminUserAccessesApi - interface | ||
* @export | ||
* @interface AdminUserAccessesApi | ||
*/ | ||
export interface AdminUserAccessesApiInterface { | ||
/** | ||
* Access privilege for logged on admin user for what applications/roles(scoped) the user can grant. | ||
* @summary Admin User Access Privilege | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof AdminUserAccessesApiInterface | ||
*/ | ||
adminUserAccessPrivilege(options?: AxiosRequestConfig): AxiosPromise<AdminUserAccessResponse>; | ||
|
||
} | ||
|
||
/** | ||
* AdminUserAccessesApi - object-oriented interface | ||
* @export | ||
* @class AdminUserAccessesApi | ||
* @extends {BaseAPI} | ||
*/ | ||
export class AdminUserAccessesApi extends BaseAPI implements AdminUserAccessesApiInterface { | ||
/** | ||
* Access privilege for logged on admin user for what applications/roles(scoped) the user can grant. | ||
* @summary Admin User Access Privilege | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof AdminUserAccessesApi | ||
*/ | ||
public adminUserAccessPrivilege(options?: AxiosRequestConfig) { | ||
return AdminUserAccessesApiFp(this.configuration).adminUserAccessPrivilege(options).then((request) => request(this.axios, this.basePath)); | ||
} | ||
} | ||
|
Oops, something went wrong.