qovery-typescript-axios 1.1.260 → 1.1.262
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.ts +301 -0
- package/dist/api.d.ts +164 -0
- package/dist/api.js +230 -0
- package/dist/esm/api.d.ts +164 -0
- package/dist/esm/api.js +230 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -823,6 +823,12 @@ export interface ApplicationGitRepository {
|
|
|
823
823
|
* @memberof ApplicationGitRepository
|
|
824
824
|
*/
|
|
825
825
|
'git_token_id'?: string | null;
|
|
826
|
+
/**
|
|
827
|
+
*
|
|
828
|
+
* @type {string}
|
|
829
|
+
* @memberof ApplicationGitRepository
|
|
830
|
+
*/
|
|
831
|
+
'git_token_name'?: string | null;
|
|
826
832
|
}
|
|
827
833
|
|
|
828
834
|
|
|
@@ -7254,6 +7260,45 @@ export interface GitRepositoryResponseList {
|
|
|
7254
7260
|
*/
|
|
7255
7261
|
'results'?: Array<GitRepository>;
|
|
7256
7262
|
}
|
|
7263
|
+
/**
|
|
7264
|
+
*
|
|
7265
|
+
* @export
|
|
7266
|
+
* @interface GitTokenRequest
|
|
7267
|
+
*/
|
|
7268
|
+
export interface GitTokenRequest {
|
|
7269
|
+
/**
|
|
7270
|
+
*
|
|
7271
|
+
* @type {string}
|
|
7272
|
+
* @memberof GitTokenRequest
|
|
7273
|
+
*/
|
|
7274
|
+
'name': string;
|
|
7275
|
+
/**
|
|
7276
|
+
*
|
|
7277
|
+
* @type {string}
|
|
7278
|
+
* @memberof GitTokenRequest
|
|
7279
|
+
*/
|
|
7280
|
+
'description'?: string;
|
|
7281
|
+
/**
|
|
7282
|
+
*
|
|
7283
|
+
* @type {GitProviderEnum}
|
|
7284
|
+
* @memberof GitTokenRequest
|
|
7285
|
+
*/
|
|
7286
|
+
'type': GitProviderEnum;
|
|
7287
|
+
/**
|
|
7288
|
+
* The token from your git provider side
|
|
7289
|
+
* @type {string}
|
|
7290
|
+
* @memberof GitTokenRequest
|
|
7291
|
+
*/
|
|
7292
|
+
'token': string;
|
|
7293
|
+
/**
|
|
7294
|
+
* Mandatory only for BITBUCKET git provider, to allow us to fetch repositories at creation/edition of a service
|
|
7295
|
+
* @type {string}
|
|
7296
|
+
* @memberof GitTokenRequest
|
|
7297
|
+
*/
|
|
7298
|
+
'workspace'?: string;
|
|
7299
|
+
}
|
|
7300
|
+
|
|
7301
|
+
|
|
7257
7302
|
/**
|
|
7258
7303
|
*
|
|
7259
7304
|
* @export
|
|
@@ -7296,6 +7341,12 @@ export interface GitTokenResponse {
|
|
|
7296
7341
|
* @memberof GitTokenResponse
|
|
7297
7342
|
*/
|
|
7298
7343
|
'type': GitProviderEnum;
|
|
7344
|
+
/**
|
|
7345
|
+
*
|
|
7346
|
+
* @type {string}
|
|
7347
|
+
* @memberof GitTokenResponse
|
|
7348
|
+
*/
|
|
7349
|
+
'expired_at'?: string;
|
|
7299
7350
|
}
|
|
7300
7351
|
|
|
7301
7352
|
|
|
@@ -42958,6 +43009,51 @@ export class OrganizationEventApi extends BaseAPI {
|
|
|
42958
43009
|
*/
|
|
42959
43010
|
export const OrganizationMainCallsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
42960
43011
|
return {
|
|
43012
|
+
/**
|
|
43013
|
+
* Create a new git token to be used as a git provider by a service
|
|
43014
|
+
* @summary Create a git token
|
|
43015
|
+
* @param {string} organizationId Organization ID
|
|
43016
|
+
* @param {GitTokenRequest} [gitTokenRequest]
|
|
43017
|
+
* @param {*} [options] Override http request option.
|
|
43018
|
+
* @throws {RequiredError}
|
|
43019
|
+
*/
|
|
43020
|
+
createGitToken: async (organizationId: string, gitTokenRequest?: GitTokenRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43021
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
43022
|
+
assertParamExists('createGitToken', 'organizationId', organizationId)
|
|
43023
|
+
const localVarPath = `/organization/{organizationId}/gitToken`
|
|
43024
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
43025
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43026
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
43027
|
+
let baseOptions;
|
|
43028
|
+
if (configuration) {
|
|
43029
|
+
baseOptions = configuration.baseOptions;
|
|
43030
|
+
}
|
|
43031
|
+
|
|
43032
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
43033
|
+
const localVarHeaderParameter = {} as any;
|
|
43034
|
+
const localVarQueryParameter = {} as any;
|
|
43035
|
+
|
|
43036
|
+
// authentication ApiKeyAuth required
|
|
43037
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
43038
|
+
|
|
43039
|
+
// authentication bearerAuth required
|
|
43040
|
+
// http bearer authentication required
|
|
43041
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
43042
|
+
|
|
43043
|
+
|
|
43044
|
+
|
|
43045
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
43046
|
+
|
|
43047
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
43048
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
43049
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
43050
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gitTokenRequest, localVarRequestOptions, configuration)
|
|
43051
|
+
|
|
43052
|
+
return {
|
|
43053
|
+
url: toPathString(localVarUrlObj),
|
|
43054
|
+
options: localVarRequestOptions,
|
|
43055
|
+
};
|
|
43056
|
+
},
|
|
42961
43057
|
/**
|
|
42962
43058
|
*
|
|
42963
43059
|
* @summary Create an organization
|
|
@@ -42999,6 +43095,51 @@ export const OrganizationMainCallsApiAxiosParamCreator = function (configuration
|
|
|
42999
43095
|
options: localVarRequestOptions,
|
|
43000
43096
|
};
|
|
43001
43097
|
},
|
|
43098
|
+
/**
|
|
43099
|
+
*
|
|
43100
|
+
* @summary Delete a git token
|
|
43101
|
+
* @param {string} organizationId Organization ID
|
|
43102
|
+
* @param {string} gitTokenId Git Token ID
|
|
43103
|
+
* @param {*} [options] Override http request option.
|
|
43104
|
+
* @throws {RequiredError}
|
|
43105
|
+
*/
|
|
43106
|
+
deleteGitToken: async (organizationId: string, gitTokenId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43107
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
43108
|
+
assertParamExists('deleteGitToken', 'organizationId', organizationId)
|
|
43109
|
+
// verify required parameter 'gitTokenId' is not null or undefined
|
|
43110
|
+
assertParamExists('deleteGitToken', 'gitTokenId', gitTokenId)
|
|
43111
|
+
const localVarPath = `/organization/{organizationId}/gitToken/{gitTokenId}`
|
|
43112
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
43113
|
+
.replace(`{${"gitTokenId"}}`, encodeURIComponent(String(gitTokenId)));
|
|
43114
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43115
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
43116
|
+
let baseOptions;
|
|
43117
|
+
if (configuration) {
|
|
43118
|
+
baseOptions = configuration.baseOptions;
|
|
43119
|
+
}
|
|
43120
|
+
|
|
43121
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
43122
|
+
const localVarHeaderParameter = {} as any;
|
|
43123
|
+
const localVarQueryParameter = {} as any;
|
|
43124
|
+
|
|
43125
|
+
// authentication ApiKeyAuth required
|
|
43126
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
43127
|
+
|
|
43128
|
+
// authentication bearerAuth required
|
|
43129
|
+
// http bearer authentication required
|
|
43130
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
43131
|
+
|
|
43132
|
+
|
|
43133
|
+
|
|
43134
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
43135
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
43136
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
43137
|
+
|
|
43138
|
+
return {
|
|
43139
|
+
url: toPathString(localVarUrlObj),
|
|
43140
|
+
options: localVarRequestOptions,
|
|
43141
|
+
};
|
|
43142
|
+
},
|
|
43002
43143
|
/**
|
|
43003
43144
|
* To delete an organization you must have the admin permission
|
|
43004
43145
|
* @summary Delete an organization
|
|
@@ -43040,6 +43181,55 @@ export const OrganizationMainCallsApiAxiosParamCreator = function (configuration
|
|
|
43040
43181
|
options: localVarRequestOptions,
|
|
43041
43182
|
};
|
|
43042
43183
|
},
|
|
43184
|
+
/**
|
|
43185
|
+
*
|
|
43186
|
+
* @summary Edit a git token
|
|
43187
|
+
* @param {string} organizationId Organization ID
|
|
43188
|
+
* @param {string} gitTokenId Git Token ID
|
|
43189
|
+
* @param {GitTokenRequest} [gitTokenRequest]
|
|
43190
|
+
* @param {*} [options] Override http request option.
|
|
43191
|
+
* @throws {RequiredError}
|
|
43192
|
+
*/
|
|
43193
|
+
editGitToken: async (organizationId: string, gitTokenId: string, gitTokenRequest?: GitTokenRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43194
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
43195
|
+
assertParamExists('editGitToken', 'organizationId', organizationId)
|
|
43196
|
+
// verify required parameter 'gitTokenId' is not null or undefined
|
|
43197
|
+
assertParamExists('editGitToken', 'gitTokenId', gitTokenId)
|
|
43198
|
+
const localVarPath = `/organization/{organizationId}/gitToken/{gitTokenId}`
|
|
43199
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
43200
|
+
.replace(`{${"gitTokenId"}}`, encodeURIComponent(String(gitTokenId)));
|
|
43201
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43202
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
43203
|
+
let baseOptions;
|
|
43204
|
+
if (configuration) {
|
|
43205
|
+
baseOptions = configuration.baseOptions;
|
|
43206
|
+
}
|
|
43207
|
+
|
|
43208
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
43209
|
+
const localVarHeaderParameter = {} as any;
|
|
43210
|
+
const localVarQueryParameter = {} as any;
|
|
43211
|
+
|
|
43212
|
+
// authentication ApiKeyAuth required
|
|
43213
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
43214
|
+
|
|
43215
|
+
// authentication bearerAuth required
|
|
43216
|
+
// http bearer authentication required
|
|
43217
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
43218
|
+
|
|
43219
|
+
|
|
43220
|
+
|
|
43221
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
43222
|
+
|
|
43223
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
43224
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
43225
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
43226
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gitTokenRequest, localVarRequestOptions, configuration)
|
|
43227
|
+
|
|
43228
|
+
return {
|
|
43229
|
+
url: toPathString(localVarUrlObj),
|
|
43230
|
+
options: localVarRequestOptions,
|
|
43231
|
+
};
|
|
43232
|
+
},
|
|
43043
43233
|
/**
|
|
43044
43234
|
* To edit an organization you must have the admin permission
|
|
43045
43235
|
* @summary Edit an organization
|
|
@@ -43255,6 +43445,18 @@ export const OrganizationMainCallsApiAxiosParamCreator = function (configuration
|
|
|
43255
43445
|
export const OrganizationMainCallsApiFp = function(configuration?: Configuration) {
|
|
43256
43446
|
const localVarAxiosParamCreator = OrganizationMainCallsApiAxiosParamCreator(configuration)
|
|
43257
43447
|
return {
|
|
43448
|
+
/**
|
|
43449
|
+
* Create a new git token to be used as a git provider by a service
|
|
43450
|
+
* @summary Create a git token
|
|
43451
|
+
* @param {string} organizationId Organization ID
|
|
43452
|
+
* @param {GitTokenRequest} [gitTokenRequest]
|
|
43453
|
+
* @param {*} [options] Override http request option.
|
|
43454
|
+
* @throws {RequiredError}
|
|
43455
|
+
*/
|
|
43456
|
+
async createGitToken(organizationId: string, gitTokenRequest?: GitTokenRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitTokenResponse>> {
|
|
43457
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createGitToken(organizationId, gitTokenRequest, options);
|
|
43458
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
43459
|
+
},
|
|
43258
43460
|
/**
|
|
43259
43461
|
*
|
|
43260
43462
|
* @summary Create an organization
|
|
@@ -43266,6 +43468,18 @@ export const OrganizationMainCallsApiFp = function(configuration?: Configuration
|
|
|
43266
43468
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createOrganization(organizationRequest, options);
|
|
43267
43469
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
43268
43470
|
},
|
|
43471
|
+
/**
|
|
43472
|
+
*
|
|
43473
|
+
* @summary Delete a git token
|
|
43474
|
+
* @param {string} organizationId Organization ID
|
|
43475
|
+
* @param {string} gitTokenId Git Token ID
|
|
43476
|
+
* @param {*} [options] Override http request option.
|
|
43477
|
+
* @throws {RequiredError}
|
|
43478
|
+
*/
|
|
43479
|
+
async deleteGitToken(organizationId: string, gitTokenId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
43480
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteGitToken(organizationId, gitTokenId, options);
|
|
43481
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
43482
|
+
},
|
|
43269
43483
|
/**
|
|
43270
43484
|
* To delete an organization you must have the admin permission
|
|
43271
43485
|
* @summary Delete an organization
|
|
@@ -43277,6 +43491,19 @@ export const OrganizationMainCallsApiFp = function(configuration?: Configuration
|
|
|
43277
43491
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrganization(organizationId, options);
|
|
43278
43492
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
43279
43493
|
},
|
|
43494
|
+
/**
|
|
43495
|
+
*
|
|
43496
|
+
* @summary Edit a git token
|
|
43497
|
+
* @param {string} organizationId Organization ID
|
|
43498
|
+
* @param {string} gitTokenId Git Token ID
|
|
43499
|
+
* @param {GitTokenRequest} [gitTokenRequest]
|
|
43500
|
+
* @param {*} [options] Override http request option.
|
|
43501
|
+
* @throws {RequiredError}
|
|
43502
|
+
*/
|
|
43503
|
+
async editGitToken(organizationId: string, gitTokenId: string, gitTokenRequest?: GitTokenRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitTokenResponse>> {
|
|
43504
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.editGitToken(organizationId, gitTokenId, gitTokenRequest, options);
|
|
43505
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
43506
|
+
},
|
|
43280
43507
|
/**
|
|
43281
43508
|
* To edit an organization you must have the admin permission
|
|
43282
43509
|
* @summary Edit an organization
|
|
@@ -43342,6 +43569,17 @@ export const OrganizationMainCallsApiFp = function(configuration?: Configuration
|
|
|
43342
43569
|
export const OrganizationMainCallsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
43343
43570
|
const localVarFp = OrganizationMainCallsApiFp(configuration)
|
|
43344
43571
|
return {
|
|
43572
|
+
/**
|
|
43573
|
+
* Create a new git token to be used as a git provider by a service
|
|
43574
|
+
* @summary Create a git token
|
|
43575
|
+
* @param {string} organizationId Organization ID
|
|
43576
|
+
* @param {GitTokenRequest} [gitTokenRequest]
|
|
43577
|
+
* @param {*} [options] Override http request option.
|
|
43578
|
+
* @throws {RequiredError}
|
|
43579
|
+
*/
|
|
43580
|
+
createGitToken(organizationId: string, gitTokenRequest?: GitTokenRequest, options?: any): AxiosPromise<GitTokenResponse> {
|
|
43581
|
+
return localVarFp.createGitToken(organizationId, gitTokenRequest, options).then((request) => request(axios, basePath));
|
|
43582
|
+
},
|
|
43345
43583
|
/**
|
|
43346
43584
|
*
|
|
43347
43585
|
* @summary Create an organization
|
|
@@ -43352,6 +43590,17 @@ export const OrganizationMainCallsApiFactory = function (configuration?: Configu
|
|
|
43352
43590
|
createOrganization(organizationRequest?: OrganizationRequest, options?: any): AxiosPromise<Organization> {
|
|
43353
43591
|
return localVarFp.createOrganization(organizationRequest, options).then((request) => request(axios, basePath));
|
|
43354
43592
|
},
|
|
43593
|
+
/**
|
|
43594
|
+
*
|
|
43595
|
+
* @summary Delete a git token
|
|
43596
|
+
* @param {string} organizationId Organization ID
|
|
43597
|
+
* @param {string} gitTokenId Git Token ID
|
|
43598
|
+
* @param {*} [options] Override http request option.
|
|
43599
|
+
* @throws {RequiredError}
|
|
43600
|
+
*/
|
|
43601
|
+
deleteGitToken(organizationId: string, gitTokenId: string, options?: any): AxiosPromise<void> {
|
|
43602
|
+
return localVarFp.deleteGitToken(organizationId, gitTokenId, options).then((request) => request(axios, basePath));
|
|
43603
|
+
},
|
|
43355
43604
|
/**
|
|
43356
43605
|
* To delete an organization you must have the admin permission
|
|
43357
43606
|
* @summary Delete an organization
|
|
@@ -43362,6 +43611,18 @@ export const OrganizationMainCallsApiFactory = function (configuration?: Configu
|
|
|
43362
43611
|
deleteOrganization(organizationId: string, options?: any): AxiosPromise<void> {
|
|
43363
43612
|
return localVarFp.deleteOrganization(organizationId, options).then((request) => request(axios, basePath));
|
|
43364
43613
|
},
|
|
43614
|
+
/**
|
|
43615
|
+
*
|
|
43616
|
+
* @summary Edit a git token
|
|
43617
|
+
* @param {string} organizationId Organization ID
|
|
43618
|
+
* @param {string} gitTokenId Git Token ID
|
|
43619
|
+
* @param {GitTokenRequest} [gitTokenRequest]
|
|
43620
|
+
* @param {*} [options] Override http request option.
|
|
43621
|
+
* @throws {RequiredError}
|
|
43622
|
+
*/
|
|
43623
|
+
editGitToken(organizationId: string, gitTokenId: string, gitTokenRequest?: GitTokenRequest, options?: any): AxiosPromise<GitTokenResponse> {
|
|
43624
|
+
return localVarFp.editGitToken(organizationId, gitTokenId, gitTokenRequest, options).then((request) => request(axios, basePath));
|
|
43625
|
+
},
|
|
43365
43626
|
/**
|
|
43366
43627
|
* To edit an organization you must have the admin permission
|
|
43367
43628
|
* @summary Edit an organization
|
|
@@ -43422,6 +43683,19 @@ export const OrganizationMainCallsApiFactory = function (configuration?: Configu
|
|
|
43422
43683
|
* @extends {BaseAPI}
|
|
43423
43684
|
*/
|
|
43424
43685
|
export class OrganizationMainCallsApi extends BaseAPI {
|
|
43686
|
+
/**
|
|
43687
|
+
* Create a new git token to be used as a git provider by a service
|
|
43688
|
+
* @summary Create a git token
|
|
43689
|
+
* @param {string} organizationId Organization ID
|
|
43690
|
+
* @param {GitTokenRequest} [gitTokenRequest]
|
|
43691
|
+
* @param {*} [options] Override http request option.
|
|
43692
|
+
* @throws {RequiredError}
|
|
43693
|
+
* @memberof OrganizationMainCallsApi
|
|
43694
|
+
*/
|
|
43695
|
+
public createGitToken(organizationId: string, gitTokenRequest?: GitTokenRequest, options?: AxiosRequestConfig) {
|
|
43696
|
+
return OrganizationMainCallsApiFp(this.configuration).createGitToken(organizationId, gitTokenRequest, options).then((request) => request(this.axios, this.basePath));
|
|
43697
|
+
}
|
|
43698
|
+
|
|
43425
43699
|
/**
|
|
43426
43700
|
*
|
|
43427
43701
|
* @summary Create an organization
|
|
@@ -43434,6 +43708,19 @@ export class OrganizationMainCallsApi extends BaseAPI {
|
|
|
43434
43708
|
return OrganizationMainCallsApiFp(this.configuration).createOrganization(organizationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
43435
43709
|
}
|
|
43436
43710
|
|
|
43711
|
+
/**
|
|
43712
|
+
*
|
|
43713
|
+
* @summary Delete a git token
|
|
43714
|
+
* @param {string} organizationId Organization ID
|
|
43715
|
+
* @param {string} gitTokenId Git Token ID
|
|
43716
|
+
* @param {*} [options] Override http request option.
|
|
43717
|
+
* @throws {RequiredError}
|
|
43718
|
+
* @memberof OrganizationMainCallsApi
|
|
43719
|
+
*/
|
|
43720
|
+
public deleteGitToken(organizationId: string, gitTokenId: string, options?: AxiosRequestConfig) {
|
|
43721
|
+
return OrganizationMainCallsApiFp(this.configuration).deleteGitToken(organizationId, gitTokenId, options).then((request) => request(this.axios, this.basePath));
|
|
43722
|
+
}
|
|
43723
|
+
|
|
43437
43724
|
/**
|
|
43438
43725
|
* To delete an organization you must have the admin permission
|
|
43439
43726
|
* @summary Delete an organization
|
|
@@ -43446,6 +43733,20 @@ export class OrganizationMainCallsApi extends BaseAPI {
|
|
|
43446
43733
|
return OrganizationMainCallsApiFp(this.configuration).deleteOrganization(organizationId, options).then((request) => request(this.axios, this.basePath));
|
|
43447
43734
|
}
|
|
43448
43735
|
|
|
43736
|
+
/**
|
|
43737
|
+
*
|
|
43738
|
+
* @summary Edit a git token
|
|
43739
|
+
* @param {string} organizationId Organization ID
|
|
43740
|
+
* @param {string} gitTokenId Git Token ID
|
|
43741
|
+
* @param {GitTokenRequest} [gitTokenRequest]
|
|
43742
|
+
* @param {*} [options] Override http request option.
|
|
43743
|
+
* @throws {RequiredError}
|
|
43744
|
+
* @memberof OrganizationMainCallsApi
|
|
43745
|
+
*/
|
|
43746
|
+
public editGitToken(organizationId: string, gitTokenId: string, gitTokenRequest?: GitTokenRequest, options?: AxiosRequestConfig) {
|
|
43747
|
+
return OrganizationMainCallsApiFp(this.configuration).editGitToken(organizationId, gitTokenId, gitTokenRequest, options).then((request) => request(this.axios, this.basePath));
|
|
43748
|
+
}
|
|
43749
|
+
|
|
43449
43750
|
/**
|
|
43450
43751
|
* To edit an organization you must have the admin permission
|
|
43451
43752
|
* @summary Edit an organization
|
package/dist/api.d.ts
CHANGED
|
@@ -793,6 +793,12 @@ export interface ApplicationGitRepository {
|
|
|
793
793
|
* @memberof ApplicationGitRepository
|
|
794
794
|
*/
|
|
795
795
|
'git_token_id'?: string | null;
|
|
796
|
+
/**
|
|
797
|
+
*
|
|
798
|
+
* @type {string}
|
|
799
|
+
* @memberof ApplicationGitRepository
|
|
800
|
+
*/
|
|
801
|
+
'git_token_name'?: string | null;
|
|
796
802
|
}
|
|
797
803
|
/**
|
|
798
804
|
*
|
|
@@ -7047,6 +7053,43 @@ export interface GitRepositoryResponseList {
|
|
|
7047
7053
|
*/
|
|
7048
7054
|
'results'?: Array<GitRepository>;
|
|
7049
7055
|
}
|
|
7056
|
+
/**
|
|
7057
|
+
*
|
|
7058
|
+
* @export
|
|
7059
|
+
* @interface GitTokenRequest
|
|
7060
|
+
*/
|
|
7061
|
+
export interface GitTokenRequest {
|
|
7062
|
+
/**
|
|
7063
|
+
*
|
|
7064
|
+
* @type {string}
|
|
7065
|
+
* @memberof GitTokenRequest
|
|
7066
|
+
*/
|
|
7067
|
+
'name': string;
|
|
7068
|
+
/**
|
|
7069
|
+
*
|
|
7070
|
+
* @type {string}
|
|
7071
|
+
* @memberof GitTokenRequest
|
|
7072
|
+
*/
|
|
7073
|
+
'description'?: string;
|
|
7074
|
+
/**
|
|
7075
|
+
*
|
|
7076
|
+
* @type {GitProviderEnum}
|
|
7077
|
+
* @memberof GitTokenRequest
|
|
7078
|
+
*/
|
|
7079
|
+
'type': GitProviderEnum;
|
|
7080
|
+
/**
|
|
7081
|
+
* The token from your git provider side
|
|
7082
|
+
* @type {string}
|
|
7083
|
+
* @memberof GitTokenRequest
|
|
7084
|
+
*/
|
|
7085
|
+
'token': string;
|
|
7086
|
+
/**
|
|
7087
|
+
* Mandatory only for BITBUCKET git provider, to allow us to fetch repositories at creation/edition of a service
|
|
7088
|
+
* @type {string}
|
|
7089
|
+
* @memberof GitTokenRequest
|
|
7090
|
+
*/
|
|
7091
|
+
'workspace'?: string;
|
|
7092
|
+
}
|
|
7050
7093
|
/**
|
|
7051
7094
|
*
|
|
7052
7095
|
* @export
|
|
@@ -7089,6 +7132,12 @@ export interface GitTokenResponse {
|
|
|
7089
7132
|
* @memberof GitTokenResponse
|
|
7090
7133
|
*/
|
|
7091
7134
|
'type': GitProviderEnum;
|
|
7135
|
+
/**
|
|
7136
|
+
*
|
|
7137
|
+
* @type {string}
|
|
7138
|
+
* @memberof GitTokenResponse
|
|
7139
|
+
*/
|
|
7140
|
+
'expired_at'?: string;
|
|
7092
7141
|
}
|
|
7093
7142
|
/**
|
|
7094
7143
|
*
|
|
@@ -26843,6 +26892,15 @@ export declare class OrganizationEventApi extends BaseAPI {
|
|
|
26843
26892
|
* @export
|
|
26844
26893
|
*/
|
|
26845
26894
|
export declare const OrganizationMainCallsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
26895
|
+
/**
|
|
26896
|
+
* Create a new git token to be used as a git provider by a service
|
|
26897
|
+
* @summary Create a git token
|
|
26898
|
+
* @param {string} organizationId Organization ID
|
|
26899
|
+
* @param {GitTokenRequest} [gitTokenRequest]
|
|
26900
|
+
* @param {*} [options] Override http request option.
|
|
26901
|
+
* @throws {RequiredError}
|
|
26902
|
+
*/
|
|
26903
|
+
createGitToken: (organizationId: string, gitTokenRequest?: GitTokenRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
26846
26904
|
/**
|
|
26847
26905
|
*
|
|
26848
26906
|
* @summary Create an organization
|
|
@@ -26851,6 +26909,15 @@ export declare const OrganizationMainCallsApiAxiosParamCreator: (configuration?:
|
|
|
26851
26909
|
* @throws {RequiredError}
|
|
26852
26910
|
*/
|
|
26853
26911
|
createOrganization: (organizationRequest?: OrganizationRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
26912
|
+
/**
|
|
26913
|
+
*
|
|
26914
|
+
* @summary Delete a git token
|
|
26915
|
+
* @param {string} organizationId Organization ID
|
|
26916
|
+
* @param {string} gitTokenId Git Token ID
|
|
26917
|
+
* @param {*} [options] Override http request option.
|
|
26918
|
+
* @throws {RequiredError}
|
|
26919
|
+
*/
|
|
26920
|
+
deleteGitToken: (organizationId: string, gitTokenId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
26854
26921
|
/**
|
|
26855
26922
|
* To delete an organization you must have the admin permission
|
|
26856
26923
|
* @summary Delete an organization
|
|
@@ -26859,6 +26926,16 @@ export declare const OrganizationMainCallsApiAxiosParamCreator: (configuration?:
|
|
|
26859
26926
|
* @throws {RequiredError}
|
|
26860
26927
|
*/
|
|
26861
26928
|
deleteOrganization: (organizationId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
26929
|
+
/**
|
|
26930
|
+
*
|
|
26931
|
+
* @summary Edit a git token
|
|
26932
|
+
* @param {string} organizationId Organization ID
|
|
26933
|
+
* @param {string} gitTokenId Git Token ID
|
|
26934
|
+
* @param {GitTokenRequest} [gitTokenRequest]
|
|
26935
|
+
* @param {*} [options] Override http request option.
|
|
26936
|
+
* @throws {RequiredError}
|
|
26937
|
+
*/
|
|
26938
|
+
editGitToken: (organizationId: string, gitTokenId: string, gitTokenRequest?: GitTokenRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
26862
26939
|
/**
|
|
26863
26940
|
* To edit an organization you must have the admin permission
|
|
26864
26941
|
* @summary Edit an organization
|
|
@@ -26905,6 +26982,15 @@ export declare const OrganizationMainCallsApiAxiosParamCreator: (configuration?:
|
|
|
26905
26982
|
* @export
|
|
26906
26983
|
*/
|
|
26907
26984
|
export declare const OrganizationMainCallsApiFp: (configuration?: Configuration) => {
|
|
26985
|
+
/**
|
|
26986
|
+
* Create a new git token to be used as a git provider by a service
|
|
26987
|
+
* @summary Create a git token
|
|
26988
|
+
* @param {string} organizationId Organization ID
|
|
26989
|
+
* @param {GitTokenRequest} [gitTokenRequest]
|
|
26990
|
+
* @param {*} [options] Override http request option.
|
|
26991
|
+
* @throws {RequiredError}
|
|
26992
|
+
*/
|
|
26993
|
+
createGitToken(organizationId: string, gitTokenRequest?: GitTokenRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitTokenResponse>>;
|
|
26908
26994
|
/**
|
|
26909
26995
|
*
|
|
26910
26996
|
* @summary Create an organization
|
|
@@ -26913,6 +26999,15 @@ export declare const OrganizationMainCallsApiFp: (configuration?: Configuration)
|
|
|
26913
26999
|
* @throws {RequiredError}
|
|
26914
27000
|
*/
|
|
26915
27001
|
createOrganization(organizationRequest?: OrganizationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Organization>>;
|
|
27002
|
+
/**
|
|
27003
|
+
*
|
|
27004
|
+
* @summary Delete a git token
|
|
27005
|
+
* @param {string} organizationId Organization ID
|
|
27006
|
+
* @param {string} gitTokenId Git Token ID
|
|
27007
|
+
* @param {*} [options] Override http request option.
|
|
27008
|
+
* @throws {RequiredError}
|
|
27009
|
+
*/
|
|
27010
|
+
deleteGitToken(organizationId: string, gitTokenId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
26916
27011
|
/**
|
|
26917
27012
|
* To delete an organization you must have the admin permission
|
|
26918
27013
|
* @summary Delete an organization
|
|
@@ -26921,6 +27016,16 @@ export declare const OrganizationMainCallsApiFp: (configuration?: Configuration)
|
|
|
26921
27016
|
* @throws {RequiredError}
|
|
26922
27017
|
*/
|
|
26923
27018
|
deleteOrganization(organizationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
27019
|
+
/**
|
|
27020
|
+
*
|
|
27021
|
+
* @summary Edit a git token
|
|
27022
|
+
* @param {string} organizationId Organization ID
|
|
27023
|
+
* @param {string} gitTokenId Git Token ID
|
|
27024
|
+
* @param {GitTokenRequest} [gitTokenRequest]
|
|
27025
|
+
* @param {*} [options] Override http request option.
|
|
27026
|
+
* @throws {RequiredError}
|
|
27027
|
+
*/
|
|
27028
|
+
editGitToken(organizationId: string, gitTokenId: string, gitTokenRequest?: GitTokenRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitTokenResponse>>;
|
|
26924
27029
|
/**
|
|
26925
27030
|
* To edit an organization you must have the admin permission
|
|
26926
27031
|
* @summary Edit an organization
|
|
@@ -26967,6 +27072,15 @@ export declare const OrganizationMainCallsApiFp: (configuration?: Configuration)
|
|
|
26967
27072
|
* @export
|
|
26968
27073
|
*/
|
|
26969
27074
|
export declare const OrganizationMainCallsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
27075
|
+
/**
|
|
27076
|
+
* Create a new git token to be used as a git provider by a service
|
|
27077
|
+
* @summary Create a git token
|
|
27078
|
+
* @param {string} organizationId Organization ID
|
|
27079
|
+
* @param {GitTokenRequest} [gitTokenRequest]
|
|
27080
|
+
* @param {*} [options] Override http request option.
|
|
27081
|
+
* @throws {RequiredError}
|
|
27082
|
+
*/
|
|
27083
|
+
createGitToken(organizationId: string, gitTokenRequest?: GitTokenRequest, options?: any): AxiosPromise<GitTokenResponse>;
|
|
26970
27084
|
/**
|
|
26971
27085
|
*
|
|
26972
27086
|
* @summary Create an organization
|
|
@@ -26975,6 +27089,15 @@ export declare const OrganizationMainCallsApiFactory: (configuration?: Configura
|
|
|
26975
27089
|
* @throws {RequiredError}
|
|
26976
27090
|
*/
|
|
26977
27091
|
createOrganization(organizationRequest?: OrganizationRequest, options?: any): AxiosPromise<Organization>;
|
|
27092
|
+
/**
|
|
27093
|
+
*
|
|
27094
|
+
* @summary Delete a git token
|
|
27095
|
+
* @param {string} organizationId Organization ID
|
|
27096
|
+
* @param {string} gitTokenId Git Token ID
|
|
27097
|
+
* @param {*} [options] Override http request option.
|
|
27098
|
+
* @throws {RequiredError}
|
|
27099
|
+
*/
|
|
27100
|
+
deleteGitToken(organizationId: string, gitTokenId: string, options?: any): AxiosPromise<void>;
|
|
26978
27101
|
/**
|
|
26979
27102
|
* To delete an organization you must have the admin permission
|
|
26980
27103
|
* @summary Delete an organization
|
|
@@ -26983,6 +27106,16 @@ export declare const OrganizationMainCallsApiFactory: (configuration?: Configura
|
|
|
26983
27106
|
* @throws {RequiredError}
|
|
26984
27107
|
*/
|
|
26985
27108
|
deleteOrganization(organizationId: string, options?: any): AxiosPromise<void>;
|
|
27109
|
+
/**
|
|
27110
|
+
*
|
|
27111
|
+
* @summary Edit a git token
|
|
27112
|
+
* @param {string} organizationId Organization ID
|
|
27113
|
+
* @param {string} gitTokenId Git Token ID
|
|
27114
|
+
* @param {GitTokenRequest} [gitTokenRequest]
|
|
27115
|
+
* @param {*} [options] Override http request option.
|
|
27116
|
+
* @throws {RequiredError}
|
|
27117
|
+
*/
|
|
27118
|
+
editGitToken(organizationId: string, gitTokenId: string, gitTokenRequest?: GitTokenRequest, options?: any): AxiosPromise<GitTokenResponse>;
|
|
26986
27119
|
/**
|
|
26987
27120
|
* To edit an organization you must have the admin permission
|
|
26988
27121
|
* @summary Edit an organization
|
|
@@ -27031,6 +27164,16 @@ export declare const OrganizationMainCallsApiFactory: (configuration?: Configura
|
|
|
27031
27164
|
* @extends {BaseAPI}
|
|
27032
27165
|
*/
|
|
27033
27166
|
export declare class OrganizationMainCallsApi extends BaseAPI {
|
|
27167
|
+
/**
|
|
27168
|
+
* Create a new git token to be used as a git provider by a service
|
|
27169
|
+
* @summary Create a git token
|
|
27170
|
+
* @param {string} organizationId Organization ID
|
|
27171
|
+
* @param {GitTokenRequest} [gitTokenRequest]
|
|
27172
|
+
* @param {*} [options] Override http request option.
|
|
27173
|
+
* @throws {RequiredError}
|
|
27174
|
+
* @memberof OrganizationMainCallsApi
|
|
27175
|
+
*/
|
|
27176
|
+
createGitToken(organizationId: string, gitTokenRequest?: GitTokenRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GitTokenResponse, any>>;
|
|
27034
27177
|
/**
|
|
27035
27178
|
*
|
|
27036
27179
|
* @summary Create an organization
|
|
@@ -27040,6 +27183,16 @@ export declare class OrganizationMainCallsApi extends BaseAPI {
|
|
|
27040
27183
|
* @memberof OrganizationMainCallsApi
|
|
27041
27184
|
*/
|
|
27042
27185
|
createOrganization(organizationRequest?: OrganizationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Organization, any>>;
|
|
27186
|
+
/**
|
|
27187
|
+
*
|
|
27188
|
+
* @summary Delete a git token
|
|
27189
|
+
* @param {string} organizationId Organization ID
|
|
27190
|
+
* @param {string} gitTokenId Git Token ID
|
|
27191
|
+
* @param {*} [options] Override http request option.
|
|
27192
|
+
* @throws {RequiredError}
|
|
27193
|
+
* @memberof OrganizationMainCallsApi
|
|
27194
|
+
*/
|
|
27195
|
+
deleteGitToken(organizationId: string, gitTokenId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
27043
27196
|
/**
|
|
27044
27197
|
* To delete an organization you must have the admin permission
|
|
27045
27198
|
* @summary Delete an organization
|
|
@@ -27049,6 +27202,17 @@ export declare class OrganizationMainCallsApi extends BaseAPI {
|
|
|
27049
27202
|
* @memberof OrganizationMainCallsApi
|
|
27050
27203
|
*/
|
|
27051
27204
|
deleteOrganization(organizationId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
27205
|
+
/**
|
|
27206
|
+
*
|
|
27207
|
+
* @summary Edit a git token
|
|
27208
|
+
* @param {string} organizationId Organization ID
|
|
27209
|
+
* @param {string} gitTokenId Git Token ID
|
|
27210
|
+
* @param {GitTokenRequest} [gitTokenRequest]
|
|
27211
|
+
* @param {*} [options] Override http request option.
|
|
27212
|
+
* @throws {RequiredError}
|
|
27213
|
+
* @memberof OrganizationMainCallsApi
|
|
27214
|
+
*/
|
|
27215
|
+
editGitToken(organizationId: string, gitTokenId: string, gitTokenRequest?: GitTokenRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GitTokenResponse, any>>;
|
|
27052
27216
|
/**
|
|
27053
27217
|
* To edit an organization you must have the admin permission
|
|
27054
27218
|
* @summary Edit an organization
|