Debian Codegraph @

docs/dyn/cloudfunctions_v2.projects.locations.functions.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="cloudfunctions_v2.html">Cloud Functions API</a> . <a href="cloudfunctions_v2.projects.html">projects</a> . <a href="cloudfunctions_v2.projects.locations.html">locations</a> . <a href="cloudfunctions_v2.projects.locations.functions.html">functions</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#abortFunctionUpgrade">abortFunctionUpgrade(name, body=None, x__xgafv=None)</a></code></p>
79 <p class="firstline">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.</p>
80 <p class="toc_element">
81 <code><a href="#close">close()</a></code></p>
82 <p class="firstline">Close httplib2 connections.</p>
83 <p class="toc_element">
84 <code><a href="#commitFunctionUpgrade">commitFunctionUpgrade(name, body=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">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.</p>
86 <p class="toc_element">
87 <code><a href="#commitFunctionUpgradeAsGen2">commitFunctionUpgradeAsGen2(name, body=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">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.</p>
89 <p class="toc_element">
90 <code><a href="#create">create(parent, body=None, functionId=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">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.</p>
92 <p class="toc_element">
93 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
94 <p class="firstline">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.</p>
95 <p class="toc_element">
96 <code><a href="#detachFunction">detachFunction(name, body=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Detaches 2nd Gen function to Cloud Run function.</p>
98 <p class="toc_element">
99 <code><a href="#generateDownloadUrl">generateDownloadUrl(name, body=None, x__xgafv=None)</a></code></p>
100 <p class="firstline">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</p>
101 <p class="toc_element">
102 <code><a href="#generateUploadUrl">generateUploadUrl(parent, body=None, x__xgafv=None)</a></code></p>
103 <p class="firstline">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`</p>
104 <p class="toc_element">
105 <code><a href="#get">get(name, revision=None, x__xgafv=None)</a></code></p>
106 <p class="firstline">Returns a function with the given name from the requested project.</p>
107 <p class="toc_element">
108 <code><a href="#getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</a></code></p>
109 <p class="firstline">Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.</p>
110 <p class="toc_element">
111 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
112 <p class="firstline">Returns a list of functions that belong to the requested project.</p>
113 <p class="toc_element">
114 <code><a href="#list_next">list_next()</a></code></p>
115 <p class="firstline">Retrieves the next page of results.</p>
116 <p class="toc_element">
117 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
118 <p class="firstline">Updates existing function.</p>
119 <p class="toc_element">
120 <code><a href="#redirectFunctionUpgradeTraffic">redirectFunctionUpgradeTraffic(name, body=None, x__xgafv=None)</a></code></p>
121 <p class="firstline">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.</p>
122 <p class="toc_element">
123 <code><a href="#rollbackFunctionUpgradeTraffic">rollbackFunctionUpgradeTraffic(name, body=None, x__xgafv=None)</a></code></p>
124 <p class="firstline">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.</p>
125 <p class="toc_element">
126 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
127 <p class="firstline">Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.</p>
128 <p class="toc_element">
129 <code><a href="#setupFunctionUpgradeConfig">setupFunctionUpgradeConfig(name, body=None, x__xgafv=None)</a></code></p>
130 <p class="firstline">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.</p>
131 <p class="toc_element">
132 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
133 <p class="firstline">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.</p>
134 <h3>Method Details</h3>
135 <div class="method">
136 <code class="details" id="abortFunctionUpgrade">abortFunctionUpgrade(name, body=None, x__xgafv=None)</code>
137 <pre>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.
138
139 Args:
140 name: string, Required. The name of the function for which upgrade should be aborted. (required)
141 body: object, The request body.
142 The object takes the form of:
143
144 { # Request for the `AbortFunctionUpgrade` method.
145 }
146
147 x__xgafv: string, V1 error format.
148 Allowed values
149 1 - v1 error format
150 2 - v2 error format
151
152 Returns:
153 An object of the form:
154
155 { # This resource represents a long-running operation that is the result of a network API call.
156 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
157 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
158 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
159 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
160 {
161 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
162 },
163 ],
164 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
165 },
166 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
167 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
168 },
169 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
170 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
171 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
172 },
173 }</pre>
174 </div>
175
176 <div class="method">
177 <code class="details" id="close">close()</code>
178 <pre>Close httplib2 connections.</pre>
179 </div>
180
181 <div class="method">
182 <code class="details" id="commitFunctionUpgrade">commitFunctionUpgrade(name, body=None, x__xgafv=None)</code>
183 <pre>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.
184
185 Args:
186 name: string, Required. The name of the function for which upgrade should be finalized. (required)
187 body: object, The request body.
188 The object takes the form of:
189
190 { # Request for the `CommitFunctionUpgrade` method.
191 }
192
193 x__xgafv: string, V1 error format.
194 Allowed values
195 1 - v1 error format
196 2 - v2 error format
197
198 Returns:
199 An object of the form:
200
201 { # This resource represents a long-running operation that is the result of a network API call.
202 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
203 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
204 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
205 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
206 {
207 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
208 },
209 ],
210 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
211 },
212 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
213 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
214 },
215 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
216 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
217 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
218 },
219 }</pre>
220 </div>
221
222 <div class="method">
223 <code class="details" id="commitFunctionUpgradeAsGen2">commitFunctionUpgradeAsGen2(name, body=None, x__xgafv=None)</code>
224 <pre>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.
225
226 Args:
227 name: string, Required. The name of the function for which upgrade should be committed to Gen2. (required)
228 body: object, The request body.
229 The object takes the form of:
230
231 { # Request for the `CommitFunctionUpgradeAsGen2` method.
232 }
233
234 x__xgafv: string, V1 error format.
235 Allowed values
236 1 - v1 error format
237 2 - v2 error format
238
239 Returns:
240 An object of the form:
241
242 { # This resource represents a long-running operation that is the result of a network API call.
243 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
244 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
245 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
246 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
247 {
248 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
249 },
250 ],
251 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
252 },
253 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
254 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
255 },
256 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
257 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
258 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
259 },
260 }</pre>
261 </div>
262
263 <div class="method">
264 <code class="details" id="create">create(parent, body=None, functionId=None, x__xgafv=None)</code>
265 <pre>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.
266
267 Args:
268 parent: string, Required. The project and location in which the function should be created, specified in the format `projects/*/locations/*` (required)
269 body: object, The request body.
270 The object takes the form of:
271
272 { # Describes a Cloud Function that contains user computation executed in response to an event. It encapsulates function and trigger configurations.
273 &quot;buildConfig&quot;: { # Describes the Build step of the function that builds a container from the given source. # Describes the Build step of the function that builds a container from the given source.
274 &quot;automaticUpdatePolicy&quot;: { # Security patches are applied automatically to the runtime without requiring the function to be redeployed.
275 },
276 &quot;build&quot;: &quot;A String&quot;, # Output only. The Cloud Build name of the latest successful deployment of the function.
277 &quot;dockerRegistry&quot;: &quot;A String&quot;, # Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. Deprecated: as of March 2025, `CONTAINER_REGISTRY` option is no longer available in response to Container Registry&#x27;s deprecation: https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr Please use Artifact Registry instead, which is the default choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.
278 &quot;dockerRepository&quot;: &quot;A String&quot;, # Repository in Artifact Registry to which the function docker image will be pushed after it is built by Cloud Build. If specified by user, it is created and managed by user with a customer managed encryption key. Otherwise, GCF will create and use a repository named &#x27;gcf-artifacts&#x27; for every deployed region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Repository format must be &#x27;DOCKER&#x27;.
279 &quot;entryPoint&quot;: &quot;A String&quot;, # The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named &quot;function&quot;. For Node.js this is name of a function exported by the module specified in `source_location`.
280 &quot;environmentVariables&quot;: { # User-provided build-time environment variables for the function
281 &quot;a_key&quot;: &quot;A String&quot;,
282 },
283 &quot;onDeployUpdatePolicy&quot;: { # Security patches are only applied when a function is redeployed.
284 &quot;runtimeVersion&quot;: &quot;A String&quot;, # Output only. contains the runtime version which was used during latest function deployment.
285 },
286 &quot;runtime&quot;: &quot;A String&quot;, # 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).
287 &quot;serviceAccount&quot;: &quot;A String&quot;, # Service account to be used for building the container. The format of this field is `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.
288 &quot;source&quot;: { # The location of the function source code. # The location of the function source code.
289 &quot;gitUri&quot;: &quot;A String&quot;, # If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com///blob//
290 &quot;repoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # If provided, get the source from this location in a Cloud Source Repository.
291 &quot;branchName&quot;: &quot;A String&quot;, # 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
292 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
293 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution. eg. helloworld (no leading slash allowed)
294 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
295 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
296 &quot;tagName&quot;: &quot;A String&quot;, # 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
297 },
298 &quot;storageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in Google Cloud Storage.
299 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
300 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
301 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
302 &quot;sourceUploadUrl&quot;: &quot;A String&quot;, # When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.
303 },
304 },
305 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that some source was used for this build. # Output only. A permanent fixed identifier for source.
306 &quot;gitUri&quot;: &quot;A String&quot;, # A copy of the build&#x27;s `source.git_uri`, if exists, with any commits resolved.
307 &quot;resolvedRepoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # A copy of the build&#x27;s `source.repo_source`, if exists, with any revisions resolved.
308 &quot;branchName&quot;: &quot;A String&quot;, # 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
309 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
310 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution. eg. helloworld (no leading slash allowed)
311 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
312 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
313 &quot;tagName&quot;: &quot;A String&quot;, # 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
314 },
315 &quot;resolvedStorageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # A copy of the build&#x27;s `source.storage_source`, if exists, with any generations resolved.
316 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
317 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
318 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
319 &quot;sourceUploadUrl&quot;: &quot;A String&quot;, # When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.
320 },
321 },
322 &quot;sourceToken&quot;: &quot;A String&quot;, # An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
323 &quot;workerPool&quot;: &quot;A String&quot;, # 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 ([email protected]) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project.
324 },
325 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The create timestamp of a Cloud Function. This is only applicable to 2nd Gen functions.
326 &quot;description&quot;: &quot;A String&quot;, # User-provided description of a function.
327 &quot;environment&quot;: &quot;A String&quot;, # Describe whether the function is 1st Gen or 2nd Gen.
328 &quot;eventTrigger&quot;: { # Describes EventTrigger, used to request events to be sent from another service. # An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.
329 &quot;channel&quot;: &quot;A String&quot;, # Optional. The name of the channel associated with the trigger in `projects/{project}/locations/{location}/channels/{channel}` format. You must provide a channel to receive events from Eventarc SaaS partners.
330 &quot;eventFilters&quot;: [ # Criteria used to filter events.
331 { # Filters events based on exact matches on the CloudEvents attributes.
332 &quot;attribute&quot;: &quot;A String&quot;, # Required. The name of a CloudEvents attribute.
333 &quot;operator&quot;: &quot;A String&quot;, # Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is `match-path-pattern`.
334 &quot;value&quot;: &quot;A String&quot;, # Required. The value for the attribute.
335 },
336 ],
337 &quot;eventType&quot;: &quot;A String&quot;, # Required. The type of event to observe. For example: `google.cloud.audit.log.v1.written` or `google.cloud.pubsub.topic.v1.messagePublished`.
338 &quot;pubsubTopic&quot;: &quot;A String&quot;, # Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format: `projects/{project}/topics/{topic}`. This is only valid for events of type `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here will not be deleted at function deletion.
339 &quot;retryPolicy&quot;: &quot;A String&quot;, # Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
340 &quot;service&quot;: &quot;A String&quot;, # Optional. The hostname of the service that 1st Gen function should be observed. If no string is provided, the default service implementing the API will be used. For example, `storage.googleapis.com` is the default for all event types in the `google.storage` namespace. The field is only applicable to 1st Gen functions.
341 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Optional. The email of the trigger&#x27;s service account. The service account must have permission to invoke Cloud Run services, the permission is `run.routes.invoke`. If empty, defaults to the Compute Engine default service account: `{project_number}[email protected]`.
342 &quot;trigger&quot;: &quot;A String&quot;, # Output only. The resource name of the Eventarc trigger. The format of this field is `projects/{project}/locations/{region}/triggers/{trigger}`.
343 &quot;triggerRegion&quot;: &quot;A String&quot;, # The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
344 },
345 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
346 &quot;labels&quot;: { # Labels associated with this Cloud Function.
347 &quot;a_key&quot;: &quot;A String&quot;,
348 },
349 &quot;name&quot;: &quot;A String&quot;, # A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*`
350 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
351 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
352 &quot;serviceConfig&quot;: { # Describes the Service being deployed. Currently Supported : Cloud Run (fully managed). # Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
353 &quot;allTrafficOnLatestRevision&quot;: True or False, # Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.
354 &quot;availableCpu&quot;: &quot;A String&quot;, # The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: &quot;1&quot; indicates 1 vCPU
355 &quot;availableMemory&quot;: &quot;A String&quot;, # The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.
356 &quot;binaryAuthorizationPolicy&quot;: &quot;A String&quot;, # Optional. The binary authorization policy to be checked when deploying the Cloud Run service.
357 &quot;directVpcEgress&quot;: &quot;A String&quot;, # Optional. Egress settings for direct VPC. If not provided, it defaults to VPC_EGRESS_PRIVATE_RANGES_ONLY.
358 &quot;directVpcNetworkInterface&quot;: [ # Optional. The Direct VPC network interface for the Cloud Function. Currently only a single Direct VPC is supported.
359 { # The Direct VPC network interface. This is mutually exclusive with VPC Connector.
360 &quot;network&quot;: &quot;A String&quot;, # Optional. The name of the VPC network to which the function will be connected. Specify either a VPC network or a subnet, or both. If you specify only a network, the subnet uses the same name as the network.
361 &quot;subnetwork&quot;: &quot;A String&quot;, # Optional. The name of the VPC subnetwork that the Cloud Function resource will get IPs from. Specify either a VPC network or a subnet, or both. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used.
362 &quot;tags&quot;: [ # Optional. Network tags applied to this Cloud Function resource.
363 &quot;A String&quot;,
364 ],
365 },
366 ],
367 &quot;environmentVariables&quot;: { # Environment variables that shall be available during function execution.
368 &quot;a_key&quot;: &quot;A String&quot;,
369 },
370 &quot;ingressSettings&quot;: &quot;A String&quot;, # The ingress settings for the function, controlling what traffic can reach it.
371 &quot;maxInstanceCount&quot;: 42, # The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the [Max Instances](https://cloud.google.com/functions/docs/max-instances) Guide for more details.
372 &quot;maxInstanceRequestConcurrency&quot;: 42, # Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
373 &quot;minInstanceCount&quot;: 42, # The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.
374 &quot;revision&quot;: &quot;A String&quot;, # Output only. The name of service revision.
375 &quot;secretEnvironmentVariables&quot;: [ # Secret environment variables configuration.
376 { # Configuration for a secret environment variable. It has the information necessary to fetch the secret value from secret manager and expose it as an environment variable.
377 &quot;key&quot;: &quot;A String&quot;, # Name of the environment variable.
378 &quot;projectId&quot;: &quot;A String&quot;, # Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
379 &quot;secret&quot;: &quot;A String&quot;, # Name of the secret in secret manager (not the full resource name).
380 &quot;version&quot;: &quot;A String&quot;, # Version of the secret (version number or the string &#x27;latest&#x27;). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new instances start.
381 },
382 ],
383 &quot;secretVolumes&quot;: [ # Secret volumes configuration.
384 { # Configuration for a secret volume. It has the information necessary to fetch the secret value from secret manager and make it available as files mounted at the requested paths within the application container.
385 &quot;mountPath&quot;: &quot;A String&quot;, # The path within the container to mount the secret volume. For example, setting the mount_path as `/etc/secrets` would mount the secret value files under the `/etc/secrets` directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount path: /etc/secrets
386 &quot;projectId&quot;: &quot;A String&quot;, # Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
387 &quot;secret&quot;: &quot;A String&quot;, # Name of the secret in secret manager (not the full resource name).
388 &quot;versions&quot;: [ # List of secret versions to mount for this secret. If empty, the `latest` version of the secret will be made available in a file named after the secret under the mount point.
389 { # Configuration for a single version.
390 &quot;path&quot;: &quot;A String&quot;, # Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as &#x27;/etc/secrets&#x27; and path as `secret_foo` would mount the secret value file at `/etc/secrets/secret_foo`.
391 &quot;version&quot;: &quot;A String&quot;, # Version of the secret (version number or the string &#x27;latest&#x27;). It is preferable to use `latest` version with secret volumes as secret value changes are reflected immediately.
392 },
393 ],
394 },
395 ],
396 &quot;securityLevel&quot;: &quot;A String&quot;, # Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.
397 &quot;service&quot;: &quot;A String&quot;, # Output only. Name of the service associated with a Function. The format of this field is `projects/{project}/locations/{region}/services/{service}`
398 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email of the service&#x27;s service account. If empty, defaults to `{project_number}[email protected]`.
399 &quot;timeoutSeconds&quot;: 42, # The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
400 &quot;uri&quot;: &quot;A String&quot;, # Output only. URI of the Service deployed.
401 &quot;vpcConnector&quot;: &quot;A String&quot;, # The Serverless VPC Access connector that this cloud function can connect to. The format of this field is `projects/*/locations/*/connectors/*`.
402 &quot;vpcConnectorEgressSettings&quot;: &quot;A String&quot;, # The egress settings for the connector, controlling what traffic is diverted through it.
403 },
404 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the function.
405 &quot;stateMessages&quot;: [ # Output only. State Messages for this Cloud Function.
406 { # Informational messages about the state of the Cloud Function or Operation.
407 &quot;message&quot;: &quot;A String&quot;, # The message.
408 &quot;severity&quot;: &quot;A String&quot;, # Severity of the state message.
409 &quot;type&quot;: &quot;A String&quot;, # One-word CamelCase type of the state message.
410 },
411 ],
412 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of a Cloud Function.
413 &quot;upgradeInfo&quot;: { # Information related to: * A function&#x27;s eligibility for 1st Gen to 2nd Gen migration. * Current state of migration for function undergoing migration. # Output only. UpgradeInfo for this Cloud Function
414 &quot;buildConfig&quot;: { # Describes the Build step of the function that builds a container from the given source. # Describes the Build step of the function that builds a container to prepare for 2nd gen upgrade.
415 &quot;automaticUpdatePolicy&quot;: { # Security patches are applied automatically to the runtime without requiring the function to be redeployed.
416 },
417 &quot;build&quot;: &quot;A String&quot;, # Output only. The Cloud Build name of the latest successful deployment of the function.
418 &quot;dockerRegistry&quot;: &quot;A String&quot;, # Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. Deprecated: as of March 2025, `CONTAINER_REGISTRY` option is no longer available in response to Container Registry&#x27;s deprecation: https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr Please use Artifact Registry instead, which is the default choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.
419 &quot;dockerRepository&quot;: &quot;A String&quot;, # Repository in Artifact Registry to which the function docker image will be pushed after it is built by Cloud Build. If specified by user, it is created and managed by user with a customer managed encryption key. Otherwise, GCF will create and use a repository named &#x27;gcf-artifacts&#x27; for every deployed region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Repository format must be &#x27;DOCKER&#x27;.
420 &quot;entryPoint&quot;: &quot;A String&quot;, # The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named &quot;function&quot;. For Node.js this is name of a function exported by the module specified in `source_location`.
421 &quot;environmentVariables&quot;: { # User-provided build-time environment variables for the function
422 &quot;a_key&quot;: &quot;A String&quot;,
423 },
424 &quot;onDeployUpdatePolicy&quot;: { # Security patches are only applied when a function is redeployed.
425 &quot;runtimeVersion&quot;: &quot;A String&quot;, # Output only. contains the runtime version which was used during latest function deployment.
426 },
427 &quot;runtime&quot;: &quot;A String&quot;, # 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).
428 &quot;serviceAccount&quot;: &quot;A String&quot;, # Service account to be used for building the container. The format of this field is `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.
429 &quot;source&quot;: { # The location of the function source code. # The location of the function source code.
430 &quot;gitUri&quot;: &quot;A String&quot;, # If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com///blob//
431 &quot;repoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # If provided, get the source from this location in a Cloud Source Repository.
432 &quot;branchName&quot;: &quot;A String&quot;, # 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
433 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
434 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution. eg. helloworld (no leading slash allowed)
435 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
436 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
437 &quot;tagName&quot;: &quot;A String&quot;, # 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
438 },
439 &quot;storageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in Google Cloud Storage.
440 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
441 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
442 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
443 &quot;sourceUploadUrl&quot;: &quot;A String&quot;, # When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.
444 },
445 },
446 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that some source was used for this build. # Output only. A permanent fixed identifier for source.
447 &quot;gitUri&quot;: &quot;A String&quot;, # A copy of the build&#x27;s `source.git_uri`, if exists, with any commits resolved.
448 &quot;resolvedRepoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # A copy of the build&#x27;s `source.repo_source`, if exists, with any revisions resolved.
449 &quot;branchName&quot;: &quot;A String&quot;, # 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
450 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
451 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution. eg. helloworld (no leading slash allowed)
452 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
453 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
454 &quot;tagName&quot;: &quot;A String&quot;, # 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
455 },
456 &quot;resolvedStorageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # A copy of the build&#x27;s `source.storage_source`, if exists, with any generations resolved.
457 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
458 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
459 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
460 &quot;sourceUploadUrl&quot;: &quot;A String&quot;, # When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.
461 },
462 },
463 &quot;sourceToken&quot;: &quot;A String&quot;, # An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
464 &quot;workerPool&quot;: &quot;A String&quot;, # 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 ([email protected]) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project.
465 },
466 &quot;eventTrigger&quot;: { # Describes EventTrigger, used to request events to be sent from another service. # Describes the Event trigger which has been setup to prepare for 2nd gen upgrade.
467 &quot;channel&quot;: &quot;A String&quot;, # Optional. The name of the channel associated with the trigger in `projects/{project}/locations/{location}/channels/{channel}` format. You must provide a channel to receive events from Eventarc SaaS partners.
468 &quot;eventFilters&quot;: [ # Criteria used to filter events.
469 { # Filters events based on exact matches on the CloudEvents attributes.
470 &quot;attribute&quot;: &quot;A String&quot;, # Required. The name of a CloudEvents attribute.
471 &quot;operator&quot;: &quot;A String&quot;, # Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is `match-path-pattern`.
472 &quot;value&quot;: &quot;A String&quot;, # Required. The value for the attribute.
473 },
474 ],
475 &quot;eventType&quot;: &quot;A String&quot;, # Required. The type of event to observe. For example: `google.cloud.audit.log.v1.written` or `google.cloud.pubsub.topic.v1.messagePublished`.
476 &quot;pubsubTopic&quot;: &quot;A String&quot;, # Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format: `projects/{project}/topics/{topic}`. This is only valid for events of type `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here will not be deleted at function deletion.
477 &quot;retryPolicy&quot;: &quot;A String&quot;, # Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
478 &quot;service&quot;: &quot;A String&quot;, # Optional. The hostname of the service that 1st Gen function should be observed. If no string is provided, the default service implementing the API will be used. For example, `storage.googleapis.com` is the default for all event types in the `google.storage` namespace. The field is only applicable to 1st Gen functions.
479 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Optional. The email of the trigger&#x27;s service account. The service account must have permission to invoke Cloud Run services, the permission is `run.routes.invoke`. If empty, defaults to the Compute Engine default service account: `{project_number}[email protected]`.
480 &quot;trigger&quot;: &quot;A String&quot;, # Output only. The resource name of the Eventarc trigger. The format of this field is `projects/{project}/locations/{region}/triggers/{trigger}`.
481 &quot;triggerRegion&quot;: &quot;A String&quot;, # The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
482 },
483 &quot;serviceConfig&quot;: { # Describes the Service being deployed. Currently Supported : Cloud Run (fully managed). # Describes the Cloud Run service which has been setup to prepare for 2nd gen upgrade.
484 &quot;allTrafficOnLatestRevision&quot;: True or False, # Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.
485 &quot;availableCpu&quot;: &quot;A String&quot;, # The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: &quot;1&quot; indicates 1 vCPU
486 &quot;availableMemory&quot;: &quot;A String&quot;, # The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.
487 &quot;binaryAuthorizationPolicy&quot;: &quot;A String&quot;, # Optional. The binary authorization policy to be checked when deploying the Cloud Run service.
488 &quot;directVpcEgress&quot;: &quot;A String&quot;, # Optional. Egress settings for direct VPC. If not provided, it defaults to VPC_EGRESS_PRIVATE_RANGES_ONLY.
489 &quot;directVpcNetworkInterface&quot;: [ # Optional. The Direct VPC network interface for the Cloud Function. Currently only a single Direct VPC is supported.
490 { # The Direct VPC network interface. This is mutually exclusive with VPC Connector.
491 &quot;network&quot;: &quot;A String&quot;, # Optional. The name of the VPC network to which the function will be connected. Specify either a VPC network or a subnet, or both. If you specify only a network, the subnet uses the same name as the network.
492 &quot;subnetwork&quot;: &quot;A String&quot;, # Optional. The name of the VPC subnetwork that the Cloud Function resource will get IPs from. Specify either a VPC network or a subnet, or both. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used.
493 &quot;tags&quot;: [ # Optional. Network tags applied to this Cloud Function resource.
494 &quot;A String&quot;,
495 ],
496 },
497 ],
498 &quot;environmentVariables&quot;: { # Environment variables that shall be available during function execution.
499 &quot;a_key&quot;: &quot;A String&quot;,
500 },
501 &quot;ingressSettings&quot;: &quot;A String&quot;, # The ingress settings for the function, controlling what traffic can reach it.
502 &quot;maxInstanceCount&quot;: 42, # The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the [Max Instances](https://cloud.google.com/functions/docs/max-instances) Guide for more details.
503 &quot;maxInstanceRequestConcurrency&quot;: 42, # Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
504 &quot;minInstanceCount&quot;: 42, # The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.
505 &quot;revision&quot;: &quot;A String&quot;, # Output only. The name of service revision.
506 &quot;secretEnvironmentVariables&quot;: [ # Secret environment variables configuration.
507 { # Configuration for a secret environment variable. It has the information necessary to fetch the secret value from secret manager and expose it as an environment variable.
508 &quot;key&quot;: &quot;A String&quot;, # Name of the environment variable.
509 &quot;projectId&quot;: &quot;A String&quot;, # Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
510 &quot;secret&quot;: &quot;A String&quot;, # Name of the secret in secret manager (not the full resource name).
511 &quot;version&quot;: &quot;A String&quot;, # Version of the secret (version number or the string &#x27;latest&#x27;). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new instances start.
512 },
513 ],
514 &quot;secretVolumes&quot;: [ # Secret volumes configuration.
515 { # Configuration for a secret volume. It has the information necessary to fetch the secret value from secret manager and make it available as files mounted at the requested paths within the application container.
516 &quot;mountPath&quot;: &quot;A String&quot;, # The path within the container to mount the secret volume. For example, setting the mount_path as `/etc/secrets` would mount the secret value files under the `/etc/secrets` directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount path: /etc/secrets
517 &quot;projectId&quot;: &quot;A String&quot;, # Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
518 &quot;secret&quot;: &quot;A String&quot;, # Name of the secret in secret manager (not the full resource name).
519 &quot;versions&quot;: [ # List of secret versions to mount for this secret. If empty, the `latest` version of the secret will be made available in a file named after the secret under the mount point.
520 { # Configuration for a single version.
521 &quot;path&quot;: &quot;A String&quot;, # Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as &#x27;/etc/secrets&#x27; and path as `secret_foo` would mount the secret value file at `/etc/secrets/secret_foo`.
522 &quot;version&quot;: &quot;A String&quot;, # Version of the secret (version number or the string &#x27;latest&#x27;). It is preferable to use `latest` version with secret volumes as secret value changes are reflected immediately.
523 },
524 ],
525 },
526 ],
527 &quot;securityLevel&quot;: &quot;A String&quot;, # Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.
528 &quot;service&quot;: &quot;A String&quot;, # Output only. Name of the service associated with a Function. The format of this field is `projects/{project}/locations/{region}/services/{service}`
529 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email of the service&#x27;s service account. If empty, defaults to `{project_number}[email protected]`.
530 &quot;timeoutSeconds&quot;: 42, # The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
531 &quot;uri&quot;: &quot;A String&quot;, # Output only. URI of the Service deployed.
532 &quot;vpcConnector&quot;: &quot;A String&quot;, # The Serverless VPC Access connector that this cloud function can connect to. The format of this field is `projects/*/locations/*/connectors/*`.
533 &quot;vpcConnectorEgressSettings&quot;: &quot;A String&quot;, # The egress settings for the connector, controlling what traffic is diverted through it.
534 },
535 &quot;upgradeState&quot;: &quot;A String&quot;, # UpgradeState of the function
536 },
537 &quot;url&quot;: &quot;A String&quot;, # Output only. The deployed url for the function.
538 }
539
540 functionId: string, The ID to use for the function, which will become the final component of the function&#x27;s resource name. This value should be 4-63 characters, and valid characters are /a-z-/.
541 x__xgafv: string, V1 error format.
542 Allowed values
543 1 - v1 error format
544 2 - v2 error format
545
546 Returns:
547 An object of the form:
548
549 { # This resource represents a long-running operation that is the result of a network API call.
550 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
551 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
552 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
553 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
554 {
555 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
556 },
557 ],
558 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
559 },
560 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
561 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
562 },
563 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
564 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
565 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
566 },
567 }</pre>
568 </div>
569
570 <div class="method">
571 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
572 <pre>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.
573
574 Args:
575 name: string, Required. The name of the function which should be deleted. (required)
576 x__xgafv: string, V1 error format.
577 Allowed values
578 1 - v1 error format
579 2 - v2 error format
580
581 Returns:
582 An object of the form:
583
584 { # This resource represents a long-running operation that is the result of a network API call.
585 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
586 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
587 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
588 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
589 {
590 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
591 },
592 ],
593 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
594 },
595 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
596 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
597 },
598 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
599 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
600 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
601 },
602 }</pre>
603 </div>
604
605 <div class="method">
606 <code class="details" id="detachFunction">detachFunction(name, body=None, x__xgafv=None)</code>
607 <pre>Detaches 2nd Gen function to Cloud Run function.
608
609 Args:
610 name: string, Required. The name of the function for which should be detached. (required)
611 body: object, The request body.
612 The object takes the form of:
613
614 { # Request for the `DetachFunction` method.
615 }
616
617 x__xgafv: string, V1 error format.
618 Allowed values
619 1 - v1 error format
620 2 - v2 error format
621
622 Returns:
623 An object of the form:
624
625 { # This resource represents a long-running operation that is the result of a network API call.
626 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
627 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
628 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
629 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
630 {
631 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
632 },
633 ],
634 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
635 },
636 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
637 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
638 },
639 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
640 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
641 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
642 },
643 }</pre>
644 </div>
645
646 <div class="method">
647 <code class="details" id="generateDownloadUrl">generateDownloadUrl(name, body=None, x__xgafv=None)</code>
648 <pre>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
649
650 Args:
651 name: string, Required. The name of function for which source code Google Cloud Storage signed URL should be generated. (required)
652 body: object, The request body.
653 The object takes the form of:
654
655 { # Request of `GenerateDownloadUrl` method.
656 }
657
658 x__xgafv: string, V1 error format.
659 Allowed values
660 1 - v1 error format
661 2 - v2 error format
662
663 Returns:
664 An object of the form:
665
666 { # Response of `GenerateDownloadUrl` method.
667 &quot;downloadUrl&quot;: &quot;A String&quot;, # The generated Google Cloud Storage signed URL that should be used for function source code download.
668 }</pre>
669 </div>
670
671 <div class="method">
672 <code class="details" id="generateUploadUrl">generateUploadUrl(parent, body=None, x__xgafv=None)</code>
673 <pre>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`
674
675 Args:
676 parent: string, Required. The project and location in which the Google Cloud Storage signed URL should be generated, specified in the format `projects/*/locations/*`. (required)
677 body: object, The request body.
678 The object takes the form of:
679
680 { # Request of `GenerateSourceUploadUrl` method.
681 &quot;environment&quot;: &quot;A String&quot;, # The function environment the generated upload url will be used for. The upload url for 2nd Gen functions can also be used for 1st gen functions, but not vice versa. If not specified, 2nd generation-style upload URLs are generated.
682 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function source code objects in intermediate Cloud Storage buckets. When you generate an upload url and upload your source code, it gets copied to an intermediate Cloud Storage bucket. The source code is then copied to a versioned directory in the sources bucket in the consumer project during the function deployment. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. The Google Cloud Functions service account (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role &#x27;Cloud KMS CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)&#x27; on the Key/KeyRing/Project/Organization (least access preferred).
683 }
684
685 x__xgafv: string, V1 error format.
686 Allowed values
687 1 - v1 error format
688 2 - v2 error format
689
690 Returns:
691 An object of the form:
692
693 { # Response of `GenerateSourceUploadUrl` method.
694 &quot;storageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # The location of the source code in the upload bucket. Once the archive is uploaded using the `upload_url` use this field to set the `function.build_config.source.storage_source` during CreateFunction and UpdateFunction. Generation defaults to 0, as Cloud Storage provides a new generation only upon uploading a new object or version of an object.
695 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
696 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
697 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
698 &quot;sourceUploadUrl&quot;: &quot;A String&quot;, # When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.
699 },
700 &quot;uploadUrl&quot;: &quot;A String&quot;, # The generated Google Cloud Storage signed URL that should be used for a function source code upload. The uploaded file should be a zip archive which contains a function.
701 }</pre>
702 </div>
703
704 <div class="method">
705 <code class="details" id="get">get(name, revision=None, x__xgafv=None)</code>
706 <pre>Returns a function with the given name from the requested project.
707
708 Args:
709 name: string, Required. The name of the function which details should be obtained. (required)
710 revision: string, 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.
711 x__xgafv: string, V1 error format.
712 Allowed values
713 1 - v1 error format
714 2 - v2 error format
715
716 Returns:
717 An object of the form:
718
719 { # Describes a Cloud Function that contains user computation executed in response to an event. It encapsulates function and trigger configurations.
720 &quot;buildConfig&quot;: { # Describes the Build step of the function that builds a container from the given source. # Describes the Build step of the function that builds a container from the given source.
721 &quot;automaticUpdatePolicy&quot;: { # Security patches are applied automatically to the runtime without requiring the function to be redeployed.
722 },
723 &quot;build&quot;: &quot;A String&quot;, # Output only. The Cloud Build name of the latest successful deployment of the function.
724 &quot;dockerRegistry&quot;: &quot;A String&quot;, # Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. Deprecated: as of March 2025, `CONTAINER_REGISTRY` option is no longer available in response to Container Registry&#x27;s deprecation: https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr Please use Artifact Registry instead, which is the default choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.
725 &quot;dockerRepository&quot;: &quot;A String&quot;, # Repository in Artifact Registry to which the function docker image will be pushed after it is built by Cloud Build. If specified by user, it is created and managed by user with a customer managed encryption key. Otherwise, GCF will create and use a repository named &#x27;gcf-artifacts&#x27; for every deployed region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Repository format must be &#x27;DOCKER&#x27;.
726 &quot;entryPoint&quot;: &quot;A String&quot;, # The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named &quot;function&quot;. For Node.js this is name of a function exported by the module specified in `source_location`.
727 &quot;environmentVariables&quot;: { # User-provided build-time environment variables for the function
728 &quot;a_key&quot;: &quot;A String&quot;,
729 },
730 &quot;onDeployUpdatePolicy&quot;: { # Security patches are only applied when a function is redeployed.
731 &quot;runtimeVersion&quot;: &quot;A String&quot;, # Output only. contains the runtime version which was used during latest function deployment.
732 },
733 &quot;runtime&quot;: &quot;A String&quot;, # 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).
734 &quot;serviceAccount&quot;: &quot;A String&quot;, # Service account to be used for building the container. The format of this field is `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.
735 &quot;source&quot;: { # The location of the function source code. # The location of the function source code.
736 &quot;gitUri&quot;: &quot;A String&quot;, # If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com///blob//
737 &quot;repoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # If provided, get the source from this location in a Cloud Source Repository.
738 &quot;branchName&quot;: &quot;A String&quot;, # 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
739 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
740 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution. eg. helloworld (no leading slash allowed)
741 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
742 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
743 &quot;tagName&quot;: &quot;A String&quot;, # 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
744 },
745 &quot;storageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in Google Cloud Storage.
746 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
747 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
748 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
749 &quot;sourceUploadUrl&quot;: &quot;A String&quot;, # When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.
750 },
751 },
752 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that some source was used for this build. # Output only. A permanent fixed identifier for source.
753 &quot;gitUri&quot;: &quot;A String&quot;, # A copy of the build&#x27;s `source.git_uri`, if exists, with any commits resolved.
754 &quot;resolvedRepoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # A copy of the build&#x27;s `source.repo_source`, if exists, with any revisions resolved.
755 &quot;branchName&quot;: &quot;A String&quot;, # 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
756 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
757 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution. eg. helloworld (no leading slash allowed)
758 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
759 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
760 &quot;tagName&quot;: &quot;A String&quot;, # 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
761 },
762 &quot;resolvedStorageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # A copy of the build&#x27;s `source.storage_source`, if exists, with any generations resolved.
763 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
764 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
765 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
766 &quot;sourceUploadUrl&quot;: &quot;A String&quot;, # When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.
767 },
768 },
769 &quot;sourceToken&quot;: &quot;A String&quot;, # An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
770 &quot;workerPool&quot;: &quot;A String&quot;, # 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 ([email protected]) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project.
771 },
772 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The create timestamp of a Cloud Function. This is only applicable to 2nd Gen functions.
773 &quot;description&quot;: &quot;A String&quot;, # User-provided description of a function.
774 &quot;environment&quot;: &quot;A String&quot;, # Describe whether the function is 1st Gen or 2nd Gen.
775 &quot;eventTrigger&quot;: { # Describes EventTrigger, used to request events to be sent from another service. # An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.
776 &quot;channel&quot;: &quot;A String&quot;, # Optional. The name of the channel associated with the trigger in `projects/{project}/locations/{location}/channels/{channel}` format. You must provide a channel to receive events from Eventarc SaaS partners.
777 &quot;eventFilters&quot;: [ # Criteria used to filter events.
778 { # Filters events based on exact matches on the CloudEvents attributes.
779 &quot;attribute&quot;: &quot;A String&quot;, # Required. The name of a CloudEvents attribute.
780 &quot;operator&quot;: &quot;A String&quot;, # Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is `match-path-pattern`.
781 &quot;value&quot;: &quot;A String&quot;, # Required. The value for the attribute.
782 },
783 ],
784 &quot;eventType&quot;: &quot;A String&quot;, # Required. The type of event to observe. For example: `google.cloud.audit.log.v1.written` or `google.cloud.pubsub.topic.v1.messagePublished`.
785 &quot;pubsubTopic&quot;: &quot;A String&quot;, # Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format: `projects/{project}/topics/{topic}`. This is only valid for events of type `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here will not be deleted at function deletion.
786 &quot;retryPolicy&quot;: &quot;A String&quot;, # Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
787 &quot;service&quot;: &quot;A String&quot;, # Optional. The hostname of the service that 1st Gen function should be observed. If no string is provided, the default service implementing the API will be used. For example, `storage.googleapis.com` is the default for all event types in the `google.storage` namespace. The field is only applicable to 1st Gen functions.
788 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Optional. The email of the trigger&#x27;s service account. The service account must have permission to invoke Cloud Run services, the permission is `run.routes.invoke`. If empty, defaults to the Compute Engine default service account: `{project_number}[email protected]`.
789 &quot;trigger&quot;: &quot;A String&quot;, # Output only. The resource name of the Eventarc trigger. The format of this field is `projects/{project}/locations/{region}/triggers/{trigger}`.
790 &quot;triggerRegion&quot;: &quot;A String&quot;, # The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
791 },
792 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
793 &quot;labels&quot;: { # Labels associated with this Cloud Function.
794 &quot;a_key&quot;: &quot;A String&quot;,
795 },
796 &quot;name&quot;: &quot;A String&quot;, # A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*`
797 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
798 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
799 &quot;serviceConfig&quot;: { # Describes the Service being deployed. Currently Supported : Cloud Run (fully managed). # Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
800 &quot;allTrafficOnLatestRevision&quot;: True or False, # Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.
801 &quot;availableCpu&quot;: &quot;A String&quot;, # The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: &quot;1&quot; indicates 1 vCPU
802 &quot;availableMemory&quot;: &quot;A String&quot;, # The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.
803 &quot;binaryAuthorizationPolicy&quot;: &quot;A String&quot;, # Optional. The binary authorization policy to be checked when deploying the Cloud Run service.
804 &quot;directVpcEgress&quot;: &quot;A String&quot;, # Optional. Egress settings for direct VPC. If not provided, it defaults to VPC_EGRESS_PRIVATE_RANGES_ONLY.
805 &quot;directVpcNetworkInterface&quot;: [ # Optional. The Direct VPC network interface for the Cloud Function. Currently only a single Direct VPC is supported.
806 { # The Direct VPC network interface. This is mutually exclusive with VPC Connector.
807 &quot;network&quot;: &quot;A String&quot;, # Optional. The name of the VPC network to which the function will be connected. Specify either a VPC network or a subnet, or both. If you specify only a network, the subnet uses the same name as the network.
808 &quot;subnetwork&quot;: &quot;A String&quot;, # Optional. The name of the VPC subnetwork that the Cloud Function resource will get IPs from. Specify either a VPC network or a subnet, or both. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used.
809 &quot;tags&quot;: [ # Optional. Network tags applied to this Cloud Function resource.
810 &quot;A String&quot;,
811 ],
812 },
813 ],
814 &quot;environmentVariables&quot;: { # Environment variables that shall be available during function execution.
815 &quot;a_key&quot;: &quot;A String&quot;,
816 },
817 &quot;ingressSettings&quot;: &quot;A String&quot;, # The ingress settings for the function, controlling what traffic can reach it.
818 &quot;maxInstanceCount&quot;: 42, # The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the [Max Instances](https://cloud.google.com/functions/docs/max-instances) Guide for more details.
819 &quot;maxInstanceRequestConcurrency&quot;: 42, # Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
820 &quot;minInstanceCount&quot;: 42, # The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.
821 &quot;revision&quot;: &quot;A String&quot;, # Output only. The name of service revision.
822 &quot;secretEnvironmentVariables&quot;: [ # Secret environment variables configuration.
823 { # Configuration for a secret environment variable. It has the information necessary to fetch the secret value from secret manager and expose it as an environment variable.
824 &quot;key&quot;: &quot;A String&quot;, # Name of the environment variable.
825 &quot;projectId&quot;: &quot;A String&quot;, # Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
826 &quot;secret&quot;: &quot;A String&quot;, # Name of the secret in secret manager (not the full resource name).
827 &quot;version&quot;: &quot;A String&quot;, # Version of the secret (version number or the string &#x27;latest&#x27;). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new instances start.
828 },
829 ],
830 &quot;secretVolumes&quot;: [ # Secret volumes configuration.
831 { # Configuration for a secret volume. It has the information necessary to fetch the secret value from secret manager and make it available as files mounted at the requested paths within the application container.
832 &quot;mountPath&quot;: &quot;A String&quot;, # The path within the container to mount the secret volume. For example, setting the mount_path as `/etc/secrets` would mount the secret value files under the `/etc/secrets` directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount path: /etc/secrets
833 &quot;projectId&quot;: &quot;A String&quot;, # Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
834 &quot;secret&quot;: &quot;A String&quot;, # Name of the secret in secret manager (not the full resource name).
835 &quot;versions&quot;: [ # List of secret versions to mount for this secret. If empty, the `latest` version of the secret will be made available in a file named after the secret under the mount point.
836 { # Configuration for a single version.
837 &quot;path&quot;: &quot;A String&quot;, # Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as &#x27;/etc/secrets&#x27; and path as `secret_foo` would mount the secret value file at `/etc/secrets/secret_foo`.
838 &quot;version&quot;: &quot;A String&quot;, # Version of the secret (version number or the string &#x27;latest&#x27;). It is preferable to use `latest` version with secret volumes as secret value changes are reflected immediately.
839 },
840 ],
841 },
842 ],
843 &quot;securityLevel&quot;: &quot;A String&quot;, # Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.
844 &quot;service&quot;: &quot;A String&quot;, # Output only. Name of the service associated with a Function. The format of this field is `projects/{project}/locations/{region}/services/{service}`
845 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email of the service&#x27;s service account. If empty, defaults to `{project_number}[email protected]`.
846 &quot;timeoutSeconds&quot;: 42, # The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
847 &quot;uri&quot;: &quot;A String&quot;, # Output only. URI of the Service deployed.
848 &quot;vpcConnector&quot;: &quot;A String&quot;, # The Serverless VPC Access connector that this cloud function can connect to. The format of this field is `projects/*/locations/*/connectors/*`.
849 &quot;vpcConnectorEgressSettings&quot;: &quot;A String&quot;, # The egress settings for the connector, controlling what traffic is diverted through it.
850 },
851 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the function.
852 &quot;stateMessages&quot;: [ # Output only. State Messages for this Cloud Function.
853 { # Informational messages about the state of the Cloud Function or Operation.
854 &quot;message&quot;: &quot;A String&quot;, # The message.
855 &quot;severity&quot;: &quot;A String&quot;, # Severity of the state message.
856 &quot;type&quot;: &quot;A String&quot;, # One-word CamelCase type of the state message.
857 },
858 ],
859 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of a Cloud Function.
860 &quot;upgradeInfo&quot;: { # Information related to: * A function&#x27;s eligibility for 1st Gen to 2nd Gen migration. * Current state of migration for function undergoing migration. # Output only. UpgradeInfo for this Cloud Function
861 &quot;buildConfig&quot;: { # Describes the Build step of the function that builds a container from the given source. # Describes the Build step of the function that builds a container to prepare for 2nd gen upgrade.
862 &quot;automaticUpdatePolicy&quot;: { # Security patches are applied automatically to the runtime without requiring the function to be redeployed.
863 },
864 &quot;build&quot;: &quot;A String&quot;, # Output only. The Cloud Build name of the latest successful deployment of the function.
865 &quot;dockerRegistry&quot;: &quot;A String&quot;, # Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. Deprecated: as of March 2025, `CONTAINER_REGISTRY` option is no longer available in response to Container Registry&#x27;s deprecation: https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr Please use Artifact Registry instead, which is the default choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.
866 &quot;dockerRepository&quot;: &quot;A String&quot;, # Repository in Artifact Registry to which the function docker image will be pushed after it is built by Cloud Build. If specified by user, it is created and managed by user with a customer managed encryption key. Otherwise, GCF will create and use a repository named &#x27;gcf-artifacts&#x27; for every deployed region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Repository format must be &#x27;DOCKER&#x27;.
867 &quot;entryPoint&quot;: &quot;A String&quot;, # The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named &quot;function&quot;. For Node.js this is name of a function exported by the module specified in `source_location`.
868 &quot;environmentVariables&quot;: { # User-provided build-time environment variables for the function
869 &quot;a_key&quot;: &quot;A String&quot;,
870 },
871 &quot;onDeployUpdatePolicy&quot;: { # Security patches are only applied when a function is redeployed.
872 &quot;runtimeVersion&quot;: &quot;A String&quot;, # Output only. contains the runtime version which was used during latest function deployment.
873 },
874 &quot;runtime&quot;: &quot;A String&quot;, # 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).
875 &quot;serviceAccount&quot;: &quot;A String&quot;, # Service account to be used for building the container. The format of this field is `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.
876 &quot;source&quot;: { # The location of the function source code. # The location of the function source code.
877 &quot;gitUri&quot;: &quot;A String&quot;, # If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com///blob//
878 &quot;repoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # If provided, get the source from this location in a Cloud Source Repository.
879 &quot;branchName&quot;: &quot;A String&quot;, # 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
880 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
881 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution. eg. helloworld (no leading slash allowed)
882 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
883 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
884 &quot;tagName&quot;: &quot;A String&quot;, # 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
885 },
886 &quot;storageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in Google Cloud Storage.
887 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
888 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
889 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
890 &quot;sourceUploadUrl&quot;: &quot;A String&quot;, # When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.
891 },
892 },
893 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that some source was used for this build. # Output only. A permanent fixed identifier for source.
894 &quot;gitUri&quot;: &quot;A String&quot;, # A copy of the build&#x27;s `source.git_uri`, if exists, with any commits resolved.
895 &quot;resolvedRepoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # A copy of the build&#x27;s `source.repo_source`, if exists, with any revisions resolved.
896 &quot;branchName&quot;: &quot;A String&quot;, # 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
897 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
898 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution. eg. helloworld (no leading slash allowed)
899 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
900 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
901 &quot;tagName&quot;: &quot;A String&quot;, # 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
902 },
903 &quot;resolvedStorageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # A copy of the build&#x27;s `source.storage_source`, if exists, with any generations resolved.
904 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
905 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
906 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
907 &quot;sourceUploadUrl&quot;: &quot;A String&quot;, # When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.
908 },
909 },
910 &quot;sourceToken&quot;: &quot;A String&quot;, # An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
911 &quot;workerPool&quot;: &quot;A String&quot;, # 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 ([email protected]) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project.
912 },
913 &quot;eventTrigger&quot;: { # Describes EventTrigger, used to request events to be sent from another service. # Describes the Event trigger which has been setup to prepare for 2nd gen upgrade.
914 &quot;channel&quot;: &quot;A String&quot;, # Optional. The name of the channel associated with the trigger in `projects/{project}/locations/{location}/channels/{channel}` format. You must provide a channel to receive events from Eventarc SaaS partners.
915 &quot;eventFilters&quot;: [ # Criteria used to filter events.
916 { # Filters events based on exact matches on the CloudEvents attributes.
917 &quot;attribute&quot;: &quot;A String&quot;, # Required. The name of a CloudEvents attribute.
918 &quot;operator&quot;: &quot;A String&quot;, # Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is `match-path-pattern`.
919 &quot;value&quot;: &quot;A String&quot;, # Required. The value for the attribute.
920 },
921 ],
922 &quot;eventType&quot;: &quot;A String&quot;, # Required. The type of event to observe. For example: `google.cloud.audit.log.v1.written` or `google.cloud.pubsub.topic.v1.messagePublished`.
923 &quot;pubsubTopic&quot;: &quot;A String&quot;, # Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format: `projects/{project}/topics/{topic}`. This is only valid for events of type `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here will not be deleted at function deletion.
924 &quot;retryPolicy&quot;: &quot;A String&quot;, # Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
925 &quot;service&quot;: &quot;A String&quot;, # Optional. The hostname of the service that 1st Gen function should be observed. If no string is provided, the default service implementing the API will be used. For example, `storage.googleapis.com` is the default for all event types in the `google.storage` namespace. The field is only applicable to 1st Gen functions.
926 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Optional. The email of the trigger&#x27;s service account. The service account must have permission to invoke Cloud Run services, the permission is `run.routes.invoke`. If empty, defaults to the Compute Engine default service account: `{project_number}[email protected]`.
927 &quot;trigger&quot;: &quot;A String&quot;, # Output only. The resource name of the Eventarc trigger. The format of this field is `projects/{project}/locations/{region}/triggers/{trigger}`.
928 &quot;triggerRegion&quot;: &quot;A String&quot;, # The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
929 },
930 &quot;serviceConfig&quot;: { # Describes the Service being deployed. Currently Supported : Cloud Run (fully managed). # Describes the Cloud Run service which has been setup to prepare for 2nd gen upgrade.
931 &quot;allTrafficOnLatestRevision&quot;: True or False, # Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.
932 &quot;availableCpu&quot;: &quot;A String&quot;, # The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: &quot;1&quot; indicates 1 vCPU
933 &quot;availableMemory&quot;: &quot;A String&quot;, # The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.
934 &quot;binaryAuthorizationPolicy&quot;: &quot;A String&quot;, # Optional. The binary authorization policy to be checked when deploying the Cloud Run service.
935 &quot;directVpcEgress&quot;: &quot;A String&quot;, # Optional. Egress settings for direct VPC. If not provided, it defaults to VPC_EGRESS_PRIVATE_RANGES_ONLY.
936 &quot;directVpcNetworkInterface&quot;: [ # Optional. The Direct VPC network interface for the Cloud Function. Currently only a single Direct VPC is supported.
937 { # The Direct VPC network interface. This is mutually exclusive with VPC Connector.
938 &quot;network&quot;: &quot;A String&quot;, # Optional. The name of the VPC network to which the function will be connected. Specify either a VPC network or a subnet, or both. If you specify only a network, the subnet uses the same name as the network.
939 &quot;subnetwork&quot;: &quot;A String&quot;, # Optional. The name of the VPC subnetwork that the Cloud Function resource will get IPs from. Specify either a VPC network or a subnet, or both. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used.
940 &quot;tags&quot;: [ # Optional. Network tags applied to this Cloud Function resource.
941 &quot;A String&quot;,
942 ],
943 },
944 ],
945 &quot;environmentVariables&quot;: { # Environment variables that shall be available during function execution.
946 &quot;a_key&quot;: &quot;A String&quot;,
947 },
948 &quot;ingressSettings&quot;: &quot;A String&quot;, # The ingress settings for the function, controlling what traffic can reach it.
949 &quot;maxInstanceCount&quot;: 42, # The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the [Max Instances](https://cloud.google.com/functions/docs/max-instances) Guide for more details.
950 &quot;maxInstanceRequestConcurrency&quot;: 42, # Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
951 &quot;minInstanceCount&quot;: 42, # The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.
952 &quot;revision&quot;: &quot;A String&quot;, # Output only. The name of service revision.
953 &quot;secretEnvironmentVariables&quot;: [ # Secret environment variables configuration.
954 { # Configuration for a secret environment variable. It has the information necessary to fetch the secret value from secret manager and expose it as an environment variable.
955 &quot;key&quot;: &quot;A String&quot;, # Name of the environment variable.
956 &quot;projectId&quot;: &quot;A String&quot;, # Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
957 &quot;secret&quot;: &quot;A String&quot;, # Name of the secret in secret manager (not the full resource name).
958 &quot;version&quot;: &quot;A String&quot;, # Version of the secret (version number or the string &#x27;latest&#x27;). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new instances start.
959 },
960 ],
961 &quot;secretVolumes&quot;: [ # Secret volumes configuration.
962 { # Configuration for a secret volume. It has the information necessary to fetch the secret value from secret manager and make it available as files mounted at the requested paths within the application container.
963 &quot;mountPath&quot;: &quot;A String&quot;, # The path within the container to mount the secret volume. For example, setting the mount_path as `/etc/secrets` would mount the secret value files under the `/etc/secrets` directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount path: /etc/secrets
964 &quot;projectId&quot;: &quot;A String&quot;, # Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
965 &quot;secret&quot;: &quot;A String&quot;, # Name of the secret in secret manager (not the full resource name).
966 &quot;versions&quot;: [ # List of secret versions to mount for this secret. If empty, the `latest` version of the secret will be made available in a file named after the secret under the mount point.
967 { # Configuration for a single version.
968 &quot;path&quot;: &quot;A String&quot;, # Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as &#x27;/etc/secrets&#x27; and path as `secret_foo` would mount the secret value file at `/etc/secrets/secret_foo`.
969 &quot;version&quot;: &quot;A String&quot;, # Version of the secret (version number or the string &#x27;latest&#x27;). It is preferable to use `latest` version with secret volumes as secret value changes are reflected immediately.
970 },
971 ],
972 },
973 ],
974 &quot;securityLevel&quot;: &quot;A String&quot;, # Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.
975 &quot;service&quot;: &quot;A String&quot;, # Output only. Name of the service associated with a Function. The format of this field is `projects/{project}/locations/{region}/services/{service}`
976 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email of the service&#x27;s service account. If empty, defaults to `{project_number}[email protected]`.
977 &quot;timeoutSeconds&quot;: 42, # The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
978 &quot;uri&quot;: &quot;A String&quot;, # Output only. URI of the Service deployed.
979 &quot;vpcConnector&quot;: &quot;A String&quot;, # The Serverless VPC Access connector that this cloud function can connect to. The format of this field is `projects/*/locations/*/connectors/*`.
980 &quot;vpcConnectorEgressSettings&quot;: &quot;A String&quot;, # The egress settings for the connector, controlling what traffic is diverted through it.
981 },
982 &quot;upgradeState&quot;: &quot;A String&quot;, # UpgradeState of the function
983 },
984 &quot;url&quot;: &quot;A String&quot;, # Output only. The deployed url for the function.
985 }</pre>
986 </div>
987
988 <div class="method">
989 <code class="details" id="getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</code>
990 <pre>Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
991
992 Args:
993 resource: string, 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. (required)
994 options_requestedPolicyVersion: integer, 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).
995 x__xgafv: string, V1 error format.
996 Allowed values
997 1 - v1 error format
998 2 - v2 error format
999
1000 Returns:
1001 An object of the form:
1002
1003 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot;, &quot;group:[email protected]&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:[email protected]&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } ``` **YAML example:** ``` bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
1004 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1005 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { &quot;audit_configs&quot;: [ { &quot;service&quot;: &quot;allServices&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:[email protected]&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; }, { &quot;log_type&quot;: &quot;ADMIN_READ&quot; } ] }, { &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot; }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, &quot;exempted_members&quot;: [ &quot;user:[email protected]&quot; ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `[email protected]` from DATA_READ logging, and `[email protected]` from DATA_WRITE logging.
1006 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1007 { # Provides the configuration for logging a type of permissions. Example: { &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:[email protected]&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; } ] } This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting [email protected] from DATA_READ logging.
1008 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
1009 &quot;A String&quot;,
1010 ],
1011 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
1012 },
1013 ],
1014 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
1015 },
1016 ],
1017 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:[email protected]`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
1018 { # Associates `members`, or principals, with a `role`.
1019 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1020 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
1021 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1022 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
1023 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
1024 },
1025 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `[email protected]`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
1026 &quot;A String&quot;,
1027 ],
1028 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).
1029 },
1030 ],
1031 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **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.
1032 &quot;version&quot;: 42, # 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).
1033 }</pre>
1034 </div>
1035
1036 <div class="method">
1037 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
1038 <pre>Returns a list of functions that belong to the requested project.
1039
1040 Args:
1041 parent: string, 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 &quot;-&quot; 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. (required)
1042 filter: string, The filter for Functions that match the filter expression, following the syntax outlined in https://google.aip.dev/160.
1043 orderBy: string, 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.
1044 pageSize: integer, 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.
1045 pageToken: string, 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.
1046 x__xgafv: string, V1 error format.
1047 Allowed values
1048 1 - v1 error format
1049 2 - v2 error format
1050
1051 Returns:
1052 An object of the form:
1053
1054 { # Response for the `ListFunctions` method.
1055 &quot;functions&quot;: [ # The functions that match the request.
1056 { # Describes a Cloud Function that contains user computation executed in response to an event. It encapsulates function and trigger configurations.
1057 &quot;buildConfig&quot;: { # Describes the Build step of the function that builds a container from the given source. # Describes the Build step of the function that builds a container from the given source.
1058 &quot;automaticUpdatePolicy&quot;: { # Security patches are applied automatically to the runtime without requiring the function to be redeployed.
1059 },
1060 &quot;build&quot;: &quot;A String&quot;, # Output only. The Cloud Build name of the latest successful deployment of the function.
1061 &quot;dockerRegistry&quot;: &quot;A String&quot;, # Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. Deprecated: as of March 2025, `CONTAINER_REGISTRY` option is no longer available in response to Container Registry&#x27;s deprecation: https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr Please use Artifact Registry instead, which is the default choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.
1062 &quot;dockerRepository&quot;: &quot;A String&quot;, # Repository in Artifact Registry to which the function docker image will be pushed after it is built by Cloud Build. If specified by user, it is created and managed by user with a customer managed encryption key. Otherwise, GCF will create and use a repository named &#x27;gcf-artifacts&#x27; for every deployed region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Repository format must be &#x27;DOCKER&#x27;.
1063 &quot;entryPoint&quot;: &quot;A String&quot;, # The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named &quot;function&quot;. For Node.js this is name of a function exported by the module specified in `source_location`.
1064 &quot;environmentVariables&quot;: { # User-provided build-time environment variables for the function
1065 &quot;a_key&quot;: &quot;A String&quot;,
1066 },
1067 &quot;onDeployUpdatePolicy&quot;: { # Security patches are only applied when a function is redeployed.
1068 &quot;runtimeVersion&quot;: &quot;A String&quot;, # Output only. contains the runtime version which was used during latest function deployment.
1069 },
1070 &quot;runtime&quot;: &quot;A String&quot;, # 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).
1071 &quot;serviceAccount&quot;: &quot;A String&quot;, # Service account to be used for building the container. The format of this field is `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.
1072 &quot;source&quot;: { # The location of the function source code. # The location of the function source code.
1073 &quot;gitUri&quot;: &quot;A String&quot;, # If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com///blob//
1074 &quot;repoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # If provided, get the source from this location in a Cloud Source Repository.
1075 &quot;branchName&quot;: &quot;A String&quot;, # 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
1076 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1077 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution. eg. helloworld (no leading slash allowed)
1078 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
1079 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
1080 &quot;tagName&quot;: &quot;A String&quot;, # 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
1081 },
1082 &quot;storageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in Google Cloud Storage.
1083 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1084 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
1085 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
1086 &quot;sourceUploadUrl&quot;: &quot;A String&quot;, # When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.
1087 },
1088 },
1089 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that some source was used for this build. # Output only. A permanent fixed identifier for source.
1090 &quot;gitUri&quot;: &quot;A String&quot;, # A copy of the build&#x27;s `source.git_uri`, if exists, with any commits resolved.
1091 &quot;resolvedRepoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # A copy of the build&#x27;s `source.repo_source`, if exists, with any revisions resolved.
1092 &quot;branchName&quot;: &quot;A String&quot;, # 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
1093 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1094 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution. eg. helloworld (no leading slash allowed)
1095 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
1096 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
1097 &quot;tagName&quot;: &quot;A String&quot;, # 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
1098 },
1099 &quot;resolvedStorageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # A copy of the build&#x27;s `source.storage_source`, if exists, with any generations resolved.
1100 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1101 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
1102 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
1103 &quot;sourceUploadUrl&quot;: &quot;A String&quot;, # When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.
1104 },
1105 },
1106 &quot;sourceToken&quot;: &quot;A String&quot;, # An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
1107 &quot;workerPool&quot;: &quot;A String&quot;, # 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 ([email protected]) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project.
1108 },
1109 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The create timestamp of a Cloud Function. This is only applicable to 2nd Gen functions.
1110 &quot;description&quot;: &quot;A String&quot;, # User-provided description of a function.
1111 &quot;environment&quot;: &quot;A String&quot;, # Describe whether the function is 1st Gen or 2nd Gen.
1112 &quot;eventTrigger&quot;: { # Describes EventTrigger, used to request events to be sent from another service. # An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.
1113 &quot;channel&quot;: &quot;A String&quot;, # Optional. The name of the channel associated with the trigger in `projects/{project}/locations/{location}/channels/{channel}` format. You must provide a channel to receive events from Eventarc SaaS partners.
1114 &quot;eventFilters&quot;: [ # Criteria used to filter events.
1115 { # Filters events based on exact matches on the CloudEvents attributes.
1116 &quot;attribute&quot;: &quot;A String&quot;, # Required. The name of a CloudEvents attribute.
1117 &quot;operator&quot;: &quot;A String&quot;, # Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is `match-path-pattern`.
1118 &quot;value&quot;: &quot;A String&quot;, # Required. The value for the attribute.
1119 },
1120 ],
1121 &quot;eventType&quot;: &quot;A String&quot;, # Required. The type of event to observe. For example: `google.cloud.audit.log.v1.written` or `google.cloud.pubsub.topic.v1.messagePublished`.
1122 &quot;pubsubTopic&quot;: &quot;A String&quot;, # Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format: `projects/{project}/topics/{topic}`. This is only valid for events of type `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here will not be deleted at function deletion.
1123 &quot;retryPolicy&quot;: &quot;A String&quot;, # Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
1124 &quot;service&quot;: &quot;A String&quot;, # Optional. The hostname of the service that 1st Gen function should be observed. If no string is provided, the default service implementing the API will be used. For example, `storage.googleapis.com` is the default for all event types in the `google.storage` namespace. The field is only applicable to 1st Gen functions.
1125 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Optional. The email of the trigger&#x27;s service account. The service account must have permission to invoke Cloud Run services, the permission is `run.routes.invoke`. If empty, defaults to the Compute Engine default service account: `{project_number}[email protected]`.
1126 &quot;trigger&quot;: &quot;A String&quot;, # Output only. The resource name of the Eventarc trigger. The format of this field is `projects/{project}/locations/{region}/triggers/{trigger}`.
1127 &quot;triggerRegion&quot;: &quot;A String&quot;, # The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
1128 },
1129 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
1130 &quot;labels&quot;: { # Labels associated with this Cloud Function.
1131 &quot;a_key&quot;: &quot;A String&quot;,
1132 },
1133 &quot;name&quot;: &quot;A String&quot;, # A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*`
1134 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
1135 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
1136 &quot;serviceConfig&quot;: { # Describes the Service being deployed. Currently Supported : Cloud Run (fully managed). # Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
1137 &quot;allTrafficOnLatestRevision&quot;: True or False, # Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.
1138 &quot;availableCpu&quot;: &quot;A String&quot;, # The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: &quot;1&quot; indicates 1 vCPU
1139 &quot;availableMemory&quot;: &quot;A String&quot;, # The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.
1140 &quot;binaryAuthorizationPolicy&quot;: &quot;A String&quot;, # Optional. The binary authorization policy to be checked when deploying the Cloud Run service.
1141 &quot;directVpcEgress&quot;: &quot;A String&quot;, # Optional. Egress settings for direct VPC. If not provided, it defaults to VPC_EGRESS_PRIVATE_RANGES_ONLY.
1142 &quot;directVpcNetworkInterface&quot;: [ # Optional. The Direct VPC network interface for the Cloud Function. Currently only a single Direct VPC is supported.
1143 { # The Direct VPC network interface. This is mutually exclusive with VPC Connector.
1144 &quot;network&quot;: &quot;A String&quot;, # Optional. The name of the VPC network to which the function will be connected. Specify either a VPC network or a subnet, or both. If you specify only a network, the subnet uses the same name as the network.
1145 &quot;subnetwork&quot;: &quot;A String&quot;, # Optional. The name of the VPC subnetwork that the Cloud Function resource will get IPs from. Specify either a VPC network or a subnet, or both. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used.
1146 &quot;tags&quot;: [ # Optional. Network tags applied to this Cloud Function resource.
1147 &quot;A String&quot;,
1148 ],
1149 },
1150 ],
1151 &quot;environmentVariables&quot;: { # Environment variables that shall be available during function execution.
1152 &quot;a_key&quot;: &quot;A String&quot;,
1153 },
1154 &quot;ingressSettings&quot;: &quot;A String&quot;, # The ingress settings for the function, controlling what traffic can reach it.
1155 &quot;maxInstanceCount&quot;: 42, # The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the [Max Instances](https://cloud.google.com/functions/docs/max-instances) Guide for more details.
1156 &quot;maxInstanceRequestConcurrency&quot;: 42, # Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
1157 &quot;minInstanceCount&quot;: 42, # The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.
1158 &quot;revision&quot;: &quot;A String&quot;, # Output only. The name of service revision.
1159 &quot;secretEnvironmentVariables&quot;: [ # Secret environment variables configuration.
1160 { # Configuration for a secret environment variable. It has the information necessary to fetch the secret value from secret manager and expose it as an environment variable.
1161 &quot;key&quot;: &quot;A String&quot;, # Name of the environment variable.
1162 &quot;projectId&quot;: &quot;A String&quot;, # Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
1163 &quot;secret&quot;: &quot;A String&quot;, # Name of the secret in secret manager (not the full resource name).
1164 &quot;version&quot;: &quot;A String&quot;, # Version of the secret (version number or the string &#x27;latest&#x27;). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new instances start.
1165 },
1166 ],
1167 &quot;secretVolumes&quot;: [ # Secret volumes configuration.
1168 { # Configuration for a secret volume. It has the information necessary to fetch the secret value from secret manager and make it available as files mounted at the requested paths within the application container.
1169 &quot;mountPath&quot;: &quot;A String&quot;, # The path within the container to mount the secret volume. For example, setting the mount_path as `/etc/secrets` would mount the secret value files under the `/etc/secrets` directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount path: /etc/secrets
1170 &quot;projectId&quot;: &quot;A String&quot;, # Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
1171 &quot;secret&quot;: &quot;A String&quot;, # Name of the secret in secret manager (not the full resource name).
1172 &quot;versions&quot;: [ # List of secret versions to mount for this secret. If empty, the `latest` version of the secret will be made available in a file named after the secret under the mount point.
1173 { # Configuration for a single version.
1174 &quot;path&quot;: &quot;A String&quot;, # Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as &#x27;/etc/secrets&#x27; and path as `secret_foo` would mount the secret value file at `/etc/secrets/secret_foo`.
1175 &quot;version&quot;: &quot;A String&quot;, # Version of the secret (version number or the string &#x27;latest&#x27;). It is preferable to use `latest` version with secret volumes as secret value changes are reflected immediately.
1176 },
1177 ],
1178 },
1179 ],
1180 &quot;securityLevel&quot;: &quot;A String&quot;, # Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.
1181 &quot;service&quot;: &quot;A String&quot;, # Output only. Name of the service associated with a Function. The format of this field is `projects/{project}/locations/{region}/services/{service}`
1182 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email of the service&#x27;s service account. If empty, defaults to `{project_number}[email protected]`.
1183 &quot;timeoutSeconds&quot;: 42, # The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
1184 &quot;uri&quot;: &quot;A String&quot;, # Output only. URI of the Service deployed.
1185 &quot;vpcConnector&quot;: &quot;A String&quot;, # The Serverless VPC Access connector that this cloud function can connect to. The format of this field is `projects/*/locations/*/connectors/*`.
1186 &quot;vpcConnectorEgressSettings&quot;: &quot;A String&quot;, # The egress settings for the connector, controlling what traffic is diverted through it.
1187 },
1188 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the function.
1189 &quot;stateMessages&quot;: [ # Output only. State Messages for this Cloud Function.
1190 { # Informational messages about the state of the Cloud Function or Operation.
1191 &quot;message&quot;: &quot;A String&quot;, # The message.
1192 &quot;severity&quot;: &quot;A String&quot;, # Severity of the state message.
1193 &quot;type&quot;: &quot;A String&quot;, # One-word CamelCase type of the state message.
1194 },
1195 ],
1196 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of a Cloud Function.
1197 &quot;upgradeInfo&quot;: { # Information related to: * A function&#x27;s eligibility for 1st Gen to 2nd Gen migration. * Current state of migration for function undergoing migration. # Output only. UpgradeInfo for this Cloud Function
1198 &quot;buildConfig&quot;: { # Describes the Build step of the function that builds a container from the given source. # Describes the Build step of the function that builds a container to prepare for 2nd gen upgrade.
1199 &quot;automaticUpdatePolicy&quot;: { # Security patches are applied automatically to the runtime without requiring the function to be redeployed.
1200 },
1201 &quot;build&quot;: &quot;A String&quot;, # Output only. The Cloud Build name of the latest successful deployment of the function.
1202 &quot;dockerRegistry&quot;: &quot;A String&quot;, # Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. Deprecated: as of March 2025, `CONTAINER_REGISTRY` option is no longer available in response to Container Registry&#x27;s deprecation: https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr Please use Artifact Registry instead, which is the default choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.
1203 &quot;dockerRepository&quot;: &quot;A String&quot;, # Repository in Artifact Registry to which the function docker image will be pushed after it is built by Cloud Build. If specified by user, it is created and managed by user with a customer managed encryption key. Otherwise, GCF will create and use a repository named &#x27;gcf-artifacts&#x27; for every deployed region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Repository format must be &#x27;DOCKER&#x27;.
1204 &quot;entryPoint&quot;: &quot;A String&quot;, # The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named &quot;function&quot;. For Node.js this is name of a function exported by the module specified in `source_location`.
1205 &quot;environmentVariables&quot;: { # User-provided build-time environment variables for the function
1206 &quot;a_key&quot;: &quot;A String&quot;,
1207 },
1208 &quot;onDeployUpdatePolicy&quot;: { # Security patches are only applied when a function is redeployed.
1209 &quot;runtimeVersion&quot;: &quot;A String&quot;, # Output only. contains the runtime version which was used during latest function deployment.
1210 },
1211 &quot;runtime&quot;: &quot;A String&quot;, # 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).
1212 &quot;serviceAccount&quot;: &quot;A String&quot;, # Service account to be used for building the container. The format of this field is `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.
1213 &quot;source&quot;: { # The location of the function source code. # The location of the function source code.
1214 &quot;gitUri&quot;: &quot;A String&quot;, # If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com///blob//
1215 &quot;repoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # If provided, get the source from this location in a Cloud Source Repository.
1216 &quot;branchName&quot;: &quot;A String&quot;, # 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
1217 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1218 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution. eg. helloworld (no leading slash allowed)
1219 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
1220 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
1221 &quot;tagName&quot;: &quot;A String&quot;, # 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
1222 },
1223 &quot;storageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in Google Cloud Storage.
1224 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1225 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
1226 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
1227 &quot;sourceUploadUrl&quot;: &quot;A String&quot;, # When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.
1228 },
1229 },
1230 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that some source was used for this build. # Output only. A permanent fixed identifier for source.
1231 &quot;gitUri&quot;: &quot;A String&quot;, # A copy of the build&#x27;s `source.git_uri`, if exists, with any commits resolved.
1232 &quot;resolvedRepoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # A copy of the build&#x27;s `source.repo_source`, if exists, with any revisions resolved.
1233 &quot;branchName&quot;: &quot;A String&quot;, # 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
1234 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1235 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution. eg. helloworld (no leading slash allowed)
1236 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
1237 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
1238 &quot;tagName&quot;: &quot;A String&quot;, # 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
1239 },
1240 &quot;resolvedStorageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # A copy of the build&#x27;s `source.storage_source`, if exists, with any generations resolved.
1241 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1242 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
1243 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
1244 &quot;sourceUploadUrl&quot;: &quot;A String&quot;, # When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.
1245 },
1246 },
1247 &quot;sourceToken&quot;: &quot;A String&quot;, # An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
1248 &quot;workerPool&quot;: &quot;A String&quot;, # 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 ([email protected]) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project.
1249 },
1250 &quot;eventTrigger&quot;: { # Describes EventTrigger, used to request events to be sent from another service. # Describes the Event trigger which has been setup to prepare for 2nd gen upgrade.
1251 &quot;channel&quot;: &quot;A String&quot;, # Optional. The name of the channel associated with the trigger in `projects/{project}/locations/{location}/channels/{channel}` format. You must provide a channel to receive events from Eventarc SaaS partners.
1252 &quot;eventFilters&quot;: [ # Criteria used to filter events.
1253 { # Filters events based on exact matches on the CloudEvents attributes.
1254 &quot;attribute&quot;: &quot;A String&quot;, # Required. The name of a CloudEvents attribute.
1255 &quot;operator&quot;: &quot;A String&quot;, # Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is `match-path-pattern`.
1256 &quot;value&quot;: &quot;A String&quot;, # Required. The value for the attribute.
1257 },
1258 ],
1259 &quot;eventType&quot;: &quot;A String&quot;, # Required. The type of event to observe. For example: `google.cloud.audit.log.v1.written` or `google.cloud.pubsub.topic.v1.messagePublished`.
1260 &quot;pubsubTopic&quot;: &quot;A String&quot;, # Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format: `projects/{project}/topics/{topic}`. This is only valid for events of type `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here will not be deleted at function deletion.
1261 &quot;retryPolicy&quot;: &quot;A String&quot;, # Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
1262 &quot;service&quot;: &quot;A String&quot;, # Optional. The hostname of the service that 1st Gen function should be observed. If no string is provided, the default service implementing the API will be used. For example, `storage.googleapis.com` is the default for all event types in the `google.storage` namespace. The field is only applicable to 1st Gen functions.
1263 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Optional. The email of the trigger&#x27;s service account. The service account must have permission to invoke Cloud Run services, the permission is `run.routes.invoke`. If empty, defaults to the Compute Engine default service account: `{project_number}[email protected]`.
1264 &quot;trigger&quot;: &quot;A String&quot;, # Output only. The resource name of the Eventarc trigger. The format of this field is `projects/{project}/locations/{region}/triggers/{trigger}`.
1265 &quot;triggerRegion&quot;: &quot;A String&quot;, # The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
1266 },
1267 &quot;serviceConfig&quot;: { # Describes the Service being deployed. Currently Supported : Cloud Run (fully managed). # Describes the Cloud Run service which has been setup to prepare for 2nd gen upgrade.
1268 &quot;allTrafficOnLatestRevision&quot;: True or False, # Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.
1269 &quot;availableCpu&quot;: &quot;A String&quot;, # The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: &quot;1&quot; indicates 1 vCPU
1270 &quot;availableMemory&quot;: &quot;A String&quot;, # The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.
1271 &quot;binaryAuthorizationPolicy&quot;: &quot;A String&quot;, # Optional. The binary authorization policy to be checked when deploying the Cloud Run service.
1272 &quot;directVpcEgress&quot;: &quot;A String&quot;, # Optional. Egress settings for direct VPC. If not provided, it defaults to VPC_EGRESS_PRIVATE_RANGES_ONLY.
1273 &quot;directVpcNetworkInterface&quot;: [ # Optional. The Direct VPC network interface for the Cloud Function. Currently only a single Direct VPC is supported.
1274 { # The Direct VPC network interface. This is mutually exclusive with VPC Connector.
1275 &quot;network&quot;: &quot;A String&quot;, # Optional. The name of the VPC network to which the function will be connected. Specify either a VPC network or a subnet, or both. If you specify only a network, the subnet uses the same name as the network.
1276 &quot;subnetwork&quot;: &quot;A String&quot;, # Optional. The name of the VPC subnetwork that the Cloud Function resource will get IPs from. Specify either a VPC network or a subnet, or both. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used.
1277 &quot;tags&quot;: [ # Optional. Network tags applied to this Cloud Function resource.
1278 &quot;A String&quot;,
1279 ],
1280 },
1281 ],
1282 &quot;environmentVariables&quot;: { # Environment variables that shall be available during function execution.
1283 &quot;a_key&quot;: &quot;A String&quot;,
1284 },
1285 &quot;ingressSettings&quot;: &quot;A String&quot;, # The ingress settings for the function, controlling what traffic can reach it.
1286 &quot;maxInstanceCount&quot;: 42, # The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the [Max Instances](https://cloud.google.com/functions/docs/max-instances) Guide for more details.
1287 &quot;maxInstanceRequestConcurrency&quot;: 42, # Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
1288 &quot;minInstanceCount&quot;: 42, # The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.
1289 &quot;revision&quot;: &quot;A String&quot;, # Output only. The name of service revision.
1290 &quot;secretEnvironmentVariables&quot;: [ # Secret environment variables configuration.
1291 { # Configuration for a secret environment variable. It has the information necessary to fetch the secret value from secret manager and expose it as an environment variable.
1292 &quot;key&quot;: &quot;A String&quot;, # Name of the environment variable.
1293 &quot;projectId&quot;: &quot;A String&quot;, # Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
1294 &quot;secret&quot;: &quot;A String&quot;, # Name of the secret in secret manager (not the full resource name).
1295 &quot;version&quot;: &quot;A String&quot;, # Version of the secret (version number or the string &#x27;latest&#x27;). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new instances start.
1296 },
1297 ],
1298 &quot;secretVolumes&quot;: [ # Secret volumes configuration.
1299 { # Configuration for a secret volume. It has the information necessary to fetch the secret value from secret manager and make it available as files mounted at the requested paths within the application container.
1300 &quot;mountPath&quot;: &quot;A String&quot;, # The path within the container to mount the secret volume. For example, setting the mount_path as `/etc/secrets` would mount the secret value files under the `/etc/secrets` directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount path: /etc/secrets
1301 &quot;projectId&quot;: &quot;A String&quot;, # Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
1302 &quot;secret&quot;: &quot;A String&quot;, # Name of the secret in secret manager (not the full resource name).
1303 &quot;versions&quot;: [ # List of secret versions to mount for this secret. If empty, the `latest` version of the secret will be made available in a file named after the secret under the mount point.
1304 { # Configuration for a single version.
1305 &quot;path&quot;: &quot;A String&quot;, # Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as &#x27;/etc/secrets&#x27; and path as `secret_foo` would mount the secret value file at `/etc/secrets/secret_foo`.
1306 &quot;version&quot;: &quot;A String&quot;, # Version of the secret (version number or the string &#x27;latest&#x27;). It is preferable to use `latest` version with secret volumes as secret value changes are reflected immediately.
1307 },
1308 ],
1309 },
1310 ],
1311 &quot;securityLevel&quot;: &quot;A String&quot;, # Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.
1312 &quot;service&quot;: &quot;A String&quot;, # Output only. Name of the service associated with a Function. The format of this field is `projects/{project}/locations/{region}/services/{service}`
1313 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email of the service&#x27;s service account. If empty, defaults to `{project_number}[email protected]`.
1314 &quot;timeoutSeconds&quot;: 42, # The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
1315 &quot;uri&quot;: &quot;A String&quot;, # Output only. URI of the Service deployed.
1316 &quot;vpcConnector&quot;: &quot;A String&quot;, # The Serverless VPC Access connector that this cloud function can connect to. The format of this field is `projects/*/locations/*/connectors/*`.
1317 &quot;vpcConnectorEgressSettings&quot;: &quot;A String&quot;, # The egress settings for the connector, controlling what traffic is diverted through it.
1318 },
1319 &quot;upgradeState&quot;: &quot;A String&quot;, # UpgradeState of the function
1320 },
1321 &quot;url&quot;: &quot;A String&quot;, # Output only. The deployed url for the function.
1322 },
1323 ],
1324 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
1325 &quot;unreachable&quot;: [ # Locations that could not be reached. The response does not include any functions from these locations.
1326 &quot;A String&quot;,
1327 ],
1328 }</pre>
1329 </div>
1330
1331 <div class="method">
1332 <code class="details" id="list_next">list_next()</code>
1333 <pre>Retrieves the next page of results.
1334
1335 Args:
1336 previous_request: The request for the previous page. (required)
1337 previous_response: The response from the request for the previous page. (required)
1338
1339 Returns:
1340 A request object that you can call &#x27;execute()&#x27; on to request the next
1341 page. Returns None if there are no more items in the collection.
1342 </pre>
1343 </div>
1344
1345 <div class="method">
1346 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
1347 <pre>Updates existing function.
1348
1349 Args:
1350 name: string, A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*` (required)
1351 body: object, The request body.
1352 The object takes the form of:
1353
1354 { # Describes a Cloud Function that contains user computation executed in response to an event. It encapsulates function and trigger configurations.
1355 &quot;buildConfig&quot;: { # Describes the Build step of the function that builds a container from the given source. # Describes the Build step of the function that builds a container from the given source.
1356 &quot;automaticUpdatePolicy&quot;: { # Security patches are applied automatically to the runtime without requiring the function to be redeployed.
1357 },
1358 &quot;build&quot;: &quot;A String&quot;, # Output only. The Cloud Build name of the latest successful deployment of the function.
1359 &quot;dockerRegistry&quot;: &quot;A String&quot;, # Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. Deprecated: as of March 2025, `CONTAINER_REGISTRY` option is no longer available in response to Container Registry&#x27;s deprecation: https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr Please use Artifact Registry instead, which is the default choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.
1360 &quot;dockerRepository&quot;: &quot;A String&quot;, # Repository in Artifact Registry to which the function docker image will be pushed after it is built by Cloud Build. If specified by user, it is created and managed by user with a customer managed encryption key. Otherwise, GCF will create and use a repository named &#x27;gcf-artifacts&#x27; for every deployed region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Repository format must be &#x27;DOCKER&#x27;.
1361 &quot;entryPoint&quot;: &quot;A String&quot;, # The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named &quot;function&quot;. For Node.js this is name of a function exported by the module specified in `source_location`.
1362 &quot;environmentVariables&quot;: { # User-provided build-time environment variables for the function
1363 &quot;a_key&quot;: &quot;A String&quot;,
1364 },
1365 &quot;onDeployUpdatePolicy&quot;: { # Security patches are only applied when a function is redeployed.
1366 &quot;runtimeVersion&quot;: &quot;A String&quot;, # Output only. contains the runtime version which was used during latest function deployment.
1367 },
1368 &quot;runtime&quot;: &quot;A String&quot;, # 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).
1369 &quot;serviceAccount&quot;: &quot;A String&quot;, # Service account to be used for building the container. The format of this field is `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.
1370 &quot;source&quot;: { # The location of the function source code. # The location of the function source code.
1371 &quot;gitUri&quot;: &quot;A String&quot;, # If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com///blob//
1372 &quot;repoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # If provided, get the source from this location in a Cloud Source Repository.
1373 &quot;branchName&quot;: &quot;A String&quot;, # 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
1374 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1375 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution. eg. helloworld (no leading slash allowed)
1376 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
1377 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
1378 &quot;tagName&quot;: &quot;A String&quot;, # 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
1379 },
1380 &quot;storageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in Google Cloud Storage.
1381 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1382 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
1383 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
1384 &quot;sourceUploadUrl&quot;: &quot;A String&quot;, # When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.
1385 },
1386 },
1387 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that some source was used for this build. # Output only. A permanent fixed identifier for source.
1388 &quot;gitUri&quot;: &quot;A String&quot;, # A copy of the build&#x27;s `source.git_uri`, if exists, with any commits resolved.
1389 &quot;resolvedRepoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # A copy of the build&#x27;s `source.repo_source`, if exists, with any revisions resolved.
1390 &quot;branchName&quot;: &quot;A String&quot;, # 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
1391 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1392 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution. eg. helloworld (no leading slash allowed)
1393 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
1394 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
1395 &quot;tagName&quot;: &quot;A String&quot;, # 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
1396 },
1397 &quot;resolvedStorageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # A copy of the build&#x27;s `source.storage_source`, if exists, with any generations resolved.
1398 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1399 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
1400 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
1401 &quot;sourceUploadUrl&quot;: &quot;A String&quot;, # When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.
1402 },
1403 },
1404 &quot;sourceToken&quot;: &quot;A String&quot;, # An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
1405 &quot;workerPool&quot;: &quot;A String&quot;, # 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 ([email protected]) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project.
1406 },
1407 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The create timestamp of a Cloud Function. This is only applicable to 2nd Gen functions.
1408 &quot;description&quot;: &quot;A String&quot;, # User-provided description of a function.
1409 &quot;environment&quot;: &quot;A String&quot;, # Describe whether the function is 1st Gen or 2nd Gen.
1410 &quot;eventTrigger&quot;: { # Describes EventTrigger, used to request events to be sent from another service. # An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.
1411 &quot;channel&quot;: &quot;A String&quot;, # Optional. The name of the channel associated with the trigger in `projects/{project}/locations/{location}/channels/{channel}` format. You must provide a channel to receive events from Eventarc SaaS partners.
1412 &quot;eventFilters&quot;: [ # Criteria used to filter events.
1413 { # Filters events based on exact matches on the CloudEvents attributes.
1414 &quot;attribute&quot;: &quot;A String&quot;, # Required. The name of a CloudEvents attribute.
1415 &quot;operator&quot;: &quot;A String&quot;, # Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is `match-path-pattern`.
1416 &quot;value&quot;: &quot;A String&quot;, # Required. The value for the attribute.
1417 },
1418 ],
1419 &quot;eventType&quot;: &quot;A String&quot;, # Required. The type of event to observe. For example: `google.cloud.audit.log.v1.written` or `google.cloud.pubsub.topic.v1.messagePublished`.
1420 &quot;pubsubTopic&quot;: &quot;A String&quot;, # Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format: `projects/{project}/topics/{topic}`. This is only valid for events of type `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here will not be deleted at function deletion.
1421 &quot;retryPolicy&quot;: &quot;A String&quot;, # Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
1422 &quot;service&quot;: &quot;A String&quot;, # Optional. The hostname of the service that 1st Gen function should be observed. If no string is provided, the default service implementing the API will be used. For example, `storage.googleapis.com` is the default for all event types in the `google.storage` namespace. The field is only applicable to 1st Gen functions.
1423 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Optional. The email of the trigger&#x27;s service account. The service account must have permission to invoke Cloud Run services, the permission is `run.routes.invoke`. If empty, defaults to the Compute Engine default service account: `{project_number}[email protected]`.
1424 &quot;trigger&quot;: &quot;A String&quot;, # Output only. The resource name of the Eventarc trigger. The format of this field is `projects/{project}/locations/{region}/triggers/{trigger}`.
1425 &quot;triggerRegion&quot;: &quot;A String&quot;, # The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
1426 },
1427 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
1428 &quot;labels&quot;: { # Labels associated with this Cloud Function.
1429 &quot;a_key&quot;: &quot;A String&quot;,
1430 },
1431 &quot;name&quot;: &quot;A String&quot;, # A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*`
1432 &quot;satisfiesPzi&quot;: True or False, # Output only. Reserved for future use.
1433 &quot;satisfiesPzs&quot;: True or False, # Output only. Reserved for future use.
1434 &quot;serviceConfig&quot;: { # Describes the Service being deployed. Currently Supported : Cloud Run (fully managed). # Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).
1435 &quot;allTrafficOnLatestRevision&quot;: True or False, # Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.
1436 &quot;availableCpu&quot;: &quot;A String&quot;, # The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: &quot;1&quot; indicates 1 vCPU
1437 &quot;availableMemory&quot;: &quot;A String&quot;, # The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.
1438 &quot;binaryAuthorizationPolicy&quot;: &quot;A String&quot;, # Optional. The binary authorization policy to be checked when deploying the Cloud Run service.
1439 &quot;directVpcEgress&quot;: &quot;A String&quot;, # Optional. Egress settings for direct VPC. If not provided, it defaults to VPC_EGRESS_PRIVATE_RANGES_ONLY.
1440 &quot;directVpcNetworkInterface&quot;: [ # Optional. The Direct VPC network interface for the Cloud Function. Currently only a single Direct VPC is supported.
1441 { # The Direct VPC network interface. This is mutually exclusive with VPC Connector.
1442 &quot;network&quot;: &quot;A String&quot;, # Optional. The name of the VPC network to which the function will be connected. Specify either a VPC network or a subnet, or both. If you specify only a network, the subnet uses the same name as the network.
1443 &quot;subnetwork&quot;: &quot;A String&quot;, # Optional. The name of the VPC subnetwork that the Cloud Function resource will get IPs from. Specify either a VPC network or a subnet, or both. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used.
1444 &quot;tags&quot;: [ # Optional. Network tags applied to this Cloud Function resource.
1445 &quot;A String&quot;,
1446 ],
1447 },
1448 ],
1449 &quot;environmentVariables&quot;: { # Environment variables that shall be available during function execution.
1450 &quot;a_key&quot;: &quot;A String&quot;,
1451 },
1452 &quot;ingressSettings&quot;: &quot;A String&quot;, # The ingress settings for the function, controlling what traffic can reach it.
1453 &quot;maxInstanceCount&quot;: 42, # The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the [Max Instances](https://cloud.google.com/functions/docs/max-instances) Guide for more details.
1454 &quot;maxInstanceRequestConcurrency&quot;: 42, # Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
1455 &quot;minInstanceCount&quot;: 42, # The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.
1456 &quot;revision&quot;: &quot;A String&quot;, # Output only. The name of service revision.
1457 &quot;secretEnvironmentVariables&quot;: [ # Secret environment variables configuration.
1458 { # Configuration for a secret environment variable. It has the information necessary to fetch the secret value from secret manager and expose it as an environment variable.
1459 &quot;key&quot;: &quot;A String&quot;, # Name of the environment variable.
1460 &quot;projectId&quot;: &quot;A String&quot;, # Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
1461 &quot;secret&quot;: &quot;A String&quot;, # Name of the secret in secret manager (not the full resource name).
1462 &quot;version&quot;: &quot;A String&quot;, # Version of the secret (version number or the string &#x27;latest&#x27;). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new instances start.
1463 },
1464 ],
1465 &quot;secretVolumes&quot;: [ # Secret volumes configuration.
1466 { # Configuration for a secret volume. It has the information necessary to fetch the secret value from secret manager and make it available as files mounted at the requested paths within the application container.
1467 &quot;mountPath&quot;: &quot;A String&quot;, # The path within the container to mount the secret volume. For example, setting the mount_path as `/etc/secrets` would mount the secret value files under the `/etc/secrets` directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount path: /etc/secrets
1468 &quot;projectId&quot;: &quot;A String&quot;, # Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
1469 &quot;secret&quot;: &quot;A String&quot;, # Name of the secret in secret manager (not the full resource name).
1470 &quot;versions&quot;: [ # List of secret versions to mount for this secret. If empty, the `latest` version of the secret will be made available in a file named after the secret under the mount point.
1471 { # Configuration for a single version.
1472 &quot;path&quot;: &quot;A String&quot;, # Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as &#x27;/etc/secrets&#x27; and path as `secret_foo` would mount the secret value file at `/etc/secrets/secret_foo`.
1473 &quot;version&quot;: &quot;A String&quot;, # Version of the secret (version number or the string &#x27;latest&#x27;). It is preferable to use `latest` version with secret volumes as secret value changes are reflected immediately.
1474 },
1475 ],
1476 },
1477 ],
1478 &quot;securityLevel&quot;: &quot;A String&quot;, # Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.
1479 &quot;service&quot;: &quot;A String&quot;, # Output only. Name of the service associated with a Function. The format of this field is `projects/{project}/locations/{region}/services/{service}`
1480 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email of the service&#x27;s service account. If empty, defaults to `{project_number}[email protected]`.
1481 &quot;timeoutSeconds&quot;: 42, # The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
1482 &quot;uri&quot;: &quot;A String&quot;, # Output only. URI of the Service deployed.
1483 &quot;vpcConnector&quot;: &quot;A String&quot;, # The Serverless VPC Access connector that this cloud function can connect to. The format of this field is `projects/*/locations/*/connectors/*`.
1484 &quot;vpcConnectorEgressSettings&quot;: &quot;A String&quot;, # The egress settings for the connector, controlling what traffic is diverted through it.
1485 },
1486 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the function.
1487 &quot;stateMessages&quot;: [ # Output only. State Messages for this Cloud Function.
1488 { # Informational messages about the state of the Cloud Function or Operation.
1489 &quot;message&quot;: &quot;A String&quot;, # The message.
1490 &quot;severity&quot;: &quot;A String&quot;, # Severity of the state message.
1491 &quot;type&quot;: &quot;A String&quot;, # One-word CamelCase type of the state message.
1492 },
1493 ],
1494 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of a Cloud Function.
1495 &quot;upgradeInfo&quot;: { # Information related to: * A function&#x27;s eligibility for 1st Gen to 2nd Gen migration. * Current state of migration for function undergoing migration. # Output only. UpgradeInfo for this Cloud Function
1496 &quot;buildConfig&quot;: { # Describes the Build step of the function that builds a container from the given source. # Describes the Build step of the function that builds a container to prepare for 2nd gen upgrade.
1497 &quot;automaticUpdatePolicy&quot;: { # Security patches are applied automatically to the runtime without requiring the function to be redeployed.
1498 },
1499 &quot;build&quot;: &quot;A String&quot;, # Output only. The Cloud Build name of the latest successful deployment of the function.
1500 &quot;dockerRegistry&quot;: &quot;A String&quot;, # Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. Deprecated: as of March 2025, `CONTAINER_REGISTRY` option is no longer available in response to Container Registry&#x27;s deprecation: https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr Please use Artifact Registry instead, which is the default choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `docker_repository` field is specified, this field should either be left unspecified or set to `ARTIFACT_REGISTRY`.
1501 &quot;dockerRepository&quot;: &quot;A String&quot;, # Repository in Artifact Registry to which the function docker image will be pushed after it is built by Cloud Build. If specified by user, it is created and managed by user with a customer managed encryption key. Otherwise, GCF will create and use a repository named &#x27;gcf-artifacts&#x27; for every deployed region. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`. Repository format must be &#x27;DOCKER&#x27;.
1502 &quot;entryPoint&quot;: &quot;A String&quot;, # The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named &quot;function&quot;. For Node.js this is name of a function exported by the module specified in `source_location`.
1503 &quot;environmentVariables&quot;: { # User-provided build-time environment variables for the function
1504 &quot;a_key&quot;: &quot;A String&quot;,
1505 },
1506 &quot;onDeployUpdatePolicy&quot;: { # Security patches are only applied when a function is redeployed.
1507 &quot;runtimeVersion&quot;: &quot;A String&quot;, # Output only. contains the runtime version which was used during latest function deployment.
1508 },
1509 &quot;runtime&quot;: &quot;A String&quot;, # 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).
1510 &quot;serviceAccount&quot;: &quot;A String&quot;, # Service account to be used for building the container. The format of this field is `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.
1511 &quot;source&quot;: { # The location of the function source code. # The location of the function source code.
1512 &quot;gitUri&quot;: &quot;A String&quot;, # If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https://github.com///blob//
1513 &quot;repoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # If provided, get the source from this location in a Cloud Source Repository.
1514 &quot;branchName&quot;: &quot;A String&quot;, # 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
1515 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1516 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution. eg. helloworld (no leading slash allowed)
1517 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
1518 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
1519 &quot;tagName&quot;: &quot;A String&quot;, # 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
1520 },
1521 &quot;storageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in Google Cloud Storage.
1522 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1523 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
1524 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
1525 &quot;sourceUploadUrl&quot;: &quot;A String&quot;, # When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.
1526 },
1527 },
1528 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that some source was used for this build. # Output only. A permanent fixed identifier for source.
1529 &quot;gitUri&quot;: &quot;A String&quot;, # A copy of the build&#x27;s `source.git_uri`, if exists, with any commits resolved.
1530 &quot;resolvedRepoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # A copy of the build&#x27;s `source.repo_source`, if exists, with any revisions resolved.
1531 &quot;branchName&quot;: &quot;A String&quot;, # 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
1532 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1533 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution. eg. helloworld (no leading slash allowed)
1534 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
1535 &quot;repoName&quot;: &quot;A String&quot;, # Name of the Cloud Source Repository.
1536 &quot;tagName&quot;: &quot;A String&quot;, # 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
1537 },
1538 &quot;resolvedStorageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # A copy of the build&#x27;s `source.storage_source`, if exists, with any generations resolved.
1539 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1540 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
1541 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
1542 &quot;sourceUploadUrl&quot;: &quot;A String&quot;, # When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.
1543 },
1544 },
1545 &quot;sourceToken&quot;: &quot;A String&quot;, # An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
1546 &quot;workerPool&quot;: &quot;A String&quot;, # 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 ([email protected]) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project.
1547 },
1548 &quot;eventTrigger&quot;: { # Describes EventTrigger, used to request events to be sent from another service. # Describes the Event trigger which has been setup to prepare for 2nd gen upgrade.
1549 &quot;channel&quot;: &quot;A String&quot;, # Optional. The name of the channel associated with the trigger in `projects/{project}/locations/{location}/channels/{channel}` format. You must provide a channel to receive events from Eventarc SaaS partners.
1550 &quot;eventFilters&quot;: [ # Criteria used to filter events.
1551 { # Filters events based on exact matches on the CloudEvents attributes.
1552 &quot;attribute&quot;: &quot;A String&quot;, # Required. The name of a CloudEvents attribute.
1553 &quot;operator&quot;: &quot;A String&quot;, # Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is `match-path-pattern`.
1554 &quot;value&quot;: &quot;A String&quot;, # Required. The value for the attribute.
1555 },
1556 ],
1557 &quot;eventType&quot;: &quot;A String&quot;, # Required. The type of event to observe. For example: `google.cloud.audit.log.v1.written` or `google.cloud.pubsub.topic.v1.messagePublished`.
1558 &quot;pubsubTopic&quot;: &quot;A String&quot;, # Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format: `projects/{project}/topics/{topic}`. This is only valid for events of type `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here will not be deleted at function deletion.
1559 &quot;retryPolicy&quot;: &quot;A String&quot;, # Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
1560 &quot;service&quot;: &quot;A String&quot;, # Optional. The hostname of the service that 1st Gen function should be observed. If no string is provided, the default service implementing the API will be used. For example, `storage.googleapis.com` is the default for all event types in the `google.storage` namespace. The field is only applicable to 1st Gen functions.
1561 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Optional. The email of the trigger&#x27;s service account. The service account must have permission to invoke Cloud Run services, the permission is `run.routes.invoke`. If empty, defaults to the Compute Engine default service account: `{project_number}[email protected]`.
1562 &quot;trigger&quot;: &quot;A String&quot;, # Output only. The resource name of the Eventarc trigger. The format of this field is `projects/{project}/locations/{region}/triggers/{trigger}`.
1563 &quot;triggerRegion&quot;: &quot;A String&quot;, # The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
1564 },
1565 &quot;serviceConfig&quot;: { # Describes the Service being deployed. Currently Supported : Cloud Run (fully managed). # Describes the Cloud Run service which has been setup to prepare for 2nd gen upgrade.
1566 &quot;allTrafficOnLatestRevision&quot;: True or False, # Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.
1567 &quot;availableCpu&quot;: &quot;A String&quot;, # The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: &quot;1&quot; indicates 1 vCPU
1568 &quot;availableMemory&quot;: &quot;A String&quot;, # The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.
1569 &quot;binaryAuthorizationPolicy&quot;: &quot;A String&quot;, # Optional. The binary authorization policy to be checked when deploying the Cloud Run service.
1570 &quot;directVpcEgress&quot;: &quot;A String&quot;, # Optional. Egress settings for direct VPC. If not provided, it defaults to VPC_EGRESS_PRIVATE_RANGES_ONLY.
1571 &quot;directVpcNetworkInterface&quot;: [ # Optional. The Direct VPC network interface for the Cloud Function. Currently only a single Direct VPC is supported.
1572 { # The Direct VPC network interface. This is mutually exclusive with VPC Connector.
1573 &quot;network&quot;: &quot;A String&quot;, # Optional. The name of the VPC network to which the function will be connected. Specify either a VPC network or a subnet, or both. If you specify only a network, the subnet uses the same name as the network.
1574 &quot;subnetwork&quot;: &quot;A String&quot;, # Optional. The name of the VPC subnetwork that the Cloud Function resource will get IPs from. Specify either a VPC network or a subnet, or both. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used.
1575 &quot;tags&quot;: [ # Optional. Network tags applied to this Cloud Function resource.
1576 &quot;A String&quot;,
1577 ],
1578 },
1579 ],
1580 &quot;environmentVariables&quot;: { # Environment variables that shall be available during function execution.
1581 &quot;a_key&quot;: &quot;A String&quot;,
1582 },
1583 &quot;ingressSettings&quot;: &quot;A String&quot;, # The ingress settings for the function, controlling what traffic can reach it.
1584 &quot;maxInstanceCount&quot;: 42, # The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the [Max Instances](https://cloud.google.com/functions/docs/max-instances) Guide for more details.
1585 &quot;maxInstanceRequestConcurrency&quot;: 42, # Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
1586 &quot;minInstanceCount&quot;: 42, # The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.
1587 &quot;revision&quot;: &quot;A String&quot;, # Output only. The name of service revision.
1588 &quot;secretEnvironmentVariables&quot;: [ # Secret environment variables configuration.
1589 { # Configuration for a secret environment variable. It has the information necessary to fetch the secret value from secret manager and expose it as an environment variable.
1590 &quot;key&quot;: &quot;A String&quot;, # Name of the environment variable.
1591 &quot;projectId&quot;: &quot;A String&quot;, # Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
1592 &quot;secret&quot;: &quot;A String&quot;, # Name of the secret in secret manager (not the full resource name).
1593 &quot;version&quot;: &quot;A String&quot;, # Version of the secret (version number or the string &#x27;latest&#x27;). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new instances start.
1594 },
1595 ],
1596 &quot;secretVolumes&quot;: [ # Secret volumes configuration.
1597 { # Configuration for a secret volume. It has the information necessary to fetch the secret value from secret manager and make it available as files mounted at the requested paths within the application container.
1598 &quot;mountPath&quot;: &quot;A String&quot;, # The path within the container to mount the secret volume. For example, setting the mount_path as `/etc/secrets` would mount the secret value files under the `/etc/secrets` directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount path: /etc/secrets
1599 &quot;projectId&quot;: &quot;A String&quot;, # Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
1600 &quot;secret&quot;: &quot;A String&quot;, # Name of the secret in secret manager (not the full resource name).
1601 &quot;versions&quot;: [ # List of secret versions to mount for this secret. If empty, the `latest` version of the secret will be made available in a file named after the secret under the mount point.
1602 { # Configuration for a single version.
1603 &quot;path&quot;: &quot;A String&quot;, # Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as &#x27;/etc/secrets&#x27; and path as `secret_foo` would mount the secret value file at `/etc/secrets/secret_foo`.
1604 &quot;version&quot;: &quot;A String&quot;, # Version of the secret (version number or the string &#x27;latest&#x27;). It is preferable to use `latest` version with secret volumes as secret value changes are reflected immediately.
1605 },
1606 ],
1607 },
1608 ],
1609 &quot;securityLevel&quot;: &quot;A String&quot;, # Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.
1610 &quot;service&quot;: &quot;A String&quot;, # Output only. Name of the service associated with a Function. The format of this field is `projects/{project}/locations/{region}/services/{service}`
1611 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email of the service&#x27;s service account. If empty, defaults to `{project_number}[email protected]`.
1612 &quot;timeoutSeconds&quot;: 42, # The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.
1613 &quot;uri&quot;: &quot;A String&quot;, # Output only. URI of the Service deployed.
1614 &quot;vpcConnector&quot;: &quot;A String&quot;, # The Serverless VPC Access connector that this cloud function can connect to. The format of this field is `projects/*/locations/*/connectors/*`.
1615 &quot;vpcConnectorEgressSettings&quot;: &quot;A String&quot;, # The egress settings for the connector, controlling what traffic is diverted through it.
1616 },
1617 &quot;upgradeState&quot;: &quot;A String&quot;, # UpgradeState of the function
1618 },
1619 &quot;url&quot;: &quot;A String&quot;, # Output only. The deployed url for the function.
1620 }
1621
1622 updateMask: string, The list of fields to be updated. If no field mask is provided, all fields will be updated.
1623 x__xgafv: string, V1 error format.
1624 Allowed values
1625 1 - v1 error format
1626 2 - v2 error format
1627
1628 Returns:
1629 An object of the form:
1630
1631 { # This resource represents a long-running operation that is the result of a network API call.
1632 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
1633 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
1634 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1635 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1636 {
1637 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1638 },
1639 ],
1640 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
1641 },
1642 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
1643 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1644 },
1645 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
1646 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
1647 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1648 },
1649 }</pre>
1650 </div>
1651
1652 <div class="method">
1653 <code class="details" id="redirectFunctionUpgradeTraffic">redirectFunctionUpgradeTraffic(name, body=None, x__xgafv=None)</code>
1654 <pre>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.
1655
1656 Args:
1657 name: string, Required. The name of the function for which traffic target should be changed to 2nd Gen from 1st Gen. (required)
1658 body: object, The request body.
1659 The object takes the form of:
1660
1661 { # Request for the `RedirectFunctionUpgradeTraffic` method.
1662 }
1663
1664 x__xgafv: string, V1 error format.
1665 Allowed values
1666 1 - v1 error format
1667 2 - v2 error format
1668
1669 Returns:
1670 An object of the form:
1671
1672 { # This resource represents a long-running operation that is the result of a network API call.
1673 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
1674 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
1675 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1676 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1677 {
1678 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1679 },
1680 ],
1681 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
1682 },
1683 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
1684 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1685 },
1686 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
1687 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
1688 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1689 },
1690 }</pre>
1691 </div>
1692
1693 <div class="method">
1694 <code class="details" id="rollbackFunctionUpgradeTraffic">rollbackFunctionUpgradeTraffic(name, body=None, x__xgafv=None)</code>
1695 <pre>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.
1696
1697 Args:
1698 name: string, Required. The name of the function for which traffic target should be changed back to 1st Gen from 2nd Gen. (required)
1699 body: object, The request body.
1700 The object takes the form of:
1701
1702 { # Request for the `RollbackFunctionUpgradeTraffic` method.
1703 }
1704
1705 x__xgafv: string, V1 error format.
1706 Allowed values
1707 1 - v1 error format
1708 2 - v2 error format
1709
1710 Returns:
1711 An object of the form:
1712
1713 { # This resource represents a long-running operation that is the result of a network API call.
1714 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
1715 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
1716 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1717 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1718 {
1719 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1720 },
1721 ],
1722 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
1723 },
1724 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
1725 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1726 },
1727 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
1728 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
1729 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1730 },
1731 }</pre>
1732 </div>
1733
1734 <div class="method">
1735 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
1736 <pre>Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
1737
1738 Args:
1739 resource: string, 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. (required)
1740 body: object, The request body.
1741 The object takes the form of:
1742
1743 { # Request message for `SetIamPolicy` method.
1744 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot;, &quot;group:[email protected]&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:[email protected]&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } ``` **YAML example:** ``` bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). # REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services (such as Projects) might reject them.
1745 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1746 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { &quot;audit_configs&quot;: [ { &quot;service&quot;: &quot;allServices&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:[email protected]&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; }, { &quot;log_type&quot;: &quot;ADMIN_READ&quot; } ] }, { &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot; }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, &quot;exempted_members&quot;: [ &quot;user:[email protected]&quot; ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `[email protected]` from DATA_READ logging, and `[email protected]` from DATA_WRITE logging.
1747 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1748 { # Provides the configuration for logging a type of permissions. Example: { &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:[email protected]&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; } ] } This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting [email protected] from DATA_READ logging.
1749 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
1750 &quot;A String&quot;,
1751 ],
1752 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
1753 },
1754 ],
1755 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
1756 },
1757 ],
1758 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:[email protected]`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
1759 { # Associates `members`, or principals, with a `role`.
1760 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1761 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
1762 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1763 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
1764 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
1765 },
1766 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `[email protected]`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
1767 &quot;A String&quot;,
1768 ],
1769 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).
1770 },
1771 ],
1772 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **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.
1773 &quot;version&quot;: 42, # 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).
1774 },
1775 &quot;updateMask&quot;: &quot;A String&quot;, # 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: &quot;bindings, etag&quot;`
1776 }
1777
1778 x__xgafv: string, V1 error format.
1779 Allowed values
1780 1 - v1 error format
1781 2 - v2 error format
1782
1783 Returns:
1784 An object of the form:
1785
1786 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot;, &quot;group:[email protected]&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:[email protected]&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } ``` **YAML example:** ``` bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
1787 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1788 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { &quot;audit_configs&quot;: [ { &quot;service&quot;: &quot;allServices&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:[email protected]&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; }, { &quot;log_type&quot;: &quot;ADMIN_READ&quot; } ] }, { &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot; }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, &quot;exempted_members&quot;: [ &quot;user:[email protected]&quot; ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `[email protected]` from DATA_READ logging, and `[email protected]` from DATA_WRITE logging.
1789 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1790 { # Provides the configuration for logging a type of permissions. Example: { &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:[email protected]&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; } ] } This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting [email protected] from DATA_READ logging.
1791 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
1792 &quot;A String&quot;,
1793 ],
1794 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
1795 },
1796 ],
1797 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
1798 },
1799 ],
1800 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:[email protected]`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
1801 { # Associates `members`, or principals, with a `role`.
1802 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1803 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
1804 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1805 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
1806 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
1807 },
1808 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `[email protected]`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
1809 &quot;A String&quot;,
1810 ],
1811 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).
1812 },
1813 ],
1814 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **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.
1815 &quot;version&quot;: 42, # 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).
1816 }</pre>
1817 </div>
1818
1819 <div class="method">
1820 <code class="details" id="setupFunctionUpgradeConfig">setupFunctionUpgradeConfig(name, body=None, x__xgafv=None)</code>
1821 <pre>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.
1822
1823 Args:
1824 name: string, Required. The name of the function which should have configuration copied for upgrade. (required)
1825 body: object, The request body.
1826 The object takes the form of:
1827
1828 { # Request for the `SetupFunctionUpgradeConfig` method.
1829 &quot;buildConfigOverrides&quot;: { # Contains overrides related to the function&#x27;s build configuration. # Optional. Specifies overrides for the build process.
1830 &quot;runtime&quot;: &quot;A String&quot;, # Optional. Specifies the desired runtime for the new Cloud Run function. (e.g., `&quot;nodejs20&quot;`, `&quot;python312&quot;`). Constraints: 1. This field CANNOT be used to change the runtime language (e.g., from `NODEJS` to `PYTHON`). The backend will enforce this. 2. This field can ONLY be used to upgrade the runtime version (e.g., `nodejs18` to `nodejs20`). Downgrading the version is not permitted. The backend will validate the version change. If provided and valid, this overrides the runtime of the Gen1 function.
1831 },
1832 &quot;serviceConfigOverrides&quot;: { # Contains overrides related to the function&#x27;s service configuration. # Optional. Specifies overrides for the service configuration.
1833 &quot;maxInstanceCount&quot;: 42, # Optional. Specifies the maximum number of instances for the new Cloud Run function. If provided, this overrides the max_instance_count setting of the Gen1 function.
1834 },
1835 &quot;triggerServiceAccount&quot;: &quot;A String&quot;, # Optional. The trigger&#x27;s service account. The service account must have permission to invoke Cloud Run services, the permission is `run.routes.invoke`. If empty, defaults to the Compute Engine default service account: `{project_number}[email protected]`.
1836 }
1837
1838 x__xgafv: string, V1 error format.
1839 Allowed values
1840 1 - v1 error format
1841 2 - v2 error format
1842
1843 Returns:
1844 An object of the form:
1845
1846 { # This resource represents a long-running operation that is the result of a network API call.
1847 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
1848 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
1849 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1850 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1851 {
1852 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1853 },
1854 ],
1855 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
1856 },
1857 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
1858 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1859 },
1860 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
1861 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
1862 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1863 },
1864 }</pre>
1865 </div>
1866
1867 <div class="method">
1868 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
1869 <pre>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 &quot;fail open&quot; without warning.
1870
1871 Args:
1872 resource: string, 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. (required)
1873 body: object, The request body.
1874 The object takes the form of:
1875
1876 { # Request message for `TestIamPermissions` method.
1877 &quot;permissions&quot;: [ # The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
1878 &quot;A String&quot;,
1879 ],
1880 }
1881
1882 x__xgafv: string, V1 error format.
1883 Allowed values
1884 1 - v1 error format
1885 2 - v2 error format
1886
1887 Returns:
1888 An object of the form:
1889
1890 { # Response message for `TestIamPermissions` method.
1891 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
1892 &quot;A String&quot;,
1893 ],
1894 }</pre>
1895 </div>
1896
1897 </body></html>