@@ -17075,6 +17075,25 @@ export interface TerraformAdvancedSettings {
17075
17075
*/
17076
17076
'security.read_only_root_filesystem'?: boolean;
17077
17077
}
17078
+ /**
17079
+ *
17080
+ * @export
17081
+ * @interface TerraformDeployRequest
17082
+ */
17083
+ export interface TerraformDeployRequest {
17084
+ /**
17085
+ * Commit to deploy for chart source.
17086
+ * @type {string}
17087
+ * @memberof TerraformDeployRequest
17088
+ */
17089
+ 'git_commit_id'?: string;
17090
+ /**
17091
+ *
17092
+ * @type {boolean}
17093
+ * @memberof TerraformDeployRequest
17094
+ */
17095
+ 'dry_run'?: boolean;
17096
+ }
17078
17097
/**
17079
17098
*
17080
17099
* @export
@@ -56788,6 +56807,128 @@ export const GetIngressDeploymentStatusServiceTypeEnum = {
56788
56807
export type GetIngressDeploymentStatusServiceTypeEnum = typeof GetIngressDeploymentStatusServiceTypeEnum[keyof typeof GetIngressDeploymentStatusServiceTypeEnum];
56789
56808
56790
56809
56810
+ /**
56811
+ * TerraformActionsApi - axios parameter creator
56812
+ * @export
56813
+ */
56814
+ export const TerraformActionsApiAxiosParamCreator = function (configuration?: Configuration) {
56815
+ return {
56816
+ /**
56817
+ * You must provide a git commit id.
56818
+ * @summary Deploy terraform
56819
+ * @param {string} terraformId Terraform ID
56820
+ * @param {TerraformDeployRequest} [terraformDeployRequest]
56821
+ * @param {*} [options] Override http request option.
56822
+ * @throws {RequiredError}
56823
+ */
56824
+ deployTerraform: async (terraformId: string, terraformDeployRequest?: TerraformDeployRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
56825
+ // verify required parameter 'terraformId' is not null or undefined
56826
+ assertParamExists('deployTerraform', 'terraformId', terraformId)
56827
+ const localVarPath = `/terraform/{terraformId}/deploy`
56828
+ .replace(`{${"terraformId"}}`, encodeURIComponent(String(terraformId)));
56829
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
56830
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
56831
+ let baseOptions;
56832
+ if (configuration) {
56833
+ baseOptions = configuration.baseOptions;
56834
+ }
56835
+
56836
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
56837
+ const localVarHeaderParameter = {} as any;
56838
+ const localVarQueryParameter = {} as any;
56839
+
56840
+ // authentication ApiKeyAuth required
56841
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
56842
+
56843
+ // authentication bearerAuth required
56844
+ // http bearer authentication required
56845
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
56846
+
56847
+
56848
+
56849
+ localVarHeaderParameter['Content-Type'] = 'application/json';
56850
+
56851
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
56852
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
56853
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
56854
+ localVarRequestOptions.data = serializeDataIfNeeded(terraformDeployRequest, localVarRequestOptions, configuration)
56855
+
56856
+ return {
56857
+ url: toPathString(localVarUrlObj),
56858
+ options: localVarRequestOptions,
56859
+ };
56860
+ },
56861
+ }
56862
+ };
56863
+
56864
+ /**
56865
+ * TerraformActionsApi - functional programming interface
56866
+ * @export
56867
+ */
56868
+ export const TerraformActionsApiFp = function(configuration?: Configuration) {
56869
+ const localVarAxiosParamCreator = TerraformActionsApiAxiosParamCreator(configuration)
56870
+ return {
56871
+ /**
56872
+ * You must provide a git commit id.
56873
+ * @summary Deploy terraform
56874
+ * @param {string} terraformId Terraform ID
56875
+ * @param {TerraformDeployRequest} [terraformDeployRequest]
56876
+ * @param {*} [options] Override http request option.
56877
+ * @throws {RequiredError}
56878
+ */
56879
+ async deployTerraform(terraformId: string, terraformDeployRequest?: TerraformDeployRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Status>> {
56880
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deployTerraform(terraformId, terraformDeployRequest, options);
56881
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
56882
+ const localVarOperationServerBasePath = operationServerMap['TerraformActionsApi.deployTerraform']?.[localVarOperationServerIndex]?.url;
56883
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
56884
+ },
56885
+ }
56886
+ };
56887
+
56888
+ /**
56889
+ * TerraformActionsApi - factory interface
56890
+ * @export
56891
+ */
56892
+ export const TerraformActionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
56893
+ const localVarFp = TerraformActionsApiFp(configuration)
56894
+ return {
56895
+ /**
56896
+ * You must provide a git commit id.
56897
+ * @summary Deploy terraform
56898
+ * @param {string} terraformId Terraform ID
56899
+ * @param {TerraformDeployRequest} [terraformDeployRequest]
56900
+ * @param {*} [options] Override http request option.
56901
+ * @throws {RequiredError}
56902
+ */
56903
+ deployTerraform(terraformId: string, terraformDeployRequest?: TerraformDeployRequest, options?: RawAxiosRequestConfig): AxiosPromise<Status> {
56904
+ return localVarFp.deployTerraform(terraformId, terraformDeployRequest, options).then((request) => request(axios, basePath));
56905
+ },
56906
+ };
56907
+ };
56908
+
56909
+ /**
56910
+ * TerraformActionsApi - object-oriented interface
56911
+ * @export
56912
+ * @class TerraformActionsApi
56913
+ * @extends {BaseAPI}
56914
+ */
56915
+ export class TerraformActionsApi extends BaseAPI {
56916
+ /**
56917
+ * You must provide a git commit id.
56918
+ * @summary Deploy terraform
56919
+ * @param {string} terraformId Terraform ID
56920
+ * @param {TerraformDeployRequest} [terraformDeployRequest]
56921
+ * @param {*} [options] Override http request option.
56922
+ * @throws {RequiredError}
56923
+ * @memberof TerraformActionsApi
56924
+ */
56925
+ public deployTerraform(terraformId: string, terraformDeployRequest?: TerraformDeployRequest, options?: RawAxiosRequestConfig) {
56926
+ return TerraformActionsApiFp(this.configuration).deployTerraform(terraformId, terraformDeployRequest, options).then((request) => request(this.axios, this.basePath));
56927
+ }
56928
+ }
56929
+
56930
+
56931
+
56791
56932
/**
56792
56933
* TerraformConfigurationApi - axios parameter creator
56793
56934
* @export
0 commit comments