@maxim_mazurok/gapi.client.cloudfunctions-v2beta 0.0.20240118 → 0.0.20240207
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +314 -7
- 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:
|
|
12
|
+
// Revision: 20240207
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -28,6 +28,7 @@ declare namespace gapi.client {
|
|
|
28
28
|
): void;
|
|
29
29
|
|
|
30
30
|
namespace cloudfunctions {
|
|
31
|
+
interface AbortFunctionUpgradeRequest {}
|
|
31
32
|
interface AuditConfig {
|
|
32
33
|
/** The configuration for logging of each type of permission. */
|
|
33
34
|
auditLogConfigs?: AuditLogConfig[];
|
|
@@ -50,7 +51,6 @@ declare namespace gapi.client {
|
|
|
50
51
|
role?: string;
|
|
51
52
|
}
|
|
52
53
|
interface BuildConfig {
|
|
53
|
-
/** See the comment next to this message for more details. */
|
|
54
54
|
automaticUpdatePolicy?: any;
|
|
55
55
|
/** Output only. The Cloud Build name of the latest successful deployment of the function. */
|
|
56
56
|
build?: string;
|
|
@@ -62,7 +62,6 @@ declare namespace gapi.client {
|
|
|
62
62
|
entryPoint?: string;
|
|
63
63
|
/** User-provided build-time environment variables for the function */
|
|
64
64
|
environmentVariables?: {[P in string]: string};
|
|
65
|
-
/** See the comment next to this message for more details. */
|
|
66
65
|
onDeployUpdatePolicy?: OnDeployUpdatePolicy;
|
|
67
66
|
/** The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the [`gcloud` command reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime). */
|
|
68
67
|
runtime?: string;
|
|
@@ -77,6 +76,7 @@ declare namespace gapi.client {
|
|
|
77
76
|
/** Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is `projects/{project}/locations/{region}/workerPools/{workerPool}` where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (service-@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project. */
|
|
78
77
|
workerPool?: string;
|
|
79
78
|
}
|
|
79
|
+
interface CommitFunctionUpgradeRequest {}
|
|
80
80
|
interface Date {
|
|
81
81
|
/** Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. */
|
|
82
82
|
day?: number;
|
|
@@ -126,6 +126,8 @@ declare namespace gapi.client {
|
|
|
126
126
|
interface Function {
|
|
127
127
|
/** Describes the Build step of the function that builds a container from the given source. */
|
|
128
128
|
buildConfig?: BuildConfig;
|
|
129
|
+
/** Output only. The create timestamp of a Cloud Function. This is only applicable to 2nd Gen functions. */
|
|
130
|
+
createTime?: string;
|
|
129
131
|
/** User-provided description of a function. */
|
|
130
132
|
description?: string;
|
|
131
133
|
/** Describe whether the function is 1st Gen or 2nd Gen. */
|
|
@@ -148,6 +150,8 @@ declare namespace gapi.client {
|
|
|
148
150
|
stateMessages?: GoogleCloudFunctionsV2betaStateMessage[];
|
|
149
151
|
/** Output only. The last update timestamp of a Cloud Function. */
|
|
150
152
|
updateTime?: string;
|
|
153
|
+
/** Output only. UpgradeInfo for this Cloud Function */
|
|
154
|
+
upgradeInfo?: UpgradeInfo;
|
|
151
155
|
/** Output only. The deployed url for the function. */
|
|
152
156
|
url?: string;
|
|
153
157
|
}
|
|
@@ -399,6 +403,7 @@ declare namespace gapi.client {
|
|
|
399
403
|
/** Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */
|
|
400
404
|
version?: number;
|
|
401
405
|
}
|
|
406
|
+
interface RedirectFunctionUpgradeTrafficRequest {}
|
|
402
407
|
interface RepoSource {
|
|
403
408
|
/** Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax */
|
|
404
409
|
branchName?: string;
|
|
@@ -413,6 +418,7 @@ declare namespace gapi.client {
|
|
|
413
418
|
/** Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax */
|
|
414
419
|
tagName?: string;
|
|
415
420
|
}
|
|
421
|
+
interface RollbackFunctionUpgradeTrafficRequest {}
|
|
416
422
|
interface Runtime {
|
|
417
423
|
/** Decommission date for the runtime. */
|
|
418
424
|
decommissionDate?: Date;
|
|
@@ -499,6 +505,7 @@ declare namespace gapi.client {
|
|
|
499
505
|
/** OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used: `paths: "bindings, etag"` */
|
|
500
506
|
updateMask?: string;
|
|
501
507
|
}
|
|
508
|
+
interface SetupFunctionUpgradeConfigRequest {}
|
|
502
509
|
interface Source {
|
|
503
510
|
/** If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com///blob// */
|
|
504
511
|
gitUri?: string;
|
|
@@ -539,7 +546,133 @@ declare namespace gapi.client {
|
|
|
539
546
|
/** A subset of `TestPermissionsRequest.permissions` that the caller is allowed. */
|
|
540
547
|
permissions?: string[];
|
|
541
548
|
}
|
|
549
|
+
interface UpgradeInfo {
|
|
550
|
+
/** Describes the Build step of the function that builds a container to prepare for 2nd gen upgrade. */
|
|
551
|
+
buildConfig?: BuildConfig;
|
|
552
|
+
/** Describes the Event trigger which has been setup to prepare for 2nd gen upgrade. */
|
|
553
|
+
eventTrigger?: EventTrigger;
|
|
554
|
+
/** Describes the Cloud Run service which has been setup to prepare for 2nd gen upgrade. */
|
|
555
|
+
serviceConfig?: ServiceConfig;
|
|
556
|
+
/** UpgradeState of the function */
|
|
557
|
+
upgradeState?: string;
|
|
558
|
+
}
|
|
542
559
|
interface FunctionsResource {
|
|
560
|
+
/** 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. */
|
|
561
|
+
abortFunctionUpgrade(request: {
|
|
562
|
+
/** V1 error format. */
|
|
563
|
+
'$.xgafv'?: string;
|
|
564
|
+
/** OAuth access token. */
|
|
565
|
+
access_token?: string;
|
|
566
|
+
/** Data format for response. */
|
|
567
|
+
alt?: string;
|
|
568
|
+
/** JSONP */
|
|
569
|
+
callback?: string;
|
|
570
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
571
|
+
fields?: string;
|
|
572
|
+
/** 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. */
|
|
573
|
+
key?: string;
|
|
574
|
+
/** Required. The name of the function for which upgrade should be aborted. */
|
|
575
|
+
name: string;
|
|
576
|
+
/** OAuth 2.0 token for the current user. */
|
|
577
|
+
oauth_token?: string;
|
|
578
|
+
/** Returns response with indentations and line breaks. */
|
|
579
|
+
prettyPrint?: boolean;
|
|
580
|
+
/** 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. */
|
|
581
|
+
quotaUser?: string;
|
|
582
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
583
|
+
upload_protocol?: string;
|
|
584
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
585
|
+
uploadType?: string;
|
|
586
|
+
/** Request body */
|
|
587
|
+
resource: AbortFunctionUpgradeRequest;
|
|
588
|
+
}): Request<Operation>;
|
|
589
|
+
abortFunctionUpgrade(
|
|
590
|
+
request: {
|
|
591
|
+
/** V1 error format. */
|
|
592
|
+
'$.xgafv'?: string;
|
|
593
|
+
/** OAuth access token. */
|
|
594
|
+
access_token?: string;
|
|
595
|
+
/** Data format for response. */
|
|
596
|
+
alt?: string;
|
|
597
|
+
/** JSONP */
|
|
598
|
+
callback?: string;
|
|
599
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
600
|
+
fields?: string;
|
|
601
|
+
/** 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. */
|
|
602
|
+
key?: string;
|
|
603
|
+
/** Required. The name of the function for which upgrade should be aborted. */
|
|
604
|
+
name: string;
|
|
605
|
+
/** OAuth 2.0 token for the current user. */
|
|
606
|
+
oauth_token?: string;
|
|
607
|
+
/** Returns response with indentations and line breaks. */
|
|
608
|
+
prettyPrint?: boolean;
|
|
609
|
+
/** 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. */
|
|
610
|
+
quotaUser?: string;
|
|
611
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
612
|
+
upload_protocol?: string;
|
|
613
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
614
|
+
uploadType?: string;
|
|
615
|
+
},
|
|
616
|
+
body: AbortFunctionUpgradeRequest
|
|
617
|
+
): Request<Operation>;
|
|
618
|
+
/** 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. */
|
|
619
|
+
commitFunctionUpgrade(request: {
|
|
620
|
+
/** V1 error format. */
|
|
621
|
+
'$.xgafv'?: string;
|
|
622
|
+
/** OAuth access token. */
|
|
623
|
+
access_token?: string;
|
|
624
|
+
/** Data format for response. */
|
|
625
|
+
alt?: string;
|
|
626
|
+
/** JSONP */
|
|
627
|
+
callback?: string;
|
|
628
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
629
|
+
fields?: string;
|
|
630
|
+
/** 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. */
|
|
631
|
+
key?: string;
|
|
632
|
+
/** Required. The name of the function for which upgrade should be finalized. */
|
|
633
|
+
name: string;
|
|
634
|
+
/** OAuth 2.0 token for the current user. */
|
|
635
|
+
oauth_token?: string;
|
|
636
|
+
/** Returns response with indentations and line breaks. */
|
|
637
|
+
prettyPrint?: boolean;
|
|
638
|
+
/** 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. */
|
|
639
|
+
quotaUser?: string;
|
|
640
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
641
|
+
upload_protocol?: string;
|
|
642
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
643
|
+
uploadType?: string;
|
|
644
|
+
/** Request body */
|
|
645
|
+
resource: CommitFunctionUpgradeRequest;
|
|
646
|
+
}): Request<Operation>;
|
|
647
|
+
commitFunctionUpgrade(
|
|
648
|
+
request: {
|
|
649
|
+
/** V1 error format. */
|
|
650
|
+
'$.xgafv'?: string;
|
|
651
|
+
/** OAuth access token. */
|
|
652
|
+
access_token?: string;
|
|
653
|
+
/** Data format for response. */
|
|
654
|
+
alt?: string;
|
|
655
|
+
/** JSONP */
|
|
656
|
+
callback?: string;
|
|
657
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
658
|
+
fields?: string;
|
|
659
|
+
/** 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. */
|
|
660
|
+
key?: string;
|
|
661
|
+
/** Required. The name of the function for which upgrade should be finalized. */
|
|
662
|
+
name: string;
|
|
663
|
+
/** OAuth 2.0 token for the current user. */
|
|
664
|
+
oauth_token?: string;
|
|
665
|
+
/** Returns response with indentations and line breaks. */
|
|
666
|
+
prettyPrint?: boolean;
|
|
667
|
+
/** 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. */
|
|
668
|
+
quotaUser?: string;
|
|
669
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
670
|
+
upload_protocol?: string;
|
|
671
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
672
|
+
uploadType?: string;
|
|
673
|
+
},
|
|
674
|
+
body: CommitFunctionUpgradeRequest
|
|
675
|
+
): Request<Operation>;
|
|
543
676
|
/** 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. */
|
|
544
677
|
create(request: {
|
|
545
678
|
/** V1 error format. */
|
|
@@ -905,6 +1038,122 @@ declare namespace gapi.client {
|
|
|
905
1038
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
906
1039
|
body: Function
|
|
907
1040
|
): Request<Operation>;
|
|
1041
|
+
/** 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. */
|
|
1042
|
+
redirectFunctionUpgradeTraffic(request: {
|
|
1043
|
+
/** V1 error format. */
|
|
1044
|
+
'$.xgafv'?: string;
|
|
1045
|
+
/** OAuth access token. */
|
|
1046
|
+
access_token?: string;
|
|
1047
|
+
/** Data format for response. */
|
|
1048
|
+
alt?: string;
|
|
1049
|
+
/** JSONP */
|
|
1050
|
+
callback?: string;
|
|
1051
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1052
|
+
fields?: string;
|
|
1053
|
+
/** 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. */
|
|
1054
|
+
key?: string;
|
|
1055
|
+
/** Required. The name of the function for which traffic target should be changed to 2nd Gen from 1st Gen. */
|
|
1056
|
+
name: string;
|
|
1057
|
+
/** OAuth 2.0 token for the current user. */
|
|
1058
|
+
oauth_token?: string;
|
|
1059
|
+
/** Returns response with indentations and line breaks. */
|
|
1060
|
+
prettyPrint?: boolean;
|
|
1061
|
+
/** 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. */
|
|
1062
|
+
quotaUser?: string;
|
|
1063
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1064
|
+
upload_protocol?: string;
|
|
1065
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1066
|
+
uploadType?: string;
|
|
1067
|
+
/** Request body */
|
|
1068
|
+
resource: RedirectFunctionUpgradeTrafficRequest;
|
|
1069
|
+
}): Request<Operation>;
|
|
1070
|
+
redirectFunctionUpgradeTraffic(
|
|
1071
|
+
request: {
|
|
1072
|
+
/** V1 error format. */
|
|
1073
|
+
'$.xgafv'?: string;
|
|
1074
|
+
/** OAuth access token. */
|
|
1075
|
+
access_token?: string;
|
|
1076
|
+
/** Data format for response. */
|
|
1077
|
+
alt?: string;
|
|
1078
|
+
/** JSONP */
|
|
1079
|
+
callback?: string;
|
|
1080
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1081
|
+
fields?: string;
|
|
1082
|
+
/** 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. */
|
|
1083
|
+
key?: string;
|
|
1084
|
+
/** Required. The name of the function for which traffic target should be changed to 2nd Gen from 1st Gen. */
|
|
1085
|
+
name: string;
|
|
1086
|
+
/** OAuth 2.0 token for the current user. */
|
|
1087
|
+
oauth_token?: string;
|
|
1088
|
+
/** Returns response with indentations and line breaks. */
|
|
1089
|
+
prettyPrint?: boolean;
|
|
1090
|
+
/** 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. */
|
|
1091
|
+
quotaUser?: string;
|
|
1092
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1093
|
+
upload_protocol?: string;
|
|
1094
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1095
|
+
uploadType?: string;
|
|
1096
|
+
},
|
|
1097
|
+
body: RedirectFunctionUpgradeTrafficRequest
|
|
1098
|
+
): Request<Operation>;
|
|
1099
|
+
/** 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. */
|
|
1100
|
+
rollbackFunctionUpgradeTraffic(request: {
|
|
1101
|
+
/** V1 error format. */
|
|
1102
|
+
'$.xgafv'?: string;
|
|
1103
|
+
/** OAuth access token. */
|
|
1104
|
+
access_token?: string;
|
|
1105
|
+
/** Data format for response. */
|
|
1106
|
+
alt?: string;
|
|
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
|
+
/** Required. The name of the function for which traffic target should be changed back to 1st Gen from 2nd Gen. */
|
|
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
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1122
|
+
upload_protocol?: string;
|
|
1123
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1124
|
+
uploadType?: string;
|
|
1125
|
+
/** Request body */
|
|
1126
|
+
resource: RollbackFunctionUpgradeTrafficRequest;
|
|
1127
|
+
}): Request<Operation>;
|
|
1128
|
+
rollbackFunctionUpgradeTraffic(
|
|
1129
|
+
request: {
|
|
1130
|
+
/** V1 error format. */
|
|
1131
|
+
'$.xgafv'?: string;
|
|
1132
|
+
/** OAuth access token. */
|
|
1133
|
+
access_token?: string;
|
|
1134
|
+
/** Data format for response. */
|
|
1135
|
+
alt?: string;
|
|
1136
|
+
/** JSONP */
|
|
1137
|
+
callback?: string;
|
|
1138
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1139
|
+
fields?: string;
|
|
1140
|
+
/** 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. */
|
|
1141
|
+
key?: string;
|
|
1142
|
+
/** Required. The name of the function for which traffic target should be changed back to 1st Gen from 2nd Gen. */
|
|
1143
|
+
name: string;
|
|
1144
|
+
/** OAuth 2.0 token for the current user. */
|
|
1145
|
+
oauth_token?: string;
|
|
1146
|
+
/** Returns response with indentations and line breaks. */
|
|
1147
|
+
prettyPrint?: boolean;
|
|
1148
|
+
/** 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. */
|
|
1149
|
+
quotaUser?: string;
|
|
1150
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1151
|
+
upload_protocol?: string;
|
|
1152
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1153
|
+
uploadType?: string;
|
|
1154
|
+
},
|
|
1155
|
+
body: RollbackFunctionUpgradeTrafficRequest
|
|
1156
|
+
): Request<Operation>;
|
|
908
1157
|
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
909
1158
|
setIamPolicy(
|
|
910
1159
|
request: {
|
|
@@ -935,6 +1184,64 @@ declare namespace gapi.client {
|
|
|
935
1184
|
},
|
|
936
1185
|
body: SetIamPolicyRequest
|
|
937
1186
|
): Request<Policy>;
|
|
1187
|
+
/** 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. */
|
|
1188
|
+
setupFunctionUpgradeConfig(request: {
|
|
1189
|
+
/** V1 error format. */
|
|
1190
|
+
'$.xgafv'?: string;
|
|
1191
|
+
/** OAuth access token. */
|
|
1192
|
+
access_token?: string;
|
|
1193
|
+
/** Data format for response. */
|
|
1194
|
+
alt?: string;
|
|
1195
|
+
/** JSONP */
|
|
1196
|
+
callback?: string;
|
|
1197
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1198
|
+
fields?: string;
|
|
1199
|
+
/** 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. */
|
|
1200
|
+
key?: string;
|
|
1201
|
+
/** Required. The name of the function which should have configuration copied for upgrade. */
|
|
1202
|
+
name: string;
|
|
1203
|
+
/** OAuth 2.0 token for the current user. */
|
|
1204
|
+
oauth_token?: string;
|
|
1205
|
+
/** Returns response with indentations and line breaks. */
|
|
1206
|
+
prettyPrint?: boolean;
|
|
1207
|
+
/** 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. */
|
|
1208
|
+
quotaUser?: string;
|
|
1209
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1210
|
+
upload_protocol?: string;
|
|
1211
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1212
|
+
uploadType?: string;
|
|
1213
|
+
/** Request body */
|
|
1214
|
+
resource: SetupFunctionUpgradeConfigRequest;
|
|
1215
|
+
}): Request<Operation>;
|
|
1216
|
+
setupFunctionUpgradeConfig(
|
|
1217
|
+
request: {
|
|
1218
|
+
/** V1 error format. */
|
|
1219
|
+
'$.xgafv'?: string;
|
|
1220
|
+
/** OAuth access token. */
|
|
1221
|
+
access_token?: string;
|
|
1222
|
+
/** Data format for response. */
|
|
1223
|
+
alt?: string;
|
|
1224
|
+
/** JSONP */
|
|
1225
|
+
callback?: string;
|
|
1226
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1227
|
+
fields?: string;
|
|
1228
|
+
/** 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. */
|
|
1229
|
+
key?: string;
|
|
1230
|
+
/** Required. The name of the function which should have configuration copied for upgrade. */
|
|
1231
|
+
name: string;
|
|
1232
|
+
/** OAuth 2.0 token for the current user. */
|
|
1233
|
+
oauth_token?: string;
|
|
1234
|
+
/** Returns response with indentations and line breaks. */
|
|
1235
|
+
prettyPrint?: boolean;
|
|
1236
|
+
/** 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. */
|
|
1237
|
+
quotaUser?: string;
|
|
1238
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1239
|
+
upload_protocol?: string;
|
|
1240
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1241
|
+
uploadType?: string;
|
|
1242
|
+
},
|
|
1243
|
+
body: SetupFunctionUpgradeConfigRequest
|
|
1244
|
+
): Request<Operation>;
|
|
938
1245
|
/** 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. */
|
|
939
1246
|
testIamPermissions(
|
|
940
1247
|
request: {
|
|
@@ -1006,17 +1313,17 @@ declare namespace gapi.client {
|
|
|
1006
1313
|
callback?: string;
|
|
1007
1314
|
/** Selector specifying which fields to include in a partial response. */
|
|
1008
1315
|
fields?: string;
|
|
1009
|
-
/**
|
|
1316
|
+
/** The standard list filter. */
|
|
1010
1317
|
filter?: string;
|
|
1011
1318
|
/** 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. */
|
|
1012
1319
|
key?: string;
|
|
1013
|
-
/**
|
|
1320
|
+
/** The name of the operation's parent resource. */
|
|
1014
1321
|
name: string;
|
|
1015
1322
|
/** OAuth 2.0 token for the current user. */
|
|
1016
1323
|
oauth_token?: string;
|
|
1017
|
-
/** The
|
|
1324
|
+
/** The standard list page size. */
|
|
1018
1325
|
pageSize?: number;
|
|
1019
|
-
/**
|
|
1326
|
+
/** The standard list page token. */
|
|
1020
1327
|
pageToken?: string;
|
|
1021
1328
|
/** Returns response with indentations and line breaks. */
|
|
1022
1329
|
prettyPrint?: boolean;
|