blob: a61295ded46ac11cbb2014adc4d47bac7fecf211 [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="healthcare_v1.html">Cloud Healthcare API</a> . <a href="healthcare_v1.projects.html">projects</a> . <a href="healthcare_v1.projects.locations.html">locations</a> . <a href="healthcare_v1.projects.locations.datasets.html">datasets</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="healthcare_v1.projects.locations.datasets.dicomStores.html">dicomStores()</a></code>
79</p>
80<p class="firstline">Returns the dicomStores Resource.</p>
81
82<p class="toc_element">
83 <code><a href="healthcare_v1.projects.locations.datasets.fhirStores.html">fhirStores()</a></code>
84</p>
85<p class="firstline">Returns the fhirStores Resource.</p>
86
87<p class="toc_element">
88 <code><a href="healthcare_v1.projects.locations.datasets.hl7V2Stores.html">hl7V2Stores()</a></code>
89</p>
90<p class="firstline">Returns the hl7V2Stores Resource.</p>
91
92<p class="toc_element">
93 <code><a href="healthcare_v1.projects.locations.datasets.operations.html">operations()</a></code>
94</p>
95<p class="firstline">Returns the operations Resource.</p>
96
97<p class="toc_element">
98 <code><a href="#create">create(parent, body=None, datasetId=None, x__xgafv=None)</a></code></p>
99<p class="firstline">Creates a new health dataset. Results are returned through the</p>
100<p class="toc_element">
101 <code><a href="#deidentify">deidentify(sourceDataset, body=None, x__xgafv=None)</a></code></p>
102<p class="firstline">Creates a new dataset containing de-identified data from the source</p>
103<p class="toc_element">
104 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
105<p class="firstline">Deletes the specified health dataset and all data contained in the dataset.</p>
106<p class="toc_element">
107 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
108<p class="firstline">Gets any metadata associated with a dataset.</p>
109<p class="toc_element">
110 <code><a href="#getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</a></code></p>
111<p class="firstline">Gets the access control policy for a resource.</p>
112<p class="toc_element">
113 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
114<p class="firstline">Lists the health datasets in the current project.</p>
115<p class="toc_element">
116 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
117<p class="firstline">Retrieves the next page of results.</p>
118<p class="toc_element">
119 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
120<p class="firstline">Updates dataset metadata.</p>
121<p class="toc_element">
122 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
123<p class="firstline">Sets the access control policy on the specified resource. Replaces any</p>
124<p class="toc_element">
125 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
126<p class="firstline">Returns permissions that a caller has on the specified resource.</p>
127<h3>Method Details</h3>
128<div class="method">
129 <code class="details" id="create">create(parent, body=None, datasetId=None, x__xgafv=None)</code>
130 <pre>Creates a new health dataset. Results are returned through the
131Operation interface which returns either an
132`Operation.response` which contains a Dataset or
133`Operation.error`. The metadata
134field type is OperationMetadata.
135A Google Cloud Platform project can contain up to 500 datasets across all
136regions.
137
138Args:
139 parent: string, The name of the project where the server creates the dataset. For
140example, `projects/{project_id}/locations/{location_id}`. (required)
141 body: object, The request body.
142 The object takes the form of:
143
144{ # A message representing a health dataset.
145 #
146 # A health dataset represents a collection of healthcare data pertaining to one
147 # or more patients. This may include multiple modalities of healthcare data,
148 # such as electronic medical records or medical imaging data.
149 &quot;timeZone&quot;: &quot;A String&quot;, # The default timezone used by this dataset. Must be a either a valid IANA
150 # time zone name such as &quot;America/New_York&quot; or empty, which defaults to UTC.
151 # This is used for parsing times in resources, such as HL7 messages, where no
152 # explicit timezone is specified.
153 &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the dataset, of the form
154 # `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`.
155}
156
157 datasetId: string, The ID of the dataset that is being created.
158The string must match the following regex: `[\p{L}\p{N}_\-\.]{1,256}`.
159 x__xgafv: string, V1 error format.
160 Allowed values
161 1 - v1 error format
162 2 - v2 error format
163
164Returns:
165 An object of the form:
166
167 { # This resource represents a long-running operation that is the result of a
168 # network API call.
169 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
170 # contains progress information and common metadata such as create time.
171 # Some services might not provide such metadata. Any method that returns a
172 # long-running operation should document the metadata type, if any.
173 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
174 },
175 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
176 # If `true`, the operation is completed, and either `error` or `response` is
177 # available.
178 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
179 # method returns no data on success, such as `Delete`, the response is
180 # `google.protobuf.Empty`. If the original method is standard
181 # `Get`/`Create`/`Update`, the response should be the resource. For other
182 # methods, the response should have the type `XxxResponse`, where `Xxx`
183 # is the original method name. For example, if the original method name
184 # is `TakeSnapshot()`, the inferred response type is
185 # `TakeSnapshotResponse`.
186 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
187 },
188 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
189 # originally returns it. If you use the default HTTP mapping, the
190 # `name` should be a resource name ending with `operations/{unique_id}`.
191 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
192 # different programming environments, including REST APIs and RPC APIs. It is
193 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
194 # three pieces of data: error code, error message, and error details.
195 #
196 # You can find out more about this error model and how to work with it in the
197 # [API Design Guide](https://cloud.google.com/apis/design/errors).
198 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
199 # message types for APIs to use.
200 {
201 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
202 },
203 ],
204 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
205 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
206 # user-facing error message should be localized and sent in the
207 # google.rpc.Status.details field, or localized by the client.
208 },
209 }</pre>
210</div>
211
212<div class="method">
213 <code class="details" id="deidentify">deidentify(sourceDataset, body=None, x__xgafv=None)</code>
214 <pre>Creates a new dataset containing de-identified data from the source
215dataset. The metadata field type
216is OperationMetadata.
217If the request is successful, the
218response field type is
219DeidentifySummary.
220If errors occur, error is set.
221The LRO result may still be successful if de-identification fails for some
222DICOM instances. The new de-identified dataset will not contain these
223failed resources. Failed resource totals are tracked in
224Operation.metadata.
225Error details are also logged to Cloud Logging. For more information,
226see [Viewing logs](/healthcare/docs/how-tos/logging).
227
228Args:
229 sourceDataset: string, Source dataset resource name. For example,
230`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`. (required)
231 body: object, The request body.
232 The object takes the form of:
233
234{ # Redacts identifying information from the specified dataset.
235 &quot;config&quot;: { # Configures de-id options specific to different types of content. # Deidentify configuration.
236 # Each submessage customizes the handling of an
237 # https://tools.ietf.org/html/rfc6838 media type or subtype. Configs are
238 # applied in a nested manner at runtime.
239 &quot;text&quot;: { # Configures de-identification of text wherever it is found in the
240 # source_dataset.
241 &quot;transformations&quot;: [ # The transformations to apply to the detected data.
242 { # A transformation to apply to text that is identified as a specific
243 # info_type.
244 &quot;dateShiftConfig&quot;: { # Shift a date forward or backward in time by a random amount which is # Config for date shift.
245 # consistent for a given patient and crypto key combination.
246 &quot;cryptoKey&quot;: &quot;A String&quot;, # An AES 128/192/256 bit key. Causes the shift to be computed based on this
247 # key and the patient ID. A default key is generated for each
248 # Deidentify operation and is used wherever crypto_key is not specified.
249 },
250 &quot;characterMaskConfig&quot;: { # Mask a string by replacing its characters with a fixed character. # Config for character mask.
251 &quot;maskingCharacter&quot;: &quot;A String&quot;, # Character to mask the sensitive values. If not supplied, defaults to &quot;*&quot;.
252 },
253 &quot;redactConfig&quot;: { # Define how to redact sensitive values. Default behaviour is erase. # Config for text redaction.
254 # For example, &quot;My name is Jane.&quot; becomes &quot;My name is .&quot;
255 },
256 &quot;infoTypes&quot;: [ # InfoTypes to apply this transformation to. If this is not specified, the
257 # transformation applies to any info_type.
258 &quot;A String&quot;,
259 ],
260 &quot;replaceWithInfoTypeConfig&quot;: { # When using the # Config for replace with InfoType.
261 # INSPECT_AND_TRANSFORM
262 # action, each match is replaced with the name of the info_type. For example,
263 # &quot;My name is Jane&quot; becomes &quot;My name is [PERSON_NAME].&quot; The
264 # TRANSFORM
265 # action is equivalent to redacting.
266 },
267 &quot;cryptoHashConfig&quot;: { # Pseudonymization method that generates surrogates via cryptographic hashing. # Config for crypto hash.
268 # Uses SHA-256.
269 # Outputs a base64-encoded representation of the hashed output
270 # (for example, `L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=`).
271 &quot;cryptoKey&quot;: &quot;A String&quot;, # An AES 128/192/256 bit key. Causes the hash to be computed based on this
272 # key. A default key is generated for each Deidentify operation and is used
273 # wherever crypto_key is not specified.
274 },
275 },
276 ],
277 },
278 &quot;dicom&quot;: { # Specifies the parameters needed for de-identification of DICOM stores. # Configures de-id of application/DICOM content.
279 &quot;filterProfile&quot;: &quot;A String&quot;, # Tag filtering profile that determines which tags to keep/remove.
280 &quot;skipIdRedaction&quot;: True or False, # If true, skip replacing StudyInstanceUID, SeriesInstanceUID,
281 # SOPInstanceUID, and MediaStorageSOPInstanceUID and leave them untouched.
282 # The Cloud Healthcare API regenerates these UIDs by default based on the
283 # DICOM Standard&#x27;s reasoning: &quot;Whilst these UIDs cannot be mapped directly
284 # to an individual out of context, given access to the original images, or
285 # to a database of the original images containing the UIDs, it would be
286 # possible to recover the individual&#x27;s identity.&quot;
287 # http://dicom.nema.org/medical/dicom/current/output/chtml/part15/sect_E.3.9.html
288 &quot;keepList&quot;: { # List of tags to be filtered. # List of tags to keep. Remove all other tags.
289 &quot;tags&quot;: [ # Tags to be filtered. Tags must be DICOM Data Elements, File Meta
290 # Elements, or Directory Structuring Elements, as defined at:
291 # http://dicom.nema.org/medical/dicom/current/output/html/part06.html#table_6-1,.
292 # They may be provided by &quot;Keyword&quot; or &quot;Tag&quot;. For example &quot;PatientID&quot;,
293 # &quot;00100010&quot;.
294 &quot;A String&quot;,
295 ],
296 },
297 &quot;removeList&quot;: { # List of tags to be filtered. # List of tags to remove. Keep all other tags.
298 &quot;tags&quot;: [ # Tags to be filtered. Tags must be DICOM Data Elements, File Meta
299 # Elements, or Directory Structuring Elements, as defined at:
300 # http://dicom.nema.org/medical/dicom/current/output/html/part06.html#table_6-1,.
301 # They may be provided by &quot;Keyword&quot; or &quot;Tag&quot;. For example &quot;PatientID&quot;,
302 # &quot;00100010&quot;.
303 &quot;A String&quot;,
304 ],
305 },
306 },
307 &quot;fhir&quot;: { # Specifies how to handle de-identification of a FHIR store. # Configures de-id of application/FHIR content.
308 &quot;fieldMetadataList&quot;: [ # Specifies FHIR paths to match and how to transform them. Any field that
309 # is not matched by a FieldMetadata is passed through to the output
310 # dataset unmodified. All extensions are removed in the output.
311 { # Specifies FHIR paths to match, and how to handle de-identification of
312 # matching fields.
313 &quot;action&quot;: &quot;A String&quot;, # Deidentify action for one field.
314 &quot;paths&quot;: [ # List of paths to FHIR fields to be redacted. Each path is a
315 # period-separated list where each component is either a field name or
316 # FHIR type name, for example: Patient, HumanName.
317 # For &quot;choice&quot; types (those defined in the FHIR spec with the form:
318 # field[x]) we use two separate components. For example,
319 # &quot;deceasedAge.unit&quot; is matched by &quot;Deceased.Age.unit&quot;.
320 # Supported types are: AdministrativeGenderCode, Code, Date, DateTime,
321 # Decimal, HumanName, Id, LanguageCode, Markdown, Oid, String, Uri, Uuid,
322 # Xhtml.
323 &quot;A String&quot;,
324 ],
325 },
326 ],
327 },
328 &quot;image&quot;: { # Specifies how to handle de-identification of image pixels. # Configures de-identification of image pixels wherever they are found in the
329 # source_dataset.
330 &quot;textRedactionMode&quot;: &quot;A String&quot;, # Determines how to redact text from image.
331 },
332 },
333 &quot;destinationDataset&quot;: &quot;A String&quot;, # The name of the dataset resource to create and write the redacted data to.
334 #
335 # * The destination dataset must not exist.
336 # * The destination dataset must be in the same project and location as the
337 # source dataset. De-identifying data across multiple projects or locations
338 # is not supported.
339 }
340
341 x__xgafv: string, V1 error format.
342 Allowed values
343 1 - v1 error format
344 2 - v2 error format
345
346Returns:
347 An object of the form:
348
349 { # This resource represents a long-running operation that is the result of a
350 # network API call.
351 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
352 # contains progress information and common metadata such as create time.
353 # Some services might not provide such metadata. Any method that returns a
354 # long-running operation should document the metadata type, if any.
355 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
356 },
357 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
358 # If `true`, the operation is completed, and either `error` or `response` is
359 # available.
360 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
361 # method returns no data on success, such as `Delete`, the response is
362 # `google.protobuf.Empty`. If the original method is standard
363 # `Get`/`Create`/`Update`, the response should be the resource. For other
364 # methods, the response should have the type `XxxResponse`, where `Xxx`
365 # is the original method name. For example, if the original method name
366 # is `TakeSnapshot()`, the inferred response type is
367 # `TakeSnapshotResponse`.
368 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
369 },
370 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
371 # originally returns it. If you use the default HTTP mapping, the
372 # `name` should be a resource name ending with `operations/{unique_id}`.
373 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
374 # different programming environments, including REST APIs and RPC APIs. It is
375 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
376 # three pieces of data: error code, error message, and error details.
377 #
378 # You can find out more about this error model and how to work with it in the
379 # [API Design Guide](https://cloud.google.com/apis/design/errors).
380 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
381 # message types for APIs to use.
382 {
383 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
384 },
385 ],
386 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
387 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
388 # user-facing error message should be localized and sent in the
389 # google.rpc.Status.details field, or localized by the client.
390 },
391 }</pre>
392</div>
393
394<div class="method">
395 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
396 <pre>Deletes the specified health dataset and all data contained in the dataset.
397Deleting a dataset does not affect the sources from which the dataset was
398imported (if any).
399
400Args:
401 name: string, The name of the dataset to delete. For example,
402`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`. (required)
403 x__xgafv: string, V1 error format.
404 Allowed values
405 1 - v1 error format
406 2 - v2 error format
407
408Returns:
409 An object of the form:
410
411 { # A generic empty message that you can re-use to avoid defining duplicated
412 # empty messages in your APIs. A typical example is to use it as the request
413 # or the response type of an API method. For instance:
414 #
415 # service Foo {
416 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
417 # }
418 #
419 # The JSON representation for `Empty` is empty JSON object `{}`.
420 }</pre>
421</div>
422
423<div class="method">
424 <code class="details" id="get">get(name, x__xgafv=None)</code>
425 <pre>Gets any metadata associated with a dataset.
426
427Args:
428 name: string, The name of the dataset to read. For example,
429`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`. (required)
430 x__xgafv: string, V1 error format.
431 Allowed values
432 1 - v1 error format
433 2 - v2 error format
434
435Returns:
436 An object of the form:
437
438 { # A message representing a health dataset.
439 #
440 # A health dataset represents a collection of healthcare data pertaining to one
441 # or more patients. This may include multiple modalities of healthcare data,
442 # such as electronic medical records or medical imaging data.
443 &quot;timeZone&quot;: &quot;A String&quot;, # The default timezone used by this dataset. Must be a either a valid IANA
444 # time zone name such as &quot;America/New_York&quot; or empty, which defaults to UTC.
445 # This is used for parsing times in resources, such as HL7 messages, where no
446 # explicit timezone is specified.
447 &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the dataset, of the form
448 # `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`.
449 }</pre>
450</div>
451
452<div class="method">
453 <code class="details" id="getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</code>
454 <pre>Gets the access control policy for a resource.
455Returns an empty policy if the resource exists and does not have a policy
456set.
457
458Args:
459 resource: string, REQUIRED: The resource for which the policy is being requested.
460See the operation documentation for the appropriate value for this field. (required)
461 options_requestedPolicyVersion: integer, Optional. The policy format version to be returned.
462
463Valid values are 0, 1, and 3. Requests specifying an invalid value will be
464rejected.
465
466Requests for policies with any conditional bindings must specify version 3.
467Policies without any conditional bindings may specify any valid value or
468leave the field unset.
469
470To learn which resources support conditions in their IAM policies, see the
471[IAM
472documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
473 x__xgafv: string, V1 error format.
474 Allowed values
475 1 - v1 error format
476 2 - v2 error format
477
478Returns:
479 An object of the form:
480
481 { # An Identity and Access Management (IAM) policy, which specifies access
482 # controls for Google Cloud resources.
483 #
484 #
485 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
486 # `members` to a single `role`. Members can be user accounts, service accounts,
487 # Google groups, and domains (such as G Suite). A `role` is a named list of
488 # permissions; each `role` can be an IAM predefined role or a user-created
489 # custom role.
490 #
491 # For some types of Google Cloud resources, a `binding` can also specify a
492 # `condition`, which is a logical expression that allows access to a resource
493 # only if the expression evaluates to `true`. A condition can add constraints
494 # based on attributes of the request, the resource, or both. To learn which
495 # resources support conditions in their IAM policies, see the
496 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
497 #
498 # **JSON example:**
499 #
500 # {
501 # &quot;bindings&quot;: [
502 # {
503 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
504 # &quot;members&quot;: [
505 # &quot;user:mike@example.com&quot;,
506 # &quot;group:admins@example.com&quot;,
507 # &quot;domain:google.com&quot;,
508 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
509 # ]
510 # },
511 # {
512 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
513 # &quot;members&quot;: [
514 # &quot;user:eve@example.com&quot;
515 # ],
516 # &quot;condition&quot;: {
517 # &quot;title&quot;: &quot;expirable access&quot;,
518 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
519 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
520 # }
521 # }
522 # ],
523 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
524 # &quot;version&quot;: 3
525 # }
526 #
527 # **YAML example:**
528 #
529 # bindings:
530 # - members:
531 # - user:mike@example.com
532 # - group:admins@example.com
533 # - domain:google.com
534 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
535 # role: roles/resourcemanager.organizationAdmin
536 # - members:
537 # - user:eve@example.com
538 # role: roles/resourcemanager.organizationViewer
539 # condition:
540 # title: expirable access
541 # description: Does not grant access after Sep 2020
542 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
543 # - etag: BwWWja0YfJA=
544 # - version: 3
545 #
546 # For a description of IAM and its features, see the
547 # [IAM documentation](https://cloud.google.com/iam/docs/).
548 &quot;version&quot;: 42, # Specifies the format of the policy.
549 #
550 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
551 # are rejected.
552 #
553 # Any operation that affects conditional role bindings must specify version
554 # `3`. This requirement applies to the following operations:
555 #
556 # * Getting a policy that includes a conditional role binding
557 # * Adding a conditional role binding to a policy
558 # * Changing a conditional role binding in a policy
559 # * Removing any role binding, with or without a condition, from a policy
560 # that includes conditions
561 #
562 # **Important:** If you use IAM Conditions, you must include the `etag` field
563 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
564 # you to overwrite a version `3` policy with a version `1` policy, and all of
565 # the conditions in the version `3` policy are lost.
566 #
567 # If a policy does not include any conditions, operations on that policy may
568 # specify any valid version or leave the field unset.
569 #
570 # To learn which resources support conditions in their IAM policies, see the
571 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
572 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
573 { # Specifies the audit configuration for a service.
574 # The configuration determines which permission types are logged, and what
575 # identities, if any, are exempted from logging.
576 # An AuditConfig must have one or more AuditLogConfigs.
577 #
578 # If there are AuditConfigs for both `allServices` and a specific service,
579 # the union of the two AuditConfigs is used for that service: the log_types
580 # specified in each AuditConfig are enabled, and the exempted_members in each
581 # AuditLogConfig are exempted.
582 #
583 # Example Policy with multiple AuditConfigs:
584 #
585 # {
586 # &quot;audit_configs&quot;: [
587 # {
588 # &quot;service&quot;: &quot;allServices&quot;
589 # &quot;audit_log_configs&quot;: [
590 # {
591 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
592 # &quot;exempted_members&quot;: [
593 # &quot;user:jose@example.com&quot;
594 # ]
595 # },
596 # {
597 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
598 # },
599 # {
600 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
601 # }
602 # ]
603 # },
604 # {
605 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
606 # &quot;audit_log_configs&quot;: [
607 # {
608 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
609 # },
610 # {
611 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
612 # &quot;exempted_members&quot;: [
613 # &quot;user:aliya@example.com&quot;
614 # ]
615 # }
616 # ]
617 # }
618 # ]
619 # }
620 #
621 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
622 # logging. It also exempts jose@example.com from DATA_READ logging, and
623 # aliya@example.com from DATA_WRITE logging.
624 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
625 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
626 # `allServices` is a special value that covers all services.
627 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
628 { # Provides the configuration for logging a type of permissions.
629 # Example:
630 #
631 # {
632 # &quot;audit_log_configs&quot;: [
633 # {
634 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
635 # &quot;exempted_members&quot;: [
636 # &quot;user:jose@example.com&quot;
637 # ]
638 # },
639 # {
640 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
641 # }
642 # ]
643 # }
644 #
645 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
646 # jose@example.com from DATA_READ logging.
647 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
648 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
649 # permission.
650 # Follows the same format of Binding.members.
651 &quot;A String&quot;,
652 ],
653 },
654 ],
655 },
656 ],
657 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
658 # `condition` that determines how and when the `bindings` are applied. Each
659 # of the `bindings` must contain at least one member.
660 { # Associates `members` with a `role`.
661 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
662 #
663 # If the condition evaluates to `true`, then this binding applies to the
664 # current request.
665 #
666 # If the condition evaluates to `false`, then this binding does not apply to
667 # the current request. However, a different role binding might grant the same
668 # role to one or more of the members in this binding.
669 #
670 # To learn which resources support conditions in their IAM policies, see the
671 # [IAM
672 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
673 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
674 # are documented at https://github.com/google/cel-spec.
675 #
676 # Example (Comparison):
677 #
678 # title: &quot;Summary size limit&quot;
679 # description: &quot;Determines if a summary is less than 100 chars&quot;
680 # expression: &quot;document.summary.size() &lt; 100&quot;
681 #
682 # Example (Equality):
683 #
684 # title: &quot;Requestor is owner&quot;
685 # description: &quot;Determines if requestor is the document owner&quot;
686 # expression: &quot;document.owner == request.auth.claims.email&quot;
687 #
688 # Example (Logic):
689 #
690 # title: &quot;Public documents&quot;
691 # description: &quot;Determine whether the document should be publicly visible&quot;
692 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
693 #
694 # Example (Data Manipulation):
695 #
696 # title: &quot;Notification string&quot;
697 # description: &quot;Create a notification string with a timestamp.&quot;
698 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
699 #
700 # The exact variables and functions that may be referenced within an expression
701 # are determined by the service that evaluates it. See the service
702 # documentation for additional information.
703 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
704 # describes the expression, e.g. when hovered over it in a UI.
705 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
706 # syntax.
707 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
708 # its purpose. This can be used e.g. in UIs which allow to enter the
709 # expression.
710 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
711 # reporting, e.g. a file name and a position in the file.
712 },
713 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
714 # `members` can have the following values:
715 #
716 # * `allUsers`: A special identifier that represents anyone who is
717 # on the internet; with or without a Google account.
718 #
719 # * `allAuthenticatedUsers`: A special identifier that represents anyone
720 # who is authenticated with a Google account or a service account.
721 #
722 # * `user:{emailid}`: An email address that represents a specific Google
723 # account. For example, `alice@example.com` .
724 #
725 #
726 # * `serviceAccount:{emailid}`: An email address that represents a service
727 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
728 #
729 # * `group:{emailid}`: An email address that represents a Google group.
730 # For example, `admins@example.com`.
731 #
732 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
733 # identifier) representing a user that has been recently deleted. For
734 # example, `alice@example.com?uid=123456789012345678901`. If the user is
735 # recovered, this value reverts to `user:{emailid}` and the recovered user
736 # retains the role in the binding.
737 #
738 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
739 # unique identifier) representing a service account that has been recently
740 # deleted. For example,
741 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
742 # If the service account is undeleted, this value reverts to
743 # `serviceAccount:{emailid}` and the undeleted service account retains the
744 # role in the binding.
745 #
746 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
747 # identifier) representing a Google group that has been recently
748 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
749 # the group is recovered, this value reverts to `group:{emailid}` and the
750 # recovered group retains the role in the binding.
751 #
752 #
753 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
754 # users of that domain. For example, `google.com` or `example.com`.
755 #
756 &quot;A String&quot;,
757 ],
758 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
759 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
760 },
761 ],
762 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
763 # prevent simultaneous updates of a policy from overwriting each other.
764 # It is strongly suggested that systems make use of the `etag` in the
765 # read-modify-write cycle to perform policy updates in order to avoid race
766 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
767 # systems are expected to put that etag in the request to `setIamPolicy` to
768 # ensure that their change will be applied to the same version of the policy.
769 #
770 # **Important:** If you use IAM Conditions, you must include the `etag` field
771 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
772 # you to overwrite a version `3` policy with a version `1` policy, and all of
773 # the conditions in the version `3` policy are lost.
774 }</pre>
775</div>
776
777<div class="method">
778 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
779 <pre>Lists the health datasets in the current project.
780
781Args:
782 parent: string, The name of the project whose datasets should be listed.
783For example, `projects/{project_id}/locations/{location_id}`. (required)
784 pageSize: integer, The maximum number of items to return. Capped to 100 if not specified.
785May not be larger than 1000.
786 pageToken: string, The next_page_token value returned from a previous List request, if any.
787 x__xgafv: string, V1 error format.
788 Allowed values
789 1 - v1 error format
790 2 - v2 error format
791
792Returns:
793 An object of the form:
794
795 { # Lists the available datasets.
796 &quot;datasets&quot;: [ # The first page of datasets.
797 { # A message representing a health dataset.
798 #
799 # A health dataset represents a collection of healthcare data pertaining to one
800 # or more patients. This may include multiple modalities of healthcare data,
801 # such as electronic medical records or medical imaging data.
802 &quot;timeZone&quot;: &quot;A String&quot;, # The default timezone used by this dataset. Must be a either a valid IANA
803 # time zone name such as &quot;America/New_York&quot; or empty, which defaults to UTC.
804 # This is used for parsing times in resources, such as HL7 messages, where no
805 # explicit timezone is specified.
806 &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the dataset, of the form
807 # `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`.
808 },
809 ],
810 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no
811 # more results in the list.
812 }</pre>
813</div>
814
815<div class="method">
816 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
817 <pre>Retrieves the next page of results.
818
819Args:
820 previous_request: The request for the previous page. (required)
821 previous_response: The response from the request for the previous page. (required)
822
823Returns:
824 A request object that you can call &#x27;execute()&#x27; on to request the next
825 page. Returns None if there are no more items in the collection.
826 </pre>
827</div>
828
829<div class="method">
830 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
831 <pre>Updates dataset metadata.
832
833Args:
834 name: string, Output only. Resource name of the dataset, of the form
835`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`. (required)
836 body: object, The request body.
837 The object takes the form of:
838
839{ # A message representing a health dataset.
840 #
841 # A health dataset represents a collection of healthcare data pertaining to one
842 # or more patients. This may include multiple modalities of healthcare data,
843 # such as electronic medical records or medical imaging data.
844 &quot;timeZone&quot;: &quot;A String&quot;, # The default timezone used by this dataset. Must be a either a valid IANA
845 # time zone name such as &quot;America/New_York&quot; or empty, which defaults to UTC.
846 # This is used for parsing times in resources, such as HL7 messages, where no
847 # explicit timezone is specified.
848 &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the dataset, of the form
849 # `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`.
850}
851
852 updateMask: string, The update mask applies to the resource. For the `FieldMask` definition,
853see
854https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
855 x__xgafv: string, V1 error format.
856 Allowed values
857 1 - v1 error format
858 2 - v2 error format
859
860Returns:
861 An object of the form:
862
863 { # A message representing a health dataset.
864 #
865 # A health dataset represents a collection of healthcare data pertaining to one
866 # or more patients. This may include multiple modalities of healthcare data,
867 # such as electronic medical records or medical imaging data.
868 &quot;timeZone&quot;: &quot;A String&quot;, # The default timezone used by this dataset. Must be a either a valid IANA
869 # time zone name such as &quot;America/New_York&quot; or empty, which defaults to UTC.
870 # This is used for parsing times in resources, such as HL7 messages, where no
871 # explicit timezone is specified.
872 &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the dataset, of the form
873 # `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`.
874 }</pre>
875</div>
876
877<div class="method">
878 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
879 <pre>Sets the access control policy on the specified resource. Replaces any
880existing policy.
881
882Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
883
884Args:
885 resource: string, REQUIRED: The resource for which the policy is being specified.
886See the operation documentation for the appropriate value for this field. (required)
887 body: object, The request body.
888 The object takes the form of:
889
890{ # Request message for `SetIamPolicy` method.
891 &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
892 # the policy is limited to a few 10s of KB. An empty policy is a
893 # valid policy but certain Cloud Platform services (such as Projects)
894 # might reject them.
895 # controls for Google Cloud resources.
896 #
897 #
898 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
899 # `members` to a single `role`. Members can be user accounts, service accounts,
900 # Google groups, and domains (such as G Suite). A `role` is a named list of
901 # permissions; each `role` can be an IAM predefined role or a user-created
902 # custom role.
903 #
904 # For some types of Google Cloud resources, a `binding` can also specify a
905 # `condition`, which is a logical expression that allows access to a resource
906 # only if the expression evaluates to `true`. A condition can add constraints
907 # based on attributes of the request, the resource, or both. To learn which
908 # resources support conditions in their IAM policies, see the
909 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
910 #
911 # **JSON example:**
912 #
913 # {
914 # &quot;bindings&quot;: [
915 # {
916 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
917 # &quot;members&quot;: [
918 # &quot;user:mike@example.com&quot;,
919 # &quot;group:admins@example.com&quot;,
920 # &quot;domain:google.com&quot;,
921 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
922 # ]
923 # },
924 # {
925 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
926 # &quot;members&quot;: [
927 # &quot;user:eve@example.com&quot;
928 # ],
929 # &quot;condition&quot;: {
930 # &quot;title&quot;: &quot;expirable access&quot;,
931 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
932 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
933 # }
934 # }
935 # ],
936 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
937 # &quot;version&quot;: 3
938 # }
939 #
940 # **YAML example:**
941 #
942 # bindings:
943 # - members:
944 # - user:mike@example.com
945 # - group:admins@example.com
946 # - domain:google.com
947 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
948 # role: roles/resourcemanager.organizationAdmin
949 # - members:
950 # - user:eve@example.com
951 # role: roles/resourcemanager.organizationViewer
952 # condition:
953 # title: expirable access
954 # description: Does not grant access after Sep 2020
955 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
956 # - etag: BwWWja0YfJA=
957 # - version: 3
958 #
959 # For a description of IAM and its features, see the
960 # [IAM documentation](https://cloud.google.com/iam/docs/).
961 &quot;version&quot;: 42, # Specifies the format of the policy.
962 #
963 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
964 # are rejected.
965 #
966 # Any operation that affects conditional role bindings must specify version
967 # `3`. This requirement applies to the following operations:
968 #
969 # * Getting a policy that includes a conditional role binding
970 # * Adding a conditional role binding to a policy
971 # * Changing a conditional role binding in a policy
972 # * Removing any role binding, with or without a condition, from a policy
973 # that includes conditions
974 #
975 # **Important:** If you use IAM Conditions, you must include the `etag` field
976 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
977 # you to overwrite a version `3` policy with a version `1` policy, and all of
978 # the conditions in the version `3` policy are lost.
979 #
980 # If a policy does not include any conditions, operations on that policy may
981 # specify any valid version or leave the field unset.
982 #
983 # To learn which resources support conditions in their IAM policies, see the
984 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
985 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
986 { # Specifies the audit configuration for a service.
987 # The configuration determines which permission types are logged, and what
988 # identities, if any, are exempted from logging.
989 # An AuditConfig must have one or more AuditLogConfigs.
990 #
991 # If there are AuditConfigs for both `allServices` and a specific service,
992 # the union of the two AuditConfigs is used for that service: the log_types
993 # specified in each AuditConfig are enabled, and the exempted_members in each
994 # AuditLogConfig are exempted.
995 #
996 # Example Policy with multiple AuditConfigs:
997 #
998 # {
999 # &quot;audit_configs&quot;: [
1000 # {
1001 # &quot;service&quot;: &quot;allServices&quot;
1002 # &quot;audit_log_configs&quot;: [
1003 # {
1004 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1005 # &quot;exempted_members&quot;: [
1006 # &quot;user:jose@example.com&quot;
1007 # ]
1008 # },
1009 # {
1010 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1011 # },
1012 # {
1013 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
1014 # }
1015 # ]
1016 # },
1017 # {
1018 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
1019 # &quot;audit_log_configs&quot;: [
1020 # {
1021 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1022 # },
1023 # {
1024 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1025 # &quot;exempted_members&quot;: [
1026 # &quot;user:aliya@example.com&quot;
1027 # ]
1028 # }
1029 # ]
1030 # }
1031 # ]
1032 # }
1033 #
1034 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
1035 # logging. It also exempts jose@example.com from DATA_READ logging, and
1036 # aliya@example.com from DATA_WRITE logging.
1037 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
1038 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
1039 # `allServices` is a special value that covers all services.
1040 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1041 { # Provides the configuration for logging a type of permissions.
1042 # Example:
1043 #
1044 # {
1045 # &quot;audit_log_configs&quot;: [
1046 # {
1047 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1048 # &quot;exempted_members&quot;: [
1049 # &quot;user:jose@example.com&quot;
1050 # ]
1051 # },
1052 # {
1053 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1054 # }
1055 # ]
1056 # }
1057 #
1058 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
1059 # jose@example.com from DATA_READ logging.
1060 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
1061 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
1062 # permission.
1063 # Follows the same format of Binding.members.
1064 &quot;A String&quot;,
1065 ],
1066 },
1067 ],
1068 },
1069 ],
1070 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
1071 # `condition` that determines how and when the `bindings` are applied. Each
1072 # of the `bindings` must contain at least one member.
1073 { # Associates `members` with a `role`.
1074 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
1075 #
1076 # If the condition evaluates to `true`, then this binding applies to the
1077 # current request.
1078 #
1079 # If the condition evaluates to `false`, then this binding does not apply to
1080 # the current request. However, a different role binding might grant the same
1081 # role to one or more of the members in this binding.
1082 #
1083 # To learn which resources support conditions in their IAM policies, see the
1084 # [IAM
1085 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1086 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1087 # are documented at https://github.com/google/cel-spec.
1088 #
1089 # Example (Comparison):
1090 #
1091 # title: &quot;Summary size limit&quot;
1092 # description: &quot;Determines if a summary is less than 100 chars&quot;
1093 # expression: &quot;document.summary.size() &lt; 100&quot;
1094 #
1095 # Example (Equality):
1096 #
1097 # title: &quot;Requestor is owner&quot;
1098 # description: &quot;Determines if requestor is the document owner&quot;
1099 # expression: &quot;document.owner == request.auth.claims.email&quot;
1100 #
1101 # Example (Logic):
1102 #
1103 # title: &quot;Public documents&quot;
1104 # description: &quot;Determine whether the document should be publicly visible&quot;
1105 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1106 #
1107 # Example (Data Manipulation):
1108 #
1109 # title: &quot;Notification string&quot;
1110 # description: &quot;Create a notification string with a timestamp.&quot;
1111 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1112 #
1113 # The exact variables and functions that may be referenced within an expression
1114 # are determined by the service that evaluates it. See the service
1115 # documentation for additional information.
1116 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1117 # describes the expression, e.g. when hovered over it in a UI.
1118 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1119 # syntax.
1120 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
1121 # its purpose. This can be used e.g. in UIs which allow to enter the
1122 # expression.
1123 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1124 # reporting, e.g. a file name and a position in the file.
1125 },
1126 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
1127 # `members` can have the following values:
1128 #
1129 # * `allUsers`: A special identifier that represents anyone who is
1130 # on the internet; with or without a Google account.
1131 #
1132 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1133 # who is authenticated with a Google account or a service account.
1134 #
1135 # * `user:{emailid}`: An email address that represents a specific Google
1136 # account. For example, `alice@example.com` .
1137 #
1138 #
1139 # * `serviceAccount:{emailid}`: An email address that represents a service
1140 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1141 #
1142 # * `group:{emailid}`: An email address that represents a Google group.
1143 # For example, `admins@example.com`.
1144 #
1145 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1146 # identifier) representing a user that has been recently deleted. For
1147 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1148 # recovered, this value reverts to `user:{emailid}` and the recovered user
1149 # retains the role in the binding.
1150 #
1151 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1152 # unique identifier) representing a service account that has been recently
1153 # deleted. For example,
1154 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1155 # If the service account is undeleted, this value reverts to
1156 # `serviceAccount:{emailid}` and the undeleted service account retains the
1157 # role in the binding.
1158 #
1159 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1160 # identifier) representing a Google group that has been recently
1161 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1162 # the group is recovered, this value reverts to `group:{emailid}` and the
1163 # recovered group retains the role in the binding.
1164 #
1165 #
1166 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1167 # users of that domain. For example, `google.com` or `example.com`.
1168 #
1169 &quot;A String&quot;,
1170 ],
1171 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
1172 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1173 },
1174 ],
1175 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
1176 # prevent simultaneous updates of a policy from overwriting each other.
1177 # It is strongly suggested that systems make use of the `etag` in the
1178 # read-modify-write cycle to perform policy updates in order to avoid race
1179 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1180 # systems are expected to put that etag in the request to `setIamPolicy` to
1181 # ensure that their change will be applied to the same version of the policy.
1182 #
1183 # **Important:** If you use IAM Conditions, you must include the `etag` field
1184 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1185 # you to overwrite a version `3` policy with a version `1` policy, and all of
1186 # the conditions in the version `3` policy are lost.
1187 },
1188 &quot;updateMask&quot;: &quot;A String&quot;, # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
1189 # the fields in the mask will be modified. If no mask is provided, the
1190 # following default mask is used:
1191 #
1192 # `paths: &quot;bindings, etag&quot;`
1193 }
1194
1195 x__xgafv: string, V1 error format.
1196 Allowed values
1197 1 - v1 error format
1198 2 - v2 error format
1199
1200Returns:
1201 An object of the form:
1202
1203 { # An Identity and Access Management (IAM) policy, which specifies access
1204 # controls for Google Cloud resources.
1205 #
1206 #
1207 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
1208 # `members` to a single `role`. Members can be user accounts, service accounts,
1209 # Google groups, and domains (such as G Suite). A `role` is a named list of
1210 # permissions; each `role` can be an IAM predefined role or a user-created
1211 # custom role.
1212 #
1213 # For some types of Google Cloud resources, a `binding` can also specify a
1214 # `condition`, which is a logical expression that allows access to a resource
1215 # only if the expression evaluates to `true`. A condition can add constraints
1216 # based on attributes of the request, the resource, or both. To learn which
1217 # resources support conditions in their IAM policies, see the
1218 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1219 #
1220 # **JSON example:**
1221 #
1222 # {
1223 # &quot;bindings&quot;: [
1224 # {
1225 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
1226 # &quot;members&quot;: [
1227 # &quot;user:mike@example.com&quot;,
1228 # &quot;group:admins@example.com&quot;,
1229 # &quot;domain:google.com&quot;,
1230 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
1231 # ]
1232 # },
1233 # {
1234 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
1235 # &quot;members&quot;: [
1236 # &quot;user:eve@example.com&quot;
1237 # ],
1238 # &quot;condition&quot;: {
1239 # &quot;title&quot;: &quot;expirable access&quot;,
1240 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
1241 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
1242 # }
1243 # }
1244 # ],
1245 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
1246 # &quot;version&quot;: 3
1247 # }
1248 #
1249 # **YAML example:**
1250 #
1251 # bindings:
1252 # - members:
1253 # - user:mike@example.com
1254 # - group:admins@example.com
1255 # - domain:google.com
1256 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
1257 # role: roles/resourcemanager.organizationAdmin
1258 # - members:
1259 # - user:eve@example.com
1260 # role: roles/resourcemanager.organizationViewer
1261 # condition:
1262 # title: expirable access
1263 # description: Does not grant access after Sep 2020
1264 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
1265 # - etag: BwWWja0YfJA=
1266 # - version: 3
1267 #
1268 # For a description of IAM and its features, see the
1269 # [IAM documentation](https://cloud.google.com/iam/docs/).
1270 &quot;version&quot;: 42, # Specifies the format of the policy.
1271 #
1272 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
1273 # are rejected.
1274 #
1275 # Any operation that affects conditional role bindings must specify version
1276 # `3`. This requirement applies to the following operations:
1277 #
1278 # * Getting a policy that includes a conditional role binding
1279 # * Adding a conditional role binding to a policy
1280 # * Changing a conditional role binding in a policy
1281 # * Removing any role binding, with or without a condition, from a policy
1282 # that includes conditions
1283 #
1284 # **Important:** If you use IAM Conditions, you must include the `etag` field
1285 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1286 # you to overwrite a version `3` policy with a version `1` policy, and all of
1287 # the conditions in the version `3` policy are lost.
1288 #
1289 # If a policy does not include any conditions, operations on that policy may
1290 # specify any valid version or leave the field unset.
1291 #
1292 # To learn which resources support conditions in their IAM policies, see the
1293 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1294 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1295 { # Specifies the audit configuration for a service.
1296 # The configuration determines which permission types are logged, and what
1297 # identities, if any, are exempted from logging.
1298 # An AuditConfig must have one or more AuditLogConfigs.
1299 #
1300 # If there are AuditConfigs for both `allServices` and a specific service,
1301 # the union of the two AuditConfigs is used for that service: the log_types
1302 # specified in each AuditConfig are enabled, and the exempted_members in each
1303 # AuditLogConfig are exempted.
1304 #
1305 # Example Policy with multiple AuditConfigs:
1306 #
1307 # {
1308 # &quot;audit_configs&quot;: [
1309 # {
1310 # &quot;service&quot;: &quot;allServices&quot;
1311 # &quot;audit_log_configs&quot;: [
1312 # {
1313 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1314 # &quot;exempted_members&quot;: [
1315 # &quot;user:jose@example.com&quot;
1316 # ]
1317 # },
1318 # {
1319 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1320 # },
1321 # {
1322 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
1323 # }
1324 # ]
1325 # },
1326 # {
1327 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
1328 # &quot;audit_log_configs&quot;: [
1329 # {
1330 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1331 # },
1332 # {
1333 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1334 # &quot;exempted_members&quot;: [
1335 # &quot;user:aliya@example.com&quot;
1336 # ]
1337 # }
1338 # ]
1339 # }
1340 # ]
1341 # }
1342 #
1343 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
1344 # logging. It also exempts jose@example.com from DATA_READ logging, and
1345 # aliya@example.com from DATA_WRITE logging.
1346 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
1347 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
1348 # `allServices` is a special value that covers all services.
1349 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1350 { # Provides the configuration for logging a type of permissions.
1351 # Example:
1352 #
1353 # {
1354 # &quot;audit_log_configs&quot;: [
1355 # {
1356 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1357 # &quot;exempted_members&quot;: [
1358 # &quot;user:jose@example.com&quot;
1359 # ]
1360 # },
1361 # {
1362 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1363 # }
1364 # ]
1365 # }
1366 #
1367 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
1368 # jose@example.com from DATA_READ logging.
1369 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
1370 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
1371 # permission.
1372 # Follows the same format of Binding.members.
1373 &quot;A String&quot;,
1374 ],
1375 },
1376 ],
1377 },
1378 ],
1379 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
1380 # `condition` that determines how and when the `bindings` are applied. Each
1381 # of the `bindings` must contain at least one member.
1382 { # Associates `members` with a `role`.
1383 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
1384 #
1385 # If the condition evaluates to `true`, then this binding applies to the
1386 # current request.
1387 #
1388 # If the condition evaluates to `false`, then this binding does not apply to
1389 # the current request. However, a different role binding might grant the same
1390 # role to one or more of the members in this binding.
1391 #
1392 # To learn which resources support conditions in their IAM policies, see the
1393 # [IAM
1394 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1395 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1396 # are documented at https://github.com/google/cel-spec.
1397 #
1398 # Example (Comparison):
1399 #
1400 # title: &quot;Summary size limit&quot;
1401 # description: &quot;Determines if a summary is less than 100 chars&quot;
1402 # expression: &quot;document.summary.size() &lt; 100&quot;
1403 #
1404 # Example (Equality):
1405 #
1406 # title: &quot;Requestor is owner&quot;
1407 # description: &quot;Determines if requestor is the document owner&quot;
1408 # expression: &quot;document.owner == request.auth.claims.email&quot;
1409 #
1410 # Example (Logic):
1411 #
1412 # title: &quot;Public documents&quot;
1413 # description: &quot;Determine whether the document should be publicly visible&quot;
1414 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1415 #
1416 # Example (Data Manipulation):
1417 #
1418 # title: &quot;Notification string&quot;
1419 # description: &quot;Create a notification string with a timestamp.&quot;
1420 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1421 #
1422 # The exact variables and functions that may be referenced within an expression
1423 # are determined by the service that evaluates it. See the service
1424 # documentation for additional information.
1425 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1426 # describes the expression, e.g. when hovered over it in a UI.
1427 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1428 # syntax.
1429 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
1430 # its purpose. This can be used e.g. in UIs which allow to enter the
1431 # expression.
1432 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1433 # reporting, e.g. a file name and a position in the file.
1434 },
1435 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
1436 # `members` can have the following values:
1437 #
1438 # * `allUsers`: A special identifier that represents anyone who is
1439 # on the internet; with or without a Google account.
1440 #
1441 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1442 # who is authenticated with a Google account or a service account.
1443 #
1444 # * `user:{emailid}`: An email address that represents a specific Google
1445 # account. For example, `alice@example.com` .
1446 #
1447 #
1448 # * `serviceAccount:{emailid}`: An email address that represents a service
1449 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1450 #
1451 # * `group:{emailid}`: An email address that represents a Google group.
1452 # For example, `admins@example.com`.
1453 #
1454 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1455 # identifier) representing a user that has been recently deleted. For
1456 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1457 # recovered, this value reverts to `user:{emailid}` and the recovered user
1458 # retains the role in the binding.
1459 #
1460 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1461 # unique identifier) representing a service account that has been recently
1462 # deleted. For example,
1463 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1464 # If the service account is undeleted, this value reverts to
1465 # `serviceAccount:{emailid}` and the undeleted service account retains the
1466 # role in the binding.
1467 #
1468 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1469 # identifier) representing a Google group that has been recently
1470 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1471 # the group is recovered, this value reverts to `group:{emailid}` and the
1472 # recovered group retains the role in the binding.
1473 #
1474 #
1475 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1476 # users of that domain. For example, `google.com` or `example.com`.
1477 #
1478 &quot;A String&quot;,
1479 ],
1480 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
1481 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1482 },
1483 ],
1484 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
1485 # prevent simultaneous updates of a policy from overwriting each other.
1486 # It is strongly suggested that systems make use of the `etag` in the
1487 # read-modify-write cycle to perform policy updates in order to avoid race
1488 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1489 # systems are expected to put that etag in the request to `setIamPolicy` to
1490 # ensure that their change will be applied to the same version of the policy.
1491 #
1492 # **Important:** If you use IAM Conditions, you must include the `etag` field
1493 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1494 # you to overwrite a version `3` policy with a version `1` policy, and all of
1495 # the conditions in the version `3` policy are lost.
1496 }</pre>
1497</div>
1498
1499<div class="method">
1500 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
1501 <pre>Returns permissions that a caller has on the specified resource.
1502If the resource does not exist, this will return an empty set of
1503permissions, not a `NOT_FOUND` error.
1504
1505Note: This operation is designed to be used for building permission-aware
1506UIs and command-line tools, not for authorization checking. This operation
1507may &quot;fail open&quot; without warning.
1508
1509Args:
1510 resource: string, REQUIRED: The resource for which the policy detail is being requested.
1511See the operation documentation for the appropriate value for this field. (required)
1512 body: object, The request body.
1513 The object takes the form of:
1514
1515{ # Request message for `TestIamPermissions` method.
1516 &quot;permissions&quot;: [ # The set of permissions to check for the `resource`. Permissions with
1517 # wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed. For more
1518 # information see
1519 # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
1520 &quot;A String&quot;,
1521 ],
1522 }
1523
1524 x__xgafv: string, V1 error format.
1525 Allowed values
1526 1 - v1 error format
1527 2 - v2 error format
1528
1529Returns:
1530 An object of the form:
1531
1532 { # Response message for `TestIamPermissions` method.
1533 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is
1534 # allowed.
1535 &quot;A String&quot;,
1536 ],
1537 }</pre>
1538</div>
1539
1540</body></html>