@maxim_mazurok/gapi.client.cloudfunctions-v1 0.1.20260312 → 0.2.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 +72 -45
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -38,7 +38,11 @@ declare namespace gapi.client {
38
38
  /** Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. */
39
39
  exemptedMembers?: string[];
40
40
  /** The log type that this config enables. */
41
- logType?: string;
41
+ logType?:
42
+ | 'LOG_TYPE_UNSPECIFIED'
43
+ | 'ADMIN_READ'
44
+ | 'DATA_WRITE'
45
+ | 'DATA_READ';
42
46
  }
43
47
  interface AutomaticUpdatePolicy {}
44
48
  interface Binding {
@@ -78,7 +82,10 @@ declare namespace gapi.client {
78
82
  /** User-provided description of a function. */
79
83
  description?: string;
80
84
  /** Docker Registry to use for this deployment. 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`. */
81
- dockerRegistry?: string;
85
+ dockerRegistry?:
86
+ | 'DOCKER_REGISTRY_UNSPECIFIED'
87
+ | 'CONTAINER_REGISTRY'
88
+ | 'ARTIFACT_REGISTRY';
82
89
  /** User-managed repository created in Artifact Registry to which the function's Docker image will be pushed after it is built by Cloud Build. May optionally be encrypted with a customer-managed encryption key (CMEK). If unspecified and `docker_registry` is not explicitly set to `CONTAINER_REGISTRY`, GCF will create and use a default Artifact Registry repository named 'gcf-artifacts' in the region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'. */
83
90
  dockerRepository?: string;
84
91
  /** The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix (ID of the function), if not specified. */
@@ -90,7 +97,11 @@ declare namespace gapi.client {
90
97
  /** An HTTPS endpoint type of source that can be triggered via URL. */
91
98
  httpsTrigger?: HttpsTrigger;
92
99
  /** The ingress settings for the function, controlling what traffic can reach it. */
93
- ingressSettings?: string;
100
+ ingressSettings?:
101
+ | 'INGRESS_SETTINGS_UNSPECIFIED'
102
+ | 'ALLOW_ALL'
103
+ | 'ALLOW_INTERNAL_ONLY'
104
+ | 'ALLOW_INTERNAL_AND_GCLB';
94
105
  /** 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}`. If specified, you must also provide an artifact registry repository using the `docker_repository` field that was created with the same KMS crypto key. The following service accounts need to be granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the Key/KeyRing/Project/Organization (least access preferred). 1. Google Cloud Functions service account (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) - Required to protect the function's image. 2. Google Storage service account (service-{project_number}@gs-project-accounts.iam.gserviceaccount.com) - Required to protect the function's source code. If this service account does not exist, deploying a function without a KMS key or retrieving the service agent name provisions it. For more information, see https://cloud.google.com/storage/docs/projects#service-agents and https://cloud.google.com/storage/docs/getting-service-agent#gsutil. Google Cloud Functions delegates access to service agents to protect function resources in internal projects that are not accessible by the end user. */
95
106
  kmsKeyName?: string;
96
107
  /** Labels associated with this Cloud Function. */
@@ -125,7 +136,13 @@ declare namespace gapi.client {
125
136
  /** The Google Cloud Storage signed URL used for source uploading, generated by calling [google.cloud.functions.v1.GenerateUploadUrl]. The signature is validated on write methods (Create, Update) The signature is stripped from the Function object on read methods (Get, List) */
126
137
  sourceUploadUrl?: string;
127
138
  /** Output only. Status of the function deployment. */
128
- status?: string;
139
+ status?:
140
+ | 'CLOUD_FUNCTION_STATUS_UNSPECIFIED'
141
+ | 'ACTIVE'
142
+ | 'OFFLINE'
143
+ | 'DEPLOY_IN_PROGRESS'
144
+ | 'DELETE_IN_PROGRESS'
145
+ | 'UNKNOWN';
129
146
  /** The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds. */
130
147
  timeout?: string;
131
148
  /** Output only. The last update timestamp of a Cloud Function. */
@@ -135,7 +152,10 @@ declare namespace gapi.client {
135
152
  /** The VPC Network Connector that this cloud function can connect to. It can be either the fully-qualified URI, or the short name of the network connector resource. The format of this field is `projects/*‍/locations/*‍/connectors/*` This field is mutually exclusive with `network` field and will eventually replace it. See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for more information on connecting Cloud projects. */
136
153
  vpcConnector?: string;
137
154
  /** The egress settings for the connector, controlling what traffic is diverted through it. */
138
- vpcConnectorEgressSettings?: string;
155
+ vpcConnectorEgressSettings?:
156
+ | 'VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED'
157
+ | 'PRIVATE_RANGES_ONLY'
158
+ | 'ALL_TRAFFIC';
139
159
  }
140
160
  interface EventTrigger {
141
161
  /** Required. The type of event to observe. For example: `providers/cloud.storage/eventTypes/object.change` and `providers/cloud.pubsub/eventTypes/topic.publish`. Event types match pattern `providers/*‍/eventTypes/*.*`. The pattern contains: 1. namespace: For example, `cloud.storage` and `google.firebase.analytics`. 2. resource type: The type of resource on which event occurs. For example, the Google Cloud Storage API includes the type `object`. 3. action: The action that generates the event. For example, action for a Google Cloud Storage Object is 'change'. These parts are lower case. */
@@ -179,7 +199,10 @@ declare namespace gapi.client {
179
199
  }
180
200
  interface HttpsTrigger {
181
201
  /** The security level for the function. */
182
- securityLevel?: string;
202
+ securityLevel?:
203
+ | 'SECURITY_LEVEL_UNSPECIFIED'
204
+ | 'SECURE_ALWAYS'
205
+ | 'SECURE_OPTIONAL';
183
206
  /** Output only. The deployed url for the function. */
184
207
  url?: string;
185
208
  }
@@ -245,7 +268,11 @@ declare namespace gapi.client {
245
268
  /** Target of the operation - for example `projects/project-1/locations/region-1/functions/function-1` */
246
269
  target?: string;
247
270
  /** Type of operation. */
248
- type?: string;
271
+ type?:
272
+ | 'OPERATION_UNSPECIFIED'
273
+ | 'CREATE_FUNCTION'
274
+ | 'UPDATE_FUNCTION'
275
+ | 'DELETE_FUNCTION';
249
276
  /** The last update timestamp of the operation. */
250
277
  updateTime?: string;
251
278
  /** Version id of the function created or updated by an API call. This field is only populated for Create and Update operations. */
@@ -320,11 +347,11 @@ declare namespace gapi.client {
320
347
  /** 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. */
321
348
  get(request?: {
322
349
  /** V1 error format. */
323
- '$.xgafv'?: string;
350
+ '$.xgafv'?: '1' | '2';
324
351
  /** OAuth access token. */
325
352
  access_token?: string;
326
353
  /** Data format for response. */
327
- alt?: string;
354
+ alt?: 'json' | 'media' | 'proto';
328
355
  /** JSONP */
329
356
  callback?: string;
330
357
  /** Selector specifying which fields to include in a partial response. */
@@ -347,11 +374,11 @@ declare namespace gapi.client {
347
374
  /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
348
375
  list(request?: {
349
376
  /** V1 error format. */
350
- '$.xgafv'?: string;
377
+ '$.xgafv'?: '1' | '2';
351
378
  /** OAuth access token. */
352
379
  access_token?: string;
353
380
  /** Data format for response. */
354
- alt?: string;
381
+ alt?: 'json' | 'media' | 'proto';
355
382
  /** JSONP */
356
383
  callback?: string;
357
384
  /** Selector specifying which fields to include in a partial response. */
@@ -384,11 +411,11 @@ declare namespace gapi.client {
384
411
  /** Synchronously invokes a deployed Cloud Function. To be used for testing purposes as very limited traffic is allowed. For more information on the actual limits, refer to [Rate Limits](https://cloud.google.com/functions/quotas#rate_limits). */
385
412
  call(request: {
386
413
  /** V1 error format. */
387
- '$.xgafv'?: string;
414
+ '$.xgafv'?: '1' | '2';
388
415
  /** OAuth access token. */
389
416
  access_token?: string;
390
417
  /** Data format for response. */
391
- alt?: string;
418
+ alt?: 'json' | 'media' | 'proto';
392
419
  /** JSONP */
393
420
  callback?: string;
394
421
  /** Selector specifying which fields to include in a partial response. */
@@ -413,11 +440,11 @@ declare namespace gapi.client {
413
440
  call(
414
441
  request: {
415
442
  /** V1 error format. */
416
- '$.xgafv'?: string;
443
+ '$.xgafv'?: '1' | '2';
417
444
  /** OAuth access token. */
418
445
  access_token?: string;
419
446
  /** Data format for response. */
420
- alt?: string;
447
+ alt?: 'json' | 'media' | 'proto';
421
448
  /** JSONP */
422
449
  callback?: string;
423
450
  /** Selector specifying which fields to include in a partial response. */
@@ -442,11 +469,11 @@ declare namespace gapi.client {
442
469
  /** 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. */
443
470
  create(request: {
444
471
  /** V1 error format. */
445
- '$.xgafv'?: string;
472
+ '$.xgafv'?: '1' | '2';
446
473
  /** OAuth access token. */
447
474
  access_token?: string;
448
475
  /** Data format for response. */
449
- alt?: string;
476
+ alt?: 'json' | 'media' | 'proto';
450
477
  /** JSONP */
451
478
  callback?: string;
452
479
  /** Selector specifying which fields to include in a partial response. */
@@ -471,11 +498,11 @@ declare namespace gapi.client {
471
498
  create(
472
499
  request: {
473
500
  /** V1 error format. */
474
- '$.xgafv'?: string;
501
+ '$.xgafv'?: '1' | '2';
475
502
  /** OAuth access token. */
476
503
  access_token?: string;
477
504
  /** Data format for response. */
478
- alt?: string;
505
+ alt?: 'json' | 'media' | 'proto';
479
506
  /** JSONP */
480
507
  callback?: string;
481
508
  /** Selector specifying which fields to include in a partial response. */
@@ -500,11 +527,11 @@ declare namespace gapi.client {
500
527
  /** 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. */
501
528
  delete(request?: {
502
529
  /** V1 error format. */
503
- '$.xgafv'?: string;
530
+ '$.xgafv'?: '1' | '2';
504
531
  /** OAuth access token. */
505
532
  access_token?: string;
506
533
  /** Data format for response. */
507
- alt?: string;
534
+ alt?: 'json' | 'media' | 'proto';
508
535
  /** JSONP */
509
536
  callback?: string;
510
537
  /** Selector specifying which fields to include in a partial response. */
@@ -527,11 +554,11 @@ declare namespace gapi.client {
527
554
  /** Returns a signed URL for downloading deployed function source code. The URL is only valid for a limited period and should be used within minutes after generation. For more information about the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls */
528
555
  generateDownloadUrl(request: {
529
556
  /** V1 error format. */
530
- '$.xgafv'?: string;
557
+ '$.xgafv'?: '1' | '2';
531
558
  /** OAuth access token. */
532
559
  access_token?: string;
533
560
  /** Data format for response. */
534
- alt?: string;
561
+ alt?: 'json' | 'media' | 'proto';
535
562
  /** JSONP */
536
563
  callback?: string;
537
564
  /** Selector specifying which fields to include in a partial response. */
@@ -556,11 +583,11 @@ declare namespace gapi.client {
556
583
  generateDownloadUrl(
557
584
  request: {
558
585
  /** V1 error format. */
559
- '$.xgafv'?: string;
586
+ '$.xgafv'?: '1' | '2';
560
587
  /** OAuth access token. */
561
588
  access_token?: string;
562
589
  /** Data format for response. */
563
- alt?: string;
590
+ alt?: 'json' | 'media' | 'proto';
564
591
  /** JSONP */
565
592
  callback?: string;
566
593
  /** Selector specifying which fields to include in a partial response. */
@@ -585,11 +612,11 @@ declare namespace gapi.client {
585
612
  /** 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. * Source file size should not exceed 100MB limit. * 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, these two headers need to be specified: * `content-type: application/zip` * `x-goog-content-length-range: 0,104857600` And this header SHOULD NOT be specified: * `Authorization: Bearer YOUR_TOKEN` */
586
613
  generateUploadUrl(request: {
587
614
  /** V1 error format. */
588
- '$.xgafv'?: string;
615
+ '$.xgafv'?: '1' | '2';
589
616
  /** OAuth access token. */
590
617
  access_token?: string;
591
618
  /** Data format for response. */
592
- alt?: string;
619
+ alt?: 'json' | 'media' | 'proto';
593
620
  /** JSONP */
594
621
  callback?: string;
595
622
  /** Selector specifying which fields to include in a partial response. */
@@ -614,11 +641,11 @@ declare namespace gapi.client {
614
641
  generateUploadUrl(
615
642
  request: {
616
643
  /** V1 error format. */
617
- '$.xgafv'?: string;
644
+ '$.xgafv'?: '1' | '2';
618
645
  /** OAuth access token. */
619
646
  access_token?: string;
620
647
  /** Data format for response. */
621
- alt?: string;
648
+ alt?: 'json' | 'media' | 'proto';
622
649
  /** JSONP */
623
650
  callback?: string;
624
651
  /** Selector specifying which fields to include in a partial response. */
@@ -643,11 +670,11 @@ declare namespace gapi.client {
643
670
  /** Returns a function with the given name from the requested project. */
644
671
  get(request?: {
645
672
  /** V1 error format. */
646
- '$.xgafv'?: string;
673
+ '$.xgafv'?: '1' | '2';
647
674
  /** OAuth access token. */
648
675
  access_token?: string;
649
676
  /** Data format for response. */
650
- alt?: string;
677
+ alt?: 'json' | 'media' | 'proto';
651
678
  /** JSONP */
652
679
  callback?: string;
653
680
  /** Selector specifying which fields to include in a partial response. */
@@ -672,11 +699,11 @@ declare namespace gapi.client {
672
699
  /** Gets the IAM access control policy for a function. Returns an empty policy if the function exists and does not have a policy set. */
673
700
  getIamPolicy(request?: {
674
701
  /** V1 error format. */
675
- '$.xgafv'?: string;
702
+ '$.xgafv'?: '1' | '2';
676
703
  /** OAuth access token. */
677
704
  access_token?: string;
678
705
  /** Data format for response. */
679
- alt?: string;
706
+ alt?: 'json' | 'media' | 'proto';
680
707
  /** JSONP */
681
708
  callback?: string;
682
709
  /** Selector specifying which fields to include in a partial response. */
@@ -701,11 +728,11 @@ declare namespace gapi.client {
701
728
  /** Returns a list of functions that belong to the requested project. */
702
729
  list(request?: {
703
730
  /** V1 error format. */
704
- '$.xgafv'?: string;
731
+ '$.xgafv'?: '1' | '2';
705
732
  /** OAuth access token. */
706
733
  access_token?: string;
707
734
  /** Data format for response. */
708
- alt?: string;
735
+ alt?: 'json' | 'media' | 'proto';
709
736
  /** JSONP */
710
737
  callback?: string;
711
738
  /** Selector specifying which fields to include in a partial response. */
@@ -732,11 +759,11 @@ declare namespace gapi.client {
732
759
  /** Updates existing function. */
733
760
  patch(request: {
734
761
  /** V1 error format. */
735
- '$.xgafv'?: string;
762
+ '$.xgafv'?: '1' | '2';
736
763
  /** OAuth access token. */
737
764
  access_token?: string;
738
765
  /** Data format for response. */
739
- alt?: string;
766
+ alt?: 'json' | 'media' | 'proto';
740
767
  /** JSONP */
741
768
  callback?: string;
742
769
  /** Selector specifying which fields to include in a partial response. */
@@ -763,11 +790,11 @@ declare namespace gapi.client {
763
790
  patch(
764
791
  request: {
765
792
  /** V1 error format. */
766
- '$.xgafv'?: string;
793
+ '$.xgafv'?: '1' | '2';
767
794
  /** OAuth access token. */
768
795
  access_token?: string;
769
796
  /** Data format for response. */
770
- alt?: string;
797
+ alt?: 'json' | 'media' | 'proto';
771
798
  /** JSONP */
772
799
  callback?: string;
773
800
  /** Selector specifying which fields to include in a partial response. */
@@ -795,11 +822,11 @@ declare namespace gapi.client {
795
822
  setIamPolicy(
796
823
  request: {
797
824
  /** V1 error format. */
798
- '$.xgafv'?: string;
825
+ '$.xgafv'?: '1' | '2';
799
826
  /** OAuth access token. */
800
827
  access_token?: string;
801
828
  /** Data format for response. */
802
- alt?: string;
829
+ alt?: 'json' | 'media' | 'proto';
803
830
  /** JSONP */
804
831
  callback?: string;
805
832
  /** Selector specifying which fields to include in a partial response. */
@@ -825,11 +852,11 @@ declare namespace gapi.client {
825
852
  testIamPermissions(
826
853
  request: {
827
854
  /** V1 error format. */
828
- '$.xgafv'?: string;
855
+ '$.xgafv'?: '1' | '2';
829
856
  /** OAuth access token. */
830
857
  access_token?: string;
831
858
  /** Data format for response. */
832
- alt?: string;
859
+ alt?: 'json' | 'media' | 'proto';
833
860
  /** JSONP */
834
861
  callback?: string;
835
862
  /** Selector specifying which fields to include in a partial response. */
@@ -856,11 +883,11 @@ declare namespace gapi.client {
856
883
  /** 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. */
857
884
  list(request?: {
858
885
  /** V1 error format. */
859
- '$.xgafv'?: string;
886
+ '$.xgafv'?: '1' | '2';
860
887
  /** OAuth access token. */
861
888
  access_token?: string;
862
889
  /** Data format for response. */
863
- alt?: string;
890
+ alt?: 'json' | 'media' | 'proto';
864
891
  /** JSONP */
865
892
  callback?: string;
866
893
  /** 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-v1",
3
- "version": "0.1.20260312",
3
+ "version": "0.2.20260312",
4
4
  "description": "TypeScript typings for Cloud Functions API v1",
5
5
  "repository": {
6
6
  "type": "git",