qovery-typescript-axios 1.1.335 → 1.1.336
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 +456 -0
- package/dist/api.d.ts +223 -0
- package/dist/api.js +414 -3
- package/dist/esm/api.d.ts +223 -0
- package/dist/esm/api.js +407 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -8209,6 +8209,12 @@ export interface HelmPortRequestPortsInner {
|
|
|
8209
8209
|
* @memberof HelmPortRequestPortsInner
|
|
8210
8210
|
*/
|
|
8211
8211
|
'protocol'?: HelmPortProtocolEnum;
|
|
8212
|
+
/**
|
|
8213
|
+
* is the default port to use for domain
|
|
8214
|
+
* @type {boolean}
|
|
8215
|
+
* @memberof HelmPortRequestPortsInner
|
|
8216
|
+
*/
|
|
8217
|
+
'is_default'?: boolean;
|
|
8212
8218
|
}
|
|
8213
8219
|
|
|
8214
8220
|
|
|
@@ -8741,6 +8747,12 @@ export interface HelmResponseAllOfPorts {
|
|
|
8741
8747
|
* @memberof HelmResponseAllOfPorts
|
|
8742
8748
|
*/
|
|
8743
8749
|
'protocol': HelmPortProtocolEnum;
|
|
8750
|
+
/**
|
|
8751
|
+
* is the default port to use for domain
|
|
8752
|
+
* @type {boolean}
|
|
8753
|
+
* @memberof HelmResponseAllOfPorts
|
|
8754
|
+
*/
|
|
8755
|
+
'is_default'?: boolean;
|
|
8744
8756
|
}
|
|
8745
8757
|
|
|
8746
8758
|
|
|
@@ -29737,6 +29749,51 @@ export const CustomDomainApiAxiosParamCreator = function (configuration?: Config
|
|
|
29737
29749
|
|
|
29738
29750
|
|
|
29739
29751
|
|
|
29752
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
29753
|
+
|
|
29754
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29755
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29756
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29757
|
+
localVarRequestOptions.data = serializeDataIfNeeded(customDomainRequest, localVarRequestOptions, configuration)
|
|
29758
|
+
|
|
29759
|
+
return {
|
|
29760
|
+
url: toPathString(localVarUrlObj),
|
|
29761
|
+
options: localVarRequestOptions,
|
|
29762
|
+
};
|
|
29763
|
+
},
|
|
29764
|
+
/**
|
|
29765
|
+
* Add a custom domain to this helm in order not to use qovery autogenerated domain
|
|
29766
|
+
* @summary Add custom domain to the helm.
|
|
29767
|
+
* @param {string} helmId Helm ID
|
|
29768
|
+
* @param {CustomDomainRequest} [customDomainRequest]
|
|
29769
|
+
* @param {*} [options] Override http request option.
|
|
29770
|
+
* @throws {RequiredError}
|
|
29771
|
+
*/
|
|
29772
|
+
createHelmCustomDomain: async (helmId: string, customDomainRequest?: CustomDomainRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29773
|
+
// verify required parameter 'helmId' is not null or undefined
|
|
29774
|
+
assertParamExists('createHelmCustomDomain', 'helmId', helmId)
|
|
29775
|
+
const localVarPath = `/helm/{helmId}/customDomain`
|
|
29776
|
+
.replace(`{${"helmId"}}`, encodeURIComponent(String(helmId)));
|
|
29777
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29778
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29779
|
+
let baseOptions;
|
|
29780
|
+
if (configuration) {
|
|
29781
|
+
baseOptions = configuration.baseOptions;
|
|
29782
|
+
}
|
|
29783
|
+
|
|
29784
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
29785
|
+
const localVarHeaderParameter = {} as any;
|
|
29786
|
+
const localVarQueryParameter = {} as any;
|
|
29787
|
+
|
|
29788
|
+
// authentication ApiKeyAuth required
|
|
29789
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
29790
|
+
|
|
29791
|
+
// authentication bearerAuth required
|
|
29792
|
+
// http bearer authentication required
|
|
29793
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
29794
|
+
|
|
29795
|
+
|
|
29796
|
+
|
|
29740
29797
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
29741
29798
|
|
|
29742
29799
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -29920,6 +29977,47 @@ export const CustomDomainApiAxiosParamCreator = function (configuration?: Config
|
|
|
29920
29977
|
|
|
29921
29978
|
|
|
29922
29979
|
|
|
29980
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29981
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29982
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29983
|
+
|
|
29984
|
+
return {
|
|
29985
|
+
url: toPathString(localVarUrlObj),
|
|
29986
|
+
options: localVarRequestOptions,
|
|
29987
|
+
};
|
|
29988
|
+
},
|
|
29989
|
+
/**
|
|
29990
|
+
* List the custom domains of this helm
|
|
29991
|
+
* @summary List helm custom domains
|
|
29992
|
+
* @param {string} helmId Helm ID
|
|
29993
|
+
* @param {*} [options] Override http request option.
|
|
29994
|
+
* @throws {RequiredError}
|
|
29995
|
+
*/
|
|
29996
|
+
listHelmCustomDomain: async (helmId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29997
|
+
// verify required parameter 'helmId' is not null or undefined
|
|
29998
|
+
assertParamExists('listHelmCustomDomain', 'helmId', helmId)
|
|
29999
|
+
const localVarPath = `/helm/{helmId}/customDomain`
|
|
30000
|
+
.replace(`{${"helmId"}}`, encodeURIComponent(String(helmId)));
|
|
30001
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30002
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
30003
|
+
let baseOptions;
|
|
30004
|
+
if (configuration) {
|
|
30005
|
+
baseOptions = configuration.baseOptions;
|
|
30006
|
+
}
|
|
30007
|
+
|
|
30008
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
30009
|
+
const localVarHeaderParameter = {} as any;
|
|
30010
|
+
const localVarQueryParameter = {} as any;
|
|
30011
|
+
|
|
30012
|
+
// authentication ApiKeyAuth required
|
|
30013
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
30014
|
+
|
|
30015
|
+
// authentication bearerAuth required
|
|
30016
|
+
// http bearer authentication required
|
|
30017
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
30018
|
+
|
|
30019
|
+
|
|
30020
|
+
|
|
29923
30021
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29924
30022
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29925
30023
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -29951,6 +30049,18 @@ export const CustomDomainApiFp = function(configuration?: Configuration) {
|
|
|
29951
30049
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createApplicationCustomDomain(applicationId, customDomainRequest, options);
|
|
29952
30050
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
29953
30051
|
},
|
|
30052
|
+
/**
|
|
30053
|
+
* Add a custom domain to this helm in order not to use qovery autogenerated domain
|
|
30054
|
+
* @summary Add custom domain to the helm.
|
|
30055
|
+
* @param {string} helmId Helm ID
|
|
30056
|
+
* @param {CustomDomainRequest} [customDomainRequest]
|
|
30057
|
+
* @param {*} [options] Override http request option.
|
|
30058
|
+
* @throws {RequiredError}
|
|
30059
|
+
*/
|
|
30060
|
+
async createHelmCustomDomain(helmId: string, customDomainRequest?: CustomDomainRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDomain>> {
|
|
30061
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createHelmCustomDomain(helmId, customDomainRequest, options);
|
|
30062
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
30063
|
+
},
|
|
29954
30064
|
/**
|
|
29955
30065
|
* To delete an CustomDomain you must have the project user permission
|
|
29956
30066
|
* @summary Delete a Custom Domain
|
|
@@ -29999,6 +30109,17 @@ export const CustomDomainApiFp = function(configuration?: Configuration) {
|
|
|
29999
30109
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listApplicationCustomDomain(applicationId, options);
|
|
30000
30110
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
30001
30111
|
},
|
|
30112
|
+
/**
|
|
30113
|
+
* List the custom domains of this helm
|
|
30114
|
+
* @summary List helm custom domains
|
|
30115
|
+
* @param {string} helmId Helm ID
|
|
30116
|
+
* @param {*} [options] Override http request option.
|
|
30117
|
+
* @throws {RequiredError}
|
|
30118
|
+
*/
|
|
30119
|
+
async listHelmCustomDomain(helmId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDomainResponseList>> {
|
|
30120
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listHelmCustomDomain(helmId, options);
|
|
30121
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
30122
|
+
},
|
|
30002
30123
|
}
|
|
30003
30124
|
};
|
|
30004
30125
|
|
|
@@ -30020,6 +30141,17 @@ export const CustomDomainApiFactory = function (configuration?: Configuration, b
|
|
|
30020
30141
|
createApplicationCustomDomain(applicationId: string, customDomainRequest?: CustomDomainRequest, options?: any): AxiosPromise<CustomDomain> {
|
|
30021
30142
|
return localVarFp.createApplicationCustomDomain(applicationId, customDomainRequest, options).then((request) => request(axios, basePath));
|
|
30022
30143
|
},
|
|
30144
|
+
/**
|
|
30145
|
+
* Add a custom domain to this helm in order not to use qovery autogenerated domain
|
|
30146
|
+
* @summary Add custom domain to the helm.
|
|
30147
|
+
* @param {string} helmId Helm ID
|
|
30148
|
+
* @param {CustomDomainRequest} [customDomainRequest]
|
|
30149
|
+
* @param {*} [options] Override http request option.
|
|
30150
|
+
* @throws {RequiredError}
|
|
30151
|
+
*/
|
|
30152
|
+
createHelmCustomDomain(helmId: string, customDomainRequest?: CustomDomainRequest, options?: any): AxiosPromise<CustomDomain> {
|
|
30153
|
+
return localVarFp.createHelmCustomDomain(helmId, customDomainRequest, options).then((request) => request(axios, basePath));
|
|
30154
|
+
},
|
|
30023
30155
|
/**
|
|
30024
30156
|
* To delete an CustomDomain you must have the project user permission
|
|
30025
30157
|
* @summary Delete a Custom Domain
|
|
@@ -30064,6 +30196,16 @@ export const CustomDomainApiFactory = function (configuration?: Configuration, b
|
|
|
30064
30196
|
listApplicationCustomDomain(applicationId: string, options?: any): AxiosPromise<CustomDomainResponseList> {
|
|
30065
30197
|
return localVarFp.listApplicationCustomDomain(applicationId, options).then((request) => request(axios, basePath));
|
|
30066
30198
|
},
|
|
30199
|
+
/**
|
|
30200
|
+
* List the custom domains of this helm
|
|
30201
|
+
* @summary List helm custom domains
|
|
30202
|
+
* @param {string} helmId Helm ID
|
|
30203
|
+
* @param {*} [options] Override http request option.
|
|
30204
|
+
* @throws {RequiredError}
|
|
30205
|
+
*/
|
|
30206
|
+
listHelmCustomDomain(helmId: string, options?: any): AxiosPromise<CustomDomainResponseList> {
|
|
30207
|
+
return localVarFp.listHelmCustomDomain(helmId, options).then((request) => request(axios, basePath));
|
|
30208
|
+
},
|
|
30067
30209
|
};
|
|
30068
30210
|
};
|
|
30069
30211
|
|
|
@@ -30087,6 +30229,19 @@ export class CustomDomainApi extends BaseAPI {
|
|
|
30087
30229
|
return CustomDomainApiFp(this.configuration).createApplicationCustomDomain(applicationId, customDomainRequest, options).then((request) => request(this.axios, this.basePath));
|
|
30088
30230
|
}
|
|
30089
30231
|
|
|
30232
|
+
/**
|
|
30233
|
+
* Add a custom domain to this helm in order not to use qovery autogenerated domain
|
|
30234
|
+
* @summary Add custom domain to the helm.
|
|
30235
|
+
* @param {string} helmId Helm ID
|
|
30236
|
+
* @param {CustomDomainRequest} [customDomainRequest]
|
|
30237
|
+
* @param {*} [options] Override http request option.
|
|
30238
|
+
* @throws {RequiredError}
|
|
30239
|
+
* @memberof CustomDomainApi
|
|
30240
|
+
*/
|
|
30241
|
+
public createHelmCustomDomain(helmId: string, customDomainRequest?: CustomDomainRequest, options?: AxiosRequestConfig) {
|
|
30242
|
+
return CustomDomainApiFp(this.configuration).createHelmCustomDomain(helmId, customDomainRequest, options).then((request) => request(this.axios, this.basePath));
|
|
30243
|
+
}
|
|
30244
|
+
|
|
30090
30245
|
/**
|
|
30091
30246
|
* To delete an CustomDomain you must have the project user permission
|
|
30092
30247
|
* @summary Delete a Custom Domain
|
|
@@ -30138,6 +30293,18 @@ export class CustomDomainApi extends BaseAPI {
|
|
|
30138
30293
|
public listApplicationCustomDomain(applicationId: string, options?: AxiosRequestConfig) {
|
|
30139
30294
|
return CustomDomainApiFp(this.configuration).listApplicationCustomDomain(applicationId, options).then((request) => request(this.axios, this.basePath));
|
|
30140
30295
|
}
|
|
30296
|
+
|
|
30297
|
+
/**
|
|
30298
|
+
* List the custom domains of this helm
|
|
30299
|
+
* @summary List helm custom domains
|
|
30300
|
+
* @param {string} helmId Helm ID
|
|
30301
|
+
* @param {*} [options] Override http request option.
|
|
30302
|
+
* @throws {RequiredError}
|
|
30303
|
+
* @memberof CustomDomainApi
|
|
30304
|
+
*/
|
|
30305
|
+
public listHelmCustomDomain(helmId: string, options?: AxiosRequestConfig) {
|
|
30306
|
+
return CustomDomainApiFp(this.configuration).listHelmCustomDomain(helmId, options).then((request) => request(this.axios, this.basePath));
|
|
30307
|
+
}
|
|
30141
30308
|
}
|
|
30142
30309
|
|
|
30143
30310
|
|
|
@@ -37931,6 +38098,295 @@ export class HelmConfigurationApi extends BaseAPI {
|
|
|
37931
38098
|
|
|
37932
38099
|
|
|
37933
38100
|
|
|
38101
|
+
/**
|
|
38102
|
+
* HelmCustomDomainApi - axios parameter creator
|
|
38103
|
+
* @export
|
|
38104
|
+
*/
|
|
38105
|
+
export const HelmCustomDomainApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
38106
|
+
return {
|
|
38107
|
+
/**
|
|
38108
|
+
* To delete an CustomDomain you must have the project user permission
|
|
38109
|
+
* @summary Delete a Custom Domain
|
|
38110
|
+
* @param {string} helmId Helm ID
|
|
38111
|
+
* @param {string} customDomainId Custom Domain ID
|
|
38112
|
+
* @param {*} [options] Override http request option.
|
|
38113
|
+
* @throws {RequiredError}
|
|
38114
|
+
*/
|
|
38115
|
+
deleteHelmCustomDomain: async (helmId: string, customDomainId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
38116
|
+
// verify required parameter 'helmId' is not null or undefined
|
|
38117
|
+
assertParamExists('deleteHelmCustomDomain', 'helmId', helmId)
|
|
38118
|
+
// verify required parameter 'customDomainId' is not null or undefined
|
|
38119
|
+
assertParamExists('deleteHelmCustomDomain', 'customDomainId', customDomainId)
|
|
38120
|
+
const localVarPath = `/helm/{helmId}/customDomain/{customDomainId}`
|
|
38121
|
+
.replace(`{${"helmId"}}`, encodeURIComponent(String(helmId)))
|
|
38122
|
+
.replace(`{${"customDomainId"}}`, encodeURIComponent(String(customDomainId)));
|
|
38123
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
38124
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
38125
|
+
let baseOptions;
|
|
38126
|
+
if (configuration) {
|
|
38127
|
+
baseOptions = configuration.baseOptions;
|
|
38128
|
+
}
|
|
38129
|
+
|
|
38130
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
38131
|
+
const localVarHeaderParameter = {} as any;
|
|
38132
|
+
const localVarQueryParameter = {} as any;
|
|
38133
|
+
|
|
38134
|
+
// authentication ApiKeyAuth required
|
|
38135
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
38136
|
+
|
|
38137
|
+
// authentication bearerAuth required
|
|
38138
|
+
// http bearer authentication required
|
|
38139
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
38140
|
+
|
|
38141
|
+
|
|
38142
|
+
|
|
38143
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
38144
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
38145
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
38146
|
+
|
|
38147
|
+
return {
|
|
38148
|
+
url: toPathString(localVarUrlObj),
|
|
38149
|
+
options: localVarRequestOptions,
|
|
38150
|
+
};
|
|
38151
|
+
},
|
|
38152
|
+
/**
|
|
38153
|
+
* To edit a Custom Domain you must have the project user permission
|
|
38154
|
+
* @summary Edit a Custom Domain
|
|
38155
|
+
* @param {string} helmId Helm ID
|
|
38156
|
+
* @param {string} customDomainId Custom Domain ID
|
|
38157
|
+
* @param {CustomDomainRequest} [customDomainRequest]
|
|
38158
|
+
* @param {*} [options] Override http request option.
|
|
38159
|
+
* @throws {RequiredError}
|
|
38160
|
+
*/
|
|
38161
|
+
editHelmCustomDomain: async (helmId: string, customDomainId: string, customDomainRequest?: CustomDomainRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
38162
|
+
// verify required parameter 'helmId' is not null or undefined
|
|
38163
|
+
assertParamExists('editHelmCustomDomain', 'helmId', helmId)
|
|
38164
|
+
// verify required parameter 'customDomainId' is not null or undefined
|
|
38165
|
+
assertParamExists('editHelmCustomDomain', 'customDomainId', customDomainId)
|
|
38166
|
+
const localVarPath = `/helm/{helmId}/customDomain/{customDomainId}`
|
|
38167
|
+
.replace(`{${"helmId"}}`, encodeURIComponent(String(helmId)))
|
|
38168
|
+
.replace(`{${"customDomainId"}}`, encodeURIComponent(String(customDomainId)));
|
|
38169
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
38170
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
38171
|
+
let baseOptions;
|
|
38172
|
+
if (configuration) {
|
|
38173
|
+
baseOptions = configuration.baseOptions;
|
|
38174
|
+
}
|
|
38175
|
+
|
|
38176
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
38177
|
+
const localVarHeaderParameter = {} as any;
|
|
38178
|
+
const localVarQueryParameter = {} as any;
|
|
38179
|
+
|
|
38180
|
+
// authentication ApiKeyAuth required
|
|
38181
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
38182
|
+
|
|
38183
|
+
// authentication bearerAuth required
|
|
38184
|
+
// http bearer authentication required
|
|
38185
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
38186
|
+
|
|
38187
|
+
|
|
38188
|
+
|
|
38189
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
38190
|
+
|
|
38191
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
38192
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
38193
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
38194
|
+
localVarRequestOptions.data = serializeDataIfNeeded(customDomainRequest, localVarRequestOptions, configuration)
|
|
38195
|
+
|
|
38196
|
+
return {
|
|
38197
|
+
url: toPathString(localVarUrlObj),
|
|
38198
|
+
options: localVarRequestOptions,
|
|
38199
|
+
};
|
|
38200
|
+
},
|
|
38201
|
+
/**
|
|
38202
|
+
* Get a custom domain
|
|
38203
|
+
* @summary Get a Custom Domain
|
|
38204
|
+
* @param {string} helmId Helm ID
|
|
38205
|
+
* @param {string} customDomainId Custom Domain ID
|
|
38206
|
+
* @param {*} [options] Override http request option.
|
|
38207
|
+
* @throws {RequiredError}
|
|
38208
|
+
*/
|
|
38209
|
+
getHelmCustomDomain: async (helmId: string, customDomainId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
38210
|
+
// verify required parameter 'helmId' is not null or undefined
|
|
38211
|
+
assertParamExists('getHelmCustomDomain', 'helmId', helmId)
|
|
38212
|
+
// verify required parameter 'customDomainId' is not null or undefined
|
|
38213
|
+
assertParamExists('getHelmCustomDomain', 'customDomainId', customDomainId)
|
|
38214
|
+
const localVarPath = `/helm/{helmId}/customDomain/{customDomainId}`
|
|
38215
|
+
.replace(`{${"helmId"}}`, encodeURIComponent(String(helmId)))
|
|
38216
|
+
.replace(`{${"customDomainId"}}`, encodeURIComponent(String(customDomainId)));
|
|
38217
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
38218
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
38219
|
+
let baseOptions;
|
|
38220
|
+
if (configuration) {
|
|
38221
|
+
baseOptions = configuration.baseOptions;
|
|
38222
|
+
}
|
|
38223
|
+
|
|
38224
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
38225
|
+
const localVarHeaderParameter = {} as any;
|
|
38226
|
+
const localVarQueryParameter = {} as any;
|
|
38227
|
+
|
|
38228
|
+
// authentication ApiKeyAuth required
|
|
38229
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
38230
|
+
|
|
38231
|
+
// authentication bearerAuth required
|
|
38232
|
+
// http bearer authentication required
|
|
38233
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
38234
|
+
|
|
38235
|
+
|
|
38236
|
+
|
|
38237
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
38238
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
38239
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
38240
|
+
|
|
38241
|
+
return {
|
|
38242
|
+
url: toPathString(localVarUrlObj),
|
|
38243
|
+
options: localVarRequestOptions,
|
|
38244
|
+
};
|
|
38245
|
+
},
|
|
38246
|
+
}
|
|
38247
|
+
};
|
|
38248
|
+
|
|
38249
|
+
/**
|
|
38250
|
+
* HelmCustomDomainApi - functional programming interface
|
|
38251
|
+
* @export
|
|
38252
|
+
*/
|
|
38253
|
+
export const HelmCustomDomainApiFp = function(configuration?: Configuration) {
|
|
38254
|
+
const localVarAxiosParamCreator = HelmCustomDomainApiAxiosParamCreator(configuration)
|
|
38255
|
+
return {
|
|
38256
|
+
/**
|
|
38257
|
+
* To delete an CustomDomain you must have the project user permission
|
|
38258
|
+
* @summary Delete a Custom Domain
|
|
38259
|
+
* @param {string} helmId Helm ID
|
|
38260
|
+
* @param {string} customDomainId Custom Domain ID
|
|
38261
|
+
* @param {*} [options] Override http request option.
|
|
38262
|
+
* @throws {RequiredError}
|
|
38263
|
+
*/
|
|
38264
|
+
async deleteHelmCustomDomain(helmId: string, customDomainId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
38265
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteHelmCustomDomain(helmId, customDomainId, options);
|
|
38266
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
38267
|
+
},
|
|
38268
|
+
/**
|
|
38269
|
+
* To edit a Custom Domain you must have the project user permission
|
|
38270
|
+
* @summary Edit a Custom Domain
|
|
38271
|
+
* @param {string} helmId Helm ID
|
|
38272
|
+
* @param {string} customDomainId Custom Domain ID
|
|
38273
|
+
* @param {CustomDomainRequest} [customDomainRequest]
|
|
38274
|
+
* @param {*} [options] Override http request option.
|
|
38275
|
+
* @throws {RequiredError}
|
|
38276
|
+
*/
|
|
38277
|
+
async editHelmCustomDomain(helmId: string, customDomainId: string, customDomainRequest?: CustomDomainRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDomain>> {
|
|
38278
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.editHelmCustomDomain(helmId, customDomainId, customDomainRequest, options);
|
|
38279
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
38280
|
+
},
|
|
38281
|
+
/**
|
|
38282
|
+
* Get a custom domain
|
|
38283
|
+
* @summary Get a Custom Domain
|
|
38284
|
+
* @param {string} helmId Helm ID
|
|
38285
|
+
* @param {string} customDomainId Custom Domain ID
|
|
38286
|
+
* @param {*} [options] Override http request option.
|
|
38287
|
+
* @throws {RequiredError}
|
|
38288
|
+
*/
|
|
38289
|
+
async getHelmCustomDomain(helmId: string, customDomainId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDomain>> {
|
|
38290
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getHelmCustomDomain(helmId, customDomainId, options);
|
|
38291
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
38292
|
+
},
|
|
38293
|
+
}
|
|
38294
|
+
};
|
|
38295
|
+
|
|
38296
|
+
/**
|
|
38297
|
+
* HelmCustomDomainApi - factory interface
|
|
38298
|
+
* @export
|
|
38299
|
+
*/
|
|
38300
|
+
export const HelmCustomDomainApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
38301
|
+
const localVarFp = HelmCustomDomainApiFp(configuration)
|
|
38302
|
+
return {
|
|
38303
|
+
/**
|
|
38304
|
+
* To delete an CustomDomain you must have the project user permission
|
|
38305
|
+
* @summary Delete a Custom Domain
|
|
38306
|
+
* @param {string} helmId Helm ID
|
|
38307
|
+
* @param {string} customDomainId Custom Domain ID
|
|
38308
|
+
* @param {*} [options] Override http request option.
|
|
38309
|
+
* @throws {RequiredError}
|
|
38310
|
+
*/
|
|
38311
|
+
deleteHelmCustomDomain(helmId: string, customDomainId: string, options?: any): AxiosPromise<void> {
|
|
38312
|
+
return localVarFp.deleteHelmCustomDomain(helmId, customDomainId, options).then((request) => request(axios, basePath));
|
|
38313
|
+
},
|
|
38314
|
+
/**
|
|
38315
|
+
* To edit a Custom Domain you must have the project user permission
|
|
38316
|
+
* @summary Edit a Custom Domain
|
|
38317
|
+
* @param {string} helmId Helm ID
|
|
38318
|
+
* @param {string} customDomainId Custom Domain ID
|
|
38319
|
+
* @param {CustomDomainRequest} [customDomainRequest]
|
|
38320
|
+
* @param {*} [options] Override http request option.
|
|
38321
|
+
* @throws {RequiredError}
|
|
38322
|
+
*/
|
|
38323
|
+
editHelmCustomDomain(helmId: string, customDomainId: string, customDomainRequest?: CustomDomainRequest, options?: any): AxiosPromise<CustomDomain> {
|
|
38324
|
+
return localVarFp.editHelmCustomDomain(helmId, customDomainId, customDomainRequest, options).then((request) => request(axios, basePath));
|
|
38325
|
+
},
|
|
38326
|
+
/**
|
|
38327
|
+
* Get a custom domain
|
|
38328
|
+
* @summary Get a Custom Domain
|
|
38329
|
+
* @param {string} helmId Helm ID
|
|
38330
|
+
* @param {string} customDomainId Custom Domain ID
|
|
38331
|
+
* @param {*} [options] Override http request option.
|
|
38332
|
+
* @throws {RequiredError}
|
|
38333
|
+
*/
|
|
38334
|
+
getHelmCustomDomain(helmId: string, customDomainId: string, options?: any): AxiosPromise<CustomDomain> {
|
|
38335
|
+
return localVarFp.getHelmCustomDomain(helmId, customDomainId, options).then((request) => request(axios, basePath));
|
|
38336
|
+
},
|
|
38337
|
+
};
|
|
38338
|
+
};
|
|
38339
|
+
|
|
38340
|
+
/**
|
|
38341
|
+
* HelmCustomDomainApi - object-oriented interface
|
|
38342
|
+
* @export
|
|
38343
|
+
* @class HelmCustomDomainApi
|
|
38344
|
+
* @extends {BaseAPI}
|
|
38345
|
+
*/
|
|
38346
|
+
export class HelmCustomDomainApi extends BaseAPI {
|
|
38347
|
+
/**
|
|
38348
|
+
* To delete an CustomDomain you must have the project user permission
|
|
38349
|
+
* @summary Delete a Custom Domain
|
|
38350
|
+
* @param {string} helmId Helm ID
|
|
38351
|
+
* @param {string} customDomainId Custom Domain ID
|
|
38352
|
+
* @param {*} [options] Override http request option.
|
|
38353
|
+
* @throws {RequiredError}
|
|
38354
|
+
* @memberof HelmCustomDomainApi
|
|
38355
|
+
*/
|
|
38356
|
+
public deleteHelmCustomDomain(helmId: string, customDomainId: string, options?: AxiosRequestConfig) {
|
|
38357
|
+
return HelmCustomDomainApiFp(this.configuration).deleteHelmCustomDomain(helmId, customDomainId, options).then((request) => request(this.axios, this.basePath));
|
|
38358
|
+
}
|
|
38359
|
+
|
|
38360
|
+
/**
|
|
38361
|
+
* To edit a Custom Domain you must have the project user permission
|
|
38362
|
+
* @summary Edit a Custom Domain
|
|
38363
|
+
* @param {string} helmId Helm ID
|
|
38364
|
+
* @param {string} customDomainId Custom Domain ID
|
|
38365
|
+
* @param {CustomDomainRequest} [customDomainRequest]
|
|
38366
|
+
* @param {*} [options] Override http request option.
|
|
38367
|
+
* @throws {RequiredError}
|
|
38368
|
+
* @memberof HelmCustomDomainApi
|
|
38369
|
+
*/
|
|
38370
|
+
public editHelmCustomDomain(helmId: string, customDomainId: string, customDomainRequest?: CustomDomainRequest, options?: AxiosRequestConfig) {
|
|
38371
|
+
return HelmCustomDomainApiFp(this.configuration).editHelmCustomDomain(helmId, customDomainId, customDomainRequest, options).then((request) => request(this.axios, this.basePath));
|
|
38372
|
+
}
|
|
38373
|
+
|
|
38374
|
+
/**
|
|
38375
|
+
* Get a custom domain
|
|
38376
|
+
* @summary Get a Custom Domain
|
|
38377
|
+
* @param {string} helmId Helm ID
|
|
38378
|
+
* @param {string} customDomainId Custom Domain ID
|
|
38379
|
+
* @param {*} [options] Override http request option.
|
|
38380
|
+
* @throws {RequiredError}
|
|
38381
|
+
* @memberof HelmCustomDomainApi
|
|
38382
|
+
*/
|
|
38383
|
+
public getHelmCustomDomain(helmId: string, customDomainId: string, options?: AxiosRequestConfig) {
|
|
38384
|
+
return HelmCustomDomainApiFp(this.configuration).getHelmCustomDomain(helmId, customDomainId, options).then((request) => request(this.axios, this.basePath));
|
|
38385
|
+
}
|
|
38386
|
+
}
|
|
38387
|
+
|
|
38388
|
+
|
|
38389
|
+
|
|
37934
38390
|
/**
|
|
37935
38391
|
* HelmDeploymentHistoryApi - axios parameter creator
|
|
37936
38392
|
* @export
|