@maxim_mazurok/gapi.client.config-v1 0.2.20260311 → 0.2.20260603

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.
Files changed (3) hide show
  1. package/index.d.ts +589 -4
  2. package/package.json +1 -1
  3. package/readme.md +12 -0
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://config.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20260311
12
+ // Revision: 20260603
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -142,6 +142,55 @@ declare namespace gapi.client {
142
142
  /** Optional. The user-specified Cloud Build worker pool resource in which the Cloud Build job will execute. Format: `projects/{project}/locations/{location}/workerPools/{workerPoolId}`. If this field is unspecified, the default Cloud Build worker pool will be used. */
143
143
  workerPool?: string;
144
144
  }
145
+ interface DeploymentGroup {
146
+ /** Optional. Arbitrary key-value metadata storage e.g. to help client tools identify deployment group during automation. See https://google.aip.dev/148#annotations for details on format and size limitations. */
147
+ annotations?: {[P in string]: string};
148
+ /** Output only. Time when the deployment group was created. */
149
+ createTime?: string;
150
+ /** The deployment units of the deployment group in a DAG like structure. When a deployment group is being provisioned, the deployment units are deployed in a DAG order. The provided units must be in a DAG order, otherwise an error will be returned. */
151
+ deploymentUnits?: DeploymentUnit[];
152
+ /** Optional. User-defined metadata for the deployment group. */
153
+ labels?: {[P in string]: string};
154
+ /** Identifier. The name of the deployment group. Format: 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'. */
155
+ name?: string;
156
+ /** Output only. The error status of the deployment group provisioning or deprovisioning. */
157
+ provisioningError?: Status;
158
+ /** Output only. The provisioning state of the deployment group. */
159
+ provisioningState?:
160
+ | 'PROVISIONING_STATE_UNSPECIFIED'
161
+ | 'PROVISIONING'
162
+ | 'PROVISIONED'
163
+ | 'FAILED_TO_PROVISION'
164
+ | 'DEPROVISIONING'
165
+ | 'DEPROVISIONED'
166
+ | 'FAILED_TO_DEPROVISION';
167
+ /** Output only. Additional information regarding the current provisioning state. */
168
+ provisioningStateDescription?: string;
169
+ /** Output only. Current state of the deployment group. */
170
+ state?:
171
+ | 'STATE_UNSPECIFIED'
172
+ | 'CREATING'
173
+ | 'ACTIVE'
174
+ | 'UPDATING'
175
+ | 'DELETING'
176
+ | 'FAILED'
177
+ | 'SUSPENDED'
178
+ | 'DELETED';
179
+ /** Output only. Additional information regarding the current state. */
180
+ stateDescription?: string;
181
+ /** Output only. Time when the deployment group was last updated. */
182
+ updateTime?: string;
183
+ }
184
+ interface DeploymentGroupRevision {
185
+ /** Output only. The alternative IDs of the deployment group revision. */
186
+ alternativeIds?: string[];
187
+ /** Output only. Time when the deployment group revision was created. */
188
+ createTime?: string;
189
+ /** Identifier. The name of the deployment group revision. Format: 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}/revisions/{revision}'. */
190
+ name?: string;
191
+ /** Output only. The snapshot of the deployment group at this revision. */
192
+ snapshot?: DeploymentGroup;
193
+ }
145
194
  interface DeploymentOperationMetadata {
146
195
  /** Outputs and artifacts from applying a deployment. */
147
196
  applyResults?: ApplyResults;
@@ -165,6 +214,89 @@ declare namespace gapi.client {
165
214
  | 'VALIDATING_REPOSITORY'
166
215
  | 'RUNNING_QUOTA_VALIDATION';
167
216
  }
217
+ interface DeploymentOperationSummary {
218
+ /** Output only. Location of Deployment operations artifacts in `gs://{bucket}/{object}` format. */
219
+ artifacts?: string;
220
+ /** Output only. Cloud Build instance UUID associated with this operation. */
221
+ build?: string;
222
+ /** Output only. Location of Deployment operations content in `gs://{bucket}/{object}` format. */
223
+ content?: string;
224
+ /** Output only. The current step the deployment operation is running. */
225
+ deploymentStep?:
226
+ | 'DEPLOYMENT_STEP_UNSPECIFIED'
227
+ | 'PREPARING_STORAGE_BUCKET'
228
+ | 'DOWNLOADING_BLUEPRINT'
229
+ | 'RUNNING_TF_INIT'
230
+ | 'RUNNING_TF_PLAN'
231
+ | 'RUNNING_TF_APPLY'
232
+ | 'RUNNING_TF_DESTROY'
233
+ | 'RUNNING_TF_VALIDATE'
234
+ | 'UNLOCKING_DEPLOYMENT'
235
+ | 'SUCCEEDED'
236
+ | 'FAILED'
237
+ | 'VALIDATING_REPOSITORY'
238
+ | 'RUNNING_QUOTA_VALIDATION';
239
+ /** Output only. Location of Deployment operations logs in `gs://{bucket}/{object}` format. */
240
+ logs?: string;
241
+ }
242
+ interface DeploymentSource {
243
+ /** Required. The resource name of the source Deployment to import the output from. Format: projects/{project}/locations/{location}/deployments/{deployment} The source deployment must be in the same project and location. */
244
+ deployment?: string;
245
+ /** Required. The name of the output variable in the source deployment's latest successfully applied revision. */
246
+ outputName?: string;
247
+ }
248
+ interface DeploymentSpec {
249
+ /** Required. The deployment to be created. */
250
+ deployment?: Deployment;
251
+ /** Required. The id of the deployment to be created which doesn't include the project id and location. */
252
+ deploymentId?: string;
253
+ }
254
+ interface DeploymentUnit {
255
+ /** Required. The IDs of the deployment units within the deployment group that this unit depends on. */
256
+ dependencies?: string[];
257
+ /** Optional. The name of the deployment to be provisioned. Format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. */
258
+ deployment?: string;
259
+ /** The id of the deployment unit. Must be unique within the deployment group. */
260
+ id?: string;
261
+ }
262
+ interface DeploymentUnitProgress {
263
+ /** Output only. The name of the deployment to be provisioned. Format: 'projects/{project}/locations/{location}/deployments/{deployment}'. */
264
+ deployment?: string;
265
+ /** Output only. The summary of the deployment operation. */
266
+ deploymentOperationSummary?: DeploymentOperationSummary;
267
+ /** Output only. Holds the error status of the deployment unit provisioning. */
268
+ error?: Status;
269
+ /** Output only. The intent of the deployment unit. */
270
+ intent?:
271
+ | 'INTENT_UNSPECIFIED'
272
+ | 'CREATE_DEPLOYMENT'
273
+ | 'UPDATE_DEPLOYMENT'
274
+ | 'DELETE_DEPLOYMENT'
275
+ | 'RECREATE_DEPLOYMENT'
276
+ | 'CLEAN_UP'
277
+ | 'UNCHANGED';
278
+ /** Output only. The current step of the deployment unit provisioning. */
279
+ state?:
280
+ | 'STATE_UNSPECIFIED'
281
+ | 'QUEUED'
282
+ | 'APPLYING_DEPLOYMENT'
283
+ | 'SUCCEEDED'
284
+ | 'FAILED'
285
+ | 'ABORTED'
286
+ | 'SKIPPED'
287
+ | 'DELETING_DEPLOYMENT'
288
+ | 'PREVIEWING_DEPLOYMENT';
289
+ /** Output only. Additional information regarding the current state. */
290
+ stateDescription?: string;
291
+ /** Output only. The unit id of the deployment unit to be provisioned. */
292
+ unitId?: string;
293
+ }
294
+ interface DeprovisionDeploymentGroupRequest {
295
+ /** Optional. Policy on how resources within each deployment should be handled during deletion. This policy is applied globally to the deletion of all deployments in this group. This corresponds to the 'delete_policy' field in DeleteDeploymentRequest. */
296
+ deletePolicy?: 'DELETE_POLICY_UNSPECIFIED' | 'DELETE' | 'ABANDON';
297
+ /** Optional. If set to true, this option is propagated to the deletion of each deployment in the group. This corresponds to the 'force' field in DeleteDeploymentRequest. */
298
+ force?: boolean;
299
+ }
168
300
  interface Empty {}
169
301
  interface ExportDeploymentStatefileRequest {
170
302
  /** Optional. If this flag is set to true, the exported deployment state file will be the draft state. This will enable the draft file to be validated before copying it over to the working state on unlock. */
@@ -186,6 +318,10 @@ declare namespace gapi.client {
186
318
  /** Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. */
187
319
  title?: string;
188
320
  }
321
+ interface ExternalValueSource {
322
+ /** A source from a Deployment. */
323
+ deploymentSource?: DeploymentSource;
324
+ }
189
325
  interface GitSource {
190
326
  /** Optional. Subdirectory inside the repository. Example: 'staging/my-package' */
191
327
  directory?: string;
@@ -198,6 +334,22 @@ declare namespace gapi.client {
198
334
  /** Required. Lock ID of the lock file to verify that the user who is importing the state file previously locked the Deployment. */
199
335
  lockId?: string;
200
336
  }
337
+ interface ListDeploymentGroupRevisionsResponse {
338
+ /** The deployment group revisions from the specified collection. */
339
+ deploymentGroupRevisions?: DeploymentGroupRevision[];
340
+ /** Token to be supplied to the next ListDeploymentGroupRevisions request via `page_token` to obtain the next set of results. */
341
+ nextPageToken?: string;
342
+ /** Unordered list. Locations that could not be reached. */
343
+ unreachable?: string[];
344
+ }
345
+ interface ListDeploymentGroupsResponse {
346
+ /** The deployment groups from the specified collection. */
347
+ deploymentGroups?: DeploymentGroup[];
348
+ /** Token to be supplied to the next ListDeploymentGroups request via `page_token` to obtain the next set of results. */
349
+ nextPageToken?: string;
350
+ /** Locations that could not be reached. */
351
+ unreachable?: string[];
352
+ }
201
353
  interface ListDeploymentsResponse {
202
354
  /** List of Deployments. */
203
355
  deployments?: Deployment[];
@@ -318,6 +470,8 @@ declare namespace gapi.client {
318
470
  endTime?: string;
319
471
  /** Output only. Metadata about the preview operation state. */
320
472
  previewMetadata?: PreviewOperationMetadata;
473
+ /** Output only. Metadata about ProvisionDeploymentGroup operation state. */
474
+ provisionDeploymentGroupMetadata?: ProvisionDeploymentGroupOperationMetadata;
321
475
  /** Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have google.longrunning.Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. */
322
476
  requestedCancellation?: boolean;
323
477
  /** Output only. Human-readable status of the operation, if any. */
@@ -458,6 +612,24 @@ declare namespace gapi.client {
458
612
  /** Optional. ProviderSource specifies the source type of the provider. */
459
613
  sourceType?: 'PROVIDER_SOURCE_UNSPECIFIED' | 'SERVICE_MAINTAINED';
460
614
  }
615
+ interface ProvisionDeploymentGroupOperationMetadata {
616
+ /** Output only. Progress information for each deployment unit within the operation. */
617
+ deploymentUnitProgresses?: DeploymentUnitProgress[];
618
+ /** Output only. The current step of the deployment group operation. */
619
+ step?:
620
+ | 'PROVISION_DEPLOYMENT_GROUP_STEP_UNSPECIFIED'
621
+ | 'VALIDATING_DEPLOYMENT_GROUP'
622
+ | 'ASSOCIATING_DEPLOYMENTS_TO_DEPLOYMENT_GROUP'
623
+ | 'PROVISIONING_DEPLOYMENT_UNITS'
624
+ | 'DISASSOCIATING_DEPLOYMENTS_FROM_DEPLOYMENT_GROUP'
625
+ | 'SUCCEEDED'
626
+ | 'FAILED'
627
+ | 'DEPROVISIONING_DEPLOYMENT_UNITS';
628
+ }
629
+ interface ProvisionDeploymentGroupRequest {
630
+ /** Optional. The deployment specs of the deployment units to be created within the same project and location of the deployment group. The key is the unit ID, and the value is the `DeploymentSpec`. Provisioning will fail if a `deployment_spec` has a `deployment_id` that matches an existing deployment in the same project and location. If an existing deployment was part of the last successful revision but is no longer in the current DeploymentGroup's `deployment_units`, it will be recreated if included in `deployment_specs`. */
631
+ deploymentSpecs?: {[P in string]: DeploymentSpec};
632
+ }
461
633
  interface Resource {
462
634
  /** Output only. Map of Cloud Asset Inventory (CAI) type to CAI info (e.g. CAI ID). CAI type format follows https://cloud.google.com/asset-inventory/docs/supported-asset-types */
463
635
  caiAssets?: {[P in string]: ResourceCAIInfo};
@@ -603,11 +775,13 @@ declare namespace gapi.client {
603
775
  /** The status code, which should be an enum value of google.rpc.Code. */
604
776
  code?: number;
605
777
  /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
606
- details?: Array<{[P in string]: any}>;
778
+ details?: {[P in string]: any}[];
607
779
  /** A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. */
608
780
  message?: string;
609
781
  }
610
782
  interface TerraformBlueprint {
783
+ /** Optional. Map of input variable names in this blueprint to configurations for importing values from external sources. */
784
+ externalValues?: {[P in string]: ExternalValueSource};
611
785
  /** URI of an object in Google Cloud Storage. Format: `gs://{bucket}/{object}` URI may also specify an object version for zipped objects. Format: `gs://{bucket}/{object}#{version}` */
612
786
  gcsSource?: string;
613
787
  /** URI of a public Git repo. */
@@ -659,6 +833,416 @@ declare namespace gapi.client {
659
833
  /** Required. Lock ID of the lock file to be unlocked. */
660
834
  lockId?: string;
661
835
  }
836
+ interface RevisionsResource {
837
+ /** Gets details about a DeploymentGroupRevision. */
838
+ get(request?: {
839
+ /** V1 error format. */
840
+ '$.xgafv'?: '1' | '2';
841
+ /** OAuth access token. */
842
+ access_token?: string;
843
+ /** Data format for response. */
844
+ alt?: 'json' | 'media' | 'proto';
845
+ /** JSONP */
846
+ callback?: string;
847
+ /** Selector specifying which fields to include in a partial response. */
848
+ fields?: string;
849
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
850
+ key?: string;
851
+ /** Required. The name of the deployment group revision to retrieve. Format: 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}/revisions/{revision}'. */
852
+ name: string;
853
+ /** OAuth 2.0 token for the current user. */
854
+ oauth_token?: string;
855
+ /** Returns response with indentations and line breaks. */
856
+ prettyPrint?: boolean;
857
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
858
+ quotaUser?: string;
859
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
860
+ upload_protocol?: string;
861
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
862
+ uploadType?: string;
863
+ }): Request<DeploymentGroupRevision>;
864
+ /** Lists DeploymentGroupRevisions in a given DeploymentGroup. */
865
+ list(request?: {
866
+ /** V1 error format. */
867
+ '$.xgafv'?: '1' | '2';
868
+ /** OAuth access token. */
869
+ access_token?: string;
870
+ /** Data format for response. */
871
+ alt?: 'json' | 'media' | 'proto';
872
+ /** JSONP */
873
+ callback?: string;
874
+ /** Selector specifying which fields to include in a partial response. */
875
+ fields?: string;
876
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
877
+ key?: string;
878
+ /** OAuth 2.0 token for the current user. */
879
+ oauth_token?: string;
880
+ /** Optional. When requesting a page of resources, 'page_size' specifies number of resources to return. If unspecified, a sensible default will be used by the server. The maximum value is 1000; values above 1000 will be coerced to 1000. */
881
+ pageSize?: number;
882
+ /** Optional. Token returned by previous call to 'ListDeploymentGroupRevisions' which specifies the position in the list from where to continue listing the deployment group revisions. All other parameters provided to `ListDeploymentGroupRevisions` must match the call that provided the page token. */
883
+ pageToken?: string;
884
+ /** Required. The parent, which owns this collection of deployment group revisions. Format: 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'. */
885
+ parent: string;
886
+ /** Returns response with indentations and line breaks. */
887
+ prettyPrint?: boolean;
888
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
889
+ quotaUser?: string;
890
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
891
+ upload_protocol?: string;
892
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
893
+ uploadType?: string;
894
+ }): Request<ListDeploymentGroupRevisionsResponse>;
895
+ }
896
+ interface DeploymentGroupsResource {
897
+ /** Creates a DeploymentGroup The newly created DeploymentGroup will be in the `CREATING` state and can be retrieved via Get and List calls. */
898
+ create(request: {
899
+ /** V1 error format. */
900
+ '$.xgafv'?: '1' | '2';
901
+ /** OAuth access token. */
902
+ access_token?: string;
903
+ /** Data format for response. */
904
+ alt?: 'json' | 'media' | 'proto';
905
+ /** JSONP */
906
+ callback?: string;
907
+ /** Required. The deployment group ID. */
908
+ deploymentGroupId?: string;
909
+ /** Selector specifying which fields to include in a partial response. */
910
+ fields?: string;
911
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
912
+ key?: string;
913
+ /** OAuth 2.0 token for the current user. */
914
+ oauth_token?: string;
915
+ /** Required. The parent in whose context the Deployment Group is created. The parent value is in the format: 'projects/{project_id}/locations/{location}' */
916
+ parent: string;
917
+ /** Returns response with indentations and line breaks. */
918
+ prettyPrint?: boolean;
919
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
920
+ quotaUser?: string;
921
+ /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */
922
+ requestId?: string;
923
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
924
+ upload_protocol?: string;
925
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
926
+ uploadType?: string;
927
+ /** Request body */
928
+ resource: DeploymentGroup;
929
+ }): Request<Operation>;
930
+ create(
931
+ request: {
932
+ /** V1 error format. */
933
+ '$.xgafv'?: '1' | '2';
934
+ /** OAuth access token. */
935
+ access_token?: string;
936
+ /** Data format for response. */
937
+ alt?: 'json' | 'media' | 'proto';
938
+ /** JSONP */
939
+ callback?: string;
940
+ /** Required. The deployment group ID. */
941
+ deploymentGroupId?: string;
942
+ /** Selector specifying which fields to include in a partial response. */
943
+ fields?: string;
944
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
945
+ key?: string;
946
+ /** OAuth 2.0 token for the current user. */
947
+ oauth_token?: string;
948
+ /** Required. The parent in whose context the Deployment Group is created. The parent value is in the format: 'projects/{project_id}/locations/{location}' */
949
+ parent: string;
950
+ /** Returns response with indentations and line breaks. */
951
+ prettyPrint?: boolean;
952
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
953
+ quotaUser?: string;
954
+ /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */
955
+ requestId?: string;
956
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
957
+ upload_protocol?: string;
958
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
959
+ uploadType?: string;
960
+ },
961
+ body: DeploymentGroup,
962
+ ): Request<Operation>;
963
+ /** Deletes a DeploymentGroup */
964
+ delete(request?: {
965
+ /** V1 error format. */
966
+ '$.xgafv'?: '1' | '2';
967
+ /** OAuth access token. */
968
+ access_token?: string;
969
+ /** Data format for response. */
970
+ alt?: 'json' | 'media' | 'proto';
971
+ /** JSONP */
972
+ callback?: string;
973
+ /** Optional. Policy on how to handle referenced deployments when deleting the DeploymentGroup. If unspecified, the default behavior is to fail the deletion if any deployments currently referenced in the `deployment_units` of the DeploymentGroup or in the latest revision are not deleted. */
974
+ deploymentReferencePolicy?:
975
+ | 'DEPLOYMENT_REFERENCE_POLICY_UNSPECIFIED'
976
+ | 'FAIL_IF_ANY_REFERENCES_EXIST'
977
+ | 'FAIL_IF_METADATA_REFERENCES_EXIST'
978
+ | 'IGNORE_DEPLOYMENT_REFERENCES';
979
+ /** Selector specifying which fields to include in a partial response. */
980
+ fields?: string;
981
+ /** Optional. If set to true, any revisions for this deployment group will also be deleted. (Otherwise, the request will only work if the deployment group has no revisions.) */
982
+ force?: boolean;
983
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
984
+ key?: string;
985
+ /** Required. The name of DeploymentGroup in the format projects/{project_id}/locations/{location_id}/deploymentGroups/{deploymentGroup} */
986
+ name: string;
987
+ /** OAuth 2.0 token for the current user. */
988
+ oauth_token?: string;
989
+ /** Returns response with indentations and line breaks. */
990
+ prettyPrint?: boolean;
991
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
992
+ quotaUser?: string;
993
+ /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */
994
+ requestId?: string;
995
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
996
+ upload_protocol?: string;
997
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
998
+ uploadType?: string;
999
+ }): Request<Operation>;
1000
+ /** Deprovisions a deployment group. NOTE: As a first step of this operation, Infra Manager will automatically delete any Deployments that were part of the *last successful* DeploymentGroupRevision but are *no longer* included in the *current* DeploymentGroup definition (e.g., following an `UpdateDeploymentGroup` call), along with their actuated resources. */
1001
+ deprovision(request: {
1002
+ /** V1 error format. */
1003
+ '$.xgafv'?: '1' | '2';
1004
+ /** OAuth access token. */
1005
+ access_token?: string;
1006
+ /** Data format for response. */
1007
+ alt?: 'json' | 'media' | 'proto';
1008
+ /** JSONP */
1009
+ callback?: string;
1010
+ /** Selector specifying which fields to include in a partial response. */
1011
+ fields?: string;
1012
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1013
+ key?: string;
1014
+ /** Required. The name of the deployment group to deprovision. Format: 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'. */
1015
+ name: string;
1016
+ /** OAuth 2.0 token for the current user. */
1017
+ oauth_token?: string;
1018
+ /** Returns response with indentations and line breaks. */
1019
+ prettyPrint?: boolean;
1020
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1021
+ quotaUser?: string;
1022
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1023
+ upload_protocol?: string;
1024
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1025
+ uploadType?: string;
1026
+ /** Request body */
1027
+ resource: DeprovisionDeploymentGroupRequest;
1028
+ }): Request<Operation>;
1029
+ deprovision(
1030
+ request: {
1031
+ /** V1 error format. */
1032
+ '$.xgafv'?: '1' | '2';
1033
+ /** OAuth access token. */
1034
+ access_token?: string;
1035
+ /** Data format for response. */
1036
+ alt?: 'json' | 'media' | 'proto';
1037
+ /** JSONP */
1038
+ callback?: string;
1039
+ /** Selector specifying which fields to include in a partial response. */
1040
+ fields?: string;
1041
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1042
+ key?: string;
1043
+ /** Required. The name of the deployment group to deprovision. Format: 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'. */
1044
+ name: string;
1045
+ /** OAuth 2.0 token for the current user. */
1046
+ oauth_token?: string;
1047
+ /** Returns response with indentations and line breaks. */
1048
+ prettyPrint?: boolean;
1049
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1050
+ quotaUser?: string;
1051
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1052
+ upload_protocol?: string;
1053
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1054
+ uploadType?: string;
1055
+ },
1056
+ body: DeprovisionDeploymentGroupRequest,
1057
+ ): Request<Operation>;
1058
+ /** Get a DeploymentGroup for a given project and location. */
1059
+ get(request?: {
1060
+ /** V1 error format. */
1061
+ '$.xgafv'?: '1' | '2';
1062
+ /** OAuth access token. */
1063
+ access_token?: string;
1064
+ /** Data format for response. */
1065
+ alt?: 'json' | 'media' | 'proto';
1066
+ /** JSONP */
1067
+ callback?: string;
1068
+ /** Selector specifying which fields to include in a partial response. */
1069
+ fields?: string;
1070
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1071
+ key?: string;
1072
+ /** Required. The name of the deployment group to retrieve. Format: 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'. */
1073
+ name: string;
1074
+ /** OAuth 2.0 token for the current user. */
1075
+ oauth_token?: string;
1076
+ /** Returns response with indentations and line breaks. */
1077
+ prettyPrint?: boolean;
1078
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1079
+ quotaUser?: string;
1080
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1081
+ upload_protocol?: string;
1082
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1083
+ uploadType?: string;
1084
+ }): Request<DeploymentGroup>;
1085
+ /** List DeploymentGroups for a given project and location. */
1086
+ list(request?: {
1087
+ /** V1 error format. */
1088
+ '$.xgafv'?: '1' | '2';
1089
+ /** OAuth access token. */
1090
+ access_token?: string;
1091
+ /** Data format for response. */
1092
+ alt?: 'json' | 'media' | 'proto';
1093
+ /** JSONP */
1094
+ callback?: string;
1095
+ /** Selector specifying which fields to include in a partial response. */
1096
+ fields?: string;
1097
+ /** Optional. Lists the DeploymentGroups that match the filter expression. A filter expression filters the deployment groups listed in the response. The expression must be of the form '{field} {operator} {value}' where operators: '<', '>', '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS operator which is roughly synonymous with equality). {field} can refer to a proto or JSON field, or a synthetic field. Field names can be camelCase or snake_case. Examples: - Filter by name: name = "projects/foo/locations/us-central1/deploymentGroups/bar" - Filter by labels: - Resources that have a key called 'foo' labels.foo:* - Resources that have a key called 'foo' whose value is 'bar' labels.foo = bar - Filter by state: - DeploymentGroups in CREATING state. state=CREATING */
1098
+ filter?: string;
1099
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1100
+ key?: string;
1101
+ /** OAuth 2.0 token for the current user. */
1102
+ oauth_token?: string;
1103
+ /** Optional. Field to use to sort the list. */
1104
+ orderBy?: string;
1105
+ /** Optional. When requesting a page of resources, 'page_size' specifies number of resources to return. If unspecified, at most 500 will be returned. The maximum value is 1000. */
1106
+ pageSize?: number;
1107
+ /** Optional. Token returned by previous call to 'ListDeploymentGroups' which specifies the position in the list from where to continue listing the deployment groups. */
1108
+ pageToken?: string;
1109
+ /** Required. The parent, which owns this collection of deployment groups. Format: 'projects/{project_id}/locations/{location}'. */
1110
+ parent: string;
1111
+ /** Returns response with indentations and line breaks. */
1112
+ prettyPrint?: boolean;
1113
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1114
+ quotaUser?: string;
1115
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1116
+ upload_protocol?: string;
1117
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1118
+ uploadType?: string;
1119
+ }): Request<ListDeploymentGroupsResponse>;
1120
+ /** Updates a DeploymentGroup */
1121
+ patch(request: {
1122
+ /** V1 error format. */
1123
+ '$.xgafv'?: '1' | '2';
1124
+ /** OAuth access token. */
1125
+ access_token?: string;
1126
+ /** Data format for response. */
1127
+ alt?: 'json' | 'media' | 'proto';
1128
+ /** JSONP */
1129
+ callback?: string;
1130
+ /** Selector specifying which fields to include in a partial response. */
1131
+ fields?: string;
1132
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1133
+ key?: string;
1134
+ /** Identifier. The name of the deployment group. Format: 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'. */
1135
+ name: string;
1136
+ /** OAuth 2.0 token for the current user. */
1137
+ oauth_token?: string;
1138
+ /** Returns response with indentations and line breaks. */
1139
+ prettyPrint?: boolean;
1140
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1141
+ quotaUser?: string;
1142
+ /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */
1143
+ requestId?: string;
1144
+ /** Optional. Field mask used to specify the fields to be overwritten in the Deployment Group resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. */
1145
+ updateMask?: string;
1146
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1147
+ upload_protocol?: string;
1148
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1149
+ uploadType?: string;
1150
+ /** Request body */
1151
+ resource: DeploymentGroup;
1152
+ }): Request<Operation>;
1153
+ patch(
1154
+ request: {
1155
+ /** V1 error format. */
1156
+ '$.xgafv'?: '1' | '2';
1157
+ /** OAuth access token. */
1158
+ access_token?: string;
1159
+ /** Data format for response. */
1160
+ alt?: 'json' | 'media' | 'proto';
1161
+ /** JSONP */
1162
+ callback?: string;
1163
+ /** Selector specifying which fields to include in a partial response. */
1164
+ fields?: string;
1165
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1166
+ key?: string;
1167
+ /** Identifier. The name of the deployment group. Format: 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'. */
1168
+ name: string;
1169
+ /** OAuth 2.0 token for the current user. */
1170
+ oauth_token?: string;
1171
+ /** Returns response with indentations and line breaks. */
1172
+ prettyPrint?: boolean;
1173
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1174
+ quotaUser?: string;
1175
+ /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */
1176
+ requestId?: string;
1177
+ /** Optional. Field mask used to specify the fields to be overwritten in the Deployment Group resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. */
1178
+ updateMask?: string;
1179
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1180
+ upload_protocol?: string;
1181
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1182
+ uploadType?: string;
1183
+ },
1184
+ body: DeploymentGroup,
1185
+ ): Request<Operation>;
1186
+ /** Provisions a deployment group. NOTE: As a first step of this operation, Infra Manager will automatically delete any Deployments that were part of the *last successful* DeploymentGroupRevision but are *no longer* included in the *current* DeploymentGroup definition (e.g., following an `UpdateDeploymentGroup` call), along with their actuated resources. */
1187
+ provision(request: {
1188
+ /** V1 error format. */
1189
+ '$.xgafv'?: '1' | '2';
1190
+ /** OAuth access token. */
1191
+ access_token?: string;
1192
+ /** Data format for response. */
1193
+ alt?: 'json' | 'media' | 'proto';
1194
+ /** JSONP */
1195
+ callback?: string;
1196
+ /** Selector specifying which fields to include in a partial response. */
1197
+ fields?: string;
1198
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1199
+ key?: string;
1200
+ /** Required. The name of the deployment group to provision. Format: 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'. */
1201
+ name: string;
1202
+ /** OAuth 2.0 token for the current user. */
1203
+ oauth_token?: string;
1204
+ /** Returns response with indentations and line breaks. */
1205
+ prettyPrint?: boolean;
1206
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1207
+ quotaUser?: string;
1208
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1209
+ upload_protocol?: string;
1210
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1211
+ uploadType?: string;
1212
+ /** Request body */
1213
+ resource: ProvisionDeploymentGroupRequest;
1214
+ }): Request<Operation>;
1215
+ provision(
1216
+ request: {
1217
+ /** V1 error format. */
1218
+ '$.xgafv'?: '1' | '2';
1219
+ /** OAuth access token. */
1220
+ access_token?: string;
1221
+ /** Data format for response. */
1222
+ alt?: 'json' | 'media' | 'proto';
1223
+ /** JSONP */
1224
+ callback?: string;
1225
+ /** Selector specifying which fields to include in a partial response. */
1226
+ fields?: string;
1227
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1228
+ key?: string;
1229
+ /** Required. The name of the deployment group to provision. Format: 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'. */
1230
+ name: string;
1231
+ /** OAuth 2.0 token for the current user. */
1232
+ oauth_token?: string;
1233
+ /** Returns response with indentations and line breaks. */
1234
+ prettyPrint?: boolean;
1235
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1236
+ quotaUser?: string;
1237
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1238
+ upload_protocol?: string;
1239
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1240
+ uploadType?: string;
1241
+ },
1242
+ body: ProvisionDeploymentGroupRequest,
1243
+ ): Request<Operation>;
1244
+ revisions: RevisionsResource;
1245
+ }
662
1246
  interface ResourcesResource {
663
1247
  /** Gets details about a Resource deployed by Infra Manager. */
664
1248
  get(request?: {
@@ -2097,7 +2681,7 @@ declare namespace gapi.client {
2097
2681
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2098
2682
  uploadType?: string;
2099
2683
  }): Request<AutoMigrationConfig>;
2100
- /** Lists information about the supported locations for this service. This method can be called in two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project-visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include public locations as well as private or other locations specifically visible to the project. */
2684
+ /** Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version. */
2101
2685
  list(request?: {
2102
2686
  /** V1 error format. */
2103
2687
  '$.xgafv'?: '1' | '2';
@@ -2107,7 +2691,7 @@ declare namespace gapi.client {
2107
2691
  alt?: 'json' | 'media' | 'proto';
2108
2692
  /** JSONP */
2109
2693
  callback?: string;
2110
- /** Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage. */
2694
+ /** Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. */
2111
2695
  extraLocationTypes?: string | string[];
2112
2696
  /** Selector specifying which fields to include in a partial response. */
2113
2697
  fields?: string;
@@ -2194,6 +2778,7 @@ declare namespace gapi.client {
2194
2778
  },
2195
2779
  body: AutoMigrationConfig,
2196
2780
  ): Request<Operation>;
2781
+ deploymentGroups: DeploymentGroupsResource;
2197
2782
  deployments: DeploymentsResource;
2198
2783
  operations: OperationsResource;
2199
2784
  previews: PreviewsResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.config-v1",
3
- "version": "0.2.20260311",
3
+ "version": "0.2.20260603",
4
4
  "description": "TypeScript typings for Infrastructure Manager API v1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -11,6 +11,18 @@ Install typings for Infrastructure Manager API:
11
11
  npm install @types/gapi.client.config-v1 --save-dev
12
12
  ```
13
13
 
14
+ ## TypeScript 6.0+
15
+
16
+ TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
17
+
18
+ ```json
19
+ {
20
+ "compilerOptions": {
21
+ "types": ["gapi", "gapi.auth2", "gapi.client", "gapi.client.config-v1"]
22
+ }
23
+ }
24
+ ```
25
+
14
26
  ## Usage
15
27
 
16
28
  You need to initialize Google API client in your code: