qovery-typescript-axios 1.1.908 → 1.1.910

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 CHANGED
@@ -44,7 +44,7 @@ export type APIVariableScopeEnum = typeof APIVariableScopeEnum[keyof typeof APIV
44
44
 
45
45
 
46
46
  /**
47
- * type of the environment variable (VALUE, FILE, ALIAS, OVERRIDE, BUIT_IN, EXTERNAL_SECRET)
47
+ * type of the environment variable (VALUE, FILE, ALIAS, OVERRIDE, BUIT_IN, EXTERNAL_SECRET, FILE_EXTERNAL_SECRET)
48
48
  * @export
49
49
  * @enum {string}
50
50
  */
@@ -55,7 +55,8 @@ export const APIVariableTypeEnum = {
55
55
  OVERRIDE: 'OVERRIDE',
56
56
  BUILT_IN: 'BUILT_IN',
57
57
  FILE: 'FILE',
58
- EXTERNAL_SECRET: 'EXTERNAL_SECRET'
58
+ EXTERNAL_SECRET: 'EXTERNAL_SECRET',
59
+ FILE_EXTERNAL_SECRET: 'FILE_EXTERNAL_SECRET'
59
60
  } as const;
60
61
 
61
62
  export type APIVariableTypeEnum = typeof APIVariableTypeEnum[keyof typeof APIVariableTypeEnum];
@@ -3508,7 +3509,7 @@ export interface BlueprintCreateRequest {
3508
3509
  * @type {{ [key: string]: any; }}
3509
3510
  * @memberof BlueprintCreateRequest
3510
3511
  */
3511
- 'specOverrides'?: { [key: string]: any; } | null;
3512
+ 'spec_overrides'?: { [key: string]: any; } | null;
3512
3513
  }
3513
3514
  /**
3514
3515
  *
@@ -3608,6 +3609,12 @@ export interface BlueprintManifestContextVariableField {
3608
3609
  * @memberof BlueprintManifestContextVariableField
3609
3610
  */
3610
3611
  'source'?: string | null;
3612
+ /**
3613
+ * Resolved value of the context variable at the time of the request
3614
+ * @type {string}
3615
+ * @memberof BlueprintManifestContextVariableField
3616
+ */
3617
+ 'value'?: string | null;
3611
3618
  }
3612
3619
 
3613
3620
  export const BlueprintManifestContextVariableFieldKindEnum = {
@@ -3628,6 +3635,24 @@ export interface BlueprintManifestFieldType {
3628
3635
  * @memberof BlueprintManifestFieldType
3629
3636
  */
3630
3637
  'type': BlueprintManifestFieldTypeTypeEnum;
3638
+ /**
3639
+ * Regex pattern, only present for string fields
3640
+ * @type {string}
3641
+ * @memberof BlueprintManifestFieldType
3642
+ */
3643
+ 'pattern'?: string | null;
3644
+ /**
3645
+ * Minimum length, only present for string fields
3646
+ * @type {number}
3647
+ * @memberof BlueprintManifestFieldType
3648
+ */
3649
+ 'min_length'?: number | null;
3650
+ /**
3651
+ * Maximum length, only present for string fields
3652
+ * @type {number}
3653
+ * @memberof BlueprintManifestFieldType
3654
+ */
3655
+ 'max_length'?: number | null;
3631
3656
  /**
3632
3657
  * Lower bound, only present for number fields
3633
3658
  * @type {number}
@@ -3712,6 +3737,25 @@ export const BlueprintManifestVariableFieldKindEnum = {
3712
3737
 
3713
3738
  export type BlueprintManifestVariableFieldKindEnum = typeof BlueprintManifestVariableFieldKindEnum[keyof typeof BlueprintManifestVariableFieldKindEnum];
3714
3739
 
3740
+ /**
3741
+ *
3742
+ * @export
3743
+ * @interface BlueprintReadmeResponse
3744
+ */
3745
+ export interface BlueprintReadmeResponse {
3746
+ /**
3747
+ * README content in Markdown format
3748
+ * @type {string}
3749
+ * @memberof BlueprintReadmeResponse
3750
+ */
3751
+ 'content': string;
3752
+ /**
3753
+ * URL of the GitHub repository hosting the blueprint
3754
+ * @type {string}
3755
+ * @memberof BlueprintReadmeResponse
3756
+ */
3757
+ 'repository_url': string;
3758
+ }
3715
3759
  /**
3716
3760
  *
3717
3761
  * @export
@@ -3729,7 +3773,7 @@ export interface BlueprintResponse {
3729
3773
  * @type {string}
3730
3774
  * @memberof BlueprintResponse
3731
3775
  */
3732
- 'catalogUrl': string;
3776
+ 'catalog_url': string;
3733
3777
  /**
3734
3778
  *
3735
3779
  * @type {string}
@@ -3741,7 +3785,196 @@ export interface BlueprintResponse {
3741
3785
  * @type {string}
3742
3786
  * @memberof BlueprintResponse
3743
3787
  */
3744
- 'environmentId': string;
3788
+ 'environment_id': string;
3789
+ }
3790
+ /**
3791
+ *
3792
+ * @export
3793
+ * @interface BlueprintUpdateNewOptionalValue
3794
+ */
3795
+ export interface BlueprintUpdateNewOptionalValue {
3796
+ /**
3797
+ *
3798
+ * @type {string}
3799
+ * @memberof BlueprintUpdateNewOptionalValue
3800
+ */
3801
+ 'name': string;
3802
+ /**
3803
+ *
3804
+ * @type {string}
3805
+ * @memberof BlueprintUpdateNewOptionalValue
3806
+ */
3807
+ 'default_value'?: string | null;
3808
+ }
3809
+ /**
3810
+ *
3811
+ * @export
3812
+ * @interface BlueprintUpdateNewRequiredValue
3813
+ */
3814
+ export interface BlueprintUpdateNewRequiredValue {
3815
+ /**
3816
+ *
3817
+ * @type {string}
3818
+ * @memberof BlueprintUpdateNewRequiredValue
3819
+ */
3820
+ 'name': string;
3821
+ }
3822
+ /**
3823
+ *
3824
+ * @export
3825
+ * @interface BlueprintUpdatePreviewRequest
3826
+ */
3827
+ export interface BlueprintUpdatePreviewRequest {
3828
+ /**
3829
+ * Display name for the service
3830
+ * @type {string}
3831
+ * @memberof BlueprintUpdatePreviewRequest
3832
+ */
3833
+ 'name': string;
3834
+ /**
3835
+ * Catalog tag identifying the target blueprint version
3836
+ * @type {string}
3837
+ * @memberof BlueprintUpdatePreviewRequest
3838
+ */
3839
+ 'tag': string;
3840
+ /**
3841
+ * Icon URL for the service
3842
+ * @type {string}
3843
+ * @memberof BlueprintUpdatePreviewRequest
3844
+ */
3845
+ 'icon': string;
3846
+ /**
3847
+ * Variable overrides to apply in the preview
3848
+ * @type {Array<BlueprintVariableRequest>}
3849
+ * @memberof BlueprintUpdatePreviewRequest
3850
+ */
3851
+ 'variables'?: Array<BlueprintVariableRequest> | null;
3852
+ /**
3853
+ * Partial spec overrides merged on top of the blueprint manifest
3854
+ * @type {{ [key: string]: any; }}
3855
+ * @memberof BlueprintUpdatePreviewRequest
3856
+ */
3857
+ 'spec_overrides'?: { [key: string]: any; } | null;
3858
+ }
3859
+ /**
3860
+ *
3861
+ * @export
3862
+ * @interface BlueprintUpdatePreviewResponse
3863
+ */
3864
+ export interface BlueprintUpdatePreviewResponse {
3865
+ /**
3866
+ * Identifier of the preview execution
3867
+ * @type {string}
3868
+ * @memberof BlueprintUpdatePreviewResponse
3869
+ */
3870
+ 'preview_id': string;
3871
+ /**
3872
+ * Type of the underlying service backing this blueprint
3873
+ * @type {string}
3874
+ * @memberof BlueprintUpdatePreviewResponse
3875
+ */
3876
+ 'service_type': BlueprintUpdatePreviewResponseServiceTypeEnum;
3877
+ }
3878
+
3879
+ export const BlueprintUpdatePreviewResponseServiceTypeEnum = {
3880
+ HELM: 'HELM',
3881
+ TERRAFORM: 'TERRAFORM'
3882
+ } as const;
3883
+
3884
+ export type BlueprintUpdatePreviewResponseServiceTypeEnum = typeof BlueprintUpdatePreviewResponseServiceTypeEnum[keyof typeof BlueprintUpdatePreviewResponseServiceTypeEnum];
3885
+
3886
+ /**
3887
+ *
3888
+ * @export
3889
+ * @interface BlueprintUpdateRemovedValue
3890
+ */
3891
+ export interface BlueprintUpdateRemovedValue {
3892
+ /**
3893
+ *
3894
+ * @type {string}
3895
+ * @memberof BlueprintUpdateRemovedValue
3896
+ */
3897
+ 'name': string;
3898
+ }
3899
+ /**
3900
+ *
3901
+ * @export
3902
+ * @interface BlueprintUpdateResponse
3903
+ */
3904
+ export interface BlueprintUpdateResponse {
3905
+ /**
3906
+ *
3907
+ * @type {boolean}
3908
+ * @memberof BlueprintUpdateResponse
3909
+ */
3910
+ 'is_up_to_date': boolean;
3911
+ /**
3912
+ *
3913
+ * @type {string}
3914
+ * @memberof BlueprintUpdateResponse
3915
+ */
3916
+ 'latest_tag': string;
3917
+ /**
3918
+ * Variables added in the latest version that are required with no default
3919
+ * @type {Array<BlueprintUpdateNewRequiredValue>}
3920
+ * @memberof BlueprintUpdateResponse
3921
+ */
3922
+ 'new_required_values': Array<BlueprintUpdateNewRequiredValue>;
3923
+ /**
3924
+ * Variables added in the latest version that have a default value
3925
+ * @type {Array<BlueprintUpdateNewOptionalValue>}
3926
+ * @memberof BlueprintUpdateResponse
3927
+ */
3928
+ 'new_optional_values': Array<BlueprintUpdateNewOptionalValue>;
3929
+ /**
3930
+ * Variables that were optional but are now required in the latest version
3931
+ * @type {Array<BlueprintUpdateNewRequiredValue>}
3932
+ * @memberof BlueprintUpdateResponse
3933
+ */
3934
+ 'now_required_values': Array<BlueprintUpdateNewRequiredValue>;
3935
+ /**
3936
+ * Variables whose default value changed between the current and latest versions
3937
+ * @type {Array<BlueprintUpdateUpdatedValue>}
3938
+ * @memberof BlueprintUpdateResponse
3939
+ */
3940
+ 'updated_values': Array<BlueprintUpdateUpdatedValue>;
3941
+ /**
3942
+ * Variables that no longer exist in the latest version
3943
+ * @type {Array<BlueprintUpdateRemovedValue>}
3944
+ * @memberof BlueprintUpdateResponse
3945
+ */
3946
+ 'removed_values': Array<BlueprintUpdateRemovedValue>;
3947
+ }
3948
+ /**
3949
+ *
3950
+ * @export
3951
+ * @interface BlueprintUpdateUpdatedValue
3952
+ */
3953
+ export interface BlueprintUpdateUpdatedValue {
3954
+ /**
3955
+ *
3956
+ * @type {string}
3957
+ * @memberof BlueprintUpdateUpdatedValue
3958
+ */
3959
+ 'name': string;
3960
+ /**
3961
+ *
3962
+ * @type {string}
3963
+ * @memberof BlueprintUpdateUpdatedValue
3964
+ */
3965
+ 'current_default_value'?: string | null;
3966
+ /**
3967
+ *
3968
+ * @type {string}
3969
+ * @memberof BlueprintUpdateUpdatedValue
3970
+ */
3971
+ 'new_default_value'?: string | null;
3972
+ /**
3973
+ *
3974
+ * @type {string}
3975
+ * @memberof BlueprintUpdateUpdatedValue
3976
+ */
3977
+ 'current_value'?: string | null;
3745
3978
  }
3746
3979
  /**
3747
3980
  *
@@ -3766,7 +3999,7 @@ export interface BlueprintVariableRequest {
3766
3999
  * @type {boolean}
3767
4000
  * @memberof BlueprintVariableRequest
3768
4001
  */
3769
- 'isSecret'?: boolean;
4002
+ 'is_secret'?: boolean;
3770
4003
  }
3771
4004
  /**
3772
4005
  *
@@ -32381,10 +32614,11 @@ export const BlueprintCatalogApiAxiosParamCreator = function (configuration?: Co
32381
32614
  * @param {string} provider Cloud provider (e.g. aws, gcp, azure)
32382
32615
  * @param {string} serviceFamily Service family (e.g. mysql, postgresql)
32383
32616
  * @param {string} serviceVersion Service version (e.g. 8, 14)
32617
+ * @param {string} environmentId Environment ID used to resolve context variables
32384
32618
  * @param {*} [options] Override http request option.
32385
32619
  * @throws {RequiredError}
32386
32620
  */
32387
- getBlueprintCatalogServiceManifest: async (organizationId: string, provider: string, serviceFamily: string, serviceVersion: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
32621
+ getBlueprintCatalogServiceManifest: async (organizationId: string, provider: string, serviceFamily: string, serviceVersion: string, environmentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
32388
32622
  // verify required parameter 'organizationId' is not null or undefined
32389
32623
  assertParamExists('getBlueprintCatalogServiceManifest', 'organizationId', organizationId)
32390
32624
  // verify required parameter 'provider' is not null or undefined
@@ -32393,6 +32627,8 @@ export const BlueprintCatalogApiAxiosParamCreator = function (configuration?: Co
32393
32627
  assertParamExists('getBlueprintCatalogServiceManifest', 'serviceFamily', serviceFamily)
32394
32628
  // verify required parameter 'serviceVersion' is not null or undefined
32395
32629
  assertParamExists('getBlueprintCatalogServiceManifest', 'serviceVersion', serviceVersion)
32630
+ // verify required parameter 'environmentId' is not null or undefined
32631
+ assertParamExists('getBlueprintCatalogServiceManifest', 'environmentId', environmentId)
32396
32632
  const localVarPath = `/organization/{organizationId}/blueprint/catalog/{provider}/{serviceFamily}/{serviceVersion}/manifest`
32397
32633
  .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
32398
32634
  .replace(`{${"provider"}}`, encodeURIComponent(String(provider)))
@@ -32416,6 +32652,10 @@ export const BlueprintCatalogApiAxiosParamCreator = function (configuration?: Co
32416
32652
  // http bearer authentication required
32417
32653
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
32418
32654
 
32655
+ if (environmentId !== undefined) {
32656
+ localVarQueryParameter['environmentId'] = environmentId;
32657
+ }
32658
+
32419
32659
 
32420
32660
 
32421
32661
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -32497,11 +32737,12 @@ export const BlueprintCatalogApiFp = function(configuration?: Configuration) {
32497
32737
  * @param {string} provider Cloud provider (e.g. aws, gcp, azure)
32498
32738
  * @param {string} serviceFamily Service family (e.g. mysql, postgresql)
32499
32739
  * @param {string} serviceVersion Service version (e.g. 8, 14)
32740
+ * @param {string} environmentId Environment ID used to resolve context variables
32500
32741
  * @param {*} [options] Override http request option.
32501
32742
  * @throws {RequiredError}
32502
32743
  */
32503
- async getBlueprintCatalogServiceManifest(organizationId: string, provider: string, serviceFamily: string, serviceVersion: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBlueprintCatalogServiceManifest200Response>> {
32504
- const localVarAxiosArgs = await localVarAxiosParamCreator.getBlueprintCatalogServiceManifest(organizationId, provider, serviceFamily, serviceVersion, options);
32744
+ async getBlueprintCatalogServiceManifest(organizationId: string, provider: string, serviceFamily: string, serviceVersion: string, environmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBlueprintCatalogServiceManifest200Response>> {
32745
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBlueprintCatalogServiceManifest(organizationId, provider, serviceFamily, serviceVersion, environmentId, options);
32505
32746
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
32506
32747
  const localVarOperationServerBasePath = operationServerMap['BlueprintCatalogApi.getBlueprintCatalogServiceManifest']?.[localVarOperationServerIndex]?.url;
32507
32748
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -32516,7 +32757,7 @@ export const BlueprintCatalogApiFp = function(configuration?: Configuration) {
32516
32757
  * @param {*} [options] Override http request option.
32517
32758
  * @throws {RequiredError}
32518
32759
  */
32519
- async getBlueprintCatalogServiceReadme(organizationId: string, provider: string, serviceFamily: string, serviceVersion: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
32760
+ async getBlueprintCatalogServiceReadme(organizationId: string, provider: string, serviceFamily: string, serviceVersion: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BlueprintReadmeResponse>> {
32520
32761
  const localVarAxiosArgs = await localVarAxiosParamCreator.getBlueprintCatalogServiceReadme(organizationId, provider, serviceFamily, serviceVersion, options);
32521
32762
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
32522
32763
  const localVarOperationServerBasePath = operationServerMap['BlueprintCatalogApi.getBlueprintCatalogServiceReadme']?.[localVarOperationServerIndex]?.url;
@@ -32539,11 +32780,12 @@ export const BlueprintCatalogApiFactory = function (configuration?: Configuratio
32539
32780
  * @param {string} provider Cloud provider (e.g. aws, gcp, azure)
32540
32781
  * @param {string} serviceFamily Service family (e.g. mysql, postgresql)
32541
32782
  * @param {string} serviceVersion Service version (e.g. 8, 14)
32783
+ * @param {string} environmentId Environment ID used to resolve context variables
32542
32784
  * @param {*} [options] Override http request option.
32543
32785
  * @throws {RequiredError}
32544
32786
  */
32545
- getBlueprintCatalogServiceManifest(organizationId: string, provider: string, serviceFamily: string, serviceVersion: string, options?: RawAxiosRequestConfig): AxiosPromise<GetBlueprintCatalogServiceManifest200Response> {
32546
- return localVarFp.getBlueprintCatalogServiceManifest(organizationId, provider, serviceFamily, serviceVersion, options).then((request) => request(axios, basePath));
32787
+ getBlueprintCatalogServiceManifest(organizationId: string, provider: string, serviceFamily: string, serviceVersion: string, environmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<GetBlueprintCatalogServiceManifest200Response> {
32788
+ return localVarFp.getBlueprintCatalogServiceManifest(organizationId, provider, serviceFamily, serviceVersion, environmentId, options).then((request) => request(axios, basePath));
32547
32789
  },
32548
32790
  /**
32549
32791
  *
@@ -32555,7 +32797,7 @@ export const BlueprintCatalogApiFactory = function (configuration?: Configuratio
32555
32797
  * @param {*} [options] Override http request option.
32556
32798
  * @throws {RequiredError}
32557
32799
  */
32558
- getBlueprintCatalogServiceReadme(organizationId: string, provider: string, serviceFamily: string, serviceVersion: string, options?: RawAxiosRequestConfig): AxiosPromise<string> {
32800
+ getBlueprintCatalogServiceReadme(organizationId: string, provider: string, serviceFamily: string, serviceVersion: string, options?: RawAxiosRequestConfig): AxiosPromise<BlueprintReadmeResponse> {
32559
32801
  return localVarFp.getBlueprintCatalogServiceReadme(organizationId, provider, serviceFamily, serviceVersion, options).then((request) => request(axios, basePath));
32560
32802
  },
32561
32803
  };
@@ -32575,12 +32817,13 @@ export class BlueprintCatalogApi extends BaseAPI {
32575
32817
  * @param {string} provider Cloud provider (e.g. aws, gcp, azure)
32576
32818
  * @param {string} serviceFamily Service family (e.g. mysql, postgresql)
32577
32819
  * @param {string} serviceVersion Service version (e.g. 8, 14)
32820
+ * @param {string} environmentId Environment ID used to resolve context variables
32578
32821
  * @param {*} [options] Override http request option.
32579
32822
  * @throws {RequiredError}
32580
32823
  * @memberof BlueprintCatalogApi
32581
32824
  */
32582
- public getBlueprintCatalogServiceManifest(organizationId: string, provider: string, serviceFamily: string, serviceVersion: string, options?: RawAxiosRequestConfig) {
32583
- return BlueprintCatalogApiFp(this.configuration).getBlueprintCatalogServiceManifest(organizationId, provider, serviceFamily, serviceVersion, options).then((request) => request(this.axios, this.basePath));
32825
+ public getBlueprintCatalogServiceManifest(organizationId: string, provider: string, serviceFamily: string, serviceVersion: string, environmentId: string, options?: RawAxiosRequestConfig) {
32826
+ return BlueprintCatalogApiFp(this.configuration).getBlueprintCatalogServiceManifest(organizationId, provider, serviceFamily, serviceVersion, environmentId, options).then((request) => request(this.axios, this.basePath));
32584
32827
  }
32585
32828
 
32586
32829
  /**
@@ -32607,6 +32850,47 @@ export class BlueprintCatalogApi extends BaseAPI {
32607
32850
  */
32608
32851
  export const BlueprintMainCallsApiAxiosParamCreator = function (configuration?: Configuration) {
32609
32852
  return {
32853
+ /**
32854
+ * Returns the update availability for a deployed blueprint service, including the latest tag, and a diff of variables that are new, changed, or removed.
32855
+ * @summary Check if a blueprint service has an available update
32856
+ * @param {string} blueprintId Blueprint ID
32857
+ * @param {*} [options] Override http request option.
32858
+ * @throws {RequiredError}
32859
+ */
32860
+ checkBlueprintUpdate: async (blueprintId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
32861
+ // verify required parameter 'blueprintId' is not null or undefined
32862
+ assertParamExists('checkBlueprintUpdate', 'blueprintId', blueprintId)
32863
+ const localVarPath = `/blueprint/{blueprintId}/update`
32864
+ .replace(`{${"blueprintId"}}`, encodeURIComponent(String(blueprintId)));
32865
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32866
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32867
+ let baseOptions;
32868
+ if (configuration) {
32869
+ baseOptions = configuration.baseOptions;
32870
+ }
32871
+
32872
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
32873
+ const localVarHeaderParameter = {} as any;
32874
+ const localVarQueryParameter = {} as any;
32875
+
32876
+ // authentication ApiKeyAuth required
32877
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
32878
+
32879
+ // authentication bearerAuth required
32880
+ // http bearer authentication required
32881
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
32882
+
32883
+
32884
+
32885
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32886
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32887
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32888
+
32889
+ return {
32890
+ url: toPathString(localVarUrlObj),
32891
+ options: localVarRequestOptions,
32892
+ };
32893
+ },
32610
32894
  /**
32611
32895
  * Instantiates a blueprint from the service catalog into the given environment. Pass `deploy=true` to trigger an immediate deployment after creation.
32612
32896
  * @summary Create a blueprint service in an environment
@@ -32695,6 +32979,53 @@ export const BlueprintMainCallsApiAxiosParamCreator = function (configuration?:
32695
32979
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32696
32980
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32697
32981
 
32982
+ return {
32983
+ url: toPathString(localVarUrlObj),
32984
+ options: localVarRequestOptions,
32985
+ };
32986
+ },
32987
+ /**
32988
+ * Dry-runs a blueprint update by applying the given variables and spec overrides without persisting any changes. Returns a preview ID and the resolved service type.
32989
+ * @summary Preview a blueprint update
32990
+ * @param {string} blueprintId Blueprint ID
32991
+ * @param {BlueprintUpdatePreviewRequest} blueprintUpdatePreviewRequest
32992
+ * @param {*} [options] Override http request option.
32993
+ * @throws {RequiredError}
32994
+ */
32995
+ previewBlueprintUpdate: async (blueprintId: string, blueprintUpdatePreviewRequest: BlueprintUpdatePreviewRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
32996
+ // verify required parameter 'blueprintId' is not null or undefined
32997
+ assertParamExists('previewBlueprintUpdate', 'blueprintId', blueprintId)
32998
+ // verify required parameter 'blueprintUpdatePreviewRequest' is not null or undefined
32999
+ assertParamExists('previewBlueprintUpdate', 'blueprintUpdatePreviewRequest', blueprintUpdatePreviewRequest)
33000
+ const localVarPath = `/blueprint/{blueprintId}/update/preview`
33001
+ .replace(`{${"blueprintId"}}`, encodeURIComponent(String(blueprintId)));
33002
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
33003
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33004
+ let baseOptions;
33005
+ if (configuration) {
33006
+ baseOptions = configuration.baseOptions;
33007
+ }
33008
+
33009
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
33010
+ const localVarHeaderParameter = {} as any;
33011
+ const localVarQueryParameter = {} as any;
33012
+
33013
+ // authentication ApiKeyAuth required
33014
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
33015
+
33016
+ // authentication bearerAuth required
33017
+ // http bearer authentication required
33018
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
33019
+
33020
+
33021
+
33022
+ localVarHeaderParameter['Content-Type'] = 'application/json';
33023
+
33024
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
33025
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33026
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33027
+ localVarRequestOptions.data = serializeDataIfNeeded(blueprintUpdatePreviewRequest, localVarRequestOptions, configuration)
33028
+
32698
33029
  return {
32699
33030
  url: toPathString(localVarUrlObj),
32700
33031
  options: localVarRequestOptions,
@@ -32710,6 +33041,19 @@ export const BlueprintMainCallsApiAxiosParamCreator = function (configuration?:
32710
33041
  export const BlueprintMainCallsApiFp = function(configuration?: Configuration) {
32711
33042
  const localVarAxiosParamCreator = BlueprintMainCallsApiAxiosParamCreator(configuration)
32712
33043
  return {
33044
+ /**
33045
+ * Returns the update availability for a deployed blueprint service, including the latest tag, and a diff of variables that are new, changed, or removed.
33046
+ * @summary Check if a blueprint service has an available update
33047
+ * @param {string} blueprintId Blueprint ID
33048
+ * @param {*} [options] Override http request option.
33049
+ * @throws {RequiredError}
33050
+ */
33051
+ async checkBlueprintUpdate(blueprintId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BlueprintUpdateResponse>> {
33052
+ const localVarAxiosArgs = await localVarAxiosParamCreator.checkBlueprintUpdate(blueprintId, options);
33053
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
33054
+ const localVarOperationServerBasePath = operationServerMap['BlueprintMainCallsApi.checkBlueprintUpdate']?.[localVarOperationServerIndex]?.url;
33055
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
33056
+ },
32713
33057
  /**
32714
33058
  * Instantiates a blueprint from the service catalog into the given environment. Pass `deploy=true` to trigger an immediate deployment after creation.
32715
33059
  * @summary Create a blueprint service in an environment
@@ -32738,6 +33082,20 @@ export const BlueprintMainCallsApiFp = function(configuration?: Configuration) {
32738
33082
  const localVarOperationServerBasePath = operationServerMap['BlueprintMainCallsApi.getBlueprintCatalog']?.[localVarOperationServerIndex]?.url;
32739
33083
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
32740
33084
  },
33085
+ /**
33086
+ * Dry-runs a blueprint update by applying the given variables and spec overrides without persisting any changes. Returns a preview ID and the resolved service type.
33087
+ * @summary Preview a blueprint update
33088
+ * @param {string} blueprintId Blueprint ID
33089
+ * @param {BlueprintUpdatePreviewRequest} blueprintUpdatePreviewRequest
33090
+ * @param {*} [options] Override http request option.
33091
+ * @throws {RequiredError}
33092
+ */
33093
+ async previewBlueprintUpdate(blueprintId: string, blueprintUpdatePreviewRequest: BlueprintUpdatePreviewRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BlueprintUpdatePreviewResponse>> {
33094
+ const localVarAxiosArgs = await localVarAxiosParamCreator.previewBlueprintUpdate(blueprintId, blueprintUpdatePreviewRequest, options);
33095
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
33096
+ const localVarOperationServerBasePath = operationServerMap['BlueprintMainCallsApi.previewBlueprintUpdate']?.[localVarOperationServerIndex]?.url;
33097
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
33098
+ },
32741
33099
  }
32742
33100
  };
32743
33101
 
@@ -32748,6 +33106,16 @@ export const BlueprintMainCallsApiFp = function(configuration?: Configuration) {
32748
33106
  export const BlueprintMainCallsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
32749
33107
  const localVarFp = BlueprintMainCallsApiFp(configuration)
32750
33108
  return {
33109
+ /**
33110
+ * Returns the update availability for a deployed blueprint service, including the latest tag, and a diff of variables that are new, changed, or removed.
33111
+ * @summary Check if a blueprint service has an available update
33112
+ * @param {string} blueprintId Blueprint ID
33113
+ * @param {*} [options] Override http request option.
33114
+ * @throws {RequiredError}
33115
+ */
33116
+ checkBlueprintUpdate(blueprintId: string, options?: RawAxiosRequestConfig): AxiosPromise<BlueprintUpdateResponse> {
33117
+ return localVarFp.checkBlueprintUpdate(blueprintId, options).then((request) => request(axios, basePath));
33118
+ },
32751
33119
  /**
32752
33120
  * Instantiates a blueprint from the service catalog into the given environment. Pass `deploy=true` to trigger an immediate deployment after creation.
32753
33121
  * @summary Create a blueprint service in an environment
@@ -32770,6 +33138,17 @@ export const BlueprintMainCallsApiFactory = function (configuration?: Configurat
32770
33138
  getBlueprintCatalog(organizationId: string, options?: RawAxiosRequestConfig): AxiosPromise<BlueprintCatalogResponse> {
32771
33139
  return localVarFp.getBlueprintCatalog(organizationId, options).then((request) => request(axios, basePath));
32772
33140
  },
33141
+ /**
33142
+ * Dry-runs a blueprint update by applying the given variables and spec overrides without persisting any changes. Returns a preview ID and the resolved service type.
33143
+ * @summary Preview a blueprint update
33144
+ * @param {string} blueprintId Blueprint ID
33145
+ * @param {BlueprintUpdatePreviewRequest} blueprintUpdatePreviewRequest
33146
+ * @param {*} [options] Override http request option.
33147
+ * @throws {RequiredError}
33148
+ */
33149
+ previewBlueprintUpdate(blueprintId: string, blueprintUpdatePreviewRequest: BlueprintUpdatePreviewRequest, options?: RawAxiosRequestConfig): AxiosPromise<BlueprintUpdatePreviewResponse> {
33150
+ return localVarFp.previewBlueprintUpdate(blueprintId, blueprintUpdatePreviewRequest, options).then((request) => request(axios, basePath));
33151
+ },
32773
33152
  };
32774
33153
  };
32775
33154
 
@@ -32780,6 +33159,18 @@ export const BlueprintMainCallsApiFactory = function (configuration?: Configurat
32780
33159
  * @extends {BaseAPI}
32781
33160
  */
32782
33161
  export class BlueprintMainCallsApi extends BaseAPI {
33162
+ /**
33163
+ * Returns the update availability for a deployed blueprint service, including the latest tag, and a diff of variables that are new, changed, or removed.
33164
+ * @summary Check if a blueprint service has an available update
33165
+ * @param {string} blueprintId Blueprint ID
33166
+ * @param {*} [options] Override http request option.
33167
+ * @throws {RequiredError}
33168
+ * @memberof BlueprintMainCallsApi
33169
+ */
33170
+ public checkBlueprintUpdate(blueprintId: string, options?: RawAxiosRequestConfig) {
33171
+ return BlueprintMainCallsApiFp(this.configuration).checkBlueprintUpdate(blueprintId, options).then((request) => request(this.axios, this.basePath));
33172
+ }
33173
+
32783
33174
  /**
32784
33175
  * Instantiates a blueprint from the service catalog into the given environment. Pass `deploy=true` to trigger an immediate deployment after creation.
32785
33176
  * @summary Create a blueprint service in an environment
@@ -32805,6 +33196,19 @@ export class BlueprintMainCallsApi extends BaseAPI {
32805
33196
  public getBlueprintCatalog(organizationId: string, options?: RawAxiosRequestConfig) {
32806
33197
  return BlueprintMainCallsApiFp(this.configuration).getBlueprintCatalog(organizationId, options).then((request) => request(this.axios, this.basePath));
32807
33198
  }
33199
+
33200
+ /**
33201
+ * Dry-runs a blueprint update by applying the given variables and spec overrides without persisting any changes. Returns a preview ID and the resolved service type.
33202
+ * @summary Preview a blueprint update
33203
+ * @param {string} blueprintId Blueprint ID
33204
+ * @param {BlueprintUpdatePreviewRequest} blueprintUpdatePreviewRequest
33205
+ * @param {*} [options] Override http request option.
33206
+ * @throws {RequiredError}
33207
+ * @memberof BlueprintMainCallsApi
33208
+ */
33209
+ public previewBlueprintUpdate(blueprintId: string, blueprintUpdatePreviewRequest: BlueprintUpdatePreviewRequest, options?: RawAxiosRequestConfig) {
33210
+ return BlueprintMainCallsApiFp(this.configuration).previewBlueprintUpdate(blueprintId, blueprintUpdatePreviewRequest, options).then((request) => request(this.axios, this.basePath));
33211
+ }
32808
33212
  }
32809
33213
 
32810
33214