blob: 41947a21e153e80f3ecb67ab8f9b799c923694ed [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 Kimd059ad82020-07-22 17:02:09 -070090 <code><a href="#list">list(parent, pageToken=None, maxResults=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 Kimd059ad82020-07-22 17:02:09 -0700120 &quot;creationTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the connection.
121 &quot;name&quot;: &quot;A String&quot;, # The resource name of the connection in the form of:
122 # `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
Bu Sun Kim65020912020-05-20 12:08:20 -0700123 &quot;cloudSql&quot;: { # Connection properties specific to the Cloud SQL. # Cloud SQL properties.
Bu Sun Kim65020912020-05-20 12:08:20 -0700124 &quot;database&quot;: &quot;A String&quot;, # Database name.
125 &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 -0700126 &quot;type&quot;: &quot;A String&quot;, # Type of the Cloud SQL database.
127 &quot;credential&quot;: { # Credential info for the Cloud SQL. # Input only. Cloud SQL credential.
128 &quot;password&quot;: &quot;A String&quot;, # The password for the credential.
129 &quot;username&quot;: &quot;A String&quot;, # The username for the credential.
130 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700131 },
132 &quot;hasCredential&quot;: True or False, # Output only. True, if credential is configured for this connection.
133 &quot;friendlyName&quot;: &quot;A String&quot;, # User provided display name for the connection.
134 &quot;lastModifiedTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the connection.
135 &quot;description&quot;: &quot;A String&quot;, # User provided description.
136}
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 Kimd059ad82020-07-22 17:02:09 -0700149 &quot;creationTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the connection.
150 &quot;name&quot;: &quot;A String&quot;, # The resource name of the connection in the form of:
151 # `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
Bu Sun Kim65020912020-05-20 12:08:20 -0700152 &quot;cloudSql&quot;: { # Connection properties specific to the Cloud SQL. # Cloud SQL properties.
Bu Sun Kim65020912020-05-20 12:08:20 -0700153 &quot;database&quot;: &quot;A String&quot;, # Database name.
154 &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 -0700155 &quot;type&quot;: &quot;A String&quot;, # Type of the Cloud SQL database.
156 &quot;credential&quot;: { # Credential info for the Cloud SQL. # Input only. Cloud SQL credential.
157 &quot;password&quot;: &quot;A String&quot;, # The password for the credential.
158 &quot;username&quot;: &quot;A String&quot;, # The username for the credential.
159 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700160 },
161 &quot;hasCredential&quot;: True or False, # Output only. True, if credential is configured for this connection.
162 &quot;friendlyName&quot;: &quot;A String&quot;, # User provided display name for the connection.
163 &quot;lastModifiedTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the connection.
164 &quot;description&quot;: &quot;A String&quot;, # User provided description.
165 }</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 Kimd059ad82020-07-22 17:02:09 -0700212 &quot;creationTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the connection.
213 &quot;name&quot;: &quot;A String&quot;, # The resource name of the connection in the form of:
214 # `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
Bu Sun Kim65020912020-05-20 12:08:20 -0700215 &quot;cloudSql&quot;: { # Connection properties specific to the Cloud SQL. # Cloud SQL properties.
Bu Sun Kim65020912020-05-20 12:08:20 -0700216 &quot;database&quot;: &quot;A String&quot;, # Database name.
217 &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 -0700218 &quot;type&quot;: &quot;A String&quot;, # Type of the Cloud SQL database.
219 &quot;credential&quot;: { # Credential info for the Cloud SQL. # Input only. Cloud SQL credential.
220 &quot;password&quot;: &quot;A String&quot;, # The password for the credential.
221 &quot;username&quot;: &quot;A String&quot;, # The username for the credential.
222 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700223 },
224 &quot;hasCredential&quot;: True or False, # Output only. True, if credential is configured for this connection.
225 &quot;friendlyName&quot;: &quot;A String&quot;, # User provided display name for the connection.
226 &quot;lastModifiedTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the connection.
227 &quot;description&quot;: &quot;A String&quot;, # User provided description.
228 }</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 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700388 # &quot;service&quot;: &quot;allServices&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700389 # &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 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700397 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -0700398 # },
399 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700400 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -0700401 # }
402 # ]
403 # },
404 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700405 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700406 # &quot;audit_log_configs&quot;: [
407 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700408 # &quot;log_type&quot;: &quot;DATA_READ&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -0700409 # },
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 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700440 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -0700441 # }
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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700447 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
448 # permission.
449 # Follows the same format of Binding.members.
450 &quot;A String&quot;,
451 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700452 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
Bu Sun Kim65020912020-05-20 12:08:20 -0700453 },
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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700503 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
504 # its purpose. This can be used e.g. in UIs which allow to enter the
505 # expression.
506 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
507 # reporting, e.g. a file name and a position in the file.
508 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
509 # describes the expression, e.g. when hovered over it in a UI.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700510 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
511 # syntax.
Bu Sun Kim65020912020-05-20 12:08:20 -0700512 },
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 Kimd059ad82020-07-22 17:02:09 -0700566 <code class="details" id="list">list(parent, pageToken=None, maxResults=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 Kim4ed7d3f2020-05-27 12:20:54 -0700572 pageToken: string, Page token.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700573 maxResults: integer, Required. Maximum number of results per page.
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 Kimd059ad82020-07-22 17:02:09 -0700587 &quot;creationTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the connection.
588 &quot;name&quot;: &quot;A String&quot;, # The resource name of the connection in the form of:
589 # `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
Bu Sun Kim65020912020-05-20 12:08:20 -0700590 &quot;cloudSql&quot;: { # Connection properties specific to the Cloud SQL. # Cloud SQL properties.
Bu Sun Kim65020912020-05-20 12:08:20 -0700591 &quot;database&quot;: &quot;A String&quot;, # Database name.
592 &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 -0700593 &quot;type&quot;: &quot;A String&quot;, # Type of the Cloud SQL database.
594 &quot;credential&quot;: { # Credential info for the Cloud SQL. # Input only. Cloud SQL credential.
595 &quot;password&quot;: &quot;A String&quot;, # The password for the credential.
596 &quot;username&quot;: &quot;A String&quot;, # The username for the credential.
597 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700598 },
599 &quot;hasCredential&quot;: True or False, # Output only. True, if credential is configured for this connection.
600 &quot;friendlyName&quot;: &quot;A String&quot;, # User provided display name for the connection.
601 &quot;lastModifiedTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the connection.
602 &quot;description&quot;: &quot;A String&quot;, # User provided description.
603 },
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 Kimd059ad82020-07-22 17:02:09 -0700635 &quot;creationTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the connection.
636 &quot;name&quot;: &quot;A String&quot;, # The resource name of the connection in the form of:
637 # `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
Bu Sun Kim65020912020-05-20 12:08:20 -0700638 &quot;cloudSql&quot;: { # Connection properties specific to the Cloud SQL. # Cloud SQL properties.
Bu Sun Kim65020912020-05-20 12:08:20 -0700639 &quot;database&quot;: &quot;A String&quot;, # Database name.
640 &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 -0700641 &quot;type&quot;: &quot;A String&quot;, # Type of the Cloud SQL database.
642 &quot;credential&quot;: { # Credential info for the Cloud SQL. # Input only. Cloud SQL credential.
643 &quot;password&quot;: &quot;A String&quot;, # The password for the credential.
644 &quot;username&quot;: &quot;A String&quot;, # The username for the credential.
645 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700646 },
647 &quot;hasCredential&quot;: True or False, # Output only. True, if credential is configured for this connection.
648 &quot;friendlyName&quot;: &quot;A String&quot;, # User provided display name for the connection.
649 &quot;lastModifiedTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the connection.
650 &quot;description&quot;: &quot;A String&quot;, # User provided description.
651}
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 Kimd059ad82020-07-22 17:02:09 -0700664 &quot;creationTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the connection.
665 &quot;name&quot;: &quot;A String&quot;, # The resource name of the connection in the form of:
666 # `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
Bu Sun Kim65020912020-05-20 12:08:20 -0700667 &quot;cloudSql&quot;: { # Connection properties specific to the Cloud SQL. # Cloud SQL properties.
Bu Sun Kim65020912020-05-20 12:08:20 -0700668 &quot;database&quot;: &quot;A String&quot;, # Database name.
669 &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 -0700670 &quot;type&quot;: &quot;A String&quot;, # Type of the Cloud SQL database.
671 &quot;credential&quot;: { # Credential info for the Cloud SQL. # Input only. Cloud SQL credential.
672 &quot;password&quot;: &quot;A String&quot;, # The password for the credential.
673 &quot;username&quot;: &quot;A String&quot;, # The username for the credential.
674 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700675 },
676 &quot;hasCredential&quot;: True or False, # Output only. True, if credential is configured for this connection.
677 &quot;friendlyName&quot;: &quot;A String&quot;, # User provided display name for the connection.
678 &quot;lastModifiedTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the connection.
679 &quot;description&quot;: &quot;A String&quot;, # User provided description.
680 }</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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700697 &quot;updateMask&quot;: &quot;A String&quot;, # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
698 # the fields in the mask will be modified. If no mask is provided, the
699 # following default mask is used:
700 #
701 # `paths: &quot;bindings, etag&quot;`
Bu Sun Kim65020912020-05-20 12:08:20 -0700702 &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
703 # the policy is limited to a few 10s of KB. An empty policy is a
704 # valid policy but certain Cloud Platform services (such as Projects)
705 # might reject them.
706 # controls for Google Cloud resources.
707 #
708 #
709 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
710 # `members` to a single `role`. Members can be user accounts, service accounts,
711 # Google groups, and domains (such as G Suite). A `role` is a named list of
712 # permissions; each `role` can be an IAM predefined role or a user-created
713 # custom role.
714 #
715 # For some types of Google Cloud resources, a `binding` can also specify a
716 # `condition`, which is a logical expression that allows access to a resource
717 # only if the expression evaluates to `true`. A condition can add constraints
718 # based on attributes of the request, the resource, or both. To learn which
719 # resources support conditions in their IAM policies, see the
720 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
721 #
722 # **JSON example:**
723 #
724 # {
725 # &quot;bindings&quot;: [
726 # {
727 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
728 # &quot;members&quot;: [
729 # &quot;user:mike@example.com&quot;,
730 # &quot;group:admins@example.com&quot;,
731 # &quot;domain:google.com&quot;,
732 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
733 # ]
734 # },
735 # {
736 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
737 # &quot;members&quot;: [
738 # &quot;user:eve@example.com&quot;
739 # ],
740 # &quot;condition&quot;: {
741 # &quot;title&quot;: &quot;expirable access&quot;,
742 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
743 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
744 # }
745 # }
746 # ],
747 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
748 # &quot;version&quot;: 3
749 # }
750 #
751 # **YAML example:**
752 #
753 # bindings:
754 # - members:
755 # - user:mike@example.com
756 # - group:admins@example.com
757 # - domain:google.com
758 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
759 # role: roles/resourcemanager.organizationAdmin
760 # - members:
761 # - user:eve@example.com
762 # role: roles/resourcemanager.organizationViewer
763 # condition:
764 # title: expirable access
765 # description: Does not grant access after Sep 2020
766 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
767 # - etag: BwWWja0YfJA=
768 # - version: 3
769 #
770 # For a description of IAM and its features, see the
771 # [IAM documentation](https://cloud.google.com/iam/docs/).
772 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
773 # prevent simultaneous updates of a policy from overwriting each other.
774 # It is strongly suggested that systems make use of the `etag` in the
775 # read-modify-write cycle to perform policy updates in order to avoid race
776 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
777 # systems are expected to put that etag in the request to `setIamPolicy` to
778 # ensure that their change will be applied to the same version of the policy.
779 #
780 # **Important:** If you use IAM Conditions, you must include the `etag` field
781 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
782 # you to overwrite a version `3` policy with a version `1` policy, and all of
783 # the conditions in the version `3` policy are lost.
784 &quot;version&quot;: 42, # Specifies the format of the policy.
785 #
786 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
787 # are rejected.
788 #
789 # Any operation that affects conditional role bindings must specify version
790 # `3`. This requirement applies to the following operations:
791 #
792 # * Getting a policy that includes a conditional role binding
793 # * Adding a conditional role binding to a policy
794 # * Changing a conditional role binding in a policy
795 # * Removing any role binding, with or without a condition, from a policy
796 # that includes conditions
797 #
798 # **Important:** If you use IAM Conditions, you must include the `etag` field
799 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
800 # you to overwrite a version `3` policy with a version `1` policy, and all of
801 # the conditions in the version `3` policy are lost.
802 #
803 # If a policy does not include any conditions, operations on that policy may
804 # specify any valid version or leave the field unset.
805 #
806 # To learn which resources support conditions in their IAM policies, see the
807 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
808 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
809 { # Specifies the audit configuration for a service.
810 # The configuration determines which permission types are logged, and what
811 # identities, if any, are exempted from logging.
812 # An AuditConfig must have one or more AuditLogConfigs.
813 #
814 # If there are AuditConfigs for both `allServices` and a specific service,
815 # the union of the two AuditConfigs is used for that service: the log_types
816 # specified in each AuditConfig are enabled, and the exempted_members in each
817 # AuditLogConfig are exempted.
818 #
819 # Example Policy with multiple AuditConfigs:
820 #
821 # {
822 # &quot;audit_configs&quot;: [
823 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700824 # &quot;service&quot;: &quot;allServices&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700825 # &quot;audit_log_configs&quot;: [
826 # {
827 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
828 # &quot;exempted_members&quot;: [
829 # &quot;user:jose@example.com&quot;
830 # ]
831 # },
832 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700833 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -0700834 # },
835 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700836 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -0700837 # }
838 # ]
839 # },
840 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700841 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700842 # &quot;audit_log_configs&quot;: [
843 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700844 # &quot;log_type&quot;: &quot;DATA_READ&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -0700845 # },
846 # {
847 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
848 # &quot;exempted_members&quot;: [
849 # &quot;user:aliya@example.com&quot;
850 # ]
851 # }
852 # ]
853 # }
854 # ]
855 # }
856 #
857 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
858 # logging. It also exempts jose@example.com from DATA_READ logging, and
859 # aliya@example.com from DATA_WRITE logging.
860 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
861 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
862 # `allServices` is a special value that covers all services.
863 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
864 { # Provides the configuration for logging a type of permissions.
865 # Example:
866 #
867 # {
868 # &quot;audit_log_configs&quot;: [
869 # {
870 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
871 # &quot;exempted_members&quot;: [
872 # &quot;user:jose@example.com&quot;
873 # ]
874 # },
875 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700876 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -0700877 # }
878 # ]
879 # }
880 #
881 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
882 # jose@example.com from DATA_READ logging.
Bu Sun Kim65020912020-05-20 12:08:20 -0700883 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
884 # permission.
885 # Follows the same format of Binding.members.
886 &quot;A String&quot;,
887 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700888 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
Bu Sun Kim65020912020-05-20 12:08:20 -0700889 },
890 ],
891 },
892 ],
893 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
894 # `condition` that determines how and when the `bindings` are applied. Each
895 # of the `bindings` must contain at least one member.
896 { # Associates `members` with a `role`.
897 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
898 #
899 # If the condition evaluates to `true`, then this binding applies to the
900 # current request.
901 #
902 # If the condition evaluates to `false`, then this binding does not apply to
903 # the current request. However, a different role binding might grant the same
904 # role to one or more of the members in this binding.
905 #
906 # To learn which resources support conditions in their IAM policies, see the
907 # [IAM
908 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
909 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
910 # are documented at https://github.com/google/cel-spec.
911 #
912 # Example (Comparison):
913 #
914 # title: &quot;Summary size limit&quot;
915 # description: &quot;Determines if a summary is less than 100 chars&quot;
916 # expression: &quot;document.summary.size() &lt; 100&quot;
917 #
918 # Example (Equality):
919 #
920 # title: &quot;Requestor is owner&quot;
921 # description: &quot;Determines if requestor is the document owner&quot;
922 # expression: &quot;document.owner == request.auth.claims.email&quot;
923 #
924 # Example (Logic):
925 #
926 # title: &quot;Public documents&quot;
927 # description: &quot;Determine whether the document should be publicly visible&quot;
928 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
929 #
930 # Example (Data Manipulation):
931 #
932 # title: &quot;Notification string&quot;
933 # description: &quot;Create a notification string with a timestamp.&quot;
934 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
935 #
936 # The exact variables and functions that may be referenced within an expression
937 # are determined by the service that evaluates it. See the service
938 # documentation for additional information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700939 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
940 # its purpose. This can be used e.g. in UIs which allow to enter the
941 # expression.
942 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
943 # reporting, e.g. a file name and a position in the file.
944 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
945 # describes the expression, e.g. when hovered over it in a UI.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700946 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
947 # syntax.
Bu Sun Kim65020912020-05-20 12:08:20 -0700948 },
949 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
950 # `members` can have the following values:
951 #
952 # * `allUsers`: A special identifier that represents anyone who is
953 # on the internet; with or without a Google account.
954 #
955 # * `allAuthenticatedUsers`: A special identifier that represents anyone
956 # who is authenticated with a Google account or a service account.
957 #
958 # * `user:{emailid}`: An email address that represents a specific Google
959 # account. For example, `alice@example.com` .
960 #
961 #
962 # * `serviceAccount:{emailid}`: An email address that represents a service
963 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
964 #
965 # * `group:{emailid}`: An email address that represents a Google group.
966 # For example, `admins@example.com`.
967 #
968 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
969 # identifier) representing a user that has been recently deleted. For
970 # example, `alice@example.com?uid=123456789012345678901`. If the user is
971 # recovered, this value reverts to `user:{emailid}` and the recovered user
972 # retains the role in the binding.
973 #
974 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
975 # unique identifier) representing a service account that has been recently
976 # deleted. For example,
977 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
978 # If the service account is undeleted, this value reverts to
979 # `serviceAccount:{emailid}` and the undeleted service account retains the
980 # role in the binding.
981 #
982 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
983 # identifier) representing a Google group that has been recently
984 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
985 # the group is recovered, this value reverts to `group:{emailid}` and the
986 # recovered group retains the role in the binding.
987 #
988 #
989 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
990 # users of that domain. For example, `google.com` or `example.com`.
991 #
992 &quot;A String&quot;,
993 ],
994 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
995 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
996 },
997 ],
998 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700999 }
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 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001128 # &quot;service&quot;: &quot;allServices&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07001129 # &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 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001137 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -07001138 # },
1139 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001140 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -07001141 # }
1142 # ]
1143 # },
1144 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001145 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07001146 # &quot;audit_log_configs&quot;: [
1147 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001148 # &quot;log_type&quot;: &quot;DATA_READ&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -07001149 # },
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 # {
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001180 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
Bu Sun Kim65020912020-05-20 12:08:20 -07001181 # }
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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001187 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
1188 # permission.
1189 # Follows the same format of Binding.members.
1190 &quot;A String&quot;,
1191 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001192 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
Bu Sun Kim65020912020-05-20 12:08:20 -07001193 },
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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001243 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
1244 # its purpose. This can be used e.g. in UIs which allow to enter the
1245 # expression.
1246 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1247 # reporting, e.g. a file name and a position in the file.
1248 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1249 # describes the expression, e.g. when hovered over it in a UI.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001250 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1251 # syntax.
Bu Sun Kim65020912020-05-20 12:08:20 -07001252 },
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>