@maxim_mazurok/gapi.client.cloudfunctions-v2beta 0.4.20261109 → 0.5.20261112

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 +942 -947
  2. package/package.json +1 -1
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://cloudfunctions.googleapis.com/$discovery/rest?version=v2beta
12
- // Revision: 20261109
12
+ // Revision: 20261112
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -205,7 +205,7 @@ declare namespace gapi.client {
205
205
  }
206
206
  interface GoogleCloudFunctionsV2betaLocationMetadata {
207
207
  /** The Cloud Function environments this location supports. */
208
- environments?: 'ENVIRONMENT_UNSPECIFIED' | 'GEN_1' | 'GEN_2'[];
208
+ environments?: ('ENVIRONMENT_UNSPECIFIED' | 'GEN_1' | 'GEN_2')[];
209
209
  }
210
210
  interface GoogleCloudFunctionsV2betaOperationMetadata {
211
211
  /** API version used to start the operation. */
@@ -565,776 +565,11 @@ declare namespace gapi.client {
565
565
  | 'COMMIT_FUNCTION_UPGRADE_AS_GEN2_SUCCESSFUL'
566
566
  | 'COMMIT_FUNCTION_UPGRADE_AS_GEN2_ERROR';
567
567
  }
568
- interface FunctionsResource {
569
- /** 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. */
570
- abortFunctionUpgrade(request: {
571
- /** V1 error format. */
572
- '$.xgafv'?: '1' | '2';
573
- /** OAuth access token. */
574
- access_token?: string;
575
- /** Data format for response. */
576
- alt?: 'json' | 'media' | 'proto';
577
- /** JSONP */
578
- callback?: string;
579
- /** Selector specifying which fields to include in a partial response. */
580
- fields?: string;
581
- /** 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. */
582
- key?: string;
583
- /** Required. The name of the function for which upgrade should be aborted. */
584
- name: string;
585
- /** OAuth 2.0 token for the current user. */
586
- oauth_token?: string;
587
- /** Returns response with indentations and line breaks. */
588
- prettyPrint?: boolean;
589
- /** 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. */
590
- quotaUser?: string;
591
- /** Upload protocol for media (e.g. "raw", "multipart"). */
592
- upload_protocol?: string;
593
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
594
- uploadType?: string;
595
- /** Request body */
596
- resource: AbortFunctionUpgradeRequest;
597
- }): Request<Operation>;
598
- abortFunctionUpgrade(
599
- request: {
600
- /** V1 error format. */
601
- '$.xgafv'?: '1' | '2';
602
- /** OAuth access token. */
603
- access_token?: string;
604
- /** Data format for response. */
605
- alt?: 'json' | 'media' | 'proto';
606
- /** JSONP */
607
- callback?: string;
608
- /** Selector specifying which fields to include in a partial response. */
609
- fields?: string;
610
- /** 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. */
611
- key?: string;
612
- /** Required. The name of the function for which upgrade should be aborted. */
613
- name: string;
614
- /** OAuth 2.0 token for the current user. */
615
- oauth_token?: string;
616
- /** Returns response with indentations and line breaks. */
617
- prettyPrint?: boolean;
618
- /** 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. */
619
- quotaUser?: string;
620
- /** Upload protocol for media (e.g. "raw", "multipart"). */
621
- upload_protocol?: string;
622
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
623
- uploadType?: string;
624
- },
625
- body: AbortFunctionUpgradeRequest,
626
- ): Request<Operation>;
627
- /** 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. */
628
- commitFunctionUpgrade(request: {
629
- /** V1 error format. */
630
- '$.xgafv'?: '1' | '2';
631
- /** OAuth access token. */
632
- access_token?: string;
633
- /** Data format for response. */
634
- alt?: 'json' | 'media' | 'proto';
635
- /** JSONP */
636
- callback?: string;
637
- /** Selector specifying which fields to include in a partial response. */
638
- fields?: string;
639
- /** 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. */
640
- key?: string;
641
- /** Required. The name of the function for which upgrade should be finalized. */
642
- name: string;
643
- /** OAuth 2.0 token for the current user. */
644
- oauth_token?: string;
645
- /** Returns response with indentations and line breaks. */
646
- prettyPrint?: boolean;
647
- /** 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. */
648
- quotaUser?: string;
649
- /** Upload protocol for media (e.g. "raw", "multipart"). */
650
- upload_protocol?: string;
651
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
652
- uploadType?: string;
653
- /** Request body */
654
- resource: CommitFunctionUpgradeRequest;
655
- }): Request<Operation>;
656
- commitFunctionUpgrade(
657
- request: {
658
- /** V1 error format. */
659
- '$.xgafv'?: '1' | '2';
660
- /** OAuth access token. */
661
- access_token?: string;
662
- /** Data format for response. */
663
- alt?: 'json' | 'media' | 'proto';
664
- /** JSONP */
665
- callback?: string;
666
- /** Selector specifying which fields to include in a partial response. */
667
- fields?: string;
668
- /** 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. */
669
- key?: string;
670
- /** Required. The name of the function for which upgrade should be finalized. */
671
- name: string;
672
- /** OAuth 2.0 token for the current user. */
673
- oauth_token?: string;
674
- /** Returns response with indentations and line breaks. */
675
- prettyPrint?: boolean;
676
- /** 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. */
677
- quotaUser?: string;
678
- /** Upload protocol for media (e.g. "raw", "multipart"). */
679
- upload_protocol?: string;
680
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
681
- uploadType?: string;
682
- },
683
- body: CommitFunctionUpgradeRequest,
684
- ): Request<Operation>;
685
- /** 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. */
686
- commitFunctionUpgradeAsGen2(request: {
687
- /** V1 error format. */
688
- '$.xgafv'?: '1' | '2';
689
- /** OAuth access token. */
690
- access_token?: string;
691
- /** Data format for response. */
692
- alt?: 'json' | 'media' | 'proto';
693
- /** JSONP */
694
- callback?: string;
695
- /** Selector specifying which fields to include in a partial response. */
696
- fields?: string;
697
- /** 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. */
698
- key?: string;
699
- /** Required. The name of the function for which upgrade should be committed to Gen2. */
700
- name: string;
701
- /** OAuth 2.0 token for the current user. */
702
- oauth_token?: string;
703
- /** Returns response with indentations and line breaks. */
704
- prettyPrint?: boolean;
705
- /** 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. */
706
- quotaUser?: string;
707
- /** Upload protocol for media (e.g. "raw", "multipart"). */
708
- upload_protocol?: string;
709
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
710
- uploadType?: string;
711
- /** Request body */
712
- resource: CommitFunctionUpgradeAsGen2Request;
713
- }): Request<Operation>;
714
- commitFunctionUpgradeAsGen2(
715
- request: {
716
- /** V1 error format. */
717
- '$.xgafv'?: '1' | '2';
718
- /** OAuth access token. */
719
- access_token?: string;
720
- /** Data format for response. */
721
- alt?: 'json' | 'media' | 'proto';
722
- /** JSONP */
723
- callback?: string;
724
- /** Selector specifying which fields to include in a partial response. */
725
- fields?: string;
726
- /** 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. */
727
- key?: string;
728
- /** Required. The name of the function for which upgrade should be committed to Gen2. */
729
- name: string;
730
- /** OAuth 2.0 token for the current user. */
731
- oauth_token?: string;
732
- /** Returns response with indentations and line breaks. */
733
- prettyPrint?: boolean;
734
- /** 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. */
735
- quotaUser?: string;
736
- /** Upload protocol for media (e.g. "raw", "multipart"). */
737
- upload_protocol?: string;
738
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
739
- uploadType?: string;
740
- },
741
- body: CommitFunctionUpgradeAsGen2Request,
742
- ): Request<Operation>;
743
- /** 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. */
744
- create(request: {
745
- /** V1 error format. */
746
- '$.xgafv'?: '1' | '2';
747
- /** OAuth access token. */
748
- access_token?: string;
749
- /** Data format for response. */
750
- alt?: 'json' | 'media' | 'proto';
751
- /** JSONP */
752
- callback?: string;
753
- /** Selector specifying which fields to include in a partial response. */
754
- fields?: string;
755
- /** The ID to use for the function, which will become the final component of the function's resource name. This value should be 4-63 characters, and valid characters are /a-z-/. */
756
- functionId?: string;
757
- /** 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. */
758
- key?: string;
759
- /** OAuth 2.0 token for the current user. */
760
- oauth_token?: string;
761
- /** Required. The project and location in which the function should be created, specified in the format `projects/*‍/locations/*` */
762
- parent: string;
763
- /** Returns response with indentations and line breaks. */
764
- prettyPrint?: boolean;
765
- /** 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. */
766
- quotaUser?: string;
767
- /** Upload protocol for media (e.g. "raw", "multipart"). */
768
- upload_protocol?: string;
769
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
770
- uploadType?: string;
771
- /** Request body */
772
- resource: Function;
773
- }): Request<Operation>;
774
- create(
775
- request: {
776
- /** V1 error format. */
777
- '$.xgafv'?: '1' | '2';
778
- /** OAuth access token. */
779
- access_token?: string;
780
- /** Data format for response. */
781
- alt?: 'json' | 'media' | 'proto';
782
- /** JSONP */
783
- callback?: string;
784
- /** Selector specifying which fields to include in a partial response. */
785
- fields?: string;
786
- /** The ID to use for the function, which will become the final component of the function's resource name. This value should be 4-63 characters, and valid characters are /a-z-/. */
787
- functionId?: string;
788
- /** 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. */
789
- key?: string;
790
- /** OAuth 2.0 token for the current user. */
791
- oauth_token?: string;
792
- /** Required. The project and location in which the function should be created, specified in the format `projects/*‍/locations/*` */
793
- parent: string;
794
- /** Returns response with indentations and line breaks. */
795
- prettyPrint?: boolean;
796
- /** 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. */
797
- quotaUser?: string;
798
- /** Upload protocol for media (e.g. "raw", "multipart"). */
799
- upload_protocol?: string;
800
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
801
- uploadType?: string;
802
- },
803
- body: Function,
804
- ): Request<Operation>;
805
- /** 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. */
806
- delete(request?: {
807
- /** V1 error format. */
808
- '$.xgafv'?: '1' | '2';
809
- /** OAuth access token. */
810
- access_token?: string;
811
- /** Data format for response. */
812
- alt?: 'json' | 'media' | 'proto';
813
- /** JSONP */
814
- callback?: string;
815
- /** Selector specifying which fields to include in a partial response. */
816
- fields?: string;
817
- /** 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. */
818
- key?: string;
819
- /** Required. The name of the function which should be deleted. */
820
- name: string;
821
- /** OAuth 2.0 token for the current user. */
822
- oauth_token?: string;
823
- /** Returns response with indentations and line breaks. */
824
- prettyPrint?: boolean;
825
- /** 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. */
826
- quotaUser?: string;
827
- /** Upload protocol for media (e.g. "raw", "multipart"). */
828
- upload_protocol?: string;
829
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
830
- uploadType?: string;
831
- }): Request<Operation>;
832
- /** Detaches 2nd Gen function to Cloud Run function. */
833
- detachFunction(request: {
834
- /** V1 error format. */
835
- '$.xgafv'?: '1' | '2';
836
- /** OAuth access token. */
837
- access_token?: string;
838
- /** Data format for response. */
839
- alt?: 'json' | 'media' | 'proto';
840
- /** JSONP */
841
- callback?: string;
842
- /** Selector specifying which fields to include in a partial response. */
843
- fields?: string;
844
- /** 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. */
845
- key?: string;
846
- /** Required. The name of the function for which should be detached. */
847
- name: string;
848
- /** OAuth 2.0 token for the current user. */
849
- oauth_token?: string;
850
- /** Returns response with indentations and line breaks. */
851
- prettyPrint?: boolean;
852
- /** 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. */
853
- quotaUser?: string;
854
- /** Upload protocol for media (e.g. "raw", "multipart"). */
855
- upload_protocol?: string;
856
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
857
- uploadType?: string;
858
- /** Request body */
859
- resource: DetachFunctionRequest;
860
- }): Request<Operation>;
861
- detachFunction(
862
- request: {
863
- /** V1 error format. */
864
- '$.xgafv'?: '1' | '2';
865
- /** OAuth access token. */
866
- access_token?: string;
867
- /** Data format for response. */
868
- alt?: 'json' | 'media' | 'proto';
869
- /** JSONP */
870
- callback?: string;
871
- /** Selector specifying which fields to include in a partial response. */
872
- fields?: string;
873
- /** 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. */
874
- key?: string;
875
- /** Required. The name of the function for which should be detached. */
876
- name: string;
877
- /** OAuth 2.0 token for the current user. */
878
- oauth_token?: string;
879
- /** Returns response with indentations and line breaks. */
880
- prettyPrint?: boolean;
881
- /** 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. */
882
- quotaUser?: string;
883
- /** Upload protocol for media (e.g. "raw", "multipart"). */
884
- upload_protocol?: string;
885
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
886
- uploadType?: string;
887
- },
888
- body: DetachFunctionRequest,
889
- ): Request<Operation>;
890
- /** 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 */
891
- generateDownloadUrl(request: {
892
- /** V1 error format. */
893
- '$.xgafv'?: '1' | '2';
894
- /** OAuth access token. */
895
- access_token?: string;
896
- /** Data format for response. */
897
- alt?: 'json' | 'media' | 'proto';
898
- /** JSONP */
899
- callback?: string;
900
- /** Selector specifying which fields to include in a partial response. */
901
- fields?: string;
902
- /** 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. */
903
- key?: string;
904
- /** Required. The name of function for which source code Google Cloud Storage signed URL should be generated. */
905
- name: string;
906
- /** OAuth 2.0 token for the current user. */
907
- oauth_token?: string;
908
- /** Returns response with indentations and line breaks. */
909
- prettyPrint?: boolean;
910
- /** 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. */
911
- quotaUser?: string;
912
- /** Upload protocol for media (e.g. "raw", "multipart"). */
913
- upload_protocol?: string;
914
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
915
- uploadType?: string;
916
- /** Request body */
917
- resource: GenerateDownloadUrlRequest;
918
- }): Request<GenerateDownloadUrlResponse>;
919
- generateDownloadUrl(
920
- request: {
921
- /** V1 error format. */
922
- '$.xgafv'?: '1' | '2';
923
- /** OAuth access token. */
924
- access_token?: string;
925
- /** Data format for response. */
926
- alt?: 'json' | 'media' | 'proto';
927
- /** JSONP */
928
- callback?: string;
929
- /** Selector specifying which fields to include in a partial response. */
930
- fields?: string;
931
- /** 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. */
932
- key?: string;
933
- /** Required. The name of function for which source code Google Cloud Storage signed URL should be generated. */
934
- name: string;
935
- /** OAuth 2.0 token for the current user. */
936
- oauth_token?: string;
937
- /** Returns response with indentations and line breaks. */
938
- prettyPrint?: boolean;
939
- /** 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. */
940
- quotaUser?: string;
941
- /** Upload protocol for media (e.g. "raw", "multipart"). */
942
- upload_protocol?: string;
943
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
944
- uploadType?: string;
945
- },
946
- body: GenerateDownloadUrlRequest,
947
- ): Request<GenerateDownloadUrlResponse>;
948
- /** 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` */
949
- generateUploadUrl(request: {
950
- /** V1 error format. */
951
- '$.xgafv'?: '1' | '2';
952
- /** OAuth access token. */
953
- access_token?: string;
954
- /** Data format for response. */
955
- alt?: 'json' | 'media' | 'proto';
956
- /** JSONP */
957
- callback?: string;
958
- /** Selector specifying which fields to include in a partial response. */
959
- fields?: string;
960
- /** 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. */
961
- key?: string;
962
- /** OAuth 2.0 token for the current user. */
963
- oauth_token?: string;
964
- /** Required. The project and location in which the Google Cloud Storage signed URL should be generated, specified in the format `projects/*‍/locations/*`. */
965
- parent: string;
966
- /** Returns response with indentations and line breaks. */
967
- prettyPrint?: boolean;
968
- /** 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. */
969
- quotaUser?: string;
970
- /** Upload protocol for media (e.g. "raw", "multipart"). */
971
- upload_protocol?: string;
972
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
973
- uploadType?: string;
974
- /** Request body */
975
- resource: GenerateUploadUrlRequest;
976
- }): Request<GenerateUploadUrlResponse>;
977
- generateUploadUrl(
978
- request: {
979
- /** V1 error format. */
980
- '$.xgafv'?: '1' | '2';
981
- /** OAuth access token. */
982
- access_token?: string;
983
- /** Data format for response. */
984
- alt?: 'json' | 'media' | 'proto';
985
- /** JSONP */
986
- callback?: string;
987
- /** Selector specifying which fields to include in a partial response. */
988
- fields?: string;
989
- /** 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. */
990
- key?: string;
991
- /** OAuth 2.0 token for the current user. */
992
- oauth_token?: string;
993
- /** Required. The project and location in which the Google Cloud Storage signed URL should be generated, specified in the format `projects/*‍/locations/*`. */
994
- parent: string;
995
- /** Returns response with indentations and line breaks. */
996
- prettyPrint?: boolean;
997
- /** 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. */
998
- quotaUser?: string;
999
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1000
- upload_protocol?: string;
1001
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1002
- uploadType?: string;
1003
- },
1004
- body: GenerateUploadUrlRequest,
1005
- ): Request<GenerateUploadUrlResponse>;
1006
- /** Returns a function with the given name from the requested project. */
1007
- get(request?: {
1008
- /** V1 error format. */
1009
- '$.xgafv'?: '1' | '2';
1010
- /** OAuth access token. */
1011
- access_token?: string;
1012
- /** Data format for response. */
1013
- alt?: 'json' | 'media' | 'proto';
1014
- /** JSONP */
1015
- callback?: string;
1016
- /** Selector specifying which fields to include in a partial response. */
1017
- fields?: string;
1018
- /** 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. */
1019
- key?: string;
1020
- /** Required. The name of the function which details should be obtained. */
1021
- name: string;
1022
- /** OAuth 2.0 token for the current user. */
1023
- oauth_token?: string;
1024
- /** Returns response with indentations and line breaks. */
1025
- prettyPrint?: boolean;
1026
- /** 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. */
1027
- quotaUser?: string;
1028
- /** Optional. The optional version of the 1st gen function whose details should be obtained. The version of a 1st gen function is an integer that starts from 1 and gets incremented on redeployments. GCF may keep historical configs for old versions of 1st gen function. This field can be specified to fetch the historical configs. This field is valid only for GCF 1st gen function. */
1029
- revision?: string;
1030
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1031
- upload_protocol?: string;
1032
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1033
- uploadType?: string;
1034
- }): Request<Function>;
1035
- /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
1036
- getIamPolicy(request?: {
1037
- /** V1 error format. */
1038
- '$.xgafv'?: '1' | '2';
1039
- /** OAuth access token. */
1040
- access_token?: string;
1041
- /** Data format for response. */
1042
- alt?: 'json' | 'media' | 'proto';
1043
- /** JSONP */
1044
- callback?: string;
1045
- /** Selector specifying which fields to include in a partial response. */
1046
- fields?: string;
1047
- /** 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. */
1048
- key?: string;
1049
- /** OAuth 2.0 token for the current user. */
1050
- oauth_token?: string;
1051
- /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */
1052
- 'options.requestedPolicyVersion'?: number;
1053
- /** Returns response with indentations and line breaks. */
1054
- prettyPrint?: boolean;
1055
- /** 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. */
1056
- quotaUser?: string;
1057
- /** REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
1058
- resource: string;
1059
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1060
- upload_protocol?: string;
1061
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1062
- uploadType?: string;
1063
- }): Request<Policy>;
1064
- /** Returns a list of functions that belong to the requested project. */
1065
- list(request?: {
1066
- /** V1 error format. */
1067
- '$.xgafv'?: '1' | '2';
1068
- /** OAuth access token. */
1069
- access_token?: string;
1070
- /** Data format for response. */
1071
- alt?: 'json' | 'media' | 'proto';
1072
- /** JSONP */
1073
- callback?: string;
1074
- /** Selector specifying which fields to include in a partial response. */
1075
- fields?: string;
1076
- /** The filter for Functions that match the filter expression, following the syntax outlined in https://google.aip.dev/160. */
1077
- filter?: string;
1078
- /** 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. */
1079
- key?: string;
1080
- /** OAuth 2.0 token for the current user. */
1081
- oauth_token?: string;
1082
- /** The sorting order of the resources returned. Value should be a comma separated list of fields. The default sorting order is ascending. See https://google.aip.dev/132#ordering. */
1083
- orderBy?: string;
1084
- /** Maximum number of functions to return per call. The largest allowed page_size is 1,000, if the page_size is omitted or specified as greater than 1,000 then it will be replaced as 1,000. The size of the list response can be less than specified when used with filters. */
1085
- pageSize?: number;
1086
- /** The value returned by the last `ListFunctionsResponse`; indicates that this is a continuation of a prior `ListFunctions` call, and that the system should return the next page of data. */
1087
- pageToken?: string;
1088
- /** Required. The project and location from which the function should be listed, specified in the format `projects/*‍/locations/*` If you want to list functions in all locations, use "-" in place of a location. When listing functions in all locations, if one or more location(s) are unreachable, the response will contain functions from all reachable locations along with the names of any unreachable locations. */
1089
- parent: string;
1090
- /** Returns response with indentations and line breaks. */
1091
- prettyPrint?: boolean;
1092
- /** 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. */
1093
- quotaUser?: string;
1094
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1095
- upload_protocol?: string;
1096
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1097
- uploadType?: string;
1098
- }): Request<ListFunctionsResponse>;
1099
- /** Updates existing function. */
1100
- patch(request: {
1101
- /** V1 error format. */
1102
- '$.xgafv'?: '1' | '2';
1103
- /** OAuth access token. */
1104
- access_token?: string;
1105
- /** Data format for response. */
1106
- alt?: 'json' | 'media' | 'proto';
1107
- /** JSONP */
1108
- callback?: string;
1109
- /** Selector specifying which fields to include in a partial response. */
1110
- fields?: string;
1111
- /** 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. */
1112
- key?: string;
1113
- /** A user-defined name of the function. Function names must be unique globally and match pattern `projects/*‍/locations/*‍/functions/*` */
1114
- name: string;
1115
- /** OAuth 2.0 token for the current user. */
1116
- oauth_token?: string;
1117
- /** Returns response with indentations and line breaks. */
1118
- prettyPrint?: boolean;
1119
- /** 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. */
1120
- quotaUser?: string;
1121
- /** The list of fields to be updated. If no field mask is provided, all fields will be updated. */
1122
- updateMask?: string;
1123
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1124
- upload_protocol?: string;
1125
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1126
- uploadType?: string;
1127
- /** Request body */
1128
- resource: Function;
1129
- }): Request<Operation>;
1130
- patch(
1131
- request: {
1132
- /** V1 error format. */
1133
- '$.xgafv'?: '1' | '2';
1134
- /** OAuth access token. */
1135
- access_token?: string;
1136
- /** Data format for response. */
1137
- alt?: 'json' | 'media' | 'proto';
1138
- /** JSONP */
1139
- callback?: string;
1140
- /** Selector specifying which fields to include in a partial response. */
1141
- fields?: string;
1142
- /** 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. */
1143
- key?: string;
1144
- /** A user-defined name of the function. Function names must be unique globally and match pattern `projects/*‍/locations/*‍/functions/*` */
1145
- name: string;
1146
- /** OAuth 2.0 token for the current user. */
1147
- oauth_token?: string;
1148
- /** Returns response with indentations and line breaks. */
1149
- prettyPrint?: boolean;
1150
- /** 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. */
1151
- quotaUser?: string;
1152
- /** The list of fields to be updated. If no field mask is provided, all fields will be updated. */
1153
- updateMask?: string;
1154
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1155
- upload_protocol?: string;
1156
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1157
- uploadType?: string;
1158
- },
1159
- body: Function,
1160
- ): Request<Operation>;
1161
- /** 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. */
1162
- redirectFunctionUpgradeTraffic(request: {
1163
- /** V1 error format. */
1164
- '$.xgafv'?: '1' | '2';
1165
- /** OAuth access token. */
1166
- access_token?: string;
1167
- /** Data format for response. */
1168
- alt?: 'json' | 'media' | 'proto';
1169
- /** JSONP */
1170
- callback?: string;
1171
- /** Selector specifying which fields to include in a partial response. */
1172
- fields?: string;
1173
- /** 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. */
1174
- key?: string;
1175
- /** Required. The name of the function for which traffic target should be changed to 2nd Gen from 1st Gen. */
1176
- name: string;
1177
- /** OAuth 2.0 token for the current user. */
1178
- oauth_token?: string;
1179
- /** Returns response with indentations and line breaks. */
1180
- prettyPrint?: boolean;
1181
- /** 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. */
1182
- quotaUser?: string;
1183
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1184
- upload_protocol?: string;
1185
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1186
- uploadType?: string;
1187
- /** Request body */
1188
- resource: RedirectFunctionUpgradeTrafficRequest;
1189
- }): Request<Operation>;
1190
- redirectFunctionUpgradeTraffic(
1191
- request: {
1192
- /** V1 error format. */
1193
- '$.xgafv'?: '1' | '2';
1194
- /** OAuth access token. */
1195
- access_token?: string;
1196
- /** Data format for response. */
1197
- alt?: 'json' | 'media' | 'proto';
1198
- /** JSONP */
1199
- callback?: string;
1200
- /** Selector specifying which fields to include in a partial response. */
1201
- fields?: string;
1202
- /** 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. */
1203
- key?: string;
1204
- /** Required. The name of the function for which traffic target should be changed to 2nd Gen from 1st Gen. */
1205
- name: string;
1206
- /** OAuth 2.0 token for the current user. */
1207
- oauth_token?: string;
1208
- /** Returns response with indentations and line breaks. */
1209
- prettyPrint?: boolean;
1210
- /** 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. */
1211
- quotaUser?: string;
1212
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1213
- upload_protocol?: string;
1214
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1215
- uploadType?: string;
1216
- },
1217
- body: RedirectFunctionUpgradeTrafficRequest,
1218
- ): Request<Operation>;
1219
- /** 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. */
1220
- rollbackFunctionUpgradeTraffic(request: {
1221
- /** V1 error format. */
1222
- '$.xgafv'?: '1' | '2';
1223
- /** OAuth access token. */
1224
- access_token?: string;
1225
- /** Data format for response. */
1226
- alt?: 'json' | 'media' | 'proto';
1227
- /** JSONP */
1228
- callback?: string;
1229
- /** Selector specifying which fields to include in a partial response. */
1230
- fields?: string;
1231
- /** 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. */
1232
- key?: string;
1233
- /** Required. The name of the function for which traffic target should be changed back to 1st Gen from 2nd Gen. */
1234
- name: string;
1235
- /** OAuth 2.0 token for the current user. */
1236
- oauth_token?: string;
1237
- /** Returns response with indentations and line breaks. */
1238
- prettyPrint?: boolean;
1239
- /** 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. */
1240
- quotaUser?: string;
1241
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1242
- upload_protocol?: string;
1243
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1244
- uploadType?: string;
1245
- /** Request body */
1246
- resource: RollbackFunctionUpgradeTrafficRequest;
1247
- }): Request<Operation>;
1248
- rollbackFunctionUpgradeTraffic(
1249
- request: {
1250
- /** V1 error format. */
1251
- '$.xgafv'?: '1' | '2';
1252
- /** OAuth access token. */
1253
- access_token?: string;
1254
- /** Data format for response. */
1255
- alt?: 'json' | 'media' | 'proto';
1256
- /** JSONP */
1257
- callback?: string;
1258
- /** Selector specifying which fields to include in a partial response. */
1259
- fields?: string;
1260
- /** 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. */
1261
- key?: string;
1262
- /** Required. The name of the function for which traffic target should be changed back to 1st Gen from 2nd Gen. */
1263
- name: string;
1264
- /** OAuth 2.0 token for the current user. */
1265
- oauth_token?: string;
1266
- /** Returns response with indentations and line breaks. */
1267
- prettyPrint?: boolean;
1268
- /** 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. */
1269
- quotaUser?: string;
1270
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1271
- upload_protocol?: string;
1272
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1273
- uploadType?: string;
1274
- },
1275
- body: RollbackFunctionUpgradeTrafficRequest,
1276
- ): Request<Operation>;
1277
- /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
1278
- setIamPolicy(
1279
- request: {
1280
- /** V1 error format. */
1281
- '$.xgafv'?: '1' | '2';
1282
- /** OAuth access token. */
1283
- access_token?: string;
1284
- /** Data format for response. */
1285
- alt?: 'json' | 'media' | 'proto';
1286
- /** JSONP */
1287
- callback?: string;
1288
- /** Selector specifying which fields to include in a partial response. */
1289
- fields?: string;
1290
- /** 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. */
1291
- key?: string;
1292
- /** OAuth 2.0 token for the current user. */
1293
- oauth_token?: string;
1294
- /** Returns response with indentations and line breaks. */
1295
- prettyPrint?: boolean;
1296
- /** 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. */
1297
- quotaUser?: string;
1298
- /** REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
1299
- resource: string;
1300
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1301
- upload_protocol?: string;
1302
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1303
- uploadType?: string;
1304
- },
1305
- body: SetIamPolicyRequest,
1306
- ): Request<Policy>;
1307
- /** 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. */
1308
- setupFunctionUpgradeConfig(request: {
1309
- /** V1 error format. */
1310
- '$.xgafv'?: '1' | '2';
1311
- /** OAuth access token. */
1312
- access_token?: string;
1313
- /** Data format for response. */
1314
- alt?: 'json' | 'media' | 'proto';
1315
- /** JSONP */
1316
- callback?: string;
1317
- /** Selector specifying which fields to include in a partial response. */
1318
- fields?: string;
1319
- /** 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. */
1320
- key?: string;
1321
- /** Required. The name of the function which should have configuration copied for upgrade. */
1322
- name: string;
1323
- /** OAuth 2.0 token for the current user. */
1324
- oauth_token?: string;
1325
- /** Returns response with indentations and line breaks. */
1326
- prettyPrint?: boolean;
1327
- /** 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. */
1328
- quotaUser?: string;
1329
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1330
- upload_protocol?: string;
1331
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1332
- uploadType?: string;
1333
- /** Request body */
1334
- resource: SetupFunctionUpgradeConfigRequest;
1335
- }): Request<Operation>;
1336
- setupFunctionUpgradeConfig(
1337
- request: {
568
+
569
+ const projects: {
570
+ locations: {
571
+ /** 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. */
572
+ list(request?: {
1338
573
  /** V1 error format. */
1339
574
  '$.xgafv'?: '1' | '2';
1340
575
  /** OAuth access token. */
@@ -1343,14 +578,22 @@ declare namespace gapi.client {
1343
578
  alt?: 'json' | 'media' | 'proto';
1344
579
  /** JSONP */
1345
580
  callback?: string;
581
+ /** Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. */
582
+ extraLocationTypes?: string | string[];
1346
583
  /** Selector specifying which fields to include in a partial response. */
1347
584
  fields?: string;
585
+ /** A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160). */
586
+ filter?: string;
1348
587
  /** 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. */
1349
588
  key?: string;
1350
- /** Required. The name of the function which should have configuration copied for upgrade. */
589
+ /** The resource that owns the locations collection, if applicable. */
1351
590
  name: string;
1352
591
  /** OAuth 2.0 token for the current user. */
1353
592
  oauth_token?: string;
593
+ /** The maximum number of results to return. If not set, the service selects a default. */
594
+ pageSize?: number;
595
+ /** A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. */
596
+ pageToken?: string;
1354
597
  /** Returns response with indentations and line breaks. */
1355
598
  prettyPrint?: boolean;
1356
599
  /** 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. */
@@ -1359,179 +602,931 @@ declare namespace gapi.client {
1359
602
  upload_protocol?: string;
1360
603
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1361
604
  uploadType?: string;
1362
- },
1363
- body: SetupFunctionUpgradeConfigRequest,
1364
- ): Request<Operation>;
1365
- /** Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. */
1366
- testIamPermissions(
1367
- request: {
1368
- /** V1 error format. */
1369
- '$.xgafv'?: '1' | '2';
1370
- /** OAuth access token. */
1371
- access_token?: string;
1372
- /** Data format for response. */
1373
- alt?: 'json' | 'media' | 'proto';
1374
- /** JSONP */
1375
- callback?: string;
1376
- /** Selector specifying which fields to include in a partial response. */
1377
- fields?: string;
1378
- /** 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. */
1379
- key?: string;
1380
- /** OAuth 2.0 token for the current user. */
1381
- oauth_token?: string;
1382
- /** Returns response with indentations and line breaks. */
1383
- prettyPrint?: boolean;
1384
- /** 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. */
1385
- quotaUser?: string;
1386
- /** REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
1387
- resource: string;
1388
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1389
- upload_protocol?: string;
1390
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1391
- uploadType?: string;
1392
- },
1393
- body: TestIamPermissionsRequest,
1394
- ): Request<TestIamPermissionsResponse>;
1395
- }
1396
- interface OperationsResource {
1397
- /** 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. */
1398
- get(request?: {
1399
- /** V1 error format. */
1400
- '$.xgafv'?: '1' | '2';
1401
- /** OAuth access token. */
1402
- access_token?: string;
1403
- /** Data format for response. */
1404
- alt?: 'json' | 'media' | 'proto';
1405
- /** JSONP */
1406
- callback?: string;
1407
- /** Selector specifying which fields to include in a partial response. */
1408
- fields?: string;
1409
- /** 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. */
1410
- key?: string;
1411
- /** The name of the operation resource. */
1412
- name: string;
1413
- /** OAuth 2.0 token for the current user. */
1414
- oauth_token?: string;
1415
- /** Returns response with indentations and line breaks. */
1416
- prettyPrint?: boolean;
1417
- /** 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. */
1418
- quotaUser?: string;
1419
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1420
- upload_protocol?: string;
1421
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1422
- uploadType?: string;
1423
- }): Request<Operation>;
1424
- /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1425
- list(request?: {
1426
- /** V1 error format. */
1427
- '$.xgafv'?: '1' | '2';
1428
- /** OAuth access token. */
1429
- access_token?: string;
1430
- /** Data format for response. */
1431
- alt?: 'json' | 'media' | 'proto';
1432
- /** JSONP */
1433
- callback?: string;
1434
- /** Selector specifying which fields to include in a partial response. */
1435
- fields?: string;
1436
- /** The standard list filter. */
1437
- filter?: string;
1438
- /** 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. */
1439
- key?: string;
1440
- /** The name of the operation's parent resource. */
1441
- name: string;
1442
- /** OAuth 2.0 token for the current user. */
1443
- oauth_token?: string;
1444
- /** The standard list page size. */
1445
- pageSize?: number;
1446
- /** The standard list page token. */
1447
- pageToken?: string;
1448
- /** Returns response with indentations and line breaks. */
1449
- prettyPrint?: boolean;
1450
- /** 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. */
1451
- quotaUser?: string;
1452
- /** When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation. */
1453
- returnPartialSuccess?: boolean;
1454
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1455
- upload_protocol?: string;
1456
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1457
- uploadType?: string;
1458
- }): Request<ListOperationsResponse>;
1459
- }
1460
- interface RuntimesResource {
1461
- /** Returns a list of runtimes that are supported for the requested project. */
1462
- list(request?: {
1463
- /** V1 error format. */
1464
- '$.xgafv'?: '1' | '2';
1465
- /** OAuth access token. */
1466
- access_token?: string;
1467
- /** Data format for response. */
1468
- alt?: 'json' | 'media' | 'proto';
1469
- /** JSONP */
1470
- callback?: string;
1471
- /** Selector specifying which fields to include in a partial response. */
1472
- fields?: string;
1473
- /** The filter for Runtimes that match the filter expression, following the syntax outlined in https://google.aip.dev/160. */
1474
- filter?: string;
1475
- /** 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. */
1476
- key?: string;
1477
- /** OAuth 2.0 token for the current user. */
1478
- oauth_token?: string;
1479
- /** Required. The project and location from which the runtimes should be listed, specified in the format `projects/*‍/locations/*` */
1480
- parent: string;
1481
- /** Returns response with indentations and line breaks. */
1482
- prettyPrint?: boolean;
1483
- /** 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. */
1484
- quotaUser?: string;
1485
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1486
- upload_protocol?: string;
1487
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1488
- uploadType?: string;
1489
- }): Request<ListRuntimesResponse>;
1490
- }
1491
- interface LocationsResource {
1492
- /** 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. */
1493
- list(request?: {
1494
- /** V1 error format. */
1495
- '$.xgafv'?: '1' | '2';
1496
- /** OAuth access token. */
1497
- access_token?: string;
1498
- /** Data format for response. */
1499
- alt?: 'json' | 'media' | 'proto';
1500
- /** JSONP */
1501
- callback?: string;
1502
- /** Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. */
1503
- extraLocationTypes?: string | string[];
1504
- /** Selector specifying which fields to include in a partial response. */
1505
- fields?: string;
1506
- /** A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160). */
1507
- filter?: string;
1508
- /** 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. */
1509
- key?: string;
1510
- /** The resource that owns the locations collection, if applicable. */
1511
- name: string;
1512
- /** OAuth 2.0 token for the current user. */
1513
- oauth_token?: string;
1514
- /** The maximum number of results to return. If not set, the service selects a default. */
1515
- pageSize?: number;
1516
- /** A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. */
1517
- pageToken?: string;
1518
- /** Returns response with indentations and line breaks. */
1519
- prettyPrint?: boolean;
1520
- /** 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. */
1521
- quotaUser?: string;
1522
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1523
- upload_protocol?: string;
1524
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1525
- uploadType?: string;
1526
- }): Request<ListLocationsResponse>;
1527
- functions: FunctionsResource;
1528
- operations: OperationsResource;
1529
- runtimes: RuntimesResource;
1530
- }
1531
- interface ProjectsResource {
1532
- locations: LocationsResource;
1533
- }
1534
-
1535
- const projects: ProjectsResource;
605
+ }): Request<ListLocationsResponse>;
606
+ functions: {
607
+ /** 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. */
608
+ abortFunctionUpgrade(request: {
609
+ /** V1 error format. */
610
+ '$.xgafv'?: '1' | '2';
611
+ /** OAuth access token. */
612
+ access_token?: string;
613
+ /** Data format for response. */
614
+ alt?: 'json' | 'media' | 'proto';
615
+ /** JSONP */
616
+ callback?: string;
617
+ /** Selector specifying which fields to include in a partial response. */
618
+ fields?: string;
619
+ /** 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. */
620
+ key?: string;
621
+ /** Required. The name of the function for which upgrade should be aborted. */
622
+ name: string;
623
+ /** OAuth 2.0 token for the current user. */
624
+ oauth_token?: string;
625
+ /** Returns response with indentations and line breaks. */
626
+ prettyPrint?: boolean;
627
+ /** 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. */
628
+ quotaUser?: string;
629
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
630
+ upload_protocol?: string;
631
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
632
+ uploadType?: string;
633
+ /** Request body */
634
+ resource: AbortFunctionUpgradeRequest;
635
+ }): Request<Operation>;
636
+ abortFunctionUpgrade(
637
+ request: {
638
+ /** V1 error format. */
639
+ '$.xgafv'?: '1' | '2';
640
+ /** OAuth access token. */
641
+ access_token?: string;
642
+ /** Data format for response. */
643
+ alt?: 'json' | 'media' | 'proto';
644
+ /** JSONP */
645
+ callback?: string;
646
+ /** Selector specifying which fields to include in a partial response. */
647
+ fields?: string;
648
+ /** 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. */
649
+ key?: string;
650
+ /** Required. The name of the function for which upgrade should be aborted. */
651
+ name: string;
652
+ /** OAuth 2.0 token for the current user. */
653
+ oauth_token?: string;
654
+ /** Returns response with indentations and line breaks. */
655
+ prettyPrint?: boolean;
656
+ /** 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. */
657
+ quotaUser?: string;
658
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
659
+ upload_protocol?: string;
660
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
661
+ uploadType?: string;
662
+ },
663
+ body: AbortFunctionUpgradeRequest,
664
+ ): Request<Operation>;
665
+ /** 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. */
666
+ commitFunctionUpgrade(request: {
667
+ /** V1 error format. */
668
+ '$.xgafv'?: '1' | '2';
669
+ /** OAuth access token. */
670
+ access_token?: string;
671
+ /** Data format for response. */
672
+ alt?: 'json' | 'media' | 'proto';
673
+ /** JSONP */
674
+ callback?: string;
675
+ /** Selector specifying which fields to include in a partial response. */
676
+ fields?: string;
677
+ /** 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. */
678
+ key?: string;
679
+ /** Required. The name of the function for which upgrade should be finalized. */
680
+ name: string;
681
+ /** OAuth 2.0 token for the current user. */
682
+ oauth_token?: string;
683
+ /** Returns response with indentations and line breaks. */
684
+ prettyPrint?: boolean;
685
+ /** 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. */
686
+ quotaUser?: string;
687
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
688
+ upload_protocol?: string;
689
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
690
+ uploadType?: string;
691
+ /** Request body */
692
+ resource: CommitFunctionUpgradeRequest;
693
+ }): Request<Operation>;
694
+ commitFunctionUpgrade(
695
+ request: {
696
+ /** V1 error format. */
697
+ '$.xgafv'?: '1' | '2';
698
+ /** OAuth access token. */
699
+ access_token?: string;
700
+ /** Data format for response. */
701
+ alt?: 'json' | 'media' | 'proto';
702
+ /** JSONP */
703
+ callback?: string;
704
+ /** Selector specifying which fields to include in a partial response. */
705
+ fields?: string;
706
+ /** 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. */
707
+ key?: string;
708
+ /** Required. The name of the function for which upgrade should be finalized. */
709
+ name: string;
710
+ /** OAuth 2.0 token for the current user. */
711
+ oauth_token?: string;
712
+ /** Returns response with indentations and line breaks. */
713
+ prettyPrint?: boolean;
714
+ /** 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. */
715
+ quotaUser?: string;
716
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
717
+ upload_protocol?: string;
718
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
719
+ uploadType?: string;
720
+ },
721
+ body: CommitFunctionUpgradeRequest,
722
+ ): Request<Operation>;
723
+ /** 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. */
724
+ commitFunctionUpgradeAsGen2(request: {
725
+ /** V1 error format. */
726
+ '$.xgafv'?: '1' | '2';
727
+ /** OAuth access token. */
728
+ access_token?: string;
729
+ /** Data format for response. */
730
+ alt?: 'json' | 'media' | 'proto';
731
+ /** JSONP */
732
+ callback?: string;
733
+ /** Selector specifying which fields to include in a partial response. */
734
+ fields?: string;
735
+ /** 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. */
736
+ key?: string;
737
+ /** Required. The name of the function for which upgrade should be committed to Gen2. */
738
+ name: string;
739
+ /** OAuth 2.0 token for the current user. */
740
+ oauth_token?: string;
741
+ /** Returns response with indentations and line breaks. */
742
+ prettyPrint?: boolean;
743
+ /** 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. */
744
+ quotaUser?: string;
745
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
746
+ upload_protocol?: string;
747
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
748
+ uploadType?: string;
749
+ /** Request body */
750
+ resource: CommitFunctionUpgradeAsGen2Request;
751
+ }): Request<Operation>;
752
+ commitFunctionUpgradeAsGen2(
753
+ request: {
754
+ /** V1 error format. */
755
+ '$.xgafv'?: '1' | '2';
756
+ /** OAuth access token. */
757
+ access_token?: string;
758
+ /** Data format for response. */
759
+ alt?: 'json' | 'media' | 'proto';
760
+ /** JSONP */
761
+ callback?: string;
762
+ /** Selector specifying which fields to include in a partial response. */
763
+ fields?: string;
764
+ /** 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. */
765
+ key?: string;
766
+ /** Required. The name of the function for which upgrade should be committed to Gen2. */
767
+ name: string;
768
+ /** OAuth 2.0 token for the current user. */
769
+ oauth_token?: string;
770
+ /** Returns response with indentations and line breaks. */
771
+ prettyPrint?: boolean;
772
+ /** 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. */
773
+ quotaUser?: string;
774
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
775
+ upload_protocol?: string;
776
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
777
+ uploadType?: string;
778
+ },
779
+ body: CommitFunctionUpgradeAsGen2Request,
780
+ ): Request<Operation>;
781
+ /** 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. */
782
+ create(request: {
783
+ /** V1 error format. */
784
+ '$.xgafv'?: '1' | '2';
785
+ /** OAuth access token. */
786
+ access_token?: string;
787
+ /** Data format for response. */
788
+ alt?: 'json' | 'media' | 'proto';
789
+ /** JSONP */
790
+ callback?: string;
791
+ /** Selector specifying which fields to include in a partial response. */
792
+ fields?: string;
793
+ /** The ID to use for the function, which will become the final component of the function's resource name. This value should be 4-63 characters, and valid characters are /a-z-/. */
794
+ functionId?: string;
795
+ /** 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. */
796
+ key?: string;
797
+ /** OAuth 2.0 token for the current user. */
798
+ oauth_token?: string;
799
+ /** Required. The project and location in which the function should be created, specified in the format `projects/*‍/locations/*` */
800
+ parent: string;
801
+ /** Returns response with indentations and line breaks. */
802
+ prettyPrint?: boolean;
803
+ /** 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. */
804
+ quotaUser?: string;
805
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
806
+ upload_protocol?: string;
807
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
808
+ uploadType?: string;
809
+ /** Request body */
810
+ resource: Function;
811
+ }): Request<Operation>;
812
+ create(
813
+ request: {
814
+ /** V1 error format. */
815
+ '$.xgafv'?: '1' | '2';
816
+ /** OAuth access token. */
817
+ access_token?: string;
818
+ /** Data format for response. */
819
+ alt?: 'json' | 'media' | 'proto';
820
+ /** JSONP */
821
+ callback?: string;
822
+ /** Selector specifying which fields to include in a partial response. */
823
+ fields?: string;
824
+ /** The ID to use for the function, which will become the final component of the function's resource name. This value should be 4-63 characters, and valid characters are /a-z-/. */
825
+ functionId?: string;
826
+ /** 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. */
827
+ key?: string;
828
+ /** OAuth 2.0 token for the current user. */
829
+ oauth_token?: string;
830
+ /** Required. The project and location in which the function should be created, specified in the format `projects/*‍/locations/*` */
831
+ parent: string;
832
+ /** Returns response with indentations and line breaks. */
833
+ prettyPrint?: boolean;
834
+ /** 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. */
835
+ quotaUser?: string;
836
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
837
+ upload_protocol?: string;
838
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
839
+ uploadType?: string;
840
+ },
841
+ body: Function,
842
+ ): Request<Operation>;
843
+ /** 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. */
844
+ delete(request?: {
845
+ /** V1 error format. */
846
+ '$.xgafv'?: '1' | '2';
847
+ /** OAuth access token. */
848
+ access_token?: string;
849
+ /** Data format for response. */
850
+ alt?: 'json' | 'media' | 'proto';
851
+ /** JSONP */
852
+ callback?: string;
853
+ /** Selector specifying which fields to include in a partial response. */
854
+ fields?: string;
855
+ /** 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. */
856
+ key?: string;
857
+ /** Required. The name of the function which should be deleted. */
858
+ name: string;
859
+ /** OAuth 2.0 token for the current user. */
860
+ oauth_token?: string;
861
+ /** Returns response with indentations and line breaks. */
862
+ prettyPrint?: boolean;
863
+ /** 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. */
864
+ quotaUser?: string;
865
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
866
+ upload_protocol?: string;
867
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
868
+ uploadType?: string;
869
+ }): Request<Operation>;
870
+ /** Detaches 2nd Gen function to Cloud Run function. */
871
+ detachFunction(request: {
872
+ /** V1 error format. */
873
+ '$.xgafv'?: '1' | '2';
874
+ /** OAuth access token. */
875
+ access_token?: string;
876
+ /** Data format for response. */
877
+ alt?: 'json' | 'media' | 'proto';
878
+ /** JSONP */
879
+ callback?: string;
880
+ /** Selector specifying which fields to include in a partial response. */
881
+ fields?: string;
882
+ /** 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. */
883
+ key?: string;
884
+ /** Required. The name of the function for which should be detached. */
885
+ name: string;
886
+ /** OAuth 2.0 token for the current user. */
887
+ oauth_token?: string;
888
+ /** Returns response with indentations and line breaks. */
889
+ prettyPrint?: boolean;
890
+ /** 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. */
891
+ quotaUser?: string;
892
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
893
+ upload_protocol?: string;
894
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
895
+ uploadType?: string;
896
+ /** Request body */
897
+ resource: DetachFunctionRequest;
898
+ }): Request<Operation>;
899
+ detachFunction(
900
+ request: {
901
+ /** V1 error format. */
902
+ '$.xgafv'?: '1' | '2';
903
+ /** OAuth access token. */
904
+ access_token?: string;
905
+ /** Data format for response. */
906
+ alt?: 'json' | 'media' | 'proto';
907
+ /** JSONP */
908
+ callback?: 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
+ /** Required. The name of the function for which should be detached. */
914
+ name: string;
915
+ /** OAuth 2.0 token for the current user. */
916
+ oauth_token?: 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
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
922
+ upload_protocol?: string;
923
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
924
+ uploadType?: string;
925
+ },
926
+ body: DetachFunctionRequest,
927
+ ): Request<Operation>;
928
+ /** 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 */
929
+ generateDownloadUrl(request: {
930
+ /** V1 error format. */
931
+ '$.xgafv'?: '1' | '2';
932
+ /** OAuth access token. */
933
+ access_token?: string;
934
+ /** Data format for response. */
935
+ alt?: 'json' | 'media' | 'proto';
936
+ /** JSONP */
937
+ callback?: string;
938
+ /** Selector specifying which fields to include in a partial response. */
939
+ fields?: string;
940
+ /** 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. */
941
+ key?: string;
942
+ /** Required. The name of function for which source code Google Cloud Storage signed URL should be generated. */
943
+ name: string;
944
+ /** OAuth 2.0 token for the current user. */
945
+ oauth_token?: string;
946
+ /** Returns response with indentations and line breaks. */
947
+ prettyPrint?: boolean;
948
+ /** 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. */
949
+ quotaUser?: string;
950
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
951
+ upload_protocol?: string;
952
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
953
+ uploadType?: string;
954
+ /** Request body */
955
+ resource: GenerateDownloadUrlRequest;
956
+ }): Request<GenerateDownloadUrlResponse>;
957
+ generateDownloadUrl(
958
+ request: {
959
+ /** V1 error format. */
960
+ '$.xgafv'?: '1' | '2';
961
+ /** OAuth access token. */
962
+ access_token?: string;
963
+ /** Data format for response. */
964
+ alt?: 'json' | 'media' | 'proto';
965
+ /** JSONP */
966
+ callback?: string;
967
+ /** Selector specifying which fields to include in a partial response. */
968
+ fields?: string;
969
+ /** 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. */
970
+ key?: string;
971
+ /** Required. The name of function for which source code Google Cloud Storage signed URL should be generated. */
972
+ name: string;
973
+ /** OAuth 2.0 token for the current user. */
974
+ oauth_token?: string;
975
+ /** Returns response with indentations and line breaks. */
976
+ prettyPrint?: boolean;
977
+ /** 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. */
978
+ quotaUser?: string;
979
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
980
+ upload_protocol?: string;
981
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
982
+ uploadType?: string;
983
+ },
984
+ body: GenerateDownloadUrlRequest,
985
+ ): Request<GenerateDownloadUrlResponse>;
986
+ /** 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` */
987
+ generateUploadUrl(request: {
988
+ /** V1 error format. */
989
+ '$.xgafv'?: '1' | '2';
990
+ /** OAuth access token. */
991
+ access_token?: string;
992
+ /** Data format for response. */
993
+ alt?: 'json' | 'media' | 'proto';
994
+ /** JSONP */
995
+ callback?: string;
996
+ /** Selector specifying which fields to include in a partial response. */
997
+ fields?: string;
998
+ /** 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. */
999
+ key?: string;
1000
+ /** OAuth 2.0 token for the current user. */
1001
+ oauth_token?: string;
1002
+ /** Required. The project and location in which the Google Cloud Storage signed URL should be generated, specified in the format `projects/*‍/locations/*`. */
1003
+ parent: string;
1004
+ /** Returns response with indentations and line breaks. */
1005
+ prettyPrint?: boolean;
1006
+ /** 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. */
1007
+ quotaUser?: string;
1008
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1009
+ upload_protocol?: string;
1010
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1011
+ uploadType?: string;
1012
+ /** Request body */
1013
+ resource: GenerateUploadUrlRequest;
1014
+ }): Request<GenerateUploadUrlResponse>;
1015
+ generateUploadUrl(
1016
+ request: {
1017
+ /** V1 error format. */
1018
+ '$.xgafv'?: '1' | '2';
1019
+ /** OAuth access token. */
1020
+ access_token?: string;
1021
+ /** Data format for response. */
1022
+ alt?: 'json' | 'media' | 'proto';
1023
+ /** JSONP */
1024
+ callback?: string;
1025
+ /** Selector specifying which fields to include in a partial response. */
1026
+ fields?: string;
1027
+ /** 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. */
1028
+ key?: string;
1029
+ /** OAuth 2.0 token for the current user. */
1030
+ oauth_token?: string;
1031
+ /** Required. The project and location in which the Google Cloud Storage signed URL should be generated, specified in the format `projects/*‍/locations/*`. */
1032
+ parent: string;
1033
+ /** Returns response with indentations and line breaks. */
1034
+ prettyPrint?: boolean;
1035
+ /** 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. */
1036
+ quotaUser?: string;
1037
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1038
+ upload_protocol?: string;
1039
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1040
+ uploadType?: string;
1041
+ },
1042
+ body: GenerateUploadUrlRequest,
1043
+ ): Request<GenerateUploadUrlResponse>;
1044
+ /** Returns a function with the given name from the requested project. */
1045
+ get(request?: {
1046
+ /** V1 error format. */
1047
+ '$.xgafv'?: '1' | '2';
1048
+ /** OAuth access token. */
1049
+ access_token?: string;
1050
+ /** Data format for response. */
1051
+ alt?: 'json' | 'media' | 'proto';
1052
+ /** JSONP */
1053
+ callback?: string;
1054
+ /** Selector specifying which fields to include in a partial response. */
1055
+ fields?: string;
1056
+ /** 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. */
1057
+ key?: string;
1058
+ /** Required. The name of the function which details should be obtained. */
1059
+ name: string;
1060
+ /** OAuth 2.0 token for the current user. */
1061
+ oauth_token?: string;
1062
+ /** Returns response with indentations and line breaks. */
1063
+ prettyPrint?: boolean;
1064
+ /** 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. */
1065
+ quotaUser?: string;
1066
+ /** Optional. The optional version of the 1st gen function whose details should be obtained. The version of a 1st gen function is an integer that starts from 1 and gets incremented on redeployments. GCF may keep historical configs for old versions of 1st gen function. This field can be specified to fetch the historical configs. This field is valid only for GCF 1st gen function. */
1067
+ revision?: string;
1068
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1069
+ upload_protocol?: string;
1070
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1071
+ uploadType?: string;
1072
+ }): Request<Function>;
1073
+ /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
1074
+ getIamPolicy(request?: {
1075
+ /** V1 error format. */
1076
+ '$.xgafv'?: '1' | '2';
1077
+ /** OAuth access token. */
1078
+ access_token?: string;
1079
+ /** Data format for response. */
1080
+ alt?: 'json' | 'media' | 'proto';
1081
+ /** JSONP */
1082
+ callback?: string;
1083
+ /** Selector specifying which fields to include in a partial response. */
1084
+ fields?: string;
1085
+ /** 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. */
1086
+ key?: string;
1087
+ /** OAuth 2.0 token for the current user. */
1088
+ oauth_token?: string;
1089
+ /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */
1090
+ 'options.requestedPolicyVersion'?: number;
1091
+ /** Returns response with indentations and line breaks. */
1092
+ prettyPrint?: boolean;
1093
+ /** 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. */
1094
+ quotaUser?: string;
1095
+ /** REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
1096
+ resource: string;
1097
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1098
+ upload_protocol?: string;
1099
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1100
+ uploadType?: string;
1101
+ }): Request<Policy>;
1102
+ /** Returns a list of functions that belong to the requested project. */
1103
+ list(request?: {
1104
+ /** V1 error format. */
1105
+ '$.xgafv'?: '1' | '2';
1106
+ /** OAuth access token. */
1107
+ access_token?: string;
1108
+ /** Data format for response. */
1109
+ alt?: 'json' | 'media' | 'proto';
1110
+ /** JSONP */
1111
+ callback?: string;
1112
+ /** Selector specifying which fields to include in a partial response. */
1113
+ fields?: string;
1114
+ /** The filter for Functions that match the filter expression, following the syntax outlined in https://google.aip.dev/160. */
1115
+ filter?: string;
1116
+ /** 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. */
1117
+ key?: string;
1118
+ /** OAuth 2.0 token for the current user. */
1119
+ oauth_token?: string;
1120
+ /** The sorting order of the resources returned. Value should be a comma separated list of fields. The default sorting order is ascending. See https://google.aip.dev/132#ordering. */
1121
+ orderBy?: string;
1122
+ /** Maximum number of functions to return per call. The largest allowed page_size is 1,000, if the page_size is omitted or specified as greater than 1,000 then it will be replaced as 1,000. The size of the list response can be less than specified when used with filters. */
1123
+ pageSize?: number;
1124
+ /** The value returned by the last `ListFunctionsResponse`; indicates that this is a continuation of a prior `ListFunctions` call, and that the system should return the next page of data. */
1125
+ pageToken?: string;
1126
+ /** Required. The project and location from which the function should be listed, specified in the format `projects/*‍/locations/*` If you want to list functions in all locations, use "-" in place of a location. When listing functions in all locations, if one or more location(s) are unreachable, the response will contain functions from all reachable locations along with the names of any unreachable locations. */
1127
+ parent: string;
1128
+ /** Returns response with indentations and line breaks. */
1129
+ prettyPrint?: boolean;
1130
+ /** 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. */
1131
+ quotaUser?: string;
1132
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1133
+ upload_protocol?: string;
1134
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1135
+ uploadType?: string;
1136
+ }): Request<ListFunctionsResponse>;
1137
+ /** Updates existing function. */
1138
+ patch(request: {
1139
+ /** V1 error format. */
1140
+ '$.xgafv'?: '1' | '2';
1141
+ /** OAuth access token. */
1142
+ access_token?: string;
1143
+ /** Data format for response. */
1144
+ alt?: 'json' | 'media' | 'proto';
1145
+ /** JSONP */
1146
+ callback?: string;
1147
+ /** Selector specifying which fields to include in a partial response. */
1148
+ fields?: string;
1149
+ /** 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. */
1150
+ key?: string;
1151
+ /** A user-defined name of the function. Function names must be unique globally and match pattern `projects/*‍/locations/*‍/functions/*` */
1152
+ name: string;
1153
+ /** OAuth 2.0 token for the current user. */
1154
+ oauth_token?: string;
1155
+ /** Returns response with indentations and line breaks. */
1156
+ prettyPrint?: boolean;
1157
+ /** 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. */
1158
+ quotaUser?: string;
1159
+ /** The list of fields to be updated. If no field mask is provided, all fields will be updated. */
1160
+ updateMask?: string;
1161
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1162
+ upload_protocol?: string;
1163
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1164
+ uploadType?: string;
1165
+ /** Request body */
1166
+ resource: Function;
1167
+ }): Request<Operation>;
1168
+ patch(
1169
+ request: {
1170
+ /** V1 error format. */
1171
+ '$.xgafv'?: '1' | '2';
1172
+ /** OAuth access token. */
1173
+ access_token?: string;
1174
+ /** Data format for response. */
1175
+ alt?: 'json' | 'media' | 'proto';
1176
+ /** JSONP */
1177
+ callback?: string;
1178
+ /** Selector specifying which fields to include in a partial response. */
1179
+ fields?: string;
1180
+ /** 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. */
1181
+ key?: string;
1182
+ /** A user-defined name of the function. Function names must be unique globally and match pattern `projects/*‍/locations/*‍/functions/*` */
1183
+ name: string;
1184
+ /** OAuth 2.0 token for the current user. */
1185
+ oauth_token?: string;
1186
+ /** Returns response with indentations and line breaks. */
1187
+ prettyPrint?: boolean;
1188
+ /** 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. */
1189
+ quotaUser?: string;
1190
+ /** The list of fields to be updated. If no field mask is provided, all fields will be updated. */
1191
+ updateMask?: string;
1192
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1193
+ upload_protocol?: string;
1194
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1195
+ uploadType?: string;
1196
+ },
1197
+ body: Function,
1198
+ ): Request<Operation>;
1199
+ /** 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. */
1200
+ redirectFunctionUpgradeTraffic(request: {
1201
+ /** V1 error format. */
1202
+ '$.xgafv'?: '1' | '2';
1203
+ /** OAuth access token. */
1204
+ access_token?: string;
1205
+ /** Data format for response. */
1206
+ alt?: 'json' | 'media' | 'proto';
1207
+ /** JSONP */
1208
+ callback?: string;
1209
+ /** Selector specifying which fields to include in a partial response. */
1210
+ fields?: string;
1211
+ /** 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. */
1212
+ key?: string;
1213
+ /** Required. The name of the function for which traffic target should be changed to 2nd Gen from 1st Gen. */
1214
+ name: string;
1215
+ /** OAuth 2.0 token for the current user. */
1216
+ oauth_token?: string;
1217
+ /** Returns response with indentations and line breaks. */
1218
+ prettyPrint?: boolean;
1219
+ /** 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. */
1220
+ quotaUser?: string;
1221
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1222
+ upload_protocol?: string;
1223
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1224
+ uploadType?: string;
1225
+ /** Request body */
1226
+ resource: RedirectFunctionUpgradeTrafficRequest;
1227
+ }): Request<Operation>;
1228
+ redirectFunctionUpgradeTraffic(
1229
+ request: {
1230
+ /** V1 error format. */
1231
+ '$.xgafv'?: '1' | '2';
1232
+ /** OAuth access token. */
1233
+ access_token?: string;
1234
+ /** Data format for response. */
1235
+ alt?: 'json' | 'media' | 'proto';
1236
+ /** JSONP */
1237
+ callback?: string;
1238
+ /** Selector specifying which fields to include in a partial response. */
1239
+ fields?: string;
1240
+ /** 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. */
1241
+ key?: string;
1242
+ /** Required. The name of the function for which traffic target should be changed to 2nd Gen from 1st Gen. */
1243
+ name: string;
1244
+ /** OAuth 2.0 token for the current user. */
1245
+ oauth_token?: string;
1246
+ /** Returns response with indentations and line breaks. */
1247
+ prettyPrint?: boolean;
1248
+ /** 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. */
1249
+ quotaUser?: string;
1250
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1251
+ upload_protocol?: string;
1252
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1253
+ uploadType?: string;
1254
+ },
1255
+ body: RedirectFunctionUpgradeTrafficRequest,
1256
+ ): Request<Operation>;
1257
+ /** 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. */
1258
+ rollbackFunctionUpgradeTraffic(request: {
1259
+ /** V1 error format. */
1260
+ '$.xgafv'?: '1' | '2';
1261
+ /** OAuth access token. */
1262
+ access_token?: string;
1263
+ /** Data format for response. */
1264
+ alt?: 'json' | 'media' | 'proto';
1265
+ /** JSONP */
1266
+ callback?: string;
1267
+ /** Selector specifying which fields to include in a partial response. */
1268
+ fields?: string;
1269
+ /** 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. */
1270
+ key?: string;
1271
+ /** Required. The name of the function for which traffic target should be changed back to 1st Gen from 2nd Gen. */
1272
+ name: string;
1273
+ /** OAuth 2.0 token for the current user. */
1274
+ oauth_token?: string;
1275
+ /** Returns response with indentations and line breaks. */
1276
+ prettyPrint?: boolean;
1277
+ /** 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. */
1278
+ quotaUser?: string;
1279
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1280
+ upload_protocol?: string;
1281
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1282
+ uploadType?: string;
1283
+ /** Request body */
1284
+ resource: RollbackFunctionUpgradeTrafficRequest;
1285
+ }): Request<Operation>;
1286
+ rollbackFunctionUpgradeTraffic(
1287
+ request: {
1288
+ /** V1 error format. */
1289
+ '$.xgafv'?: '1' | '2';
1290
+ /** OAuth access token. */
1291
+ access_token?: string;
1292
+ /** Data format for response. */
1293
+ alt?: 'json' | 'media' | 'proto';
1294
+ /** JSONP */
1295
+ callback?: string;
1296
+ /** Selector specifying which fields to include in a partial response. */
1297
+ fields?: string;
1298
+ /** 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. */
1299
+ key?: string;
1300
+ /** Required. The name of the function for which traffic target should be changed back to 1st Gen from 2nd Gen. */
1301
+ name: string;
1302
+ /** OAuth 2.0 token for the current user. */
1303
+ oauth_token?: string;
1304
+ /** Returns response with indentations and line breaks. */
1305
+ prettyPrint?: boolean;
1306
+ /** 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. */
1307
+ quotaUser?: string;
1308
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1309
+ upload_protocol?: string;
1310
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1311
+ uploadType?: string;
1312
+ },
1313
+ body: RollbackFunctionUpgradeTrafficRequest,
1314
+ ): Request<Operation>;
1315
+ /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
1316
+ setIamPolicy(
1317
+ request: {
1318
+ /** V1 error format. */
1319
+ '$.xgafv'?: '1' | '2';
1320
+ /** OAuth access token. */
1321
+ access_token?: string;
1322
+ /** Data format for response. */
1323
+ alt?: 'json' | 'media' | 'proto';
1324
+ /** JSONP */
1325
+ callback?: string;
1326
+ /** Selector specifying which fields to include in a partial response. */
1327
+ fields?: string;
1328
+ /** 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. */
1329
+ key?: string;
1330
+ /** OAuth 2.0 token for the current user. */
1331
+ oauth_token?: string;
1332
+ /** Returns response with indentations and line breaks. */
1333
+ prettyPrint?: boolean;
1334
+ /** 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. */
1335
+ quotaUser?: string;
1336
+ /** REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
1337
+ resource: string;
1338
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1339
+ upload_protocol?: string;
1340
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1341
+ uploadType?: string;
1342
+ },
1343
+ body: SetIamPolicyRequest,
1344
+ ): Request<Policy>;
1345
+ /** 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. */
1346
+ setupFunctionUpgradeConfig(request: {
1347
+ /** V1 error format. */
1348
+ '$.xgafv'?: '1' | '2';
1349
+ /** OAuth access token. */
1350
+ access_token?: string;
1351
+ /** Data format for response. */
1352
+ alt?: 'json' | 'media' | 'proto';
1353
+ /** JSONP */
1354
+ callback?: string;
1355
+ /** Selector specifying which fields to include in a partial response. */
1356
+ fields?: string;
1357
+ /** 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. */
1358
+ key?: string;
1359
+ /** Required. The name of the function which should have configuration copied for upgrade. */
1360
+ name: string;
1361
+ /** OAuth 2.0 token for the current user. */
1362
+ oauth_token?: string;
1363
+ /** Returns response with indentations and line breaks. */
1364
+ prettyPrint?: boolean;
1365
+ /** 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. */
1366
+ quotaUser?: string;
1367
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1368
+ upload_protocol?: string;
1369
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1370
+ uploadType?: string;
1371
+ /** Request body */
1372
+ resource: SetupFunctionUpgradeConfigRequest;
1373
+ }): Request<Operation>;
1374
+ setupFunctionUpgradeConfig(
1375
+ request: {
1376
+ /** V1 error format. */
1377
+ '$.xgafv'?: '1' | '2';
1378
+ /** OAuth access token. */
1379
+ access_token?: string;
1380
+ /** Data format for response. */
1381
+ alt?: 'json' | 'media' | 'proto';
1382
+ /** JSONP */
1383
+ callback?: string;
1384
+ /** Selector specifying which fields to include in a partial response. */
1385
+ fields?: string;
1386
+ /** 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. */
1387
+ key?: string;
1388
+ /** Required. The name of the function which should have configuration copied for upgrade. */
1389
+ name: string;
1390
+ /** OAuth 2.0 token for the current user. */
1391
+ oauth_token?: string;
1392
+ /** Returns response with indentations and line breaks. */
1393
+ prettyPrint?: boolean;
1394
+ /** 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. */
1395
+ quotaUser?: string;
1396
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1397
+ upload_protocol?: string;
1398
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1399
+ uploadType?: string;
1400
+ },
1401
+ body: SetupFunctionUpgradeConfigRequest,
1402
+ ): Request<Operation>;
1403
+ /** Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. */
1404
+ testIamPermissions(
1405
+ request: {
1406
+ /** V1 error format. */
1407
+ '$.xgafv'?: '1' | '2';
1408
+ /** OAuth access token. */
1409
+ access_token?: string;
1410
+ /** Data format for response. */
1411
+ alt?: 'json' | 'media' | 'proto';
1412
+ /** JSONP */
1413
+ callback?: string;
1414
+ /** Selector specifying which fields to include in a partial response. */
1415
+ fields?: string;
1416
+ /** 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. */
1417
+ key?: string;
1418
+ /** OAuth 2.0 token for the current user. */
1419
+ oauth_token?: string;
1420
+ /** Returns response with indentations and line breaks. */
1421
+ prettyPrint?: boolean;
1422
+ /** 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. */
1423
+ quotaUser?: string;
1424
+ /** REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
1425
+ resource: string;
1426
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1427
+ upload_protocol?: string;
1428
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1429
+ uploadType?: string;
1430
+ },
1431
+ body: TestIamPermissionsRequest,
1432
+ ): Request<TestIamPermissionsResponse>;
1433
+ };
1434
+ operations: {
1435
+ /** 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. */
1436
+ get(request?: {
1437
+ /** V1 error format. */
1438
+ '$.xgafv'?: '1' | '2';
1439
+ /** OAuth access token. */
1440
+ access_token?: string;
1441
+ /** Data format for response. */
1442
+ alt?: 'json' | 'media' | 'proto';
1443
+ /** JSONP */
1444
+ callback?: string;
1445
+ /** Selector specifying which fields to include in a partial response. */
1446
+ fields?: string;
1447
+ /** 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. */
1448
+ key?: string;
1449
+ /** The name of the operation resource. */
1450
+ name: string;
1451
+ /** OAuth 2.0 token for the current user. */
1452
+ oauth_token?: string;
1453
+ /** Returns response with indentations and line breaks. */
1454
+ prettyPrint?: boolean;
1455
+ /** 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. */
1456
+ quotaUser?: string;
1457
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1458
+ upload_protocol?: string;
1459
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1460
+ uploadType?: string;
1461
+ }): Request<Operation>;
1462
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1463
+ list(request?: {
1464
+ /** V1 error format. */
1465
+ '$.xgafv'?: '1' | '2';
1466
+ /** OAuth access token. */
1467
+ access_token?: string;
1468
+ /** Data format for response. */
1469
+ alt?: 'json' | 'media' | 'proto';
1470
+ /** JSONP */
1471
+ callback?: string;
1472
+ /** Selector specifying which fields to include in a partial response. */
1473
+ fields?: string;
1474
+ /** The standard list filter. */
1475
+ filter?: string;
1476
+ /** 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. */
1477
+ key?: string;
1478
+ /** The name of the operation's parent resource. */
1479
+ name: string;
1480
+ /** OAuth 2.0 token for the current user. */
1481
+ oauth_token?: string;
1482
+ /** The standard list page size. */
1483
+ pageSize?: number;
1484
+ /** The standard list page token. */
1485
+ pageToken?: string;
1486
+ /** Returns response with indentations and line breaks. */
1487
+ prettyPrint?: boolean;
1488
+ /** 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. */
1489
+ quotaUser?: string;
1490
+ /** When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation. */
1491
+ returnPartialSuccess?: boolean;
1492
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1493
+ upload_protocol?: string;
1494
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1495
+ uploadType?: string;
1496
+ }): Request<ListOperationsResponse>;
1497
+ };
1498
+ runtimes: {
1499
+ /** Returns a list of runtimes that are supported for the requested project. */
1500
+ list(request?: {
1501
+ /** V1 error format. */
1502
+ '$.xgafv'?: '1' | '2';
1503
+ /** OAuth access token. */
1504
+ access_token?: string;
1505
+ /** Data format for response. */
1506
+ alt?: 'json' | 'media' | 'proto';
1507
+ /** JSONP */
1508
+ callback?: string;
1509
+ /** Selector specifying which fields to include in a partial response. */
1510
+ fields?: string;
1511
+ /** The filter for Runtimes that match the filter expression, following the syntax outlined in https://google.aip.dev/160. */
1512
+ filter?: string;
1513
+ /** 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. */
1514
+ key?: string;
1515
+ /** OAuth 2.0 token for the current user. */
1516
+ oauth_token?: string;
1517
+ /** Required. The project and location from which the runtimes should be listed, specified in the format `projects/*‍/locations/*` */
1518
+ parent: string;
1519
+ /** Returns response with indentations and line breaks. */
1520
+ prettyPrint?: boolean;
1521
+ /** 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. */
1522
+ quotaUser?: string;
1523
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1524
+ upload_protocol?: string;
1525
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1526
+ uploadType?: string;
1527
+ }): Request<ListRuntimesResponse>;
1528
+ };
1529
+ };
1530
+ };
1536
1531
  }
1537
1532
  }