qovery-typescript-axios 1.1.260 → 1.1.261
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 +295 -0
- package/dist/api.d.ts +158 -0
- package/dist/api.js +230 -0
- package/dist/esm/api.d.ts +158 -0
- package/dist/esm/api.js +230 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -7254,6 +7254,45 @@ export interface GitRepositoryResponseList {
|
|
|
7254
7254
|
*/
|
|
7255
7255
|
'results'?: Array<GitRepository>;
|
|
7256
7256
|
}
|
|
7257
|
+
/**
|
|
7258
|
+
*
|
|
7259
|
+
* @export
|
|
7260
|
+
* @interface GitTokenRequest
|
|
7261
|
+
*/
|
|
7262
|
+
export interface GitTokenRequest {
|
|
7263
|
+
/**
|
|
7264
|
+
*
|
|
7265
|
+
* @type {string}
|
|
7266
|
+
* @memberof GitTokenRequest
|
|
7267
|
+
*/
|
|
7268
|
+
'name': string;
|
|
7269
|
+
/**
|
|
7270
|
+
*
|
|
7271
|
+
* @type {string}
|
|
7272
|
+
* @memberof GitTokenRequest
|
|
7273
|
+
*/
|
|
7274
|
+
'description'?: string;
|
|
7275
|
+
/**
|
|
7276
|
+
*
|
|
7277
|
+
* @type {GitProviderEnum}
|
|
7278
|
+
* @memberof GitTokenRequest
|
|
7279
|
+
*/
|
|
7280
|
+
'type': GitProviderEnum;
|
|
7281
|
+
/**
|
|
7282
|
+
* The token from your git provider side
|
|
7283
|
+
* @type {string}
|
|
7284
|
+
* @memberof GitTokenRequest
|
|
7285
|
+
*/
|
|
7286
|
+
'token': string;
|
|
7287
|
+
/**
|
|
7288
|
+
* Mandatory only for BITBUCKET git provider, to allow us to fetch repositories at creation/edition of a service
|
|
7289
|
+
* @type {string}
|
|
7290
|
+
* @memberof GitTokenRequest
|
|
7291
|
+
*/
|
|
7292
|
+
'workspace'?: string;
|
|
7293
|
+
}
|
|
7294
|
+
|
|
7295
|
+
|
|
7257
7296
|
/**
|
|
7258
7297
|
*
|
|
7259
7298
|
* @export
|
|
@@ -7296,6 +7335,12 @@ export interface GitTokenResponse {
|
|
|
7296
7335
|
* @memberof GitTokenResponse
|
|
7297
7336
|
*/
|
|
7298
7337
|
'type': GitProviderEnum;
|
|
7338
|
+
/**
|
|
7339
|
+
*
|
|
7340
|
+
* @type {string}
|
|
7341
|
+
* @memberof GitTokenResponse
|
|
7342
|
+
*/
|
|
7343
|
+
'expired_at'?: string;
|
|
7299
7344
|
}
|
|
7300
7345
|
|
|
7301
7346
|
|
|
@@ -42958,6 +43003,51 @@ export class OrganizationEventApi extends BaseAPI {
|
|
|
42958
43003
|
*/
|
|
42959
43004
|
export const OrganizationMainCallsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
42960
43005
|
return {
|
|
43006
|
+
/**
|
|
43007
|
+
* Create a new git token to be used as a git provider by a service
|
|
43008
|
+
* @summary Create a git token
|
|
43009
|
+
* @param {string} organizationId Organization ID
|
|
43010
|
+
* @param {GitTokenRequest} [gitTokenRequest]
|
|
43011
|
+
* @param {*} [options] Override http request option.
|
|
43012
|
+
* @throws {RequiredError}
|
|
43013
|
+
*/
|
|
43014
|
+
createGitToken: async (organizationId: string, gitTokenRequest?: GitTokenRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43015
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
43016
|
+
assertParamExists('createGitToken', 'organizationId', organizationId)
|
|
43017
|
+
const localVarPath = `/organization/{organizationId}/gitToken`
|
|
43018
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
43019
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43020
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
43021
|
+
let baseOptions;
|
|
43022
|
+
if (configuration) {
|
|
43023
|
+
baseOptions = configuration.baseOptions;
|
|
43024
|
+
}
|
|
43025
|
+
|
|
43026
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
43027
|
+
const localVarHeaderParameter = {} as any;
|
|
43028
|
+
const localVarQueryParameter = {} as any;
|
|
43029
|
+
|
|
43030
|
+
// authentication ApiKeyAuth required
|
|
43031
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
43032
|
+
|
|
43033
|
+
// authentication bearerAuth required
|
|
43034
|
+
// http bearer authentication required
|
|
43035
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
43036
|
+
|
|
43037
|
+
|
|
43038
|
+
|
|
43039
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
43040
|
+
|
|
43041
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
43042
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
43043
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
43044
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gitTokenRequest, localVarRequestOptions, configuration)
|
|
43045
|
+
|
|
43046
|
+
return {
|
|
43047
|
+
url: toPathString(localVarUrlObj),
|
|
43048
|
+
options: localVarRequestOptions,
|
|
43049
|
+
};
|
|
43050
|
+
},
|
|
42961
43051
|
/**
|
|
42962
43052
|
*
|
|
42963
43053
|
* @summary Create an organization
|
|
@@ -42999,6 +43089,51 @@ export const OrganizationMainCallsApiAxiosParamCreator = function (configuration
|
|
|
42999
43089
|
options: localVarRequestOptions,
|
|
43000
43090
|
};
|
|
43001
43091
|
},
|
|
43092
|
+
/**
|
|
43093
|
+
*
|
|
43094
|
+
* @summary Delete a git token
|
|
43095
|
+
* @param {string} organizationId Organization ID
|
|
43096
|
+
* @param {string} gitTokenId Git Token ID
|
|
43097
|
+
* @param {*} [options] Override http request option.
|
|
43098
|
+
* @throws {RequiredError}
|
|
43099
|
+
*/
|
|
43100
|
+
deleteGitToken: async (organizationId: string, gitTokenId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43101
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
43102
|
+
assertParamExists('deleteGitToken', 'organizationId', organizationId)
|
|
43103
|
+
// verify required parameter 'gitTokenId' is not null or undefined
|
|
43104
|
+
assertParamExists('deleteGitToken', 'gitTokenId', gitTokenId)
|
|
43105
|
+
const localVarPath = `/organization/{organizationId}/gitToken/{gitTokenId}`
|
|
43106
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
43107
|
+
.replace(`{${"gitTokenId"}}`, encodeURIComponent(String(gitTokenId)));
|
|
43108
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43109
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
43110
|
+
let baseOptions;
|
|
43111
|
+
if (configuration) {
|
|
43112
|
+
baseOptions = configuration.baseOptions;
|
|
43113
|
+
}
|
|
43114
|
+
|
|
43115
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
43116
|
+
const localVarHeaderParameter = {} as any;
|
|
43117
|
+
const localVarQueryParameter = {} as any;
|
|
43118
|
+
|
|
43119
|
+
// authentication ApiKeyAuth required
|
|
43120
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
43121
|
+
|
|
43122
|
+
// authentication bearerAuth required
|
|
43123
|
+
// http bearer authentication required
|
|
43124
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
43125
|
+
|
|
43126
|
+
|
|
43127
|
+
|
|
43128
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
43129
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
43130
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
43131
|
+
|
|
43132
|
+
return {
|
|
43133
|
+
url: toPathString(localVarUrlObj),
|
|
43134
|
+
options: localVarRequestOptions,
|
|
43135
|
+
};
|
|
43136
|
+
},
|
|
43002
43137
|
/**
|
|
43003
43138
|
* To delete an organization you must have the admin permission
|
|
43004
43139
|
* @summary Delete an organization
|
|
@@ -43040,6 +43175,55 @@ export const OrganizationMainCallsApiAxiosParamCreator = function (configuration
|
|
|
43040
43175
|
options: localVarRequestOptions,
|
|
43041
43176
|
};
|
|
43042
43177
|
},
|
|
43178
|
+
/**
|
|
43179
|
+
*
|
|
43180
|
+
* @summary Edit a git token
|
|
43181
|
+
* @param {string} organizationId Organization ID
|
|
43182
|
+
* @param {string} gitTokenId Git Token ID
|
|
43183
|
+
* @param {GitTokenRequest} [gitTokenRequest]
|
|
43184
|
+
* @param {*} [options] Override http request option.
|
|
43185
|
+
* @throws {RequiredError}
|
|
43186
|
+
*/
|
|
43187
|
+
editGitToken: async (organizationId: string, gitTokenId: string, gitTokenRequest?: GitTokenRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43188
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
43189
|
+
assertParamExists('editGitToken', 'organizationId', organizationId)
|
|
43190
|
+
// verify required parameter 'gitTokenId' is not null or undefined
|
|
43191
|
+
assertParamExists('editGitToken', 'gitTokenId', gitTokenId)
|
|
43192
|
+
const localVarPath = `/organization/{organizationId}/gitToken/{gitTokenId}`
|
|
43193
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
43194
|
+
.replace(`{${"gitTokenId"}}`, encodeURIComponent(String(gitTokenId)));
|
|
43195
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43196
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
43197
|
+
let baseOptions;
|
|
43198
|
+
if (configuration) {
|
|
43199
|
+
baseOptions = configuration.baseOptions;
|
|
43200
|
+
}
|
|
43201
|
+
|
|
43202
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
43203
|
+
const localVarHeaderParameter = {} as any;
|
|
43204
|
+
const localVarQueryParameter = {} as any;
|
|
43205
|
+
|
|
43206
|
+
// authentication ApiKeyAuth required
|
|
43207
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
43208
|
+
|
|
43209
|
+
// authentication bearerAuth required
|
|
43210
|
+
// http bearer authentication required
|
|
43211
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
43212
|
+
|
|
43213
|
+
|
|
43214
|
+
|
|
43215
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
43216
|
+
|
|
43217
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
43218
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
43219
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
43220
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gitTokenRequest, localVarRequestOptions, configuration)
|
|
43221
|
+
|
|
43222
|
+
return {
|
|
43223
|
+
url: toPathString(localVarUrlObj),
|
|
43224
|
+
options: localVarRequestOptions,
|
|
43225
|
+
};
|
|
43226
|
+
},
|
|
43043
43227
|
/**
|
|
43044
43228
|
* To edit an organization you must have the admin permission
|
|
43045
43229
|
* @summary Edit an organization
|
|
@@ -43255,6 +43439,18 @@ export const OrganizationMainCallsApiAxiosParamCreator = function (configuration
|
|
|
43255
43439
|
export const OrganizationMainCallsApiFp = function(configuration?: Configuration) {
|
|
43256
43440
|
const localVarAxiosParamCreator = OrganizationMainCallsApiAxiosParamCreator(configuration)
|
|
43257
43441
|
return {
|
|
43442
|
+
/**
|
|
43443
|
+
* Create a new git token to be used as a git provider by a service
|
|
43444
|
+
* @summary Create a git token
|
|
43445
|
+
* @param {string} organizationId Organization ID
|
|
43446
|
+
* @param {GitTokenRequest} [gitTokenRequest]
|
|
43447
|
+
* @param {*} [options] Override http request option.
|
|
43448
|
+
* @throws {RequiredError}
|
|
43449
|
+
*/
|
|
43450
|
+
async createGitToken(organizationId: string, gitTokenRequest?: GitTokenRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitTokenResponse>> {
|
|
43451
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createGitToken(organizationId, gitTokenRequest, options);
|
|
43452
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
43453
|
+
},
|
|
43258
43454
|
/**
|
|
43259
43455
|
*
|
|
43260
43456
|
* @summary Create an organization
|
|
@@ -43266,6 +43462,18 @@ export const OrganizationMainCallsApiFp = function(configuration?: Configuration
|
|
|
43266
43462
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createOrganization(organizationRequest, options);
|
|
43267
43463
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
43268
43464
|
},
|
|
43465
|
+
/**
|
|
43466
|
+
*
|
|
43467
|
+
* @summary Delete a git token
|
|
43468
|
+
* @param {string} organizationId Organization ID
|
|
43469
|
+
* @param {string} gitTokenId Git Token ID
|
|
43470
|
+
* @param {*} [options] Override http request option.
|
|
43471
|
+
* @throws {RequiredError}
|
|
43472
|
+
*/
|
|
43473
|
+
async deleteGitToken(organizationId: string, gitTokenId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
43474
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteGitToken(organizationId, gitTokenId, options);
|
|
43475
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
43476
|
+
},
|
|
43269
43477
|
/**
|
|
43270
43478
|
* To delete an organization you must have the admin permission
|
|
43271
43479
|
* @summary Delete an organization
|
|
@@ -43277,6 +43485,19 @@ export const OrganizationMainCallsApiFp = function(configuration?: Configuration
|
|
|
43277
43485
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrganization(organizationId, options);
|
|
43278
43486
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
43279
43487
|
},
|
|
43488
|
+
/**
|
|
43489
|
+
*
|
|
43490
|
+
* @summary Edit a git token
|
|
43491
|
+
* @param {string} organizationId Organization ID
|
|
43492
|
+
* @param {string} gitTokenId Git Token ID
|
|
43493
|
+
* @param {GitTokenRequest} [gitTokenRequest]
|
|
43494
|
+
* @param {*} [options] Override http request option.
|
|
43495
|
+
* @throws {RequiredError}
|
|
43496
|
+
*/
|
|
43497
|
+
async editGitToken(organizationId: string, gitTokenId: string, gitTokenRequest?: GitTokenRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitTokenResponse>> {
|
|
43498
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.editGitToken(organizationId, gitTokenId, gitTokenRequest, options);
|
|
43499
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
43500
|
+
},
|
|
43280
43501
|
/**
|
|
43281
43502
|
* To edit an organization you must have the admin permission
|
|
43282
43503
|
* @summary Edit an organization
|
|
@@ -43342,6 +43563,17 @@ export const OrganizationMainCallsApiFp = function(configuration?: Configuration
|
|
|
43342
43563
|
export const OrganizationMainCallsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
43343
43564
|
const localVarFp = OrganizationMainCallsApiFp(configuration)
|
|
43344
43565
|
return {
|
|
43566
|
+
/**
|
|
43567
|
+
* Create a new git token to be used as a git provider by a service
|
|
43568
|
+
* @summary Create a git token
|
|
43569
|
+
* @param {string} organizationId Organization ID
|
|
43570
|
+
* @param {GitTokenRequest} [gitTokenRequest]
|
|
43571
|
+
* @param {*} [options] Override http request option.
|
|
43572
|
+
* @throws {RequiredError}
|
|
43573
|
+
*/
|
|
43574
|
+
createGitToken(organizationId: string, gitTokenRequest?: GitTokenRequest, options?: any): AxiosPromise<GitTokenResponse> {
|
|
43575
|
+
return localVarFp.createGitToken(organizationId, gitTokenRequest, options).then((request) => request(axios, basePath));
|
|
43576
|
+
},
|
|
43345
43577
|
/**
|
|
43346
43578
|
*
|
|
43347
43579
|
* @summary Create an organization
|
|
@@ -43352,6 +43584,17 @@ export const OrganizationMainCallsApiFactory = function (configuration?: Configu
|
|
|
43352
43584
|
createOrganization(organizationRequest?: OrganizationRequest, options?: any): AxiosPromise<Organization> {
|
|
43353
43585
|
return localVarFp.createOrganization(organizationRequest, options).then((request) => request(axios, basePath));
|
|
43354
43586
|
},
|
|
43587
|
+
/**
|
|
43588
|
+
*
|
|
43589
|
+
* @summary Delete a git token
|
|
43590
|
+
* @param {string} organizationId Organization ID
|
|
43591
|
+
* @param {string} gitTokenId Git Token ID
|
|
43592
|
+
* @param {*} [options] Override http request option.
|
|
43593
|
+
* @throws {RequiredError}
|
|
43594
|
+
*/
|
|
43595
|
+
deleteGitToken(organizationId: string, gitTokenId: string, options?: any): AxiosPromise<void> {
|
|
43596
|
+
return localVarFp.deleteGitToken(organizationId, gitTokenId, options).then((request) => request(axios, basePath));
|
|
43597
|
+
},
|
|
43355
43598
|
/**
|
|
43356
43599
|
* To delete an organization you must have the admin permission
|
|
43357
43600
|
* @summary Delete an organization
|
|
@@ -43362,6 +43605,18 @@ export const OrganizationMainCallsApiFactory = function (configuration?: Configu
|
|
|
43362
43605
|
deleteOrganization(organizationId: string, options?: any): AxiosPromise<void> {
|
|
43363
43606
|
return localVarFp.deleteOrganization(organizationId, options).then((request) => request(axios, basePath));
|
|
43364
43607
|
},
|
|
43608
|
+
/**
|
|
43609
|
+
*
|
|
43610
|
+
* @summary Edit a git token
|
|
43611
|
+
* @param {string} organizationId Organization ID
|
|
43612
|
+
* @param {string} gitTokenId Git Token ID
|
|
43613
|
+
* @param {GitTokenRequest} [gitTokenRequest]
|
|
43614
|
+
* @param {*} [options] Override http request option.
|
|
43615
|
+
* @throws {RequiredError}
|
|
43616
|
+
*/
|
|
43617
|
+
editGitToken(organizationId: string, gitTokenId: string, gitTokenRequest?: GitTokenRequest, options?: any): AxiosPromise<GitTokenResponse> {
|
|
43618
|
+
return localVarFp.editGitToken(organizationId, gitTokenId, gitTokenRequest, options).then((request) => request(axios, basePath));
|
|
43619
|
+
},
|
|
43365
43620
|
/**
|
|
43366
43621
|
* To edit an organization you must have the admin permission
|
|
43367
43622
|
* @summary Edit an organization
|
|
@@ -43422,6 +43677,19 @@ export const OrganizationMainCallsApiFactory = function (configuration?: Configu
|
|
|
43422
43677
|
* @extends {BaseAPI}
|
|
43423
43678
|
*/
|
|
43424
43679
|
export class OrganizationMainCallsApi extends BaseAPI {
|
|
43680
|
+
/**
|
|
43681
|
+
* Create a new git token to be used as a git provider by a service
|
|
43682
|
+
* @summary Create a git token
|
|
43683
|
+
* @param {string} organizationId Organization ID
|
|
43684
|
+
* @param {GitTokenRequest} [gitTokenRequest]
|
|
43685
|
+
* @param {*} [options] Override http request option.
|
|
43686
|
+
* @throws {RequiredError}
|
|
43687
|
+
* @memberof OrganizationMainCallsApi
|
|
43688
|
+
*/
|
|
43689
|
+
public createGitToken(organizationId: string, gitTokenRequest?: GitTokenRequest, options?: AxiosRequestConfig) {
|
|
43690
|
+
return OrganizationMainCallsApiFp(this.configuration).createGitToken(organizationId, gitTokenRequest, options).then((request) => request(this.axios, this.basePath));
|
|
43691
|
+
}
|
|
43692
|
+
|
|
43425
43693
|
/**
|
|
43426
43694
|
*
|
|
43427
43695
|
* @summary Create an organization
|
|
@@ -43434,6 +43702,19 @@ export class OrganizationMainCallsApi extends BaseAPI {
|
|
|
43434
43702
|
return OrganizationMainCallsApiFp(this.configuration).createOrganization(organizationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
43435
43703
|
}
|
|
43436
43704
|
|
|
43705
|
+
/**
|
|
43706
|
+
*
|
|
43707
|
+
* @summary Delete a git token
|
|
43708
|
+
* @param {string} organizationId Organization ID
|
|
43709
|
+
* @param {string} gitTokenId Git Token ID
|
|
43710
|
+
* @param {*} [options] Override http request option.
|
|
43711
|
+
* @throws {RequiredError}
|
|
43712
|
+
* @memberof OrganizationMainCallsApi
|
|
43713
|
+
*/
|
|
43714
|
+
public deleteGitToken(organizationId: string, gitTokenId: string, options?: AxiosRequestConfig) {
|
|
43715
|
+
return OrganizationMainCallsApiFp(this.configuration).deleteGitToken(organizationId, gitTokenId, options).then((request) => request(this.axios, this.basePath));
|
|
43716
|
+
}
|
|
43717
|
+
|
|
43437
43718
|
/**
|
|
43438
43719
|
* To delete an organization you must have the admin permission
|
|
43439
43720
|
* @summary Delete an organization
|
|
@@ -43446,6 +43727,20 @@ export class OrganizationMainCallsApi extends BaseAPI {
|
|
|
43446
43727
|
return OrganizationMainCallsApiFp(this.configuration).deleteOrganization(organizationId, options).then((request) => request(this.axios, this.basePath));
|
|
43447
43728
|
}
|
|
43448
43729
|
|
|
43730
|
+
/**
|
|
43731
|
+
*
|
|
43732
|
+
* @summary Edit a git token
|
|
43733
|
+
* @param {string} organizationId Organization ID
|
|
43734
|
+
* @param {string} gitTokenId Git Token ID
|
|
43735
|
+
* @param {GitTokenRequest} [gitTokenRequest]
|
|
43736
|
+
* @param {*} [options] Override http request option.
|
|
43737
|
+
* @throws {RequiredError}
|
|
43738
|
+
* @memberof OrganizationMainCallsApi
|
|
43739
|
+
*/
|
|
43740
|
+
public editGitToken(organizationId: string, gitTokenId: string, gitTokenRequest?: GitTokenRequest, options?: AxiosRequestConfig) {
|
|
43741
|
+
return OrganizationMainCallsApiFp(this.configuration).editGitToken(organizationId, gitTokenId, gitTokenRequest, options).then((request) => request(this.axios, this.basePath));
|
|
43742
|
+
}
|
|
43743
|
+
|
|
43449
43744
|
/**
|
|
43450
43745
|
* To edit an organization you must have the admin permission
|
|
43451
43746
|
* @summary Edit an organization
|
package/dist/api.d.ts
CHANGED
|
@@ -7047,6 +7047,43 @@ export interface GitRepositoryResponseList {
|
|
|
7047
7047
|
*/
|
|
7048
7048
|
'results'?: Array<GitRepository>;
|
|
7049
7049
|
}
|
|
7050
|
+
/**
|
|
7051
|
+
*
|
|
7052
|
+
* @export
|
|
7053
|
+
* @interface GitTokenRequest
|
|
7054
|
+
*/
|
|
7055
|
+
export interface GitTokenRequest {
|
|
7056
|
+
/**
|
|
7057
|
+
*
|
|
7058
|
+
* @type {string}
|
|
7059
|
+
* @memberof GitTokenRequest
|
|
7060
|
+
*/
|
|
7061
|
+
'name': string;
|
|
7062
|
+
/**
|
|
7063
|
+
*
|
|
7064
|
+
* @type {string}
|
|
7065
|
+
* @memberof GitTokenRequest
|
|
7066
|
+
*/
|
|
7067
|
+
'description'?: string;
|
|
7068
|
+
/**
|
|
7069
|
+
*
|
|
7070
|
+
* @type {GitProviderEnum}
|
|
7071
|
+
* @memberof GitTokenRequest
|
|
7072
|
+
*/
|
|
7073
|
+
'type': GitProviderEnum;
|
|
7074
|
+
/**
|
|
7075
|
+
* The token from your git provider side
|
|
7076
|
+
* @type {string}
|
|
7077
|
+
* @memberof GitTokenRequest
|
|
7078
|
+
*/
|
|
7079
|
+
'token': string;
|
|
7080
|
+
/**
|
|
7081
|
+
* Mandatory only for BITBUCKET git provider, to allow us to fetch repositories at creation/edition of a service
|
|
7082
|
+
* @type {string}
|
|
7083
|
+
* @memberof GitTokenRequest
|
|
7084
|
+
*/
|
|
7085
|
+
'workspace'?: string;
|
|
7086
|
+
}
|
|
7050
7087
|
/**
|
|
7051
7088
|
*
|
|
7052
7089
|
* @export
|
|
@@ -7089,6 +7126,12 @@ export interface GitTokenResponse {
|
|
|
7089
7126
|
* @memberof GitTokenResponse
|
|
7090
7127
|
*/
|
|
7091
7128
|
'type': GitProviderEnum;
|
|
7129
|
+
/**
|
|
7130
|
+
*
|
|
7131
|
+
* @type {string}
|
|
7132
|
+
* @memberof GitTokenResponse
|
|
7133
|
+
*/
|
|
7134
|
+
'expired_at'?: string;
|
|
7092
7135
|
}
|
|
7093
7136
|
/**
|
|
7094
7137
|
*
|
|
@@ -26843,6 +26886,15 @@ export declare class OrganizationEventApi extends BaseAPI {
|
|
|
26843
26886
|
* @export
|
|
26844
26887
|
*/
|
|
26845
26888
|
export declare const OrganizationMainCallsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
26889
|
+
/**
|
|
26890
|
+
* Create a new git token to be used as a git provider by a service
|
|
26891
|
+
* @summary Create a git token
|
|
26892
|
+
* @param {string} organizationId Organization ID
|
|
26893
|
+
* @param {GitTokenRequest} [gitTokenRequest]
|
|
26894
|
+
* @param {*} [options] Override http request option.
|
|
26895
|
+
* @throws {RequiredError}
|
|
26896
|
+
*/
|
|
26897
|
+
createGitToken: (organizationId: string, gitTokenRequest?: GitTokenRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
26846
26898
|
/**
|
|
26847
26899
|
*
|
|
26848
26900
|
* @summary Create an organization
|
|
@@ -26851,6 +26903,15 @@ export declare const OrganizationMainCallsApiAxiosParamCreator: (configuration?:
|
|
|
26851
26903
|
* @throws {RequiredError}
|
|
26852
26904
|
*/
|
|
26853
26905
|
createOrganization: (organizationRequest?: OrganizationRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
26906
|
+
/**
|
|
26907
|
+
*
|
|
26908
|
+
* @summary Delete a git token
|
|
26909
|
+
* @param {string} organizationId Organization ID
|
|
26910
|
+
* @param {string} gitTokenId Git Token ID
|
|
26911
|
+
* @param {*} [options] Override http request option.
|
|
26912
|
+
* @throws {RequiredError}
|
|
26913
|
+
*/
|
|
26914
|
+
deleteGitToken: (organizationId: string, gitTokenId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
26854
26915
|
/**
|
|
26855
26916
|
* To delete an organization you must have the admin permission
|
|
26856
26917
|
* @summary Delete an organization
|
|
@@ -26859,6 +26920,16 @@ export declare const OrganizationMainCallsApiAxiosParamCreator: (configuration?:
|
|
|
26859
26920
|
* @throws {RequiredError}
|
|
26860
26921
|
*/
|
|
26861
26922
|
deleteOrganization: (organizationId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
26923
|
+
/**
|
|
26924
|
+
*
|
|
26925
|
+
* @summary Edit a git token
|
|
26926
|
+
* @param {string} organizationId Organization ID
|
|
26927
|
+
* @param {string} gitTokenId Git Token ID
|
|
26928
|
+
* @param {GitTokenRequest} [gitTokenRequest]
|
|
26929
|
+
* @param {*} [options] Override http request option.
|
|
26930
|
+
* @throws {RequiredError}
|
|
26931
|
+
*/
|
|
26932
|
+
editGitToken: (organizationId: string, gitTokenId: string, gitTokenRequest?: GitTokenRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
26862
26933
|
/**
|
|
26863
26934
|
* To edit an organization you must have the admin permission
|
|
26864
26935
|
* @summary Edit an organization
|
|
@@ -26905,6 +26976,15 @@ export declare const OrganizationMainCallsApiAxiosParamCreator: (configuration?:
|
|
|
26905
26976
|
* @export
|
|
26906
26977
|
*/
|
|
26907
26978
|
export declare const OrganizationMainCallsApiFp: (configuration?: Configuration) => {
|
|
26979
|
+
/**
|
|
26980
|
+
* Create a new git token to be used as a git provider by a service
|
|
26981
|
+
* @summary Create a git token
|
|
26982
|
+
* @param {string} organizationId Organization ID
|
|
26983
|
+
* @param {GitTokenRequest} [gitTokenRequest]
|
|
26984
|
+
* @param {*} [options] Override http request option.
|
|
26985
|
+
* @throws {RequiredError}
|
|
26986
|
+
*/
|
|
26987
|
+
createGitToken(organizationId: string, gitTokenRequest?: GitTokenRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitTokenResponse>>;
|
|
26908
26988
|
/**
|
|
26909
26989
|
*
|
|
26910
26990
|
* @summary Create an organization
|
|
@@ -26913,6 +26993,15 @@ export declare const OrganizationMainCallsApiFp: (configuration?: Configuration)
|
|
|
26913
26993
|
* @throws {RequiredError}
|
|
26914
26994
|
*/
|
|
26915
26995
|
createOrganization(organizationRequest?: OrganizationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Organization>>;
|
|
26996
|
+
/**
|
|
26997
|
+
*
|
|
26998
|
+
* @summary Delete a git token
|
|
26999
|
+
* @param {string} organizationId Organization ID
|
|
27000
|
+
* @param {string} gitTokenId Git Token ID
|
|
27001
|
+
* @param {*} [options] Override http request option.
|
|
27002
|
+
* @throws {RequiredError}
|
|
27003
|
+
*/
|
|
27004
|
+
deleteGitToken(organizationId: string, gitTokenId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
26916
27005
|
/**
|
|
26917
27006
|
* To delete an organization you must have the admin permission
|
|
26918
27007
|
* @summary Delete an organization
|
|
@@ -26921,6 +27010,16 @@ export declare const OrganizationMainCallsApiFp: (configuration?: Configuration)
|
|
|
26921
27010
|
* @throws {RequiredError}
|
|
26922
27011
|
*/
|
|
26923
27012
|
deleteOrganization(organizationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
27013
|
+
/**
|
|
27014
|
+
*
|
|
27015
|
+
* @summary Edit a git token
|
|
27016
|
+
* @param {string} organizationId Organization ID
|
|
27017
|
+
* @param {string} gitTokenId Git Token ID
|
|
27018
|
+
* @param {GitTokenRequest} [gitTokenRequest]
|
|
27019
|
+
* @param {*} [options] Override http request option.
|
|
27020
|
+
* @throws {RequiredError}
|
|
27021
|
+
*/
|
|
27022
|
+
editGitToken(organizationId: string, gitTokenId: string, gitTokenRequest?: GitTokenRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitTokenResponse>>;
|
|
26924
27023
|
/**
|
|
26925
27024
|
* To edit an organization you must have the admin permission
|
|
26926
27025
|
* @summary Edit an organization
|
|
@@ -26967,6 +27066,15 @@ export declare const OrganizationMainCallsApiFp: (configuration?: Configuration)
|
|
|
26967
27066
|
* @export
|
|
26968
27067
|
*/
|
|
26969
27068
|
export declare const OrganizationMainCallsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
27069
|
+
/**
|
|
27070
|
+
* Create a new git token to be used as a git provider by a service
|
|
27071
|
+
* @summary Create a git token
|
|
27072
|
+
* @param {string} organizationId Organization ID
|
|
27073
|
+
* @param {GitTokenRequest} [gitTokenRequest]
|
|
27074
|
+
* @param {*} [options] Override http request option.
|
|
27075
|
+
* @throws {RequiredError}
|
|
27076
|
+
*/
|
|
27077
|
+
createGitToken(organizationId: string, gitTokenRequest?: GitTokenRequest, options?: any): AxiosPromise<GitTokenResponse>;
|
|
26970
27078
|
/**
|
|
26971
27079
|
*
|
|
26972
27080
|
* @summary Create an organization
|
|
@@ -26975,6 +27083,15 @@ export declare const OrganizationMainCallsApiFactory: (configuration?: Configura
|
|
|
26975
27083
|
* @throws {RequiredError}
|
|
26976
27084
|
*/
|
|
26977
27085
|
createOrganization(organizationRequest?: OrganizationRequest, options?: any): AxiosPromise<Organization>;
|
|
27086
|
+
/**
|
|
27087
|
+
*
|
|
27088
|
+
* @summary Delete a git token
|
|
27089
|
+
* @param {string} organizationId Organization ID
|
|
27090
|
+
* @param {string} gitTokenId Git Token ID
|
|
27091
|
+
* @param {*} [options] Override http request option.
|
|
27092
|
+
* @throws {RequiredError}
|
|
27093
|
+
*/
|
|
27094
|
+
deleteGitToken(organizationId: string, gitTokenId: string, options?: any): AxiosPromise<void>;
|
|
26978
27095
|
/**
|
|
26979
27096
|
* To delete an organization you must have the admin permission
|
|
26980
27097
|
* @summary Delete an organization
|
|
@@ -26983,6 +27100,16 @@ export declare const OrganizationMainCallsApiFactory: (configuration?: Configura
|
|
|
26983
27100
|
* @throws {RequiredError}
|
|
26984
27101
|
*/
|
|
26985
27102
|
deleteOrganization(organizationId: string, options?: any): AxiosPromise<void>;
|
|
27103
|
+
/**
|
|
27104
|
+
*
|
|
27105
|
+
* @summary Edit a git token
|
|
27106
|
+
* @param {string} organizationId Organization ID
|
|
27107
|
+
* @param {string} gitTokenId Git Token ID
|
|
27108
|
+
* @param {GitTokenRequest} [gitTokenRequest]
|
|
27109
|
+
* @param {*} [options] Override http request option.
|
|
27110
|
+
* @throws {RequiredError}
|
|
27111
|
+
*/
|
|
27112
|
+
editGitToken(organizationId: string, gitTokenId: string, gitTokenRequest?: GitTokenRequest, options?: any): AxiosPromise<GitTokenResponse>;
|
|
26986
27113
|
/**
|
|
26987
27114
|
* To edit an organization you must have the admin permission
|
|
26988
27115
|
* @summary Edit an organization
|
|
@@ -27031,6 +27158,16 @@ export declare const OrganizationMainCallsApiFactory: (configuration?: Configura
|
|
|
27031
27158
|
* @extends {BaseAPI}
|
|
27032
27159
|
*/
|
|
27033
27160
|
export declare class OrganizationMainCallsApi extends BaseAPI {
|
|
27161
|
+
/**
|
|
27162
|
+
* Create a new git token to be used as a git provider by a service
|
|
27163
|
+
* @summary Create a git token
|
|
27164
|
+
* @param {string} organizationId Organization ID
|
|
27165
|
+
* @param {GitTokenRequest} [gitTokenRequest]
|
|
27166
|
+
* @param {*} [options] Override http request option.
|
|
27167
|
+
* @throws {RequiredError}
|
|
27168
|
+
* @memberof OrganizationMainCallsApi
|
|
27169
|
+
*/
|
|
27170
|
+
createGitToken(organizationId: string, gitTokenRequest?: GitTokenRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GitTokenResponse, any>>;
|
|
27034
27171
|
/**
|
|
27035
27172
|
*
|
|
27036
27173
|
* @summary Create an organization
|
|
@@ -27040,6 +27177,16 @@ export declare class OrganizationMainCallsApi extends BaseAPI {
|
|
|
27040
27177
|
* @memberof OrganizationMainCallsApi
|
|
27041
27178
|
*/
|
|
27042
27179
|
createOrganization(organizationRequest?: OrganizationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Organization, any>>;
|
|
27180
|
+
/**
|
|
27181
|
+
*
|
|
27182
|
+
* @summary Delete a git token
|
|
27183
|
+
* @param {string} organizationId Organization ID
|
|
27184
|
+
* @param {string} gitTokenId Git Token ID
|
|
27185
|
+
* @param {*} [options] Override http request option.
|
|
27186
|
+
* @throws {RequiredError}
|
|
27187
|
+
* @memberof OrganizationMainCallsApi
|
|
27188
|
+
*/
|
|
27189
|
+
deleteGitToken(organizationId: string, gitTokenId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
27043
27190
|
/**
|
|
27044
27191
|
* To delete an organization you must have the admin permission
|
|
27045
27192
|
* @summary Delete an organization
|
|
@@ -27049,6 +27196,17 @@ export declare class OrganizationMainCallsApi extends BaseAPI {
|
|
|
27049
27196
|
* @memberof OrganizationMainCallsApi
|
|
27050
27197
|
*/
|
|
27051
27198
|
deleteOrganization(organizationId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
27199
|
+
/**
|
|
27200
|
+
*
|
|
27201
|
+
* @summary Edit a git token
|
|
27202
|
+
* @param {string} organizationId Organization ID
|
|
27203
|
+
* @param {string} gitTokenId Git Token ID
|
|
27204
|
+
* @param {GitTokenRequest} [gitTokenRequest]
|
|
27205
|
+
* @param {*} [options] Override http request option.
|
|
27206
|
+
* @throws {RequiredError}
|
|
27207
|
+
* @memberof OrganizationMainCallsApi
|
|
27208
|
+
*/
|
|
27209
|
+
editGitToken(organizationId: string, gitTokenId: string, gitTokenRequest?: GitTokenRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GitTokenResponse, any>>;
|
|
27052
27210
|
/**
|
|
27053
27211
|
* To edit an organization you must have the admin permission
|
|
27054
27212
|
* @summary Edit an organization
|