blob: 44bf51c26f86fe2792d46013460b8df3c0fa2f5a [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, 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
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, 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_v1.html">Cloud Functions API</a> . <a href="cloudfunctions_v1.projects.html">projects</a> . <a href="cloudfunctions_v1.projects.locations.html">locations</a> . <a href="cloudfunctions_v1.projects.locations.functions.html">functions</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#call">call(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Synchronously invokes a deployed Cloud Function. To be used for testing</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#create">create(location, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<p class="firstline">Creates a new function. If a function with the given name already exists in</p>
83<p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85<p class="firstline">Deletes a function with the given name from the specified project. If the</p>
86<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070087 <code><a href="#generateDownloadUrl">generateDownloadUrl(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088<p class="firstline">Returns a signed URL for downloading deployed function source code.</p>
89<p class="toc_element">
90 <code><a href="#generateUploadUrl">generateUploadUrl(parent, body=None, x__xgafv=None)</a></code></p>
91<p class="firstline">Returns a signed URL for uploading a function source code.</p>
92<p class="toc_element">
93 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
94<p class="firstline">Returns a function with the given name from the requested project.</p>
95<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="firstline">Gets the IAM access control policy for a function.</p>
98<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070099 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700100<p class="firstline">Returns a list of functions that belong to the requested project.</p>
101<p class="toc_element">
102 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
103<p class="firstline">Retrieves the next page of results.</p>
104<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700106<p class="firstline">Updates existing function.</p>
107<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700108 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700109<p class="firstline">Sets the IAM access control policy on the specified function.</p>
110<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700111 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700112<p class="firstline">Tests the specified permissions against the IAM access control policy</p>
113<h3>Method Details</h3>
114<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700115 <code class="details" id="call">call(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700116 <pre>Synchronously invokes a deployed Cloud Function. To be used for testing
117purposes as very limited traffic is allowed. For more information on
118the actual limits, refer to
119[Rate Limits](https://cloud.google.com/functions/quotas#rate_limits).
120
121Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700122 name: string, Required. The name of the function to be called. (required)
123 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700124 The object takes the form of:
125
126{ # Request for the `CallFunction` method.
Bu Sun Kim65020912020-05-20 12:08:20 -0700127 &quot;data&quot;: &quot;A String&quot;, # Required. Input to be passed to the function.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700128 }
129
130 x__xgafv: string, V1 error format.
131 Allowed values
132 1 - v1 error format
133 2 - v2 error format
134
135Returns:
136 An object of the form:
137
138 { # Response of `CallFunction` method.
Bu Sun Kim65020912020-05-20 12:08:20 -0700139 &quot;executionId&quot;: &quot;A String&quot;, # Execution id of function invocation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700140 &quot;error&quot;: &quot;A String&quot;, # Either system or user-function generated error. Set if execution
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700141 # was not successful.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700142 &quot;result&quot;: &quot;A String&quot;, # Result populated for successful execution of synchronous function. Will
143 # not be populated if function does not return a result through context.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700144 }</pre>
145</div>
146
147<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700148 <code class="details" id="create">create(location, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700149 <pre>Creates a new function. If a function with the given name already exists in
150the specified project, the long running operation will return
151`ALREADY_EXISTS` error.
152
153Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700154 location: string, Required. The project and location in which the function should be created, specified
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700155in the format `projects/*/locations/*` (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700156 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700157 The object takes the form of:
158
159{ # Describes a Cloud Function that contains user computation executed in
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700160 # response to an event. It encapsulate function and triggers configurations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700161 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of a Cloud Function.
162 &quot;runtime&quot;: &quot;A String&quot;, # The runtime in which to run the function. Required when deploying a new
163 # function, optional when updating an existing function. For a complete
164 # list of possible choices, see the
165 # [`gcloud` command
166 # reference](/sdk/gcloud/reference/functions/deploy#--runtime).
167 &quot;buildId&quot;: &quot;A String&quot;, # Output only. The Cloud Build ID of the latest successful deployment of the
168 # function.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700169 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email of the function&#x27;s service account. If empty, defaults to
170 # `{project_id}@appspot.gserviceaccount.com`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700171 &quot;name&quot;: &quot;A String&quot;, # A user-defined name of the function. Function names must be unique
172 # globally and match pattern `projects/*/locations/*/functions/*`
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700173 &quot;eventTrigger&quot;: { # Describes EventTrigger, used to request events be sent from another # A source that fires events in response to a condition in another service.
174 # service.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700175 &quot;service&quot;: &quot;A String&quot;, # The hostname of the service that should be observed.
176 #
177 # If no string is provided, the default service implementing the API will
178 # be used. For example, `storage.googleapis.com` is the default for all
179 # event types in the `google.storage` namespace.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700180 &quot;eventType&quot;: &quot;A String&quot;, # Required. The type of event to observe. For example:
181 # `providers/cloud.storage/eventTypes/object.change` and
182 # `providers/cloud.pubsub/eventTypes/topic.publish`.
183 #
184 # Event types match pattern `providers/*/eventTypes/*.*`.
185 # The pattern contains:
186 #
187 # 1. namespace: For example, `cloud.storage` and
188 # `google.firebase.analytics`.
189 # 2. resource type: The type of resource on which event occurs. For
190 # example, the Google Cloud Storage API includes the type `object`.
191 # 3. action: The action that generates the event. For example, action for
192 # a Google Cloud Storage Object is &#x27;change&#x27;.
193 # These parts are lower case.
194 &quot;resource&quot;: &quot;A String&quot;, # Required. The resource(s) from which to observe events, for example,
195 # `projects/_/buckets/myBucket`.
196 #
197 # Not all syntactically correct values are accepted by all services. For
198 # example:
199 #
200 # 1. The authorization model must support it. Google Cloud Functions
201 # only allows EventTriggers to be deployed that observe resources in the
202 # same project as the `CloudFunction`.
203 # 2. The resource type must match the pattern expected for an
204 # `event_type`. For example, an `EventTrigger` that has an
205 # `event_type` of &quot;google.pubsub.topic.publish&quot; should have a resource
206 # that matches Google Cloud Pub/Sub topics.
207 #
208 # Additionally, some services may support short names when creating an
209 # `EventTrigger`. These will always be returned in the normalized &quot;long&quot;
210 # format.
211 #
212 # See each *service&#x27;s* documentation for supported formats.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700213 &quot;failurePolicy&quot;: { # Describes the policy in case of function&#x27;s execution failure. # Specifies policy for failed executions.
214 # If empty, then defaults to ignoring failures (i.e. not retrying them).
215 &quot;retry&quot;: { # Describes the retry policy in case of function&#x27;s execution failure. # If specified, then the function will be retried in case of a failure.
216 # A function execution will be retried on any failure.
217 # A failed execution will be retried up to 7 days with an exponential backoff
218 # (capped at 10 seconds).
219 # Retried execution is charged as any other execution.
220 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700221 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700222 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700223 &quot;entryPoint&quot;: &quot;A String&quot;, # The name of the function (as defined in source code) that will be
224 # executed. Defaults to the resource name suffix, if not specified. For
225 # backward compatibility, if function with given name is not found, then the
226 # system will try to use function named &quot;function&quot;.
227 # For Node.js this is name of a function exported by the module specified
228 # in `source_location`.
229 &quot;vpcConnector&quot;: &quot;A String&quot;, # The VPC Network Connector that this cloud function can connect to. It can
230 # be either the fully-qualified URI, or the short name of the network
231 # connector resource. The format of this field is
232 # `projects/*/locations/*/connectors/*`
233 #
234 # This field is mutually exclusive with `network` field and will eventually
235 # replace it.
236 #
237 # See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for
238 # more information on connecting Cloud projects.
239 &quot;network&quot;: &quot;A String&quot;, # The VPC Network that this cloud function can connect to. It can be
240 # either the fully-qualified URI, or the short name of the network resource.
241 # If the short network name is used, the network must belong to the same
242 # project. Otherwise, it must belong to a project within the same
243 # organization. The format of this field is either
244 # `projects/{project}/global/networks/{network}` or `{network}`, where
245 # {project} is a project id where the network is defined, and {network} is
246 # the short name of the network.
247 #
248 # This field is mutually exclusive with `vpc_connector` and will be replaced
249 # by it.
250 #
251 # See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for
252 # more information on connecting Cloud projects.
253 &quot;sourceArchiveUrl&quot;: &quot;A String&quot;, # The Google Cloud Storage URL, starting with gs://, pointing to the zip
254 # archive which contains the function.
255 &quot;httpsTrigger&quot;: { # Describes HttpsTrigger, could be used to connect web hooks to function. # An HTTPS endpoint type of source that can be triggered via URL.
256 &quot;url&quot;: &quot;A String&quot;, # Output only. The deployed url for the function.
257 },
258 &quot;vpcConnectorEgressSettings&quot;: &quot;A String&quot;, # The egress settings for the connector, controlling what traffic is diverted
259 # through it.
260 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the function deployment.
261 &quot;description&quot;: &quot;A String&quot;, # User-provided description of a function.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700262 &quot;timeout&quot;: &quot;A String&quot;, # The function execution timeout. Execution is considered failed and
263 # can be terminated if the function is not completed at the end of the
264 # timeout period. Defaults to 60 seconds.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700265 &quot;labels&quot;: { # Labels associated with this Cloud Function.
266 &quot;a_key&quot;: &quot;A String&quot;,
267 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700268 &quot;versionId&quot;: &quot;A String&quot;, # Output only. The version identifier of the Cloud Function. Each deployment attempt
269 # results in a new version of a function being created.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700270 &quot;sourceRepository&quot;: { # Describes SourceRepository, used to represent parameters related to # **Beta Feature**
271 #
272 # The source repository where a function is hosted.
273 # source repository where a function is hosted.
274 &quot;url&quot;: &quot;A String&quot;, # The URL pointing to the hosted repository where the function is defined.
275 # There are supported Cloud Source Repository URLs in the following
276 # formats:
277 #
278 # To refer to a specific commit:
279 # `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*`
280 # To refer to a moveable alias (branch):
281 # `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/paths/*`
282 # In particular, to refer to HEAD use `master` moveable alias.
283 # To refer to a specific fixed alias (tag):
284 # `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*`
285 #
286 # You may omit `paths/*` if you want to use the main directory.
287 &quot;deployedUrl&quot;: &quot;A String&quot;, # Output only. The URL pointing to the hosted repository where the function
288 # were defined at the time of deployment. It always points to a specific
289 # commit in the format described above.
290 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700291 &quot;sourceUploadUrl&quot;: &quot;A String&quot;, # The Google Cloud Storage signed URL used for source uploading, generated
292 # by google.cloud.functions.v1.GenerateUploadUrl
293 &quot;availableMemoryMb&quot;: 42, # The amount of memory in MB available for a function.
294 # Defaults to 256MB.
295 &quot;environmentVariables&quot;: { # Environment variables that shall be available during function execution.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700296 &quot;a_key&quot;: &quot;A String&quot;,
297 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700298 &quot;maxInstances&quot;: 42, # The limit on the maximum number of function instances that may coexist at a
299 # given time.
300 &quot;ingressSettings&quot;: &quot;A String&quot;, # The ingress settings for the function, controlling what traffic can reach
301 # it.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700302 }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700303
304 x__xgafv: string, V1 error format.
305 Allowed values
306 1 - v1 error format
307 2 - v2 error format
308
309Returns:
310 An object of the form:
311
312 { # This resource represents a long-running operation that is the result of a
313 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700314 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700315 # If `true`, the operation is completed, and either `error` or `response` is
316 # available.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700317 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
318 # different programming environments, including REST APIs and RPC APIs. It is
319 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
320 # three pieces of data: error code, error message, and error details.
321 #
322 # You can find out more about this error model and how to work with it in the
323 # [API Design Guide](https://cloud.google.com/apis/design/errors).
324 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
325 # user-facing error message should be localized and sent in the
326 # google.rpc.Status.details field, or localized by the client.
327 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
328 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
329 # message types for APIs to use.
330 {
331 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
332 },
333 ],
334 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700335 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700336 # method returns no data on success, such as `Delete`, the response is
337 # `google.protobuf.Empty`. If the original method is standard
338 # `Get`/`Create`/`Update`, the response should be the resource. For other
339 # methods, the response should have the type `XxxResponse`, where `Xxx`
340 # is the original method name. For example, if the original method name
341 # is `TakeSnapshot()`, the inferred response type is
342 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700343 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700344 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700345 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700346 # originally returns it. If you use the default HTTP mapping, the
347 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700348 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
349 # contains progress information and common metadata such as create time.
350 # Some services might not provide such metadata. Any method that returns a
351 # long-running operation should document the metadata type, if any.
352 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
353 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700354 }</pre>
355</div>
356
357<div class="method">
358 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
359 <pre>Deletes a function with the given name from the specified project. If the
360given function is used by some trigger, the trigger will be updated to
361remove this function.
362
363Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700364 name: string, Required. The name of the function which should be deleted. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700365 x__xgafv: string, V1 error format.
366 Allowed values
367 1 - v1 error format
368 2 - v2 error format
369
370Returns:
371 An object of the form:
372
373 { # This resource represents a long-running operation that is the result of a
374 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700375 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700376 # If `true`, the operation is completed, and either `error` or `response` is
377 # available.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700378 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
379 # different programming environments, including REST APIs and RPC APIs. It is
380 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
381 # three pieces of data: error code, error message, and error details.
382 #
383 # You can find out more about this error model and how to work with it in the
384 # [API Design Guide](https://cloud.google.com/apis/design/errors).
385 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
386 # user-facing error message should be localized and sent in the
387 # google.rpc.Status.details field, or localized by the client.
388 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
389 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
390 # message types for APIs to use.
391 {
392 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
393 },
394 ],
395 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700396 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700397 # method returns no data on success, such as `Delete`, the response is
398 # `google.protobuf.Empty`. If the original method is standard
399 # `Get`/`Create`/`Update`, the response should be the resource. For other
400 # methods, the response should have the type `XxxResponse`, where `Xxx`
401 # is the original method name. For example, if the original method name
402 # is `TakeSnapshot()`, the inferred response type is
403 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700404 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700405 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700406 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700407 # originally returns it. If you use the default HTTP mapping, the
408 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700409 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
410 # contains progress information and common metadata such as create time.
411 # Some services might not provide such metadata. Any method that returns a
412 # long-running operation should document the metadata type, if any.
413 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
414 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700415 }</pre>
416</div>
417
418<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700419 <code class="details" id="generateDownloadUrl">generateDownloadUrl(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700420 <pre>Returns a signed URL for downloading deployed function source code.
421The URL is only valid for a limited period and should be used within
422minutes after generation.
423For more information about the signed URL usage see:
424https://cloud.google.com/storage/docs/access-control/signed-urls
425
426Args:
427 name: string, The name of function for which source code Google Cloud Storage signed
428URL should be generated. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700429 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700430 The object takes the form of:
431
432{ # Request of `GenerateDownloadUrl` method.
Bu Sun Kim65020912020-05-20 12:08:20 -0700433 &quot;versionId&quot;: &quot;A String&quot;, # The optional version of function. If not set, default, current version
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700434 # is used.
435 }
436
437 x__xgafv: string, V1 error format.
438 Allowed values
439 1 - v1 error format
440 2 - v2 error format
441
442Returns:
443 An object of the form:
444
445 { # Response of `GenerateDownloadUrl` method.
Bu Sun Kim65020912020-05-20 12:08:20 -0700446 &quot;downloadUrl&quot;: &quot;A String&quot;, # The generated Google Cloud Storage signed URL that should be used for
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700447 # function source code download.
448 }</pre>
449</div>
450
451<div class="method">
452 <code class="details" id="generateUploadUrl">generateUploadUrl(parent, body=None, x__xgafv=None)</code>
453 <pre>Returns a signed URL for uploading a function source code.
454For more information about the signed URL usage see:
455https://cloud.google.com/storage/docs/access-control/signed-urls.
456Once the function source code upload is complete, the used signed
457URL should be provided in CreateFunction or UpdateFunction request
458as a reference to the function source code.
459
460When uploading source code to the generated signed URL, please follow
461these restrictions:
462
463* Source file type should be a zip file.
464* Source file size should not exceed 100MB limit.
465* No credentials should be attached - the signed URLs provide access to the
466 target bucket using internal service identity; if credentials were
467 attached, the identity from the credentials would be used, but that
468 identity does not have permissions to upload files to the URL.
469
470When making a HTTP PUT request, these two headers need to be specified:
471
472* `content-type: application/zip`
473* `x-goog-content-length-range: 0,104857600`
474
475And this header SHOULD NOT be specified:
476
477* `Authorization: Bearer YOUR_TOKEN`
478
479Args:
480 parent: string, The project and location in which the Google Cloud Storage signed URL
481should be generated, specified in the format `projects/*/locations/*`. (required)
482 body: object, The request body.
483 The object takes the form of:
484
485{ # Request of `GenerateSourceUploadUrl` method.
486 }
487
488 x__xgafv: string, V1 error format.
489 Allowed values
490 1 - v1 error format
491 2 - v2 error format
492
493Returns:
494 An object of the form:
495
496 { # Response of `GenerateSourceUploadUrl` method.
Bu Sun Kim65020912020-05-20 12:08:20 -0700497 &quot;uploadUrl&quot;: &quot;A String&quot;, # The generated Google Cloud Storage signed URL that should be used for a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700498 # function source code upload. The uploaded file should be a zip archive
499 # which contains a function.
500 }</pre>
501</div>
502
503<div class="method">
504 <code class="details" id="get">get(name, x__xgafv=None)</code>
505 <pre>Returns a function with the given name from the requested project.
506
507Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700508 name: string, Required. The name of the function which details should be obtained. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700509 x__xgafv: string, V1 error format.
510 Allowed values
511 1 - v1 error format
512 2 - v2 error format
513
514Returns:
515 An object of the form:
516
517 { # Describes a Cloud Function that contains user computation executed in
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700518 # response to an event. It encapsulate function and triggers configurations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700519 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of a Cloud Function.
520 &quot;runtime&quot;: &quot;A String&quot;, # The runtime in which to run the function. Required when deploying a new
521 # function, optional when updating an existing function. For a complete
522 # list of possible choices, see the
523 # [`gcloud` command
524 # reference](/sdk/gcloud/reference/functions/deploy#--runtime).
525 &quot;buildId&quot;: &quot;A String&quot;, # Output only. The Cloud Build ID of the latest successful deployment of the
526 # function.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700527 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email of the function&#x27;s service account. If empty, defaults to
528 # `{project_id}@appspot.gserviceaccount.com`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700529 &quot;name&quot;: &quot;A String&quot;, # A user-defined name of the function. Function names must be unique
530 # globally and match pattern `projects/*/locations/*/functions/*`
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700531 &quot;eventTrigger&quot;: { # Describes EventTrigger, used to request events be sent from another # A source that fires events in response to a condition in another service.
532 # service.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700533 &quot;service&quot;: &quot;A String&quot;, # The hostname of the service that should be observed.
534 #
535 # If no string is provided, the default service implementing the API will
536 # be used. For example, `storage.googleapis.com` is the default for all
537 # event types in the `google.storage` namespace.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700538 &quot;eventType&quot;: &quot;A String&quot;, # Required. The type of event to observe. For example:
539 # `providers/cloud.storage/eventTypes/object.change` and
540 # `providers/cloud.pubsub/eventTypes/topic.publish`.
541 #
542 # Event types match pattern `providers/*/eventTypes/*.*`.
543 # The pattern contains:
544 #
545 # 1. namespace: For example, `cloud.storage` and
546 # `google.firebase.analytics`.
547 # 2. resource type: The type of resource on which event occurs. For
548 # example, the Google Cloud Storage API includes the type `object`.
549 # 3. action: The action that generates the event. For example, action for
550 # a Google Cloud Storage Object is &#x27;change&#x27;.
551 # These parts are lower case.
552 &quot;resource&quot;: &quot;A String&quot;, # Required. The resource(s) from which to observe events, for example,
553 # `projects/_/buckets/myBucket`.
554 #
555 # Not all syntactically correct values are accepted by all services. For
556 # example:
557 #
558 # 1. The authorization model must support it. Google Cloud Functions
559 # only allows EventTriggers to be deployed that observe resources in the
560 # same project as the `CloudFunction`.
561 # 2. The resource type must match the pattern expected for an
562 # `event_type`. For example, an `EventTrigger` that has an
563 # `event_type` of &quot;google.pubsub.topic.publish&quot; should have a resource
564 # that matches Google Cloud Pub/Sub topics.
565 #
566 # Additionally, some services may support short names when creating an
567 # `EventTrigger`. These will always be returned in the normalized &quot;long&quot;
568 # format.
569 #
570 # See each *service&#x27;s* documentation for supported formats.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700571 &quot;failurePolicy&quot;: { # Describes the policy in case of function&#x27;s execution failure. # Specifies policy for failed executions.
572 # If empty, then defaults to ignoring failures (i.e. not retrying them).
573 &quot;retry&quot;: { # Describes the retry policy in case of function&#x27;s execution failure. # If specified, then the function will be retried in case of a failure.
574 # A function execution will be retried on any failure.
575 # A failed execution will be retried up to 7 days with an exponential backoff
576 # (capped at 10 seconds).
577 # Retried execution is charged as any other execution.
578 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700579 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700580 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700581 &quot;entryPoint&quot;: &quot;A String&quot;, # The name of the function (as defined in source code) that will be
582 # executed. Defaults to the resource name suffix, if not specified. For
583 # backward compatibility, if function with given name is not found, then the
584 # system will try to use function named &quot;function&quot;.
585 # For Node.js this is name of a function exported by the module specified
586 # in `source_location`.
587 &quot;vpcConnector&quot;: &quot;A String&quot;, # The VPC Network Connector that this cloud function can connect to. It can
588 # be either the fully-qualified URI, or the short name of the network
589 # connector resource. The format of this field is
590 # `projects/*/locations/*/connectors/*`
591 #
592 # This field is mutually exclusive with `network` field and will eventually
593 # replace it.
594 #
595 # See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for
596 # more information on connecting Cloud projects.
597 &quot;network&quot;: &quot;A String&quot;, # The VPC Network that this cloud function can connect to. It can be
598 # either the fully-qualified URI, or the short name of the network resource.
599 # If the short network name is used, the network must belong to the same
600 # project. Otherwise, it must belong to a project within the same
601 # organization. The format of this field is either
602 # `projects/{project}/global/networks/{network}` or `{network}`, where
603 # {project} is a project id where the network is defined, and {network} is
604 # the short name of the network.
605 #
606 # This field is mutually exclusive with `vpc_connector` and will be replaced
607 # by it.
608 #
609 # See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for
610 # more information on connecting Cloud projects.
611 &quot;sourceArchiveUrl&quot;: &quot;A String&quot;, # The Google Cloud Storage URL, starting with gs://, pointing to the zip
612 # archive which contains the function.
613 &quot;httpsTrigger&quot;: { # Describes HttpsTrigger, could be used to connect web hooks to function. # An HTTPS endpoint type of source that can be triggered via URL.
614 &quot;url&quot;: &quot;A String&quot;, # Output only. The deployed url for the function.
615 },
616 &quot;vpcConnectorEgressSettings&quot;: &quot;A String&quot;, # The egress settings for the connector, controlling what traffic is diverted
617 # through it.
618 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the function deployment.
619 &quot;description&quot;: &quot;A String&quot;, # User-provided description of a function.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700620 &quot;timeout&quot;: &quot;A String&quot;, # The function execution timeout. Execution is considered failed and
621 # can be terminated if the function is not completed at the end of the
622 # timeout period. Defaults to 60 seconds.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700623 &quot;labels&quot;: { # Labels associated with this Cloud Function.
624 &quot;a_key&quot;: &quot;A String&quot;,
625 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700626 &quot;versionId&quot;: &quot;A String&quot;, # Output only. The version identifier of the Cloud Function. Each deployment attempt
627 # results in a new version of a function being created.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700628 &quot;sourceRepository&quot;: { # Describes SourceRepository, used to represent parameters related to # **Beta Feature**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700629 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700630 # The source repository where a function is hosted.
631 # source repository where a function is hosted.
632 &quot;url&quot;: &quot;A String&quot;, # The URL pointing to the hosted repository where the function is defined.
633 # There are supported Cloud Source Repository URLs in the following
634 # formats:
635 #
636 # To refer to a specific commit:
637 # `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*`
638 # To refer to a moveable alias (branch):
639 # `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/paths/*`
640 # In particular, to refer to HEAD use `master` moveable alias.
641 # To refer to a specific fixed alias (tag):
642 # `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*`
643 #
644 # You may omit `paths/*` if you want to use the main directory.
645 &quot;deployedUrl&quot;: &quot;A String&quot;, # Output only. The URL pointing to the hosted repository where the function
646 # were defined at the time of deployment. It always points to a specific
647 # commit in the format described above.
648 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700649 &quot;sourceUploadUrl&quot;: &quot;A String&quot;, # The Google Cloud Storage signed URL used for source uploading, generated
650 # by google.cloud.functions.v1.GenerateUploadUrl
651 &quot;availableMemoryMb&quot;: 42, # The amount of memory in MB available for a function.
652 # Defaults to 256MB.
653 &quot;environmentVariables&quot;: { # Environment variables that shall be available during function execution.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700654 &quot;a_key&quot;: &quot;A String&quot;,
655 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700656 &quot;maxInstances&quot;: 42, # The limit on the maximum number of function instances that may coexist at a
657 # given time.
658 &quot;ingressSettings&quot;: &quot;A String&quot;, # The ingress settings for the function, controlling what traffic can reach
659 # it.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700660 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700661</div>
662
663<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700664 <code class="details" id="getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700665 <pre>Gets the IAM access control policy for a function.
666Returns an empty policy if the function exists and does not have a policy
667set.
668
669Args:
670 resource: string, REQUIRED: The resource for which the policy is being requested.
671See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700672 options_requestedPolicyVersion: integer, Optional. The policy format version to be returned.
673
674Valid values are 0, 1, and 3. Requests specifying an invalid value will be
675rejected.
676
677Requests for policies with any conditional bindings must specify version 3.
678Policies without any conditional bindings may specify any valid value or
679leave the field unset.
Bu Sun Kim65020912020-05-20 12:08:20 -0700680
681To learn which resources support conditions in their IAM policies, see the
682[IAM
683documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700684 x__xgafv: string, V1 error format.
685 Allowed values
686 1 - v1 error format
687 2 - v2 error format
688
689Returns:
690 An object of the form:
691
Dan O'Mearadd494642020-05-01 07:42:23 -0700692 { # An Identity and Access Management (IAM) policy, which specifies access
693 # controls for Google Cloud resources.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700694 #
695 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700696 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
697 # `members` to a single `role`. Members can be user accounts, service accounts,
698 # Google groups, and domains (such as G Suite). A `role` is a named list of
699 # permissions; each `role` can be an IAM predefined role or a user-created
700 # custom role.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700701 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700702 # For some types of Google Cloud resources, a `binding` can also specify a
703 # `condition`, which is a logical expression that allows access to a resource
704 # only if the expression evaluates to `true`. A condition can add constraints
705 # based on attributes of the request, the resource, or both. To learn which
706 # resources support conditions in their IAM policies, see the
707 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -0700708 #
709 # **JSON example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700710 #
711 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700712 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700713 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700714 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
715 # &quot;members&quot;: [
716 # &quot;user:mike@example.com&quot;,
717 # &quot;group:admins@example.com&quot;,
718 # &quot;domain:google.com&quot;,
719 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700720 # ]
721 # },
722 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700723 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
724 # &quot;members&quot;: [
725 # &quot;user:eve@example.com&quot;
726 # ],
727 # &quot;condition&quot;: {
728 # &quot;title&quot;: &quot;expirable access&quot;,
729 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
730 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700731 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700732 # }
Dan O'Mearadd494642020-05-01 07:42:23 -0700733 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700734 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
735 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700736 # }
737 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700738 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700739 #
740 # bindings:
741 # - members:
742 # - user:mike@example.com
743 # - group:admins@example.com
744 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -0700745 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
746 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700747 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -0700748 # - user:eve@example.com
749 # role: roles/resourcemanager.organizationViewer
750 # condition:
751 # title: expirable access
752 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -0700753 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -0700754 # - etag: BwWWja0YfJA=
755 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700756 #
757 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -0700758 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -0700759 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
760 { # Specifies the audit configuration for a service.
761 # The configuration determines which permission types are logged, and what
762 # identities, if any, are exempted from logging.
763 # An AuditConfig must have one or more AuditLogConfigs.
764 #
765 # If there are AuditConfigs for both `allServices` and a specific service,
766 # the union of the two AuditConfigs is used for that service: the log_types
767 # specified in each AuditConfig are enabled, and the exempted_members in each
768 # AuditLogConfig are exempted.
769 #
770 # Example Policy with multiple AuditConfigs:
771 #
772 # {
773 # &quot;audit_configs&quot;: [
774 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700775 # &quot;service&quot;: &quot;allServices&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700776 # &quot;audit_log_configs&quot;: [
777 # {
778 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
779 # &quot;exempted_members&quot;: [
780 # &quot;user:jose@example.com&quot;
781 # ]
782 # },
783 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700784 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -0700785 # },
786 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700787 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -0700788 # }
789 # ]
790 # },
791 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700792 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700793 # &quot;audit_log_configs&quot;: [
794 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700795 # &quot;log_type&quot;: &quot;DATA_READ&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -0700796 # },
797 # {
798 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
799 # &quot;exempted_members&quot;: [
800 # &quot;user:aliya@example.com&quot;
801 # ]
802 # }
803 # ]
804 # }
805 # ]
806 # }
807 #
808 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
809 # logging. It also exempts jose@example.com from DATA_READ logging, and
810 # aliya@example.com from DATA_WRITE logging.
811 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
812 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
813 # `allServices` is a special value that covers all services.
814 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
815 { # Provides the configuration for logging a type of permissions.
816 # Example:
817 #
818 # {
819 # &quot;audit_log_configs&quot;: [
820 # {
821 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
822 # &quot;exempted_members&quot;: [
823 # &quot;user:jose@example.com&quot;
824 # ]
825 # },
826 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700827 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -0700828 # }
829 # ]
830 # }
831 #
832 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
833 # jose@example.com from DATA_READ logging.
Bu Sun Kim65020912020-05-20 12:08:20 -0700834 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
835 # permission.
836 # Follows the same format of Binding.members.
837 &quot;A String&quot;,
838 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700839 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
Bu Sun Kim65020912020-05-20 12:08:20 -0700840 },
841 ],
842 },
843 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700844 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
845 # prevent simultaneous updates of a policy from overwriting each other.
846 # It is strongly suggested that systems make use of the `etag` in the
847 # read-modify-write cycle to perform policy updates in order to avoid race
848 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
849 # systems are expected to put that etag in the request to `setIamPolicy` to
850 # ensure that their change will be applied to the same version of the policy.
851 #
852 # **Important:** If you use IAM Conditions, you must include the `etag` field
853 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
854 # you to overwrite a version `3` policy with a version `1` policy, and all of
855 # the conditions in the version `3` policy are lost.
Bu Sun Kim65020912020-05-20 12:08:20 -0700856 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -0700857 # `condition` that determines how and when the `bindings` are applied. Each
858 # of the `bindings` must contain at least one member.
859 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700860 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
861 #
862 # If the condition evaluates to `true`, then this binding applies to the
863 # current request.
864 #
865 # If the condition evaluates to `false`, then this binding does not apply to
866 # the current request. However, a different role binding might grant the same
867 # role to one or more of the members in this binding.
868 #
869 # To learn which resources support conditions in their IAM policies, see the
870 # [IAM
871 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
872 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
873 # are documented at https://github.com/google/cel-spec.
874 #
875 # Example (Comparison):
876 #
877 # title: &quot;Summary size limit&quot;
878 # description: &quot;Determines if a summary is less than 100 chars&quot;
879 # expression: &quot;document.summary.size() &lt; 100&quot;
880 #
881 # Example (Equality):
882 #
883 # title: &quot;Requestor is owner&quot;
884 # description: &quot;Determines if requestor is the document owner&quot;
885 # expression: &quot;document.owner == request.auth.claims.email&quot;
886 #
887 # Example (Logic):
888 #
889 # title: &quot;Public documents&quot;
890 # description: &quot;Determine whether the document should be publicly visible&quot;
891 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
892 #
893 # Example (Data Manipulation):
894 #
895 # title: &quot;Notification string&quot;
896 # description: &quot;Create a notification string with a timestamp.&quot;
897 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
898 #
899 # The exact variables and functions that may be referenced within an expression
900 # are determined by the service that evaluates it. See the service
901 # documentation for additional information.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700902 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
903 # describes the expression, e.g. when hovered over it in a UI.
904 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
905 # reporting, e.g. a file name and a position in the file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700906 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
907 # its purpose. This can be used e.g. in UIs which allow to enter the
908 # expression.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700909 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
910 # syntax.
Bu Sun Kim65020912020-05-20 12:08:20 -0700911 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700912 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
913 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700914 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Dan O'Mearadd494642020-05-01 07:42:23 -0700915 # `members` can have the following values:
916 #
917 # * `allUsers`: A special identifier that represents anyone who is
918 # on the internet; with or without a Google account.
919 #
920 # * `allAuthenticatedUsers`: A special identifier that represents anyone
921 # who is authenticated with a Google account or a service account.
922 #
923 # * `user:{emailid}`: An email address that represents a specific Google
924 # account. For example, `alice@example.com` .
925 #
926 #
927 # * `serviceAccount:{emailid}`: An email address that represents a service
928 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
929 #
930 # * `group:{emailid}`: An email address that represents a Google group.
931 # For example, `admins@example.com`.
932 #
933 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
934 # identifier) representing a user that has been recently deleted. For
935 # example, `alice@example.com?uid=123456789012345678901`. If the user is
936 # recovered, this value reverts to `user:{emailid}` and the recovered user
937 # retains the role in the binding.
938 #
939 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
940 # unique identifier) representing a service account that has been recently
941 # deleted. For example,
942 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
943 # If the service account is undeleted, this value reverts to
944 # `serviceAccount:{emailid}` and the undeleted service account retains the
945 # role in the binding.
946 #
947 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
948 # identifier) representing a Google group that has been recently
949 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
950 # the group is recovered, this value reverts to `group:{emailid}` and the
951 # recovered group retains the role in the binding.
952 #
953 #
954 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
955 # users of that domain. For example, `google.com` or `example.com`.
956 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700957 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700958 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700959 },
960 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700961 &quot;version&quot;: 42, # Specifies the format of the policy.
962 #
963 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
964 # are rejected.
965 #
966 # Any operation that affects conditional role bindings must specify version
967 # `3`. This requirement applies to the following operations:
968 #
969 # * Getting a policy that includes a conditional role binding
970 # * Adding a conditional role binding to a policy
971 # * Changing a conditional role binding in a policy
972 # * Removing any role binding, with or without a condition, from a policy
973 # that includes conditions
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700974 #
975 # **Important:** If you use IAM Conditions, you must include the `etag` field
976 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
977 # you to overwrite a version `3` policy with a version `1` policy, and all of
978 # the conditions in the version `3` policy are lost.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700979 #
980 # If a policy does not include any conditions, operations on that policy may
981 # specify any valid version or leave the field unset.
982 #
983 # To learn which resources support conditions in their IAM policies, see the
984 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700985 }</pre>
986</div>
987
988<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700989 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700990 <pre>Returns a list of functions that belong to the requested project.
991
992Args:
993 parent: string, The project and location from which the function should be listed,
994specified in the format `projects/*/locations/*`
Bu Sun Kim65020912020-05-20 12:08:20 -0700995If you want to list functions in all locations, use &quot;-&quot; in place of a
Dan O'Mearadd494642020-05-01 07:42:23 -0700996location. When listing functions in all locations, if one or more
997location(s) are unreachable, the response will contain functions from all
998reachable locations along with the names of any unreachable locations. (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700999 pageSize: integer, Maximum number of functions to return per call.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001000 pageToken: string, The value returned by the last
1001`ListFunctionsResponse`; indicates that
1002this is a continuation of a prior `ListFunctions` call, and that the
1003system should return the next page of data.
1004 x__xgafv: string, V1 error format.
1005 Allowed values
1006 1 - v1 error format
1007 2 - v2 error format
1008
1009Returns:
1010 An object of the form:
1011
1012 { # Response for the `ListFunctions` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07001013 &quot;functions&quot;: [ # The functions that match the request.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001014 { # Describes a Cloud Function that contains user computation executed in
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001015 # response to an event. It encapsulate function and triggers configurations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001016 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of a Cloud Function.
1017 &quot;runtime&quot;: &quot;A String&quot;, # The runtime in which to run the function. Required when deploying a new
1018 # function, optional when updating an existing function. For a complete
1019 # list of possible choices, see the
1020 # [`gcloud` command
1021 # reference](/sdk/gcloud/reference/functions/deploy#--runtime).
1022 &quot;buildId&quot;: &quot;A String&quot;, # Output only. The Cloud Build ID of the latest successful deployment of the
1023 # function.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001024 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email of the function&#x27;s service account. If empty, defaults to
1025 # `{project_id}@appspot.gserviceaccount.com`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001026 &quot;name&quot;: &quot;A String&quot;, # A user-defined name of the function. Function names must be unique
1027 # globally and match pattern `projects/*/locations/*/functions/*`
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001028 &quot;eventTrigger&quot;: { # Describes EventTrigger, used to request events be sent from another # A source that fires events in response to a condition in another service.
1029 # service.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001030 &quot;service&quot;: &quot;A String&quot;, # The hostname of the service that should be observed.
1031 #
1032 # If no string is provided, the default service implementing the API will
1033 # be used. For example, `storage.googleapis.com` is the default for all
1034 # event types in the `google.storage` namespace.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001035 &quot;eventType&quot;: &quot;A String&quot;, # Required. The type of event to observe. For example:
1036 # `providers/cloud.storage/eventTypes/object.change` and
1037 # `providers/cloud.pubsub/eventTypes/topic.publish`.
1038 #
1039 # Event types match pattern `providers/*/eventTypes/*.*`.
1040 # The pattern contains:
1041 #
1042 # 1. namespace: For example, `cloud.storage` and
1043 # `google.firebase.analytics`.
1044 # 2. resource type: The type of resource on which event occurs. For
1045 # example, the Google Cloud Storage API includes the type `object`.
1046 # 3. action: The action that generates the event. For example, action for
1047 # a Google Cloud Storage Object is &#x27;change&#x27;.
1048 # These parts are lower case.
1049 &quot;resource&quot;: &quot;A String&quot;, # Required. The resource(s) from which to observe events, for example,
1050 # `projects/_/buckets/myBucket`.
1051 #
1052 # Not all syntactically correct values are accepted by all services. For
1053 # example:
1054 #
1055 # 1. The authorization model must support it. Google Cloud Functions
1056 # only allows EventTriggers to be deployed that observe resources in the
1057 # same project as the `CloudFunction`.
1058 # 2. The resource type must match the pattern expected for an
1059 # `event_type`. For example, an `EventTrigger` that has an
1060 # `event_type` of &quot;google.pubsub.topic.publish&quot; should have a resource
1061 # that matches Google Cloud Pub/Sub topics.
1062 #
1063 # Additionally, some services may support short names when creating an
1064 # `EventTrigger`. These will always be returned in the normalized &quot;long&quot;
1065 # format.
1066 #
1067 # See each *service&#x27;s* documentation for supported formats.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001068 &quot;failurePolicy&quot;: { # Describes the policy in case of function&#x27;s execution failure. # Specifies policy for failed executions.
1069 # If empty, then defaults to ignoring failures (i.e. not retrying them).
1070 &quot;retry&quot;: { # Describes the retry policy in case of function&#x27;s execution failure. # If specified, then the function will be retried in case of a failure.
1071 # A function execution will be retried on any failure.
1072 # A failed execution will be retried up to 7 days with an exponential backoff
1073 # (capped at 10 seconds).
1074 # Retried execution is charged as any other execution.
1075 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001076 },
1077 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001078 &quot;entryPoint&quot;: &quot;A String&quot;, # The name of the function (as defined in source code) that will be
1079 # executed. Defaults to the resource name suffix, if not specified. For
1080 # backward compatibility, if function with given name is not found, then the
1081 # system will try to use function named &quot;function&quot;.
1082 # For Node.js this is name of a function exported by the module specified
1083 # in `source_location`.
1084 &quot;vpcConnector&quot;: &quot;A String&quot;, # The VPC Network Connector that this cloud function can connect to. It can
1085 # be either the fully-qualified URI, or the short name of the network
1086 # connector resource. The format of this field is
1087 # `projects/*/locations/*/connectors/*`
1088 #
1089 # This field is mutually exclusive with `network` field and will eventually
1090 # replace it.
1091 #
1092 # See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for
1093 # more information on connecting Cloud projects.
1094 &quot;network&quot;: &quot;A String&quot;, # The VPC Network that this cloud function can connect to. It can be
1095 # either the fully-qualified URI, or the short name of the network resource.
1096 # If the short network name is used, the network must belong to the same
1097 # project. Otherwise, it must belong to a project within the same
1098 # organization. The format of this field is either
1099 # `projects/{project}/global/networks/{network}` or `{network}`, where
1100 # {project} is a project id where the network is defined, and {network} is
1101 # the short name of the network.
1102 #
1103 # This field is mutually exclusive with `vpc_connector` and will be replaced
1104 # by it.
1105 #
1106 # See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for
1107 # more information on connecting Cloud projects.
1108 &quot;sourceArchiveUrl&quot;: &quot;A String&quot;, # The Google Cloud Storage URL, starting with gs://, pointing to the zip
1109 # archive which contains the function.
1110 &quot;httpsTrigger&quot;: { # Describes HttpsTrigger, could be used to connect web hooks to function. # An HTTPS endpoint type of source that can be triggered via URL.
1111 &quot;url&quot;: &quot;A String&quot;, # Output only. The deployed url for the function.
1112 },
1113 &quot;vpcConnectorEgressSettings&quot;: &quot;A String&quot;, # The egress settings for the connector, controlling what traffic is diverted
1114 # through it.
1115 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the function deployment.
1116 &quot;description&quot;: &quot;A String&quot;, # User-provided description of a function.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001117 &quot;timeout&quot;: &quot;A String&quot;, # The function execution timeout. Execution is considered failed and
1118 # can be terminated if the function is not completed at the end of the
1119 # timeout period. Defaults to 60 seconds.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001120 &quot;labels&quot;: { # Labels associated with this Cloud Function.
1121 &quot;a_key&quot;: &quot;A String&quot;,
1122 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001123 &quot;versionId&quot;: &quot;A String&quot;, # Output only. The version identifier of the Cloud Function. Each deployment attempt
1124 # results in a new version of a function being created.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001125 &quot;sourceRepository&quot;: { # Describes SourceRepository, used to represent parameters related to # **Beta Feature**
Bu Sun Kim65020912020-05-20 12:08:20 -07001126 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001127 # The source repository where a function is hosted.
1128 # source repository where a function is hosted.
1129 &quot;url&quot;: &quot;A String&quot;, # The URL pointing to the hosted repository where the function is defined.
1130 # There are supported Cloud Source Repository URLs in the following
1131 # formats:
1132 #
1133 # To refer to a specific commit:
1134 # `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*`
1135 # To refer to a moveable alias (branch):
1136 # `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/paths/*`
1137 # In particular, to refer to HEAD use `master` moveable alias.
1138 # To refer to a specific fixed alias (tag):
1139 # `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*`
1140 #
1141 # You may omit `paths/*` if you want to use the main directory.
1142 &quot;deployedUrl&quot;: &quot;A String&quot;, # Output only. The URL pointing to the hosted repository where the function
1143 # were defined at the time of deployment. It always points to a specific
1144 # commit in the format described above.
1145 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001146 &quot;sourceUploadUrl&quot;: &quot;A String&quot;, # The Google Cloud Storage signed URL used for source uploading, generated
1147 # by google.cloud.functions.v1.GenerateUploadUrl
1148 &quot;availableMemoryMb&quot;: 42, # The amount of memory in MB available for a function.
1149 # Defaults to 256MB.
1150 &quot;environmentVariables&quot;: { # Environment variables that shall be available during function execution.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001151 &quot;a_key&quot;: &quot;A String&quot;,
1152 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001153 &quot;maxInstances&quot;: 42, # The limit on the maximum number of function instances that may coexist at a
1154 # given time.
1155 &quot;ingressSettings&quot;: &quot;A String&quot;, # The ingress settings for the function, controlling what traffic can reach
1156 # it.
Bu Sun Kim65020912020-05-20 12:08:20 -07001157 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001158 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001159 &quot;nextPageToken&quot;: &quot;A String&quot;, # If not empty, indicates that there may be more functions that match
1160 # the request; this value should be passed in a new
1161 # google.cloud.functions.v1.ListFunctionsRequest
1162 # to get more functions.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001163 &quot;unreachable&quot;: [ # Locations that could not be reached. The response does not include any
1164 # functions from these locations.
1165 &quot;A String&quot;,
1166 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001167 }</pre>
1168</div>
1169
1170<div class="method">
1171 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1172 <pre>Retrieves the next page of results.
1173
1174Args:
1175 previous_request: The request for the previous page. (required)
1176 previous_response: The response from the request for the previous page. (required)
1177
1178Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001179 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001180 page. Returns None if there are no more items in the collection.
1181 </pre>
1182</div>
1183
1184<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001185 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001186 <pre>Updates existing function.
1187
1188Args:
1189 name: string, A user-defined name of the function. Function names must be unique
1190globally and match pattern `projects/*/locations/*/functions/*` (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001191 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001192 The object takes the form of:
1193
1194{ # Describes a Cloud Function that contains user computation executed in
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001195 # response to an event. It encapsulate function and triggers configurations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001196 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of a Cloud Function.
1197 &quot;runtime&quot;: &quot;A String&quot;, # The runtime in which to run the function. Required when deploying a new
1198 # function, optional when updating an existing function. For a complete
1199 # list of possible choices, see the
1200 # [`gcloud` command
1201 # reference](/sdk/gcloud/reference/functions/deploy#--runtime).
1202 &quot;buildId&quot;: &quot;A String&quot;, # Output only. The Cloud Build ID of the latest successful deployment of the
1203 # function.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001204 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # The email of the function&#x27;s service account. If empty, defaults to
1205 # `{project_id}@appspot.gserviceaccount.com`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001206 &quot;name&quot;: &quot;A String&quot;, # A user-defined name of the function. Function names must be unique
1207 # globally and match pattern `projects/*/locations/*/functions/*`
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001208 &quot;eventTrigger&quot;: { # Describes EventTrigger, used to request events be sent from another # A source that fires events in response to a condition in another service.
1209 # service.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001210 &quot;service&quot;: &quot;A String&quot;, # The hostname of the service that should be observed.
1211 #
1212 # If no string is provided, the default service implementing the API will
1213 # be used. For example, `storage.googleapis.com` is the default for all
1214 # event types in the `google.storage` namespace.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001215 &quot;eventType&quot;: &quot;A String&quot;, # Required. The type of event to observe. For example:
1216 # `providers/cloud.storage/eventTypes/object.change` and
1217 # `providers/cloud.pubsub/eventTypes/topic.publish`.
1218 #
1219 # Event types match pattern `providers/*/eventTypes/*.*`.
1220 # The pattern contains:
1221 #
1222 # 1. namespace: For example, `cloud.storage` and
1223 # `google.firebase.analytics`.
1224 # 2. resource type: The type of resource on which event occurs. For
1225 # example, the Google Cloud Storage API includes the type `object`.
1226 # 3. action: The action that generates the event. For example, action for
1227 # a Google Cloud Storage Object is &#x27;change&#x27;.
1228 # These parts are lower case.
1229 &quot;resource&quot;: &quot;A String&quot;, # Required. The resource(s) from which to observe events, for example,
1230 # `projects/_/buckets/myBucket`.
1231 #
1232 # Not all syntactically correct values are accepted by all services. For
1233 # example:
1234 #
1235 # 1. The authorization model must support it. Google Cloud Functions
1236 # only allows EventTriggers to be deployed that observe resources in the
1237 # same project as the `CloudFunction`.
1238 # 2. The resource type must match the pattern expected for an
1239 # `event_type`. For example, an `EventTrigger` that has an
1240 # `event_type` of &quot;google.pubsub.topic.publish&quot; should have a resource
1241 # that matches Google Cloud Pub/Sub topics.
1242 #
1243 # Additionally, some services may support short names when creating an
1244 # `EventTrigger`. These will always be returned in the normalized &quot;long&quot;
1245 # format.
1246 #
1247 # See each *service&#x27;s* documentation for supported formats.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001248 &quot;failurePolicy&quot;: { # Describes the policy in case of function&#x27;s execution failure. # Specifies policy for failed executions.
1249 # If empty, then defaults to ignoring failures (i.e. not retrying them).
1250 &quot;retry&quot;: { # Describes the retry policy in case of function&#x27;s execution failure. # If specified, then the function will be retried in case of a failure.
1251 # A function execution will be retried on any failure.
1252 # A failed execution will be retried up to 7 days with an exponential backoff
1253 # (capped at 10 seconds).
1254 # Retried execution is charged as any other execution.
1255 },
Dan O'Mearadd494642020-05-01 07:42:23 -07001256 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001257 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001258 &quot;entryPoint&quot;: &quot;A String&quot;, # The name of the function (as defined in source code) that will be
1259 # executed. Defaults to the resource name suffix, if not specified. For
1260 # backward compatibility, if function with given name is not found, then the
1261 # system will try to use function named &quot;function&quot;.
1262 # For Node.js this is name of a function exported by the module specified
1263 # in `source_location`.
1264 &quot;vpcConnector&quot;: &quot;A String&quot;, # The VPC Network Connector that this cloud function can connect to. It can
1265 # be either the fully-qualified URI, or the short name of the network
1266 # connector resource. The format of this field is
1267 # `projects/*/locations/*/connectors/*`
1268 #
1269 # This field is mutually exclusive with `network` field and will eventually
1270 # replace it.
1271 #
1272 # See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for
1273 # more information on connecting Cloud projects.
1274 &quot;network&quot;: &quot;A String&quot;, # The VPC Network that this cloud function can connect to. It can be
1275 # either the fully-qualified URI, or the short name of the network resource.
1276 # If the short network name is used, the network must belong to the same
1277 # project. Otherwise, it must belong to a project within the same
1278 # organization. The format of this field is either
1279 # `projects/{project}/global/networks/{network}` or `{network}`, where
1280 # {project} is a project id where the network is defined, and {network} is
1281 # the short name of the network.
1282 #
1283 # This field is mutually exclusive with `vpc_connector` and will be replaced
1284 # by it.
1285 #
1286 # See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for
1287 # more information on connecting Cloud projects.
1288 &quot;sourceArchiveUrl&quot;: &quot;A String&quot;, # The Google Cloud Storage URL, starting with gs://, pointing to the zip
1289 # archive which contains the function.
1290 &quot;httpsTrigger&quot;: { # Describes HttpsTrigger, could be used to connect web hooks to function. # An HTTPS endpoint type of source that can be triggered via URL.
1291 &quot;url&quot;: &quot;A String&quot;, # Output only. The deployed url for the function.
1292 },
1293 &quot;vpcConnectorEgressSettings&quot;: &quot;A String&quot;, # The egress settings for the connector, controlling what traffic is diverted
1294 # through it.
1295 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the function deployment.
1296 &quot;description&quot;: &quot;A String&quot;, # User-provided description of a function.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001297 &quot;timeout&quot;: &quot;A String&quot;, # The function execution timeout. Execution is considered failed and
1298 # can be terminated if the function is not completed at the end of the
1299 # timeout period. Defaults to 60 seconds.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001300 &quot;labels&quot;: { # Labels associated with this Cloud Function.
1301 &quot;a_key&quot;: &quot;A String&quot;,
1302 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001303 &quot;versionId&quot;: &quot;A String&quot;, # Output only. The version identifier of the Cloud Function. Each deployment attempt
1304 # results in a new version of a function being created.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001305 &quot;sourceRepository&quot;: { # Describes SourceRepository, used to represent parameters related to # **Beta Feature**
1306 #
1307 # The source repository where a function is hosted.
1308 # source repository where a function is hosted.
1309 &quot;url&quot;: &quot;A String&quot;, # The URL pointing to the hosted repository where the function is defined.
1310 # There are supported Cloud Source Repository URLs in the following
1311 # formats:
1312 #
1313 # To refer to a specific commit:
1314 # `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*`
1315 # To refer to a moveable alias (branch):
1316 # `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/paths/*`
1317 # In particular, to refer to HEAD use `master` moveable alias.
1318 # To refer to a specific fixed alias (tag):
1319 # `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*`
1320 #
1321 # You may omit `paths/*` if you want to use the main directory.
1322 &quot;deployedUrl&quot;: &quot;A String&quot;, # Output only. The URL pointing to the hosted repository where the function
1323 # were defined at the time of deployment. It always points to a specific
1324 # commit in the format described above.
1325 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001326 &quot;sourceUploadUrl&quot;: &quot;A String&quot;, # The Google Cloud Storage signed URL used for source uploading, generated
1327 # by google.cloud.functions.v1.GenerateUploadUrl
1328 &quot;availableMemoryMb&quot;: 42, # The amount of memory in MB available for a function.
1329 # Defaults to 256MB.
1330 &quot;environmentVariables&quot;: { # Environment variables that shall be available during function execution.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001331 &quot;a_key&quot;: &quot;A String&quot;,
1332 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001333 &quot;maxInstances&quot;: 42, # The limit on the maximum number of function instances that may coexist at a
1334 # given time.
1335 &quot;ingressSettings&quot;: &quot;A String&quot;, # The ingress settings for the function, controlling what traffic can reach
1336 # it.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001337 }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001338
1339 updateMask: string, Required list of fields to be updated in this request.
1340 x__xgafv: string, V1 error format.
1341 Allowed values
1342 1 - v1 error format
1343 2 - v2 error format
1344
1345Returns:
1346 An object of the form:
1347
1348 { # This resource represents a long-running operation that is the result of a
1349 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -07001350 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001351 # If `true`, the operation is completed, and either `error` or `response` is
1352 # available.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001353 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
1354 # different programming environments, including REST APIs and RPC APIs. It is
1355 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1356 # three pieces of data: error code, error message, and error details.
1357 #
1358 # You can find out more about this error model and how to work with it in the
1359 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1360 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1361 # user-facing error message should be localized and sent in the
1362 # google.rpc.Status.details field, or localized by the client.
1363 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1364 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1365 # message types for APIs to use.
1366 {
1367 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1368 },
1369 ],
1370 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001371 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001372 # method returns no data on success, such as `Delete`, the response is
1373 # `google.protobuf.Empty`. If the original method is standard
1374 # `Get`/`Create`/`Update`, the response should be the resource. For other
1375 # methods, the response should have the type `XxxResponse`, where `Xxx`
1376 # is the original method name. For example, if the original method name
1377 # is `TakeSnapshot()`, the inferred response type is
1378 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001379 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001380 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001381 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001382 # originally returns it. If you use the default HTTP mapping, the
1383 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001384 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
1385 # contains progress information and common metadata such as create time.
1386 # Some services might not provide such metadata. Any method that returns a
1387 # long-running operation should document the metadata type, if any.
1388 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1389 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001390 }</pre>
1391</div>
1392
1393<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001394 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001395 <pre>Sets the IAM access control policy on the specified function.
1396Replaces any existing policy.
1397
1398Args:
1399 resource: string, REQUIRED: The resource for which the policy is being specified.
1400See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001401 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001402 The object takes the form of:
1403
1404{ # Request message for `SetIamPolicy` method.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001405 &quot;updateMask&quot;: &quot;A String&quot;, # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
1406 # the fields in the mask will be modified. If no mask is provided, the
1407 # following default mask is used:
1408 #
1409 # `paths: &quot;bindings, etag&quot;`
Bu Sun Kim65020912020-05-20 12:08:20 -07001410 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access # REQUIRED: The complete policy to be applied to the `resource`. The size of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001411 # the policy is limited to a few 10s of KB. An empty policy is a
1412 # valid policy but certain Cloud Platform services (such as Projects)
1413 # might reject them.
Dan O'Mearadd494642020-05-01 07:42:23 -07001414 # controls for Google Cloud resources.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001415 #
1416 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001417 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
1418 # `members` to a single `role`. Members can be user accounts, service accounts,
1419 # Google groups, and domains (such as G Suite). A `role` is a named list of
1420 # permissions; each `role` can be an IAM predefined role or a user-created
1421 # custom role.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001422 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001423 # For some types of Google Cloud resources, a `binding` can also specify a
1424 # `condition`, which is a logical expression that allows access to a resource
1425 # only if the expression evaluates to `true`. A condition can add constraints
1426 # based on attributes of the request, the resource, or both. To learn which
1427 # resources support conditions in their IAM policies, see the
1428 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -07001429 #
1430 # **JSON example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001431 #
1432 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001433 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001434 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001435 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
1436 # &quot;members&quot;: [
1437 # &quot;user:mike@example.com&quot;,
1438 # &quot;group:admins@example.com&quot;,
1439 # &quot;domain:google.com&quot;,
1440 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001441 # ]
1442 # },
1443 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001444 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
1445 # &quot;members&quot;: [
1446 # &quot;user:eve@example.com&quot;
1447 # ],
1448 # &quot;condition&quot;: {
1449 # &quot;title&quot;: &quot;expirable access&quot;,
1450 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
1451 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001452 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001453 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07001454 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001455 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
1456 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001457 # }
1458 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001459 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001460 #
1461 # bindings:
1462 # - members:
1463 # - user:mike@example.com
1464 # - group:admins@example.com
1465 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -07001466 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
1467 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001468 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -07001469 # - user:eve@example.com
1470 # role: roles/resourcemanager.organizationViewer
1471 # condition:
1472 # title: expirable access
1473 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -07001474 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -07001475 # - etag: BwWWja0YfJA=
1476 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001477 #
1478 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -07001479 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -07001480 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1481 { # Specifies the audit configuration for a service.
1482 # The configuration determines which permission types are logged, and what
1483 # identities, if any, are exempted from logging.
1484 # An AuditConfig must have one or more AuditLogConfigs.
1485 #
1486 # If there are AuditConfigs for both `allServices` and a specific service,
1487 # the union of the two AuditConfigs is used for that service: the log_types
1488 # specified in each AuditConfig are enabled, and the exempted_members in each
1489 # AuditLogConfig are exempted.
1490 #
1491 # Example Policy with multiple AuditConfigs:
1492 #
1493 # {
1494 # &quot;audit_configs&quot;: [
1495 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001496 # &quot;service&quot;: &quot;allServices&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07001497 # &quot;audit_log_configs&quot;: [
1498 # {
1499 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1500 # &quot;exempted_members&quot;: [
1501 # &quot;user:jose@example.com&quot;
1502 # ]
1503 # },
1504 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001505 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -07001506 # },
1507 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001508 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -07001509 # }
1510 # ]
1511 # },
1512 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001513 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07001514 # &quot;audit_log_configs&quot;: [
1515 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001516 # &quot;log_type&quot;: &quot;DATA_READ&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -07001517 # },
1518 # {
1519 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1520 # &quot;exempted_members&quot;: [
1521 # &quot;user:aliya@example.com&quot;
1522 # ]
1523 # }
1524 # ]
1525 # }
1526 # ]
1527 # }
1528 #
1529 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
1530 # logging. It also exempts jose@example.com from DATA_READ logging, and
1531 # aliya@example.com from DATA_WRITE logging.
1532 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
1533 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
1534 # `allServices` is a special value that covers all services.
1535 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1536 { # Provides the configuration for logging a type of permissions.
1537 # Example:
1538 #
1539 # {
1540 # &quot;audit_log_configs&quot;: [
1541 # {
1542 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1543 # &quot;exempted_members&quot;: [
1544 # &quot;user:jose@example.com&quot;
1545 # ]
1546 # },
1547 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001548 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -07001549 # }
1550 # ]
1551 # }
1552 #
1553 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
1554 # jose@example.com from DATA_READ logging.
Bu Sun Kim65020912020-05-20 12:08:20 -07001555 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
1556 # permission.
1557 # Follows the same format of Binding.members.
1558 &quot;A String&quot;,
1559 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001560 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
Bu Sun Kim65020912020-05-20 12:08:20 -07001561 },
1562 ],
1563 },
1564 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001565 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
1566 # prevent simultaneous updates of a policy from overwriting each other.
1567 # It is strongly suggested that systems make use of the `etag` in the
1568 # read-modify-write cycle to perform policy updates in order to avoid race
1569 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1570 # systems are expected to put that etag in the request to `setIamPolicy` to
1571 # ensure that their change will be applied to the same version of the policy.
1572 #
1573 # **Important:** If you use IAM Conditions, you must include the `etag` field
1574 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1575 # you to overwrite a version `3` policy with a version `1` policy, and all of
1576 # the conditions in the version `3` policy are lost.
Bu Sun Kim65020912020-05-20 12:08:20 -07001577 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -07001578 # `condition` that determines how and when the `bindings` are applied. Each
1579 # of the `bindings` must contain at least one member.
1580 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001581 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
1582 #
1583 # If the condition evaluates to `true`, then this binding applies to the
1584 # current request.
1585 #
1586 # If the condition evaluates to `false`, then this binding does not apply to
1587 # the current request. However, a different role binding might grant the same
1588 # role to one or more of the members in this binding.
1589 #
1590 # To learn which resources support conditions in their IAM policies, see the
1591 # [IAM
1592 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1593 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1594 # are documented at https://github.com/google/cel-spec.
1595 #
1596 # Example (Comparison):
1597 #
1598 # title: &quot;Summary size limit&quot;
1599 # description: &quot;Determines if a summary is less than 100 chars&quot;
1600 # expression: &quot;document.summary.size() &lt; 100&quot;
1601 #
1602 # Example (Equality):
1603 #
1604 # title: &quot;Requestor is owner&quot;
1605 # description: &quot;Determines if requestor is the document owner&quot;
1606 # expression: &quot;document.owner == request.auth.claims.email&quot;
1607 #
1608 # Example (Logic):
1609 #
1610 # title: &quot;Public documents&quot;
1611 # description: &quot;Determine whether the document should be publicly visible&quot;
1612 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1613 #
1614 # Example (Data Manipulation):
1615 #
1616 # title: &quot;Notification string&quot;
1617 # description: &quot;Create a notification string with a timestamp.&quot;
1618 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1619 #
1620 # The exact variables and functions that may be referenced within an expression
1621 # are determined by the service that evaluates it. See the service
1622 # documentation for additional information.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001623 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1624 # describes the expression, e.g. when hovered over it in a UI.
1625 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1626 # reporting, e.g. a file name and a position in the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07001627 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
1628 # its purpose. This can be used e.g. in UIs which allow to enter the
1629 # expression.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001630 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1631 # syntax.
Bu Sun Kim65020912020-05-20 12:08:20 -07001632 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001633 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
1634 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001635 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Dan O'Mearadd494642020-05-01 07:42:23 -07001636 # `members` can have the following values:
1637 #
1638 # * `allUsers`: A special identifier that represents anyone who is
1639 # on the internet; with or without a Google account.
1640 #
1641 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1642 # who is authenticated with a Google account or a service account.
1643 #
1644 # * `user:{emailid}`: An email address that represents a specific Google
1645 # account. For example, `alice@example.com` .
1646 #
1647 #
1648 # * `serviceAccount:{emailid}`: An email address that represents a service
1649 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1650 #
1651 # * `group:{emailid}`: An email address that represents a Google group.
1652 # For example, `admins@example.com`.
1653 #
1654 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1655 # identifier) representing a user that has been recently deleted. For
1656 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1657 # recovered, this value reverts to `user:{emailid}` and the recovered user
1658 # retains the role in the binding.
1659 #
1660 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1661 # unique identifier) representing a service account that has been recently
1662 # deleted. For example,
1663 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1664 # If the service account is undeleted, this value reverts to
1665 # `serviceAccount:{emailid}` and the undeleted service account retains the
1666 # role in the binding.
1667 #
1668 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1669 # identifier) representing a Google group that has been recently
1670 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1671 # the group is recovered, this value reverts to `group:{emailid}` and the
1672 # recovered group retains the role in the binding.
1673 #
1674 #
1675 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1676 # users of that domain. For example, `google.com` or `example.com`.
1677 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001678 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001679 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07001680 },
1681 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001682 &quot;version&quot;: 42, # Specifies the format of the policy.
1683 #
1684 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
1685 # are rejected.
1686 #
1687 # Any operation that affects conditional role bindings must specify version
1688 # `3`. This requirement applies to the following operations:
1689 #
1690 # * Getting a policy that includes a conditional role binding
1691 # * Adding a conditional role binding to a policy
1692 # * Changing a conditional role binding in a policy
1693 # * Removing any role binding, with or without a condition, from a policy
1694 # that includes conditions
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001695 #
1696 # **Important:** If you use IAM Conditions, you must include the `etag` field
1697 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1698 # you to overwrite a version `3` policy with a version `1` policy, and all of
1699 # the conditions in the version `3` policy are lost.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001700 #
1701 # If a policy does not include any conditions, operations on that policy may
1702 # specify any valid version or leave the field unset.
1703 #
1704 # To learn which resources support conditions in their IAM policies, see the
1705 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001706 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001707 }
1708
1709 x__xgafv: string, V1 error format.
1710 Allowed values
1711 1 - v1 error format
1712 2 - v2 error format
1713
1714Returns:
1715 An object of the form:
1716
Dan O'Mearadd494642020-05-01 07:42:23 -07001717 { # An Identity and Access Management (IAM) policy, which specifies access
1718 # controls for Google Cloud resources.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001719 #
1720 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001721 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
1722 # `members` to a single `role`. Members can be user accounts, service accounts,
1723 # Google groups, and domains (such as G Suite). A `role` is a named list of
1724 # permissions; each `role` can be an IAM predefined role or a user-created
1725 # custom role.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001726 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001727 # For some types of Google Cloud resources, a `binding` can also specify a
1728 # `condition`, which is a logical expression that allows access to a resource
1729 # only if the expression evaluates to `true`. A condition can add constraints
1730 # based on attributes of the request, the resource, or both. To learn which
1731 # resources support conditions in their IAM policies, see the
1732 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -07001733 #
1734 # **JSON example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001735 #
1736 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001737 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001738 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001739 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
1740 # &quot;members&quot;: [
1741 # &quot;user:mike@example.com&quot;,
1742 # &quot;group:admins@example.com&quot;,
1743 # &quot;domain:google.com&quot;,
1744 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001745 # ]
1746 # },
1747 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001748 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
1749 # &quot;members&quot;: [
1750 # &quot;user:eve@example.com&quot;
1751 # ],
1752 # &quot;condition&quot;: {
1753 # &quot;title&quot;: &quot;expirable access&quot;,
1754 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
1755 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001756 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001757 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07001758 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001759 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
1760 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001761 # }
1762 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001763 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001764 #
1765 # bindings:
1766 # - members:
1767 # - user:mike@example.com
1768 # - group:admins@example.com
1769 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -07001770 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
1771 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001772 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -07001773 # - user:eve@example.com
1774 # role: roles/resourcemanager.organizationViewer
1775 # condition:
1776 # title: expirable access
1777 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -07001778 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -07001779 # - etag: BwWWja0YfJA=
1780 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001781 #
1782 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -07001783 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -07001784 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1785 { # Specifies the audit configuration for a service.
1786 # The configuration determines which permission types are logged, and what
1787 # identities, if any, are exempted from logging.
1788 # An AuditConfig must have one or more AuditLogConfigs.
1789 #
1790 # If there are AuditConfigs for both `allServices` and a specific service,
1791 # the union of the two AuditConfigs is used for that service: the log_types
1792 # specified in each AuditConfig are enabled, and the exempted_members in each
1793 # AuditLogConfig are exempted.
1794 #
1795 # Example Policy with multiple AuditConfigs:
1796 #
1797 # {
1798 # &quot;audit_configs&quot;: [
1799 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001800 # &quot;service&quot;: &quot;allServices&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07001801 # &quot;audit_log_configs&quot;: [
1802 # {
1803 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1804 # &quot;exempted_members&quot;: [
1805 # &quot;user:jose@example.com&quot;
1806 # ]
1807 # },
1808 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001809 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -07001810 # },
1811 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001812 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -07001813 # }
1814 # ]
1815 # },
1816 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001817 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07001818 # &quot;audit_log_configs&quot;: [
1819 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001820 # &quot;log_type&quot;: &quot;DATA_READ&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -07001821 # },
1822 # {
1823 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1824 # &quot;exempted_members&quot;: [
1825 # &quot;user:aliya@example.com&quot;
1826 # ]
1827 # }
1828 # ]
1829 # }
1830 # ]
1831 # }
1832 #
1833 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
1834 # logging. It also exempts jose@example.com from DATA_READ logging, and
1835 # aliya@example.com from DATA_WRITE logging.
1836 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
1837 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
1838 # `allServices` is a special value that covers all services.
1839 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1840 { # Provides the configuration for logging a type of permissions.
1841 # Example:
1842 #
1843 # {
1844 # &quot;audit_log_configs&quot;: [
1845 # {
1846 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1847 # &quot;exempted_members&quot;: [
1848 # &quot;user:jose@example.com&quot;
1849 # ]
1850 # },
1851 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001852 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -07001853 # }
1854 # ]
1855 # }
1856 #
1857 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
1858 # jose@example.com from DATA_READ logging.
Bu Sun Kim65020912020-05-20 12:08:20 -07001859 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
1860 # permission.
1861 # Follows the same format of Binding.members.
1862 &quot;A String&quot;,
1863 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001864 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
Bu Sun Kim65020912020-05-20 12:08:20 -07001865 },
1866 ],
1867 },
1868 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001869 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
1870 # prevent simultaneous updates of a policy from overwriting each other.
1871 # It is strongly suggested that systems make use of the `etag` in the
1872 # read-modify-write cycle to perform policy updates in order to avoid race
1873 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1874 # systems are expected to put that etag in the request to `setIamPolicy` to
1875 # ensure that their change will be applied to the same version of the policy.
1876 #
1877 # **Important:** If you use IAM Conditions, you must include the `etag` field
1878 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1879 # you to overwrite a version `3` policy with a version `1` policy, and all of
1880 # the conditions in the version `3` policy are lost.
Bu Sun Kim65020912020-05-20 12:08:20 -07001881 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -07001882 # `condition` that determines how and when the `bindings` are applied. Each
1883 # of the `bindings` must contain at least one member.
1884 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001885 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
1886 #
1887 # If the condition evaluates to `true`, then this binding applies to the
1888 # current request.
1889 #
1890 # If the condition evaluates to `false`, then this binding does not apply to
1891 # the current request. However, a different role binding might grant the same
1892 # role to one or more of the members in this binding.
1893 #
1894 # To learn which resources support conditions in their IAM policies, see the
1895 # [IAM
1896 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1897 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1898 # are documented at https://github.com/google/cel-spec.
1899 #
1900 # Example (Comparison):
1901 #
1902 # title: &quot;Summary size limit&quot;
1903 # description: &quot;Determines if a summary is less than 100 chars&quot;
1904 # expression: &quot;document.summary.size() &lt; 100&quot;
1905 #
1906 # Example (Equality):
1907 #
1908 # title: &quot;Requestor is owner&quot;
1909 # description: &quot;Determines if requestor is the document owner&quot;
1910 # expression: &quot;document.owner == request.auth.claims.email&quot;
1911 #
1912 # Example (Logic):
1913 #
1914 # title: &quot;Public documents&quot;
1915 # description: &quot;Determine whether the document should be publicly visible&quot;
1916 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1917 #
1918 # Example (Data Manipulation):
1919 #
1920 # title: &quot;Notification string&quot;
1921 # description: &quot;Create a notification string with a timestamp.&quot;
1922 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1923 #
1924 # The exact variables and functions that may be referenced within an expression
1925 # are determined by the service that evaluates it. See the service
1926 # documentation for additional information.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001927 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1928 # describes the expression, e.g. when hovered over it in a UI.
1929 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1930 # reporting, e.g. a file name and a position in the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07001931 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
1932 # its purpose. This can be used e.g. in UIs which allow to enter the
1933 # expression.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001934 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1935 # syntax.
Bu Sun Kim65020912020-05-20 12:08:20 -07001936 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001937 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
1938 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001939 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Dan O'Mearadd494642020-05-01 07:42:23 -07001940 # `members` can have the following values:
1941 #
1942 # * `allUsers`: A special identifier that represents anyone who is
1943 # on the internet; with or without a Google account.
1944 #
1945 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1946 # who is authenticated with a Google account or a service account.
1947 #
1948 # * `user:{emailid}`: An email address that represents a specific Google
1949 # account. For example, `alice@example.com` .
1950 #
1951 #
1952 # * `serviceAccount:{emailid}`: An email address that represents a service
1953 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1954 #
1955 # * `group:{emailid}`: An email address that represents a Google group.
1956 # For example, `admins@example.com`.
1957 #
1958 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1959 # identifier) representing a user that has been recently deleted. For
1960 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1961 # recovered, this value reverts to `user:{emailid}` and the recovered user
1962 # retains the role in the binding.
1963 #
1964 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1965 # unique identifier) representing a service account that has been recently
1966 # deleted. For example,
1967 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1968 # If the service account is undeleted, this value reverts to
1969 # `serviceAccount:{emailid}` and the undeleted service account retains the
1970 # role in the binding.
1971 #
1972 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1973 # identifier) representing a Google group that has been recently
1974 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1975 # the group is recovered, this value reverts to `group:{emailid}` and the
1976 # recovered group retains the role in the binding.
1977 #
1978 #
1979 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1980 # users of that domain. For example, `google.com` or `example.com`.
1981 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001982 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001983 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07001984 },
1985 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001986 &quot;version&quot;: 42, # Specifies the format of the policy.
1987 #
1988 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
1989 # are rejected.
1990 #
1991 # Any operation that affects conditional role bindings must specify version
1992 # `3`. This requirement applies to the following operations:
1993 #
1994 # * Getting a policy that includes a conditional role binding
1995 # * Adding a conditional role binding to a policy
1996 # * Changing a conditional role binding in a policy
1997 # * Removing any role binding, with or without a condition, from a policy
1998 # that includes conditions
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001999 #
2000 # **Important:** If you use IAM Conditions, you must include the `etag` field
2001 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
2002 # you to overwrite a version `3` policy with a version `1` policy, and all of
2003 # the conditions in the version `3` policy are lost.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002004 #
2005 # If a policy does not include any conditions, operations on that policy may
2006 # specify any valid version or leave the field unset.
2007 #
2008 # To learn which resources support conditions in their IAM policies, see the
2009 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002010 }</pre>
2011</div>
2012
2013<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002014 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002015 <pre>Tests the specified permissions against the IAM access control policy
2016for a function.
2017If the function does not exist, this will return an empty set of
2018permissions, not a NOT_FOUND error.
2019
2020Args:
2021 resource: string, REQUIRED: The resource for which the policy detail is being requested.
2022See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002023 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002024 The object takes the form of:
2025
2026{ # Request message for `TestIamPermissions` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07002027 &quot;permissions&quot;: [ # The set of permissions to check for the `resource`. Permissions with
2028 # wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed. For more
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002029 # information see
2030 # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
Bu Sun Kim65020912020-05-20 12:08:20 -07002031 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002032 ],
2033 }
2034
2035 x__xgafv: string, V1 error format.
2036 Allowed values
2037 1 - v1 error format
2038 2 - v2 error format
2039
2040Returns:
2041 An object of the form:
2042
2043 { # Response message for `TestIamPermissions` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07002044 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002045 # allowed.
Bu Sun Kim65020912020-05-20 12:08:20 -07002046 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002047 ],
2048 }</pre>
2049</div>
2050
2051</body></html>