@maxim_mazurok/gapi.client.cloudfunctions-v2beta 0.2.20260312 → 0.3.20260312

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 (2) hide show
  1. package/index.d.ts +157 -83
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -39,7 +39,11 @@ declare namespace gapi.client {
39
39
  /** Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. */
40
40
  exemptedMembers?: string[];
41
41
  /** The log type that this config enables. */
42
- logType?: string;
42
+ logType?:
43
+ | 'LOG_TYPE_UNSPECIFIED'
44
+ | 'ADMIN_READ'
45
+ | 'DATA_WRITE'
46
+ | 'DATA_READ';
43
47
  }
44
48
  interface AutomaticUpdatePolicy {}
45
49
  interface Binding {
@@ -55,7 +59,10 @@ declare namespace gapi.client {
55
59
  /** Output only. The Cloud Build name of the latest successful deployment of the function. */
56
60
  build?: string;
57
61
  /** Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. Deprecated: as of March 2025, `CONTAINER_REGISTRY` option is no longer available in response to Container Registry's deprecation: https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr Please use Artifact Registry instead, which is the default choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`. */
58
- dockerRegistry?: string;
62
+ dockerRegistry?:
63
+ | 'DOCKER_REGISTRY_UNSPECIFIED'
64
+ | 'CONTAINER_REGISTRY'
65
+ | 'ARTIFACT_REGISTRY';
59
66
  /** Repository in Artifact Registry to which the function docker image will be pushed after it is built by Cloud Build. If specified by user, it is created and managed by user with a customer managed encryption key. Otherwise, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Repository format must be 'DOCKER'. */
60
67
  dockerRepository?: string;
61
68
  /** The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named "function". For Node.js this is name of a function exported by the module specified in `source_location`. */
@@ -117,7 +124,10 @@ declare namespace gapi.client {
117
124
  /** Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format: `projects/{project}/topics/{topic}`. This is only valid for events of type `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here will not be deleted at function deletion. */
118
125
  pubsubTopic?: string;
119
126
  /** Optional. If unset, then defaults to ignoring failures (i.e. not retrying them). */
120
- retryPolicy?: string;
127
+ retryPolicy?:
128
+ | 'RETRY_POLICY_UNSPECIFIED'
129
+ | 'RETRY_POLICY_DO_NOT_RETRY'
130
+ | 'RETRY_POLICY_RETRY';
121
131
  /** Optional. The hostname of the service that 1st Gen function should be observed. If no string is provided, the default service implementing the API will be used. For example, `storage.googleapis.com` is the default for all event types in the `google.storage` namespace. The field is only applicable to 1st Gen functions. */
122
132
  service?: string;
123
133
  /** Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is `run.routes.invoke`. If empty, defaults to the Compute Engine default service account: `{project_number}-compute@developer.gserviceaccount.com`. */
@@ -145,7 +155,7 @@ declare namespace gapi.client {
145
155
  /** User-provided description of a function. */
146
156
  description?: string;
147
157
  /** Describe whether the function is 1st Gen or 2nd Gen. */
148
- environment?: string;
158
+ environment?: 'ENVIRONMENT_UNSPECIFIED' | 'GEN_1' | 'GEN_2';
149
159
  /** An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service. */
150
160
  eventTrigger?: EventTrigger;
151
161
  /** Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. */
@@ -161,7 +171,15 @@ declare namespace gapi.client {
161
171
  /** Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed). */
162
172
  serviceConfig?: ServiceConfig;
163
173
  /** Output only. State of the function. */
164
- state?: string;
174
+ state?:
175
+ | 'STATE_UNSPECIFIED'
176
+ | 'ACTIVE'
177
+ | 'FAILED'
178
+ | 'DEPLOYING'
179
+ | 'DELETING'
180
+ | 'UNKNOWN'
181
+ | 'DETACHING'
182
+ | 'DETACH_FAILED';
165
183
  /** Output only. State Messages for this Cloud Function. */
166
184
  stateMessages?: GoogleCloudFunctionsV2betaStateMessage[];
167
185
  /** Output only. The last update timestamp of a Cloud Function. */
@@ -178,7 +196,7 @@ declare namespace gapi.client {
178
196
  }
179
197
  interface GenerateUploadUrlRequest {
180
198
  /** The function environment the generated upload url will be used for. The upload url for 2nd Gen functions can also be used for 1st gen functions, but not vice versa. If not specified, 2nd generation-style upload URLs are generated. */
181
- environment?: string;
199
+ environment?: 'ENVIRONMENT_UNSPECIFIED' | 'GEN_1' | 'GEN_2';
182
200
  /** Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function source code objects in intermediate Cloud Storage buckets. When you generate an upload url and upload your source code, it gets copied to an intermediate Cloud Storage bucket. The source code is then copied to a versioned directory in the sources bucket in the consumer project during the function deployment. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. The Google Cloud Functions service account (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the Key/KeyRing/Project/Organization (least access preferred). */
183
201
  kmsKeyName?: string;
184
202
  }
@@ -190,7 +208,7 @@ declare namespace gapi.client {
190
208
  }
191
209
  interface GoogleCloudFunctionsV2betaLocationMetadata {
192
210
  /** The Cloud Function environments this location supports. */
193
- environments?: string[];
211
+ environments?: 'ENVIRONMENT_UNSPECIFIED' | 'GEN_1' | 'GEN_2'[];
194
212
  }
195
213
  interface GoogleCloudFunctionsV2betaOperationMetadata {
196
214
  /** API version used to start the operation. */
@@ -206,7 +224,18 @@ declare namespace gapi.client {
206
224
  /** The time the operation finished running. */
207
225
  endTime?: string;
208
226
  /** The operation type. */
209
- operationType?: string;
227
+ operationType?:
228
+ | 'OPERATIONTYPE_UNSPECIFIED'
229
+ | 'CREATE_FUNCTION'
230
+ | 'UPDATE_FUNCTION'
231
+ | 'DELETE_FUNCTION'
232
+ | 'REDIRECT_FUNCTION_UPGRADE_TRAFFIC'
233
+ | 'ROLLBACK_FUNCTION_UPGRADE_TRAFFIC'
234
+ | 'SETUP_FUNCTION_UPGRADE_CONFIG'
235
+ | 'ABORT_FUNCTION_UPGRADE'
236
+ | 'COMMIT_FUNCTION_UPGRADE'
237
+ | 'DETACH_FUNCTION'
238
+ | 'COMMIT_FUNCTION_UPGRADE_AS_GEN2';
210
239
  /** The original request that started the operation. */
211
240
  requestResource?: {[P in string]: any};
212
241
  /** An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments. */
@@ -224,13 +253,20 @@ declare namespace gapi.client {
224
253
  /** Message describing the Stage */
225
254
  message?: string;
226
255
  /** Name of the Stage. This will be unique for each Stage. */
227
- name?: string;
256
+ name?:
257
+ | 'NAME_UNSPECIFIED'
258
+ | 'ARTIFACT_REGISTRY'
259
+ | 'BUILD'
260
+ | 'SERVICE'
261
+ | 'TRIGGER'
262
+ | 'SERVICE_ROLLBACK'
263
+ | 'TRIGGER_ROLLBACK';
228
264
  /** Resource of the Stage */
229
265
  resource?: string;
230
266
  /** Link to the current Stage resource */
231
267
  resourceUri?: string;
232
268
  /** Current state of the Stage */
233
- state?: string;
269
+ state?: 'STATE_UNSPECIFIED' | 'NOT_STARTED' | 'IN_PROGRESS' | 'COMPLETE';
234
270
  /** State messages from the current Stage. */
235
271
  stateMessages?: GoogleCloudFunctionsV2betaStateMessage[];
236
272
  }
@@ -238,7 +274,7 @@ declare namespace gapi.client {
238
274
  /** The message. */
239
275
  message?: string;
240
276
  /** Severity of the state message. */
241
- severity?: string;
277
+ severity?: 'SEVERITY_UNSPECIFIED' | 'ERROR' | 'WARNING' | 'INFO';
242
278
  /** One-word CamelCase type of the state message. */
243
279
  type?: string;
244
280
  }
@@ -308,7 +344,11 @@ declare namespace gapi.client {
308
344
  /** Target of the operation - for example `projects/project-1/locations/region-1/functions/function-1` */
309
345
  target?: string;
310
346
  /** Type of operation. */
311
- type?: string;
347
+ type?:
348
+ | 'OPERATION_UNSPECIFIED'
349
+ | 'CREATE_FUNCTION'
350
+ | 'UPDATE_FUNCTION'
351
+ | 'DELETE_FUNCTION';
312
352
  /** The last update timestamp of the operation. */
313
353
  updateTime?: string;
314
354
  /** Version id of the function created or updated by an API call. This field is only populated for Create and Update operations. */
@@ -348,11 +388,18 @@ declare namespace gapi.client {
348
388
  /** The user facing name, eg 'Go 1.13', 'Node.js 12', etc. */
349
389
  displayName?: string;
350
390
  /** The environment for the runtime. */
351
- environment?: string;
391
+ environment?: 'ENVIRONMENT_UNSPECIFIED' | 'GEN_1' | 'GEN_2';
352
392
  /** The name of the runtime, e.g., 'go113', 'nodejs12', etc. */
353
393
  name?: string;
354
394
  /** The stage of life this runtime is in, e.g., BETA, GA, etc. */
355
- stage?: string;
395
+ stage?:
396
+ | 'RUNTIME_STAGE_UNSPECIFIED'
397
+ | 'DEVELOPMENT'
398
+ | 'ALPHA'
399
+ | 'BETA'
400
+ | 'GA'
401
+ | 'DEPRECATED'
402
+ | 'DECOMMISSIONED';
356
403
  /** Warning messages, e.g., a deprecation warning. */
357
404
  warnings?: string[];
358
405
  }
@@ -392,13 +439,20 @@ declare namespace gapi.client {
392
439
  /** Optional. The binary authorization policy to be checked when deploying the Cloud Run service. */
393
440
  binaryAuthorizationPolicy?: string;
394
441
  /** Optional. Egress settings for direct VPC. If not provided, it defaults to VPC_EGRESS_PRIVATE_RANGES_ONLY. */
395
- directVpcEgress?: string;
442
+ directVpcEgress?:
443
+ | 'DIRECT_VPC_EGRESS_UNSPECIFIED'
444
+ | 'VPC_EGRESS_PRIVATE_RANGES_ONLY'
445
+ | 'VPC_EGRESS_ALL_TRAFFIC';
396
446
  /** Optional. The Direct VPC network interface for the Cloud Function. Currently only a single Direct VPC is supported. */
397
447
  directVpcNetworkInterface?: DirectVpcNetworkInterface[];
398
448
  /** Environment variables that shall be available during function execution. */
399
449
  environmentVariables?: {[P in string]: string};
400
450
  /** The ingress settings for the function, controlling what traffic can reach it. */
401
- ingressSettings?: string;
451
+ ingressSettings?:
452
+ | 'INGRESS_SETTINGS_UNSPECIFIED'
453
+ | 'ALLOW_ALL'
454
+ | 'ALLOW_INTERNAL_ONLY'
455
+ | 'ALLOW_INTERNAL_AND_GCLB';
402
456
  /** The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the [Max Instances](https://cloud.google.com/functions/docs/max-instances) Guide for more details. */
403
457
  maxInstanceCount?: number;
404
458
  /** Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1. */
@@ -412,7 +466,10 @@ declare namespace gapi.client {
412
466
  /** Secret volumes configuration. */
413
467
  secretVolumes?: SecretVolume[];
414
468
  /** Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY. */
415
- securityLevel?: string;
469
+ securityLevel?:
470
+ | 'SECURITY_LEVEL_UNSPECIFIED'
471
+ | 'SECURE_ALWAYS'
472
+ | 'SECURE_OPTIONAL';
416
473
  /** Output only. Name of the service associated with a Function. The format of this field is `projects/{project}/locations/{region}/services/{service}` */
417
474
  service?: string;
418
475
  /** The email of the service's service account. If empty, defaults to `{project_number}-compute@developer.gserviceaccount.com`. */
@@ -424,7 +481,10 @@ declare namespace gapi.client {
424
481
  /** The Serverless VPC Access connector that this cloud function can connect to. The format of this field is `projects/*‍/locations/*‍/connectors/*`. */
425
482
  vpcConnector?: string;
426
483
  /** The egress settings for the connector, controlling what traffic is diverted through it. */
427
- vpcConnectorEgressSettings?: string;
484
+ vpcConnectorEgressSettings?:
485
+ | 'VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED'
486
+ | 'PRIVATE_RANGES_ONLY'
487
+ | 'ALL_TRAFFIC';
428
488
  }
429
489
  interface ServiceConfigOverrides {
430
490
  /** Optional. Specifies the maximum number of instances for the new Cloud Run function. If provided, this overrides the max_instance_count setting of the Gen1 function. */
@@ -494,17 +554,31 @@ declare namespace gapi.client {
494
554
  /** Describes the Cloud Run service which has been setup to prepare for 2nd gen upgrade. */
495
555
  serviceConfig?: ServiceConfig;
496
556
  /** UpgradeState of the function */
497
- upgradeState?: string;
557
+ upgradeState?:
558
+ | 'UPGRADE_STATE_UNSPECIFIED'
559
+ | 'ELIGIBLE_FOR_2ND_GEN_UPGRADE'
560
+ | 'INELIGIBLE_FOR_UPGRADE_UNTIL_REDEPLOYMENT'
561
+ | 'UPGRADE_OPERATION_IN_PROGRESS'
562
+ | 'SETUP_FUNCTION_UPGRADE_CONFIG_SUCCESSFUL'
563
+ | 'SETUP_FUNCTION_UPGRADE_CONFIG_ERROR'
564
+ | 'ABORT_FUNCTION_UPGRADE_ERROR'
565
+ | 'REDIRECT_FUNCTION_UPGRADE_TRAFFIC_SUCCESSFUL'
566
+ | 'REDIRECT_FUNCTION_UPGRADE_TRAFFIC_ERROR'
567
+ | 'ROLLBACK_FUNCTION_UPGRADE_TRAFFIC_ERROR'
568
+ | 'COMMIT_FUNCTION_UPGRADE_ERROR'
569
+ | 'COMMIT_FUNCTION_UPGRADE_ERROR_ROLLBACK_SAFE'
570
+ | 'COMMIT_FUNCTION_UPGRADE_AS_GEN2_SUCCESSFUL'
571
+ | 'COMMIT_FUNCTION_UPGRADE_AS_GEN2_ERROR';
498
572
  }
499
573
  interface FunctionsResource {
500
574
  /** Aborts generation upgrade process for a function with the given name from the specified project. Deletes all 2nd Gen copy related configuration and resources which were created during the upgrade process. */
501
575
  abortFunctionUpgrade(request: {
502
576
  /** V1 error format. */
503
- '$.xgafv'?: string;
577
+ '$.xgafv'?: '1' | '2';
504
578
  /** OAuth access token. */
505
579
  access_token?: string;
506
580
  /** Data format for response. */
507
- alt?: string;
581
+ alt?: 'json' | 'media' | 'proto';
508
582
  /** JSONP */
509
583
  callback?: string;
510
584
  /** Selector specifying which fields to include in a partial response. */
@@ -529,11 +603,11 @@ declare namespace gapi.client {
529
603
  abortFunctionUpgrade(
530
604
  request: {
531
605
  /** V1 error format. */
532
- '$.xgafv'?: string;
606
+ '$.xgafv'?: '1' | '2';
533
607
  /** OAuth access token. */
534
608
  access_token?: string;
535
609
  /** Data format for response. */
536
- alt?: string;
610
+ alt?: 'json' | 'media' | 'proto';
537
611
  /** JSONP */
538
612
  callback?: string;
539
613
  /** Selector specifying which fields to include in a partial response. */
@@ -558,11 +632,11 @@ declare namespace gapi.client {
558
632
  /** Finalizes the upgrade after which function upgrade can not be rolled back. This is the last step of the multi step process to upgrade 1st Gen functions to 2nd Gen. Deletes all original 1st Gen related configuration and resources. */
559
633
  commitFunctionUpgrade(request: {
560
634
  /** V1 error format. */
561
- '$.xgafv'?: string;
635
+ '$.xgafv'?: '1' | '2';
562
636
  /** OAuth access token. */
563
637
  access_token?: string;
564
638
  /** Data format for response. */
565
- alt?: string;
639
+ alt?: 'json' | 'media' | 'proto';
566
640
  /** JSONP */
567
641
  callback?: string;
568
642
  /** Selector specifying which fields to include in a partial response. */
@@ -587,11 +661,11 @@ declare namespace gapi.client {
587
661
  commitFunctionUpgrade(
588
662
  request: {
589
663
  /** V1 error format. */
590
- '$.xgafv'?: string;
664
+ '$.xgafv'?: '1' | '2';
591
665
  /** OAuth access token. */
592
666
  access_token?: string;
593
667
  /** Data format for response. */
594
- alt?: string;
668
+ alt?: 'json' | 'media' | 'proto';
595
669
  /** JSONP */
596
670
  callback?: string;
597
671
  /** Selector specifying which fields to include in a partial response. */
@@ -616,11 +690,11 @@ declare namespace gapi.client {
616
690
  /** Commits a function upgrade from GCF Gen1 to GCF Gen2. This action deletes the Gen1 function, leaving the Gen2 function active and manageable by the GCFv2 API. */
617
691
  commitFunctionUpgradeAsGen2(request: {
618
692
  /** V1 error format. */
619
- '$.xgafv'?: string;
693
+ '$.xgafv'?: '1' | '2';
620
694
  /** OAuth access token. */
621
695
  access_token?: string;
622
696
  /** Data format for response. */
623
- alt?: string;
697
+ alt?: 'json' | 'media' | 'proto';
624
698
  /** JSONP */
625
699
  callback?: string;
626
700
  /** Selector specifying which fields to include in a partial response. */
@@ -645,11 +719,11 @@ declare namespace gapi.client {
645
719
  commitFunctionUpgradeAsGen2(
646
720
  request: {
647
721
  /** V1 error format. */
648
- '$.xgafv'?: string;
722
+ '$.xgafv'?: '1' | '2';
649
723
  /** OAuth access token. */
650
724
  access_token?: string;
651
725
  /** Data format for response. */
652
- alt?: string;
726
+ alt?: 'json' | 'media' | 'proto';
653
727
  /** JSONP */
654
728
  callback?: string;
655
729
  /** Selector specifying which fields to include in a partial response. */
@@ -674,11 +748,11 @@ declare namespace gapi.client {
674
748
  /** Creates a new function. If a function with the given name already exists in the specified project, the long running operation will return `ALREADY_EXISTS` error. */
675
749
  create(request: {
676
750
  /** V1 error format. */
677
- '$.xgafv'?: string;
751
+ '$.xgafv'?: '1' | '2';
678
752
  /** OAuth access token. */
679
753
  access_token?: string;
680
754
  /** Data format for response. */
681
- alt?: string;
755
+ alt?: 'json' | 'media' | 'proto';
682
756
  /** JSONP */
683
757
  callback?: string;
684
758
  /** Selector specifying which fields to include in a partial response. */
@@ -705,11 +779,11 @@ declare namespace gapi.client {
705
779
  create(
706
780
  request: {
707
781
  /** V1 error format. */
708
- '$.xgafv'?: string;
782
+ '$.xgafv'?: '1' | '2';
709
783
  /** OAuth access token. */
710
784
  access_token?: string;
711
785
  /** Data format for response. */
712
- alt?: string;
786
+ alt?: 'json' | 'media' | 'proto';
713
787
  /** JSONP */
714
788
  callback?: string;
715
789
  /** Selector specifying which fields to include in a partial response. */
@@ -736,11 +810,11 @@ declare namespace gapi.client {
736
810
  /** Deletes a function with the given name from the specified project. If the given function is used by some trigger, the trigger will be updated to remove this function. */
737
811
  delete(request?: {
738
812
  /** V1 error format. */
739
- '$.xgafv'?: string;
813
+ '$.xgafv'?: '1' | '2';
740
814
  /** OAuth access token. */
741
815
  access_token?: string;
742
816
  /** Data format for response. */
743
- alt?: string;
817
+ alt?: 'json' | 'media' | 'proto';
744
818
  /** JSONP */
745
819
  callback?: string;
746
820
  /** Selector specifying which fields to include in a partial response. */
@@ -763,11 +837,11 @@ declare namespace gapi.client {
763
837
  /** Detaches 2nd Gen function to Cloud Run function. */
764
838
  detachFunction(request: {
765
839
  /** V1 error format. */
766
- '$.xgafv'?: string;
840
+ '$.xgafv'?: '1' | '2';
767
841
  /** OAuth access token. */
768
842
  access_token?: string;
769
843
  /** Data format for response. */
770
- alt?: string;
844
+ alt?: 'json' | 'media' | 'proto';
771
845
  /** JSONP */
772
846
  callback?: string;
773
847
  /** Selector specifying which fields to include in a partial response. */
@@ -792,11 +866,11 @@ declare namespace gapi.client {
792
866
  detachFunction(
793
867
  request: {
794
868
  /** V1 error format. */
795
- '$.xgafv'?: string;
869
+ '$.xgafv'?: '1' | '2';
796
870
  /** OAuth access token. */
797
871
  access_token?: string;
798
872
  /** Data format for response. */
799
- alt?: string;
873
+ alt?: 'json' | 'media' | 'proto';
800
874
  /** JSONP */
801
875
  callback?: string;
802
876
  /** Selector specifying which fields to include in a partial response. */
@@ -821,11 +895,11 @@ declare namespace gapi.client {
821
895
  /** Returns a signed URL for downloading deployed function source code. The URL is only valid for a limited period and should be used within 30 minutes of generation. For more information about the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls */
822
896
  generateDownloadUrl(request: {
823
897
  /** V1 error format. */
824
- '$.xgafv'?: string;
898
+ '$.xgafv'?: '1' | '2';
825
899
  /** OAuth access token. */
826
900
  access_token?: string;
827
901
  /** Data format for response. */
828
- alt?: string;
902
+ alt?: 'json' | 'media' | 'proto';
829
903
  /** JSONP */
830
904
  callback?: string;
831
905
  /** Selector specifying which fields to include in a partial response. */
@@ -850,11 +924,11 @@ declare namespace gapi.client {
850
924
  generateDownloadUrl(
851
925
  request: {
852
926
  /** V1 error format. */
853
- '$.xgafv'?: string;
927
+ '$.xgafv'?: '1' | '2';
854
928
  /** OAuth access token. */
855
929
  access_token?: string;
856
930
  /** Data format for response. */
857
- alt?: string;
931
+ alt?: 'json' | 'media' | 'proto';
858
932
  /** JSONP */
859
933
  callback?: string;
860
934
  /** Selector specifying which fields to include in a partial response. */
@@ -879,11 +953,11 @@ declare namespace gapi.client {
879
953
  /** Returns a signed URL for uploading a function source code. For more information about the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls. Once the function source code upload is complete, the used signed URL should be provided in CreateFunction or UpdateFunction request as a reference to the function source code. When uploading source code to the generated signed URL, please follow these restrictions: * Source file type should be a zip file. * No credentials should be attached - the signed URLs provide access to the target bucket using internal service identity; if credentials were attached, the identity from the credentials would be used, but that identity does not have permissions to upload files to the URL. When making a HTTP PUT request, specify this header: * `content-type: application/zip` Do not specify this header: * `Authorization: Bearer YOUR_TOKEN` */
880
954
  generateUploadUrl(request: {
881
955
  /** V1 error format. */
882
- '$.xgafv'?: string;
956
+ '$.xgafv'?: '1' | '2';
883
957
  /** OAuth access token. */
884
958
  access_token?: string;
885
959
  /** Data format for response. */
886
- alt?: string;
960
+ alt?: 'json' | 'media' | 'proto';
887
961
  /** JSONP */
888
962
  callback?: string;
889
963
  /** Selector specifying which fields to include in a partial response. */
@@ -908,11 +982,11 @@ declare namespace gapi.client {
908
982
  generateUploadUrl(
909
983
  request: {
910
984
  /** V1 error format. */
911
- '$.xgafv'?: string;
985
+ '$.xgafv'?: '1' | '2';
912
986
  /** OAuth access token. */
913
987
  access_token?: string;
914
988
  /** Data format for response. */
915
- alt?: string;
989
+ alt?: 'json' | 'media' | 'proto';
916
990
  /** JSONP */
917
991
  callback?: string;
918
992
  /** Selector specifying which fields to include in a partial response. */
@@ -937,11 +1011,11 @@ declare namespace gapi.client {
937
1011
  /** Returns a function with the given name from the requested project. */
938
1012
  get(request?: {
939
1013
  /** V1 error format. */
940
- '$.xgafv'?: string;
1014
+ '$.xgafv'?: '1' | '2';
941
1015
  /** OAuth access token. */
942
1016
  access_token?: string;
943
1017
  /** Data format for response. */
944
- alt?: string;
1018
+ alt?: 'json' | 'media' | 'proto';
945
1019
  /** JSONP */
946
1020
  callback?: string;
947
1021
  /** Selector specifying which fields to include in a partial response. */
@@ -966,11 +1040,11 @@ declare namespace gapi.client {
966
1040
  /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
967
1041
  getIamPolicy(request?: {
968
1042
  /** V1 error format. */
969
- '$.xgafv'?: string;
1043
+ '$.xgafv'?: '1' | '2';
970
1044
  /** OAuth access token. */
971
1045
  access_token?: string;
972
1046
  /** Data format for response. */
973
- alt?: string;
1047
+ alt?: 'json' | 'media' | 'proto';
974
1048
  /** JSONP */
975
1049
  callback?: string;
976
1050
  /** Selector specifying which fields to include in a partial response. */
@@ -995,11 +1069,11 @@ declare namespace gapi.client {
995
1069
  /** Returns a list of functions that belong to the requested project. */
996
1070
  list(request?: {
997
1071
  /** V1 error format. */
998
- '$.xgafv'?: string;
1072
+ '$.xgafv'?: '1' | '2';
999
1073
  /** OAuth access token. */
1000
1074
  access_token?: string;
1001
1075
  /** Data format for response. */
1002
- alt?: string;
1076
+ alt?: 'json' | 'media' | 'proto';
1003
1077
  /** JSONP */
1004
1078
  callback?: string;
1005
1079
  /** Selector specifying which fields to include in a partial response. */
@@ -1030,11 +1104,11 @@ declare namespace gapi.client {
1030
1104
  /** Updates existing function. */
1031
1105
  patch(request: {
1032
1106
  /** V1 error format. */
1033
- '$.xgafv'?: string;
1107
+ '$.xgafv'?: '1' | '2';
1034
1108
  /** OAuth access token. */
1035
1109
  access_token?: string;
1036
1110
  /** Data format for response. */
1037
- alt?: string;
1111
+ alt?: 'json' | 'media' | 'proto';
1038
1112
  /** JSONP */
1039
1113
  callback?: string;
1040
1114
  /** Selector specifying which fields to include in a partial response. */
@@ -1061,11 +1135,11 @@ declare namespace gapi.client {
1061
1135
  patch(
1062
1136
  request: {
1063
1137
  /** V1 error format. */
1064
- '$.xgafv'?: string;
1138
+ '$.xgafv'?: '1' | '2';
1065
1139
  /** OAuth access token. */
1066
1140
  access_token?: string;
1067
1141
  /** Data format for response. */
1068
- alt?: string;
1142
+ alt?: 'json' | 'media' | 'proto';
1069
1143
  /** JSONP */
1070
1144
  callback?: string;
1071
1145
  /** Selector specifying which fields to include in a partial response. */
@@ -1092,11 +1166,11 @@ declare namespace gapi.client {
1092
1166
  /** Changes the traffic target of a function from the original 1st Gen function to the 2nd Gen copy. This is the second step of the multi step process to upgrade 1st Gen functions to 2nd Gen. After this operation, all new traffic will be served by 2nd Gen copy. */
1093
1167
  redirectFunctionUpgradeTraffic(request: {
1094
1168
  /** V1 error format. */
1095
- '$.xgafv'?: string;
1169
+ '$.xgafv'?: '1' | '2';
1096
1170
  /** OAuth access token. */
1097
1171
  access_token?: string;
1098
1172
  /** Data format for response. */
1099
- alt?: string;
1173
+ alt?: 'json' | 'media' | 'proto';
1100
1174
  /** JSONP */
1101
1175
  callback?: string;
1102
1176
  /** Selector specifying which fields to include in a partial response. */
@@ -1121,11 +1195,11 @@ declare namespace gapi.client {
1121
1195
  redirectFunctionUpgradeTraffic(
1122
1196
  request: {
1123
1197
  /** V1 error format. */
1124
- '$.xgafv'?: string;
1198
+ '$.xgafv'?: '1' | '2';
1125
1199
  /** OAuth access token. */
1126
1200
  access_token?: string;
1127
1201
  /** Data format for response. */
1128
- alt?: string;
1202
+ alt?: 'json' | 'media' | 'proto';
1129
1203
  /** JSONP */
1130
1204
  callback?: string;
1131
1205
  /** Selector specifying which fields to include in a partial response. */
@@ -1150,11 +1224,11 @@ declare namespace gapi.client {
1150
1224
  /** Reverts the traffic target of a function from the 2nd Gen copy to the original 1st Gen function. After this operation, all new traffic would be served by the 1st Gen. */
1151
1225
  rollbackFunctionUpgradeTraffic(request: {
1152
1226
  /** V1 error format. */
1153
- '$.xgafv'?: string;
1227
+ '$.xgafv'?: '1' | '2';
1154
1228
  /** OAuth access token. */
1155
1229
  access_token?: string;
1156
1230
  /** Data format for response. */
1157
- alt?: string;
1231
+ alt?: 'json' | 'media' | 'proto';
1158
1232
  /** JSONP */
1159
1233
  callback?: string;
1160
1234
  /** Selector specifying which fields to include in a partial response. */
@@ -1179,11 +1253,11 @@ declare namespace gapi.client {
1179
1253
  rollbackFunctionUpgradeTraffic(
1180
1254
  request: {
1181
1255
  /** V1 error format. */
1182
- '$.xgafv'?: string;
1256
+ '$.xgafv'?: '1' | '2';
1183
1257
  /** OAuth access token. */
1184
1258
  access_token?: string;
1185
1259
  /** Data format for response. */
1186
- alt?: string;
1260
+ alt?: 'json' | 'media' | 'proto';
1187
1261
  /** JSONP */
1188
1262
  callback?: string;
1189
1263
  /** Selector specifying which fields to include in a partial response. */
@@ -1209,11 +1283,11 @@ declare namespace gapi.client {
1209
1283
  setIamPolicy(
1210
1284
  request: {
1211
1285
  /** V1 error format. */
1212
- '$.xgafv'?: string;
1286
+ '$.xgafv'?: '1' | '2';
1213
1287
  /** OAuth access token. */
1214
1288
  access_token?: string;
1215
1289
  /** Data format for response. */
1216
- alt?: string;
1290
+ alt?: 'json' | 'media' | 'proto';
1217
1291
  /** JSONP */
1218
1292
  callback?: string;
1219
1293
  /** Selector specifying which fields to include in a partial response. */
@@ -1238,11 +1312,11 @@ declare namespace gapi.client {
1238
1312
  /** Creates a 2nd Gen copy of the function configuration based on the 1st Gen function with the given name. This is the first step of the multi step process to upgrade 1st Gen functions to 2nd Gen. Only 2nd Gen configuration is setup as part of this request and traffic continues to be served by 1st Gen. */
1239
1313
  setupFunctionUpgradeConfig(request: {
1240
1314
  /** V1 error format. */
1241
- '$.xgafv'?: string;
1315
+ '$.xgafv'?: '1' | '2';
1242
1316
  /** OAuth access token. */
1243
1317
  access_token?: string;
1244
1318
  /** Data format for response. */
1245
- alt?: string;
1319
+ alt?: 'json' | 'media' | 'proto';
1246
1320
  /** JSONP */
1247
1321
  callback?: string;
1248
1322
  /** Selector specifying which fields to include in a partial response. */
@@ -1267,11 +1341,11 @@ declare namespace gapi.client {
1267
1341
  setupFunctionUpgradeConfig(
1268
1342
  request: {
1269
1343
  /** V1 error format. */
1270
- '$.xgafv'?: string;
1344
+ '$.xgafv'?: '1' | '2';
1271
1345
  /** OAuth access token. */
1272
1346
  access_token?: string;
1273
1347
  /** Data format for response. */
1274
- alt?: string;
1348
+ alt?: 'json' | 'media' | 'proto';
1275
1349
  /** JSONP */
1276
1350
  callback?: string;
1277
1351
  /** Selector specifying which fields to include in a partial response. */
@@ -1297,11 +1371,11 @@ declare namespace gapi.client {
1297
1371
  testIamPermissions(
1298
1372
  request: {
1299
1373
  /** V1 error format. */
1300
- '$.xgafv'?: string;
1374
+ '$.xgafv'?: '1' | '2';
1301
1375
  /** OAuth access token. */
1302
1376
  access_token?: string;
1303
1377
  /** Data format for response. */
1304
- alt?: string;
1378
+ alt?: 'json' | 'media' | 'proto';
1305
1379
  /** JSONP */
1306
1380
  callback?: string;
1307
1381
  /** Selector specifying which fields to include in a partial response. */
@@ -1328,11 +1402,11 @@ declare namespace gapi.client {
1328
1402
  /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
1329
1403
  get(request?: {
1330
1404
  /** V1 error format. */
1331
- '$.xgafv'?: string;
1405
+ '$.xgafv'?: '1' | '2';
1332
1406
  /** OAuth access token. */
1333
1407
  access_token?: string;
1334
1408
  /** Data format for response. */
1335
- alt?: string;
1409
+ alt?: 'json' | 'media' | 'proto';
1336
1410
  /** JSONP */
1337
1411
  callback?: string;
1338
1412
  /** Selector specifying which fields to include in a partial response. */
@@ -1355,11 +1429,11 @@ declare namespace gapi.client {
1355
1429
  /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1356
1430
  list(request?: {
1357
1431
  /** V1 error format. */
1358
- '$.xgafv'?: string;
1432
+ '$.xgafv'?: '1' | '2';
1359
1433
  /** OAuth access token. */
1360
1434
  access_token?: string;
1361
1435
  /** Data format for response. */
1362
- alt?: string;
1436
+ alt?: 'json' | 'media' | 'proto';
1363
1437
  /** JSONP */
1364
1438
  callback?: string;
1365
1439
  /** Selector specifying which fields to include in a partial response. */
@@ -1392,11 +1466,11 @@ declare namespace gapi.client {
1392
1466
  /** Returns a list of runtimes that are supported for the requested project. */
1393
1467
  list(request?: {
1394
1468
  /** V1 error format. */
1395
- '$.xgafv'?: string;
1469
+ '$.xgafv'?: '1' | '2';
1396
1470
  /** OAuth access token. */
1397
1471
  access_token?: string;
1398
1472
  /** Data format for response. */
1399
- alt?: string;
1473
+ alt?: 'json' | 'media' | 'proto';
1400
1474
  /** JSONP */
1401
1475
  callback?: string;
1402
1476
  /** Selector specifying which fields to include in a partial response. */
@@ -1423,11 +1497,11 @@ declare namespace gapi.client {
1423
1497
  /** 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. */
1424
1498
  list(request?: {
1425
1499
  /** V1 error format. */
1426
- '$.xgafv'?: string;
1500
+ '$.xgafv'?: '1' | '2';
1427
1501
  /** OAuth access token. */
1428
1502
  access_token?: string;
1429
1503
  /** Data format for response. */
1430
- alt?: string;
1504
+ alt?: 'json' | 'media' | 'proto';
1431
1505
  /** JSONP */
1432
1506
  callback?: string;
1433
1507
  /** Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudfunctions-v2beta",
3
- "version": "0.2.20260312",
3
+ "version": "0.3.20260312",
4
4
  "description": "TypeScript typings for Cloud Functions API v2beta",
5
5
  "repository": {
6
6
  "type": "git",