blob: 81703b6ec626164fe7188e85c9c0d6312c0d9d2a [file] [log] [blame]
Bu Sun Kim65020912020-05-20 12:08:20 -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="bigqueryconnection_v1beta1.html">BigQuery Connection API</a> . <a href="bigqueryconnection_v1beta1.projects.html">projects</a> . <a href="bigqueryconnection_v1beta1.projects.locations.html">locations</a> . <a href="bigqueryconnection_v1beta1.projects.locations.connections.html">connections</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#create">create(parent, body=None, connectionId=None, x__xgafv=None)</a></code></p>
79<p class="firstline">Creates a new connection.</p>
80<p class="toc_element">
81 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
82<p class="firstline">Deletes connection and associated credential.</p>
83<p class="toc_element">
84 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
85<p class="firstline">Returns specified connection.</p>
86<p class="toc_element">
87 <code><a href="#getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
88<p class="firstline">Gets the access control policy for a resource.</p>
89<p class="toc_element">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -070090 <code><a href="#list">list(parent, maxResults=None, pageToken=None, x__xgafv=None)</a></code></p>
Bu Sun Kim65020912020-05-20 12:08:20 -070091<p class="firstline">Returns a list of connections in the given project.</p>
92<p class="toc_element">
93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<p class="toc_element">
96 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
97<p class="firstline">Updates the specified connection. For security reasons, also resets</p>
98<p class="toc_element">
99 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
100<p class="firstline">Sets the access control policy on the specified resource. Replaces any</p>
101<p class="toc_element">
102 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
103<p class="firstline">Returns permissions that a caller has on the specified resource.</p>
104<p class="toc_element">
105 <code><a href="#updateCredential">updateCredential(name, body=None, x__xgafv=None)</a></code></p>
106<p class="firstline">Sets the credential for the specified connection.</p>
107<h3>Method Details</h3>
108<div class="method">
109 <code class="details" id="create">create(parent, body=None, connectionId=None, x__xgafv=None)</code>
110 <pre>Creates a new connection.
111
112Args:
113 parent: string, Required. Parent resource name.
114Must be in the format `projects/{project_id}/locations/{location_id}` (required)
115 body: object, The request body.
116 The object takes the form of:
117
118{ # Configuration parameters to establish connection with an external data
119 # source, except the credential attributes.
Bu Sun Kim65020912020-05-20 12:08:20 -0700120 &quot;cloudSql&quot;: { # Connection properties specific to the Cloud SQL. # Cloud SQL properties.
Bu Sun Kim65020912020-05-20 12:08:20 -0700121 &quot;database&quot;: &quot;A String&quot;, # Database name.
122 &quot;instanceId&quot;: &quot;A String&quot;, # Cloud SQL instance ID in the form `project:location:instance`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700123 &quot;type&quot;: &quot;A String&quot;, # Type of the Cloud SQL database.
124 &quot;credential&quot;: { # Credential info for the Cloud SQL. # Input only. Cloud SQL credential.
125 &quot;password&quot;: &quot;A String&quot;, # The password for the credential.
126 &quot;username&quot;: &quot;A String&quot;, # The username for the credential.
127 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700128 },
129 &quot;hasCredential&quot;: True or False, # Output only. True, if credential is configured for this connection.
130 &quot;friendlyName&quot;: &quot;A String&quot;, # User provided display name for the connection.
131 &quot;lastModifiedTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the connection.
132 &quot;description&quot;: &quot;A String&quot;, # User provided description.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700133 &quot;creationTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the connection.
134 &quot;name&quot;: &quot;A String&quot;, # The resource name of the connection in the form of:
135 # `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
Bu Sun Kim65020912020-05-20 12:08:20 -0700136}
137
138 connectionId: string, Optional. Connection id that should be assigned to the created connection.
139 x__xgafv: string, V1 error format.
140 Allowed values
141 1 - v1 error format
142 2 - v2 error format
143
144Returns:
145 An object of the form:
146
147 { # Configuration parameters to establish connection with an external data
148 # source, except the credential attributes.
Bu Sun Kim65020912020-05-20 12:08:20 -0700149 &quot;cloudSql&quot;: { # Connection properties specific to the Cloud SQL. # Cloud SQL properties.
Bu Sun Kim65020912020-05-20 12:08:20 -0700150 &quot;database&quot;: &quot;A String&quot;, # Database name.
151 &quot;instanceId&quot;: &quot;A String&quot;, # Cloud SQL instance ID in the form `project:location:instance`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700152 &quot;type&quot;: &quot;A String&quot;, # Type of the Cloud SQL database.
153 &quot;credential&quot;: { # Credential info for the Cloud SQL. # Input only. Cloud SQL credential.
154 &quot;password&quot;: &quot;A String&quot;, # The password for the credential.
155 &quot;username&quot;: &quot;A String&quot;, # The username for the credential.
156 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700157 },
158 &quot;hasCredential&quot;: True or False, # Output only. True, if credential is configured for this connection.
159 &quot;friendlyName&quot;: &quot;A String&quot;, # User provided display name for the connection.
160 &quot;lastModifiedTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the connection.
161 &quot;description&quot;: &quot;A String&quot;, # User provided description.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700162 &quot;creationTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the connection.
163 &quot;name&quot;: &quot;A String&quot;, # The resource name of the connection in the form of:
164 # `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
Bu Sun Kim65020912020-05-20 12:08:20 -0700165 }</pre>
166</div>
167
168<div class="method">
169 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
170 <pre>Deletes connection and associated credential.
171
172Args:
173 name: string, Required. Name of the deleted connection, for example:
174`projects/{project_id}/locations/{location_id}/connections/{connection_id}` (required)
175 x__xgafv: string, V1 error format.
176 Allowed values
177 1 - v1 error format
178 2 - v2 error format
179
180Returns:
181 An object of the form:
182
183 { # A generic empty message that you can re-use to avoid defining duplicated
184 # empty messages in your APIs. A typical example is to use it as the request
185 # or the response type of an API method. For instance:
186 #
187 # service Foo {
188 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
189 # }
190 #
191 # The JSON representation for `Empty` is empty JSON object `{}`.
192 }</pre>
193</div>
194
195<div class="method">
196 <code class="details" id="get">get(name, x__xgafv=None)</code>
197 <pre>Returns specified connection.
198
199Args:
200 name: string, Required. Name of the requested connection, for example:
201`projects/{project_id}/locations/{location_id}/connections/{connection_id}` (required)
202 x__xgafv: string, V1 error format.
203 Allowed values
204 1 - v1 error format
205 2 - v2 error format
206
207Returns:
208 An object of the form:
209
210 { # Configuration parameters to establish connection with an external data
211 # source, except the credential attributes.
Bu Sun Kim65020912020-05-20 12:08:20 -0700212 &quot;cloudSql&quot;: { # Connection properties specific to the Cloud SQL. # Cloud SQL properties.
Bu Sun Kim65020912020-05-20 12:08:20 -0700213 &quot;database&quot;: &quot;A String&quot;, # Database name.
214 &quot;instanceId&quot;: &quot;A String&quot;, # Cloud SQL instance ID in the form `project:location:instance`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700215 &quot;type&quot;: &quot;A String&quot;, # Type of the Cloud SQL database.
216 &quot;credential&quot;: { # Credential info for the Cloud SQL. # Input only. Cloud SQL credential.
217 &quot;password&quot;: &quot;A String&quot;, # The password for the credential.
218 &quot;username&quot;: &quot;A String&quot;, # The username for the credential.
219 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700220 },
221 &quot;hasCredential&quot;: True or False, # Output only. True, if credential is configured for this connection.
222 &quot;friendlyName&quot;: &quot;A String&quot;, # User provided display name for the connection.
223 &quot;lastModifiedTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the connection.
224 &quot;description&quot;: &quot;A String&quot;, # User provided description.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700225 &quot;creationTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the connection.
226 &quot;name&quot;: &quot;A String&quot;, # The resource name of the connection in the form of:
227 # `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
Bu Sun Kim65020912020-05-20 12:08:20 -0700228 }</pre>
229</div>
230
231<div class="method">
232 <code class="details" id="getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</code>
233 <pre>Gets the access control policy for a resource.
234Returns an empty policy if the resource exists and does not have a policy
235set.
236
237Args:
238 resource: string, REQUIRED: The resource for which the policy is being requested.
239See the operation documentation for the appropriate value for this field. (required)
240 body: object, The request body.
241 The object takes the form of:
242
243{ # Request message for `GetIamPolicy` method.
244 &quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to
245 # `GetIamPolicy`.
246 &quot;requestedPolicyVersion&quot;: 42, # Optional. The policy format version to be returned.
247 #
248 # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
249 # rejected.
250 #
251 # Requests for policies with any conditional bindings must specify version 3.
252 # Policies without any conditional bindings may specify any valid value or
253 # leave the field unset.
254 #
255 # To learn which resources support conditions in their IAM policies, see the
256 # [IAM
257 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
258 },
259 }
260
261 x__xgafv: string, V1 error format.
262 Allowed values
263 1 - v1 error format
264 2 - v2 error format
265
266Returns:
267 An object of the form:
268
269 { # An Identity and Access Management (IAM) policy, which specifies access
270 # controls for Google Cloud resources.
271 #
272 #
273 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
274 # `members` to a single `role`. Members can be user accounts, service accounts,
275 # Google groups, and domains (such as G Suite). A `role` is a named list of
276 # permissions; each `role` can be an IAM predefined role or a user-created
277 # custom role.
278 #
279 # For some types of Google Cloud resources, a `binding` can also specify a
280 # `condition`, which is a logical expression that allows access to a resource
281 # only if the expression evaluates to `true`. A condition can add constraints
282 # based on attributes of the request, the resource, or both. To learn which
283 # resources support conditions in their IAM policies, see the
284 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
285 #
286 # **JSON example:**
287 #
288 # {
289 # &quot;bindings&quot;: [
290 # {
291 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
292 # &quot;members&quot;: [
293 # &quot;user:mike@example.com&quot;,
294 # &quot;group:admins@example.com&quot;,
295 # &quot;domain:google.com&quot;,
296 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
297 # ]
298 # },
299 # {
300 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
301 # &quot;members&quot;: [
302 # &quot;user:eve@example.com&quot;
303 # ],
304 # &quot;condition&quot;: {
305 # &quot;title&quot;: &quot;expirable access&quot;,
306 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
307 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
308 # }
309 # }
310 # ],
311 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
312 # &quot;version&quot;: 3
313 # }
314 #
315 # **YAML example:**
316 #
317 # bindings:
318 # - members:
319 # - user:mike@example.com
320 # - group:admins@example.com
321 # - domain:google.com
322 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
323 # role: roles/resourcemanager.organizationAdmin
324 # - members:
325 # - user:eve@example.com
326 # role: roles/resourcemanager.organizationViewer
327 # condition:
328 # title: expirable access
329 # description: Does not grant access after Sep 2020
330 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
331 # - etag: BwWWja0YfJA=
332 # - version: 3
333 #
334 # For a description of IAM and its features, see the
335 # [IAM documentation](https://cloud.google.com/iam/docs/).
336 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
337 # prevent simultaneous updates of a policy from overwriting each other.
338 # It is strongly suggested that systems make use of the `etag` in the
339 # read-modify-write cycle to perform policy updates in order to avoid race
340 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
341 # systems are expected to put that etag in the request to `setIamPolicy` to
342 # ensure that their change will be applied to the same version of the policy.
343 #
344 # **Important:** If you use IAM Conditions, you must include the `etag` field
345 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
346 # you to overwrite a version `3` policy with a version `1` policy, and all of
347 # the conditions in the version `3` policy are lost.
348 &quot;version&quot;: 42, # Specifies the format of the policy.
349 #
350 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
351 # are rejected.
352 #
353 # Any operation that affects conditional role bindings must specify version
354 # `3`. This requirement applies to the following operations:
355 #
356 # * Getting a policy that includes a conditional role binding
357 # * Adding a conditional role binding to a policy
358 # * Changing a conditional role binding in a policy
359 # * Removing any role binding, with or without a condition, from a policy
360 # that includes conditions
361 #
362 # **Important:** If you use IAM Conditions, you must include the `etag` field
363 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
364 # you to overwrite a version `3` policy with a version `1` policy, and all of
365 # the conditions in the version `3` policy are lost.
366 #
367 # If a policy does not include any conditions, operations on that policy may
368 # specify any valid version or leave the field unset.
369 #
370 # To learn which resources support conditions in their IAM policies, see the
371 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
372 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
373 { # Specifies the audit configuration for a service.
374 # The configuration determines which permission types are logged, and what
375 # identities, if any, are exempted from logging.
376 # An AuditConfig must have one or more AuditLogConfigs.
377 #
378 # If there are AuditConfigs for both `allServices` and a specific service,
379 # the union of the two AuditConfigs is used for that service: the log_types
380 # specified in each AuditConfig are enabled, and the exempted_members in each
381 # AuditLogConfig are exempted.
382 #
383 # Example Policy with multiple AuditConfigs:
384 #
385 # {
386 # &quot;audit_configs&quot;: [
387 # {
388 # &quot;service&quot;: &quot;allServices&quot;
389 # &quot;audit_log_configs&quot;: [
390 # {
391 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
392 # &quot;exempted_members&quot;: [
393 # &quot;user:jose@example.com&quot;
394 # ]
395 # },
396 # {
397 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
398 # },
399 # {
400 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
401 # }
402 # ]
403 # },
404 # {
405 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
406 # &quot;audit_log_configs&quot;: [
407 # {
408 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
409 # },
410 # {
411 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
412 # &quot;exempted_members&quot;: [
413 # &quot;user:aliya@example.com&quot;
414 # ]
415 # }
416 # ]
417 # }
418 # ]
419 # }
420 #
421 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
422 # logging. It also exempts jose@example.com from DATA_READ logging, and
423 # aliya@example.com from DATA_WRITE logging.
424 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
425 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
426 # `allServices` is a special value that covers all services.
427 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
428 { # Provides the configuration for logging a type of permissions.
429 # Example:
430 #
431 # {
432 # &quot;audit_log_configs&quot;: [
433 # {
434 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
435 # &quot;exempted_members&quot;: [
436 # &quot;user:jose@example.com&quot;
437 # ]
438 # },
439 # {
440 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
441 # }
442 # ]
443 # }
444 #
445 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
446 # jose@example.com from DATA_READ logging.
447 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
448 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
449 # permission.
450 # Follows the same format of Binding.members.
451 &quot;A String&quot;,
452 ],
453 },
454 ],
455 },
456 ],
457 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
458 # `condition` that determines how and when the `bindings` are applied. Each
459 # of the `bindings` must contain at least one member.
460 { # Associates `members` with a `role`.
461 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
462 #
463 # If the condition evaluates to `true`, then this binding applies to the
464 # current request.
465 #
466 # If the condition evaluates to `false`, then this binding does not apply to
467 # the current request. However, a different role binding might grant the same
468 # role to one or more of the members in this binding.
469 #
470 # To learn which resources support conditions in their IAM policies, see the
471 # [IAM
472 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
473 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
474 # are documented at https://github.com/google/cel-spec.
475 #
476 # Example (Comparison):
477 #
478 # title: &quot;Summary size limit&quot;
479 # description: &quot;Determines if a summary is less than 100 chars&quot;
480 # expression: &quot;document.summary.size() &lt; 100&quot;
481 #
482 # Example (Equality):
483 #
484 # title: &quot;Requestor is owner&quot;
485 # description: &quot;Determines if requestor is the document owner&quot;
486 # expression: &quot;document.owner == request.auth.claims.email&quot;
487 #
488 # Example (Logic):
489 #
490 # title: &quot;Public documents&quot;
491 # description: &quot;Determine whether the document should be publicly visible&quot;
492 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
493 #
494 # Example (Data Manipulation):
495 #
496 # title: &quot;Notification string&quot;
497 # description: &quot;Create a notification string with a timestamp.&quot;
498 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
499 #
500 # The exact variables and functions that may be referenced within an expression
501 # are determined by the service that evaluates it. See the service
502 # documentation for additional information.
503 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
504 # syntax.
505 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
506 # its purpose. This can be used e.g. in UIs which allow to enter the
507 # expression.
508 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
509 # reporting, e.g. a file name and a position in the file.
510 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
511 # describes the expression, e.g. when hovered over it in a UI.
512 },
513 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
514 # `members` can have the following values:
515 #
516 # * `allUsers`: A special identifier that represents anyone who is
517 # on the internet; with or without a Google account.
518 #
519 # * `allAuthenticatedUsers`: A special identifier that represents anyone
520 # who is authenticated with a Google account or a service account.
521 #
522 # * `user:{emailid}`: An email address that represents a specific Google
523 # account. For example, `alice@example.com` .
524 #
525 #
526 # * `serviceAccount:{emailid}`: An email address that represents a service
527 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
528 #
529 # * `group:{emailid}`: An email address that represents a Google group.
530 # For example, `admins@example.com`.
531 #
532 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
533 # identifier) representing a user that has been recently deleted. For
534 # example, `alice@example.com?uid=123456789012345678901`. If the user is
535 # recovered, this value reverts to `user:{emailid}` and the recovered user
536 # retains the role in the binding.
537 #
538 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
539 # unique identifier) representing a service account that has been recently
540 # deleted. For example,
541 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
542 # If the service account is undeleted, this value reverts to
543 # `serviceAccount:{emailid}` and the undeleted service account retains the
544 # role in the binding.
545 #
546 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
547 # identifier) representing a Google group that has been recently
548 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
549 # the group is recovered, this value reverts to `group:{emailid}` and the
550 # recovered group retains the role in the binding.
551 #
552 #
553 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
554 # users of that domain. For example, `google.com` or `example.com`.
555 #
556 &quot;A String&quot;,
557 ],
558 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
559 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
560 },
561 ],
562 }</pre>
563</div>
564
565<div class="method">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700566 <code class="details" id="list">list(parent, maxResults=None, pageToken=None, x__xgafv=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -0700567 <pre>Returns a list of connections in the given project.
568
569Args:
570 parent: string, Required. Parent resource name.
571Must be in the form: `projects/{project_id}/locations/{location_id}` (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700572 maxResults: integer, Required. Maximum number of results per page.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700573 pageToken: string, Page token.
Bu Sun Kim65020912020-05-20 12:08:20 -0700574 x__xgafv: string, V1 error format.
575 Allowed values
576 1 - v1 error format
577 2 - v2 error format
578
579Returns:
580 An object of the form:
581
582 { # The response for ConnectionService.ListConnections.
583 &quot;nextPageToken&quot;: &quot;A String&quot;, # Next page token.
584 &quot;connections&quot;: [ # List of connections.
585 { # Configuration parameters to establish connection with an external data
586 # source, except the credential attributes.
Bu Sun Kim65020912020-05-20 12:08:20 -0700587 &quot;cloudSql&quot;: { # Connection properties specific to the Cloud SQL. # Cloud SQL properties.
Bu Sun Kim65020912020-05-20 12:08:20 -0700588 &quot;database&quot;: &quot;A String&quot;, # Database name.
589 &quot;instanceId&quot;: &quot;A String&quot;, # Cloud SQL instance ID in the form `project:location:instance`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700590 &quot;type&quot;: &quot;A String&quot;, # Type of the Cloud SQL database.
591 &quot;credential&quot;: { # Credential info for the Cloud SQL. # Input only. Cloud SQL credential.
592 &quot;password&quot;: &quot;A String&quot;, # The password for the credential.
593 &quot;username&quot;: &quot;A String&quot;, # The username for the credential.
594 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700595 },
596 &quot;hasCredential&quot;: True or False, # Output only. True, if credential is configured for this connection.
597 &quot;friendlyName&quot;: &quot;A String&quot;, # User provided display name for the connection.
598 &quot;lastModifiedTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the connection.
599 &quot;description&quot;: &quot;A String&quot;, # User provided description.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700600 &quot;creationTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the connection.
601 &quot;name&quot;: &quot;A String&quot;, # The resource name of the connection in the form of:
602 # `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
Bu Sun Kim65020912020-05-20 12:08:20 -0700603 },
604 ],
605 }</pre>
606</div>
607
608<div class="method">
609 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
610 <pre>Retrieves the next page of results.
611
612Args:
613 previous_request: The request for the previous page. (required)
614 previous_response: The response from the request for the previous page. (required)
615
616Returns:
617 A request object that you can call &#x27;execute()&#x27; on to request the next
618 page. Returns None if there are no more items in the collection.
619 </pre>
620</div>
621
622<div class="method">
623 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
624 <pre>Updates the specified connection. For security reasons, also resets
625credential if connection properties are in the update field mask.
626
627Args:
628 name: string, Required. Name of the connection to update, for example:
629`projects/{project_id}/locations/{location_id}/connections/{connection_id}` (required)
630 body: object, The request body.
631 The object takes the form of:
632
633{ # Configuration parameters to establish connection with an external data
634 # source, except the credential attributes.
Bu Sun Kim65020912020-05-20 12:08:20 -0700635 &quot;cloudSql&quot;: { # Connection properties specific to the Cloud SQL. # Cloud SQL properties.
Bu Sun Kim65020912020-05-20 12:08:20 -0700636 &quot;database&quot;: &quot;A String&quot;, # Database name.
637 &quot;instanceId&quot;: &quot;A String&quot;, # Cloud SQL instance ID in the form `project:location:instance`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700638 &quot;type&quot;: &quot;A String&quot;, # Type of the Cloud SQL database.
639 &quot;credential&quot;: { # Credential info for the Cloud SQL. # Input only. Cloud SQL credential.
640 &quot;password&quot;: &quot;A String&quot;, # The password for the credential.
641 &quot;username&quot;: &quot;A String&quot;, # The username for the credential.
642 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700643 },
644 &quot;hasCredential&quot;: True or False, # Output only. True, if credential is configured for this connection.
645 &quot;friendlyName&quot;: &quot;A String&quot;, # User provided display name for the connection.
646 &quot;lastModifiedTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the connection.
647 &quot;description&quot;: &quot;A String&quot;, # User provided description.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700648 &quot;creationTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the connection.
649 &quot;name&quot;: &quot;A String&quot;, # The resource name of the connection in the form of:
650 # `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
Bu Sun Kim65020912020-05-20 12:08:20 -0700651}
652
653 updateMask: string, Required. Update mask for the connection fields to be updated.
654 x__xgafv: string, V1 error format.
655 Allowed values
656 1 - v1 error format
657 2 - v2 error format
658
659Returns:
660 An object of the form:
661
662 { # Configuration parameters to establish connection with an external data
663 # source, except the credential attributes.
Bu Sun Kim65020912020-05-20 12:08:20 -0700664 &quot;cloudSql&quot;: { # Connection properties specific to the Cloud SQL. # Cloud SQL properties.
Bu Sun Kim65020912020-05-20 12:08:20 -0700665 &quot;database&quot;: &quot;A String&quot;, # Database name.
666 &quot;instanceId&quot;: &quot;A String&quot;, # Cloud SQL instance ID in the form `project:location:instance`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700667 &quot;type&quot;: &quot;A String&quot;, # Type of the Cloud SQL database.
668 &quot;credential&quot;: { # Credential info for the Cloud SQL. # Input only. Cloud SQL credential.
669 &quot;password&quot;: &quot;A String&quot;, # The password for the credential.
670 &quot;username&quot;: &quot;A String&quot;, # The username for the credential.
671 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700672 },
673 &quot;hasCredential&quot;: True or False, # Output only. True, if credential is configured for this connection.
674 &quot;friendlyName&quot;: &quot;A String&quot;, # User provided display name for the connection.
675 &quot;lastModifiedTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the connection.
676 &quot;description&quot;: &quot;A String&quot;, # User provided description.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700677 &quot;creationTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the connection.
678 &quot;name&quot;: &quot;A String&quot;, # The resource name of the connection in the form of:
679 # `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
Bu Sun Kim65020912020-05-20 12:08:20 -0700680 }</pre>
681</div>
682
683<div class="method">
684 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
685 <pre>Sets the access control policy on the specified resource. Replaces any
686existing policy.
687
688Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
689
690Args:
691 resource: string, REQUIRED: The resource for which the policy is being specified.
692See the operation documentation for the appropriate value for this field. (required)
693 body: object, The request body.
694 The object takes the form of:
695
696{ # Request message for `SetIamPolicy` method.
697 &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
698 # the policy is limited to a few 10s of KB. An empty policy is a
699 # valid policy but certain Cloud Platform services (such as Projects)
700 # might reject them.
701 # controls for Google Cloud resources.
702 #
703 #
704 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
705 # `members` to a single `role`. Members can be user accounts, service accounts,
706 # Google groups, and domains (such as G Suite). A `role` is a named list of
707 # permissions; each `role` can be an IAM predefined role or a user-created
708 # custom role.
709 #
710 # For some types of Google Cloud resources, a `binding` can also specify a
711 # `condition`, which is a logical expression that allows access to a resource
712 # only if the expression evaluates to `true`. A condition can add constraints
713 # based on attributes of the request, the resource, or both. To learn which
714 # resources support conditions in their IAM policies, see the
715 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
716 #
717 # **JSON example:**
718 #
719 # {
720 # &quot;bindings&quot;: [
721 # {
722 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
723 # &quot;members&quot;: [
724 # &quot;user:mike@example.com&quot;,
725 # &quot;group:admins@example.com&quot;,
726 # &quot;domain:google.com&quot;,
727 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
728 # ]
729 # },
730 # {
731 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
732 # &quot;members&quot;: [
733 # &quot;user:eve@example.com&quot;
734 # ],
735 # &quot;condition&quot;: {
736 # &quot;title&quot;: &quot;expirable access&quot;,
737 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
738 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
739 # }
740 # }
741 # ],
742 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
743 # &quot;version&quot;: 3
744 # }
745 #
746 # **YAML example:**
747 #
748 # bindings:
749 # - members:
750 # - user:mike@example.com
751 # - group:admins@example.com
752 # - domain:google.com
753 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
754 # role: roles/resourcemanager.organizationAdmin
755 # - members:
756 # - user:eve@example.com
757 # role: roles/resourcemanager.organizationViewer
758 # condition:
759 # title: expirable access
760 # description: Does not grant access after Sep 2020
761 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
762 # - etag: BwWWja0YfJA=
763 # - version: 3
764 #
765 # For a description of IAM and its features, see the
766 # [IAM documentation](https://cloud.google.com/iam/docs/).
767 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
768 # prevent simultaneous updates of a policy from overwriting each other.
769 # It is strongly suggested that systems make use of the `etag` in the
770 # read-modify-write cycle to perform policy updates in order to avoid race
771 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
772 # systems are expected to put that etag in the request to `setIamPolicy` to
773 # ensure that their change will be applied to the same version of the policy.
774 #
775 # **Important:** If you use IAM Conditions, you must include the `etag` field
776 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
777 # you to overwrite a version `3` policy with a version `1` policy, and all of
778 # the conditions in the version `3` policy are lost.
779 &quot;version&quot;: 42, # Specifies the format of the policy.
780 #
781 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
782 # are rejected.
783 #
784 # Any operation that affects conditional role bindings must specify version
785 # `3`. This requirement applies to the following operations:
786 #
787 # * Getting a policy that includes a conditional role binding
788 # * Adding a conditional role binding to a policy
789 # * Changing a conditional role binding in a policy
790 # * Removing any role binding, with or without a condition, from a policy
791 # that includes conditions
792 #
793 # **Important:** If you use IAM Conditions, you must include the `etag` field
794 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
795 # you to overwrite a version `3` policy with a version `1` policy, and all of
796 # the conditions in the version `3` policy are lost.
797 #
798 # If a policy does not include any conditions, operations on that policy may
799 # specify any valid version or leave the field unset.
800 #
801 # To learn which resources support conditions in their IAM policies, see the
802 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
803 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
804 { # Specifies the audit configuration for a service.
805 # The configuration determines which permission types are logged, and what
806 # identities, if any, are exempted from logging.
807 # An AuditConfig must have one or more AuditLogConfigs.
808 #
809 # If there are AuditConfigs for both `allServices` and a specific service,
810 # the union of the two AuditConfigs is used for that service: the log_types
811 # specified in each AuditConfig are enabled, and the exempted_members in each
812 # AuditLogConfig are exempted.
813 #
814 # Example Policy with multiple AuditConfigs:
815 #
816 # {
817 # &quot;audit_configs&quot;: [
818 # {
819 # &quot;service&quot;: &quot;allServices&quot;
820 # &quot;audit_log_configs&quot;: [
821 # {
822 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
823 # &quot;exempted_members&quot;: [
824 # &quot;user:jose@example.com&quot;
825 # ]
826 # },
827 # {
828 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
829 # },
830 # {
831 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
832 # }
833 # ]
834 # },
835 # {
836 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
837 # &quot;audit_log_configs&quot;: [
838 # {
839 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
840 # },
841 # {
842 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
843 # &quot;exempted_members&quot;: [
844 # &quot;user:aliya@example.com&quot;
845 # ]
846 # }
847 # ]
848 # }
849 # ]
850 # }
851 #
852 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
853 # logging. It also exempts jose@example.com from DATA_READ logging, and
854 # aliya@example.com from DATA_WRITE logging.
855 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
856 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
857 # `allServices` is a special value that covers all services.
858 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
859 { # Provides the configuration for logging a type of permissions.
860 # Example:
861 #
862 # {
863 # &quot;audit_log_configs&quot;: [
864 # {
865 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
866 # &quot;exempted_members&quot;: [
867 # &quot;user:jose@example.com&quot;
868 # ]
869 # },
870 # {
871 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
872 # }
873 # ]
874 # }
875 #
876 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
877 # jose@example.com from DATA_READ logging.
878 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
879 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
880 # permission.
881 # Follows the same format of Binding.members.
882 &quot;A String&quot;,
883 ],
884 },
885 ],
886 },
887 ],
888 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
889 # `condition` that determines how and when the `bindings` are applied. Each
890 # of the `bindings` must contain at least one member.
891 { # Associates `members` with a `role`.
892 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
893 #
894 # If the condition evaluates to `true`, then this binding applies to the
895 # current request.
896 #
897 # If the condition evaluates to `false`, then this binding does not apply to
898 # the current request. However, a different role binding might grant the same
899 # role to one or more of the members in this binding.
900 #
901 # To learn which resources support conditions in their IAM policies, see the
902 # [IAM
903 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
904 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
905 # are documented at https://github.com/google/cel-spec.
906 #
907 # Example (Comparison):
908 #
909 # title: &quot;Summary size limit&quot;
910 # description: &quot;Determines if a summary is less than 100 chars&quot;
911 # expression: &quot;document.summary.size() &lt; 100&quot;
912 #
913 # Example (Equality):
914 #
915 # title: &quot;Requestor is owner&quot;
916 # description: &quot;Determines if requestor is the document owner&quot;
917 # expression: &quot;document.owner == request.auth.claims.email&quot;
918 #
919 # Example (Logic):
920 #
921 # title: &quot;Public documents&quot;
922 # description: &quot;Determine whether the document should be publicly visible&quot;
923 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
924 #
925 # Example (Data Manipulation):
926 #
927 # title: &quot;Notification string&quot;
928 # description: &quot;Create a notification string with a timestamp.&quot;
929 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
930 #
931 # The exact variables and functions that may be referenced within an expression
932 # are determined by the service that evaluates it. See the service
933 # documentation for additional information.
934 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
935 # syntax.
936 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
937 # its purpose. This can be used e.g. in UIs which allow to enter the
938 # expression.
939 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
940 # reporting, e.g. a file name and a position in the file.
941 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
942 # describes the expression, e.g. when hovered over it in a UI.
943 },
944 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
945 # `members` can have the following values:
946 #
947 # * `allUsers`: A special identifier that represents anyone who is
948 # on the internet; with or without a Google account.
949 #
950 # * `allAuthenticatedUsers`: A special identifier that represents anyone
951 # who is authenticated with a Google account or a service account.
952 #
953 # * `user:{emailid}`: An email address that represents a specific Google
954 # account. For example, `alice@example.com` .
955 #
956 #
957 # * `serviceAccount:{emailid}`: An email address that represents a service
958 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
959 #
960 # * `group:{emailid}`: An email address that represents a Google group.
961 # For example, `admins@example.com`.
962 #
963 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
964 # identifier) representing a user that has been recently deleted. For
965 # example, `alice@example.com?uid=123456789012345678901`. If the user is
966 # recovered, this value reverts to `user:{emailid}` and the recovered user
967 # retains the role in the binding.
968 #
969 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
970 # unique identifier) representing a service account that has been recently
971 # deleted. For example,
972 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
973 # If the service account is undeleted, this value reverts to
974 # `serviceAccount:{emailid}` and the undeleted service account retains the
975 # role in the binding.
976 #
977 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
978 # identifier) representing a Google group that has been recently
979 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
980 # the group is recovered, this value reverts to `group:{emailid}` and the
981 # recovered group retains the role in the binding.
982 #
983 #
984 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
985 # users of that domain. For example, `google.com` or `example.com`.
986 #
987 &quot;A String&quot;,
988 ],
989 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
990 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
991 },
992 ],
993 },
994 &quot;updateMask&quot;: &quot;A String&quot;, # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
995 # the fields in the mask will be modified. If no mask is provided, the
996 # following default mask is used:
997 #
998 # `paths: &quot;bindings, etag&quot;`
999 }
1000
1001 x__xgafv: string, V1 error format.
1002 Allowed values
1003 1 - v1 error format
1004 2 - v2 error format
1005
1006Returns:
1007 An object of the form:
1008
1009 { # An Identity and Access Management (IAM) policy, which specifies access
1010 # controls for Google Cloud resources.
1011 #
1012 #
1013 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
1014 # `members` to a single `role`. Members can be user accounts, service accounts,
1015 # Google groups, and domains (such as G Suite). A `role` is a named list of
1016 # permissions; each `role` can be an IAM predefined role or a user-created
1017 # custom role.
1018 #
1019 # For some types of Google Cloud resources, a `binding` can also specify a
1020 # `condition`, which is a logical expression that allows access to a resource
1021 # only if the expression evaluates to `true`. A condition can add constraints
1022 # based on attributes of the request, the resource, or both. To learn which
1023 # resources support conditions in their IAM policies, see the
1024 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1025 #
1026 # **JSON example:**
1027 #
1028 # {
1029 # &quot;bindings&quot;: [
1030 # {
1031 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
1032 # &quot;members&quot;: [
1033 # &quot;user:mike@example.com&quot;,
1034 # &quot;group:admins@example.com&quot;,
1035 # &quot;domain:google.com&quot;,
1036 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
1037 # ]
1038 # },
1039 # {
1040 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
1041 # &quot;members&quot;: [
1042 # &quot;user:eve@example.com&quot;
1043 # ],
1044 # &quot;condition&quot;: {
1045 # &quot;title&quot;: &quot;expirable access&quot;,
1046 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
1047 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
1048 # }
1049 # }
1050 # ],
1051 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
1052 # &quot;version&quot;: 3
1053 # }
1054 #
1055 # **YAML example:**
1056 #
1057 # bindings:
1058 # - members:
1059 # - user:mike@example.com
1060 # - group:admins@example.com
1061 # - domain:google.com
1062 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
1063 # role: roles/resourcemanager.organizationAdmin
1064 # - members:
1065 # - user:eve@example.com
1066 # role: roles/resourcemanager.organizationViewer
1067 # condition:
1068 # title: expirable access
1069 # description: Does not grant access after Sep 2020
1070 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
1071 # - etag: BwWWja0YfJA=
1072 # - version: 3
1073 #
1074 # For a description of IAM and its features, see the
1075 # [IAM documentation](https://cloud.google.com/iam/docs/).
1076 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
1077 # prevent simultaneous updates of a policy from overwriting each other.
1078 # It is strongly suggested that systems make use of the `etag` in the
1079 # read-modify-write cycle to perform policy updates in order to avoid race
1080 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1081 # systems are expected to put that etag in the request to `setIamPolicy` to
1082 # ensure that their change will be applied to the same version of the policy.
1083 #
1084 # **Important:** If you use IAM Conditions, you must include the `etag` field
1085 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1086 # you to overwrite a version `3` policy with a version `1` policy, and all of
1087 # the conditions in the version `3` policy are lost.
1088 &quot;version&quot;: 42, # Specifies the format of the policy.
1089 #
1090 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
1091 # are rejected.
1092 #
1093 # Any operation that affects conditional role bindings must specify version
1094 # `3`. This requirement applies to the following operations:
1095 #
1096 # * Getting a policy that includes a conditional role binding
1097 # * Adding a conditional role binding to a policy
1098 # * Changing a conditional role binding in a policy
1099 # * Removing any role binding, with or without a condition, from a policy
1100 # that includes conditions
1101 #
1102 # **Important:** If you use IAM Conditions, you must include the `etag` field
1103 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1104 # you to overwrite a version `3` policy with a version `1` policy, and all of
1105 # the conditions in the version `3` policy are lost.
1106 #
1107 # If a policy does not include any conditions, operations on that policy may
1108 # specify any valid version or leave the field unset.
1109 #
1110 # To learn which resources support conditions in their IAM policies, see the
1111 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1112 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1113 { # Specifies the audit configuration for a service.
1114 # The configuration determines which permission types are logged, and what
1115 # identities, if any, are exempted from logging.
1116 # An AuditConfig must have one or more AuditLogConfigs.
1117 #
1118 # If there are AuditConfigs for both `allServices` and a specific service,
1119 # the union of the two AuditConfigs is used for that service: the log_types
1120 # specified in each AuditConfig are enabled, and the exempted_members in each
1121 # AuditLogConfig are exempted.
1122 #
1123 # Example Policy with multiple AuditConfigs:
1124 #
1125 # {
1126 # &quot;audit_configs&quot;: [
1127 # {
1128 # &quot;service&quot;: &quot;allServices&quot;
1129 # &quot;audit_log_configs&quot;: [
1130 # {
1131 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1132 # &quot;exempted_members&quot;: [
1133 # &quot;user:jose@example.com&quot;
1134 # ]
1135 # },
1136 # {
1137 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1138 # },
1139 # {
1140 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
1141 # }
1142 # ]
1143 # },
1144 # {
1145 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
1146 # &quot;audit_log_configs&quot;: [
1147 # {
1148 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1149 # },
1150 # {
1151 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1152 # &quot;exempted_members&quot;: [
1153 # &quot;user:aliya@example.com&quot;
1154 # ]
1155 # }
1156 # ]
1157 # }
1158 # ]
1159 # }
1160 #
1161 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
1162 # logging. It also exempts jose@example.com from DATA_READ logging, and
1163 # aliya@example.com from DATA_WRITE logging.
1164 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
1165 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
1166 # `allServices` is a special value that covers all services.
1167 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1168 { # Provides the configuration for logging a type of permissions.
1169 # Example:
1170 #
1171 # {
1172 # &quot;audit_log_configs&quot;: [
1173 # {
1174 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1175 # &quot;exempted_members&quot;: [
1176 # &quot;user:jose@example.com&quot;
1177 # ]
1178 # },
1179 # {
1180 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1181 # }
1182 # ]
1183 # }
1184 #
1185 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
1186 # jose@example.com from DATA_READ logging.
1187 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
1188 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
1189 # permission.
1190 # Follows the same format of Binding.members.
1191 &quot;A String&quot;,
1192 ],
1193 },
1194 ],
1195 },
1196 ],
1197 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
1198 # `condition` that determines how and when the `bindings` are applied. Each
1199 # of the `bindings` must contain at least one member.
1200 { # Associates `members` with a `role`.
1201 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
1202 #
1203 # If the condition evaluates to `true`, then this binding applies to the
1204 # current request.
1205 #
1206 # If the condition evaluates to `false`, then this binding does not apply to
1207 # the current request. However, a different role binding might grant the same
1208 # role to one or more of the members in this binding.
1209 #
1210 # To learn which resources support conditions in their IAM policies, see the
1211 # [IAM
1212 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1213 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1214 # are documented at https://github.com/google/cel-spec.
1215 #
1216 # Example (Comparison):
1217 #
1218 # title: &quot;Summary size limit&quot;
1219 # description: &quot;Determines if a summary is less than 100 chars&quot;
1220 # expression: &quot;document.summary.size() &lt; 100&quot;
1221 #
1222 # Example (Equality):
1223 #
1224 # title: &quot;Requestor is owner&quot;
1225 # description: &quot;Determines if requestor is the document owner&quot;
1226 # expression: &quot;document.owner == request.auth.claims.email&quot;
1227 #
1228 # Example (Logic):
1229 #
1230 # title: &quot;Public documents&quot;
1231 # description: &quot;Determine whether the document should be publicly visible&quot;
1232 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1233 #
1234 # Example (Data Manipulation):
1235 #
1236 # title: &quot;Notification string&quot;
1237 # description: &quot;Create a notification string with a timestamp.&quot;
1238 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1239 #
1240 # The exact variables and functions that may be referenced within an expression
1241 # are determined by the service that evaluates it. See the service
1242 # documentation for additional information.
1243 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1244 # syntax.
1245 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
1246 # its purpose. This can be used e.g. in UIs which allow to enter the
1247 # expression.
1248 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1249 # reporting, e.g. a file name and a position in the file.
1250 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1251 # describes the expression, e.g. when hovered over it in a UI.
1252 },
1253 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
1254 # `members` can have the following values:
1255 #
1256 # * `allUsers`: A special identifier that represents anyone who is
1257 # on the internet; with or without a Google account.
1258 #
1259 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1260 # who is authenticated with a Google account or a service account.
1261 #
1262 # * `user:{emailid}`: An email address that represents a specific Google
1263 # account. For example, `alice@example.com` .
1264 #
1265 #
1266 # * `serviceAccount:{emailid}`: An email address that represents a service
1267 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1268 #
1269 # * `group:{emailid}`: An email address that represents a Google group.
1270 # For example, `admins@example.com`.
1271 #
1272 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1273 # identifier) representing a user that has been recently deleted. For
1274 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1275 # recovered, this value reverts to `user:{emailid}` and the recovered user
1276 # retains the role in the binding.
1277 #
1278 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1279 # unique identifier) representing a service account that has been recently
1280 # deleted. For example,
1281 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1282 # If the service account is undeleted, this value reverts to
1283 # `serviceAccount:{emailid}` and the undeleted service account retains the
1284 # role in the binding.
1285 #
1286 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1287 # identifier) representing a Google group that has been recently
1288 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1289 # the group is recovered, this value reverts to `group:{emailid}` and the
1290 # recovered group retains the role in the binding.
1291 #
1292 #
1293 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1294 # users of that domain. For example, `google.com` or `example.com`.
1295 #
1296 &quot;A String&quot;,
1297 ],
1298 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
1299 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1300 },
1301 ],
1302 }</pre>
1303</div>
1304
1305<div class="method">
1306 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
1307 <pre>Returns permissions that a caller has on the specified resource.
1308If the resource does not exist, this will return an empty set of
1309permissions, not a `NOT_FOUND` error.
1310
1311Note: This operation is designed to be used for building permission-aware
1312UIs and command-line tools, not for authorization checking. This operation
1313may &quot;fail open&quot; without warning.
1314
1315Args:
1316 resource: string, REQUIRED: The resource for which the policy detail is being requested.
1317See the operation documentation for the appropriate value for this field. (required)
1318 body: object, The request body.
1319 The object takes the form of:
1320
1321{ # Request message for `TestIamPermissions` method.
1322 &quot;permissions&quot;: [ # The set of permissions to check for the `resource`. Permissions with
1323 # wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed. For more
1324 # information see
1325 # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
1326 &quot;A String&quot;,
1327 ],
1328 }
1329
1330 x__xgafv: string, V1 error format.
1331 Allowed values
1332 1 - v1 error format
1333 2 - v2 error format
1334
1335Returns:
1336 An object of the form:
1337
1338 { # Response message for `TestIamPermissions` method.
1339 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is
1340 # allowed.
1341 &quot;A String&quot;,
1342 ],
1343 }</pre>
1344</div>
1345
1346<div class="method">
1347 <code class="details" id="updateCredential">updateCredential(name, body=None, x__xgafv=None)</code>
1348 <pre>Sets the credential for the specified connection.
1349
1350Args:
1351 name: string, Required. Name of the connection, for example:
1352`projects/{project_id}/locations/{location_id}/connections/{connection_id}/credential` (required)
1353 body: object, The request body.
1354 The object takes the form of:
1355
1356{ # Credential to use with a connection.
1357 &quot;cloudSql&quot;: { # Credential info for the Cloud SQL. # Credential for Cloud SQL database.
Bu Sun Kim65020912020-05-20 12:08:20 -07001358 &quot;password&quot;: &quot;A String&quot;, # The password for the credential.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001359 &quot;username&quot;: &quot;A String&quot;, # The username for the credential.
Bu Sun Kim65020912020-05-20 12:08:20 -07001360 },
1361 }
1362
1363 x__xgafv: string, V1 error format.
1364 Allowed values
1365 1 - v1 error format
1366 2 - v2 error format
1367
1368Returns:
1369 An object of the form:
1370
1371 { # A generic empty message that you can re-use to avoid defining duplicated
1372 # empty messages in your APIs. A typical example is to use it as the request
1373 # or the response type of an API method. For instance:
1374 #
1375 # service Foo {
1376 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
1377 # }
1378 #
1379 # The JSON representation for `Empty` is empty JSON object `{}`.
1380 }</pre>
1381</div>
1382
1383</body></html>