blob: 01d8634d367467c54b1e2dac6185009ac1244046 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="healthcare_v1beta1.html">Cloud Healthcare API</a> . <a href="healthcare_v1beta1.projects.html">projects</a> . <a href="healthcare_v1beta1.projects.locations.html">locations</a> . <a href="healthcare_v1beta1.projects.locations.datasets.html">datasets</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="healthcare_v1beta1.projects.locations.datasets.annotationStores.html">annotationStores()</a></code>
79</p>
80<p class="firstline">Returns the annotationStores Resource.</p>
81
82<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070083 <code><a href="healthcare_v1beta1.projects.locations.datasets.dicomStores.html">dicomStores()</a></code>
84</p>
85<p class="firstline">Returns the dicomStores Resource.</p>
86
87<p class="toc_element">
88 <code><a href="healthcare_v1beta1.projects.locations.datasets.fhirStores.html">fhirStores()</a></code>
89</p>
90<p class="firstline">Returns the fhirStores Resource.</p>
91
92<p class="toc_element">
93 <code><a href="healthcare_v1beta1.projects.locations.datasets.hl7V2Stores.html">hl7V2Stores()</a></code>
94</p>
95<p class="firstline">Returns the hl7V2Stores Resource.</p>
96
97<p class="toc_element">
98 <code><a href="healthcare_v1beta1.projects.locations.datasets.operations.html">operations()</a></code>
99</p>
100<p class="firstline">Returns the operations Resource.</p>
101
102<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -0700103 <code><a href="#create">create(parent, body=None, datasetId=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700104<p class="firstline">Creates a new health dataset. Results are returned through the</p>
105<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700106 <code><a href="#deidentify">deidentify(sourceDataset, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700107<p class="firstline">Creates a new dataset containing de-identified data from the source</p>
108<p class="toc_element">
109 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
110<p class="firstline">Deletes the specified health dataset and all data contained in the dataset.</p>
111<p class="toc_element">
112 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
113<p class="firstline">Gets any metadata associated with a dataset.</p>
114<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700115 <code><a href="#getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700116<p class="firstline">Gets the access control policy for a resource.</p>
117<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700118 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700119<p class="firstline">Lists the health datasets in the current project.</p>
120<p class="toc_element">
121 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
122<p class="firstline">Retrieves the next page of results.</p>
123<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700124 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700125<p class="firstline">Updates dataset metadata.</p>
126<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700127 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700128<p class="firstline">Sets the access control policy on the specified resource. Replaces any</p>
129<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700130 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700131<p class="firstline">Returns permissions that a caller has on the specified resource.</p>
132<h3>Method Details</h3>
133<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700134 <code class="details" id="create">create(parent, body=None, datasetId=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700135 <pre>Creates a new health dataset. Results are returned through the
136Operation interface which returns either an
137`Operation.response` which contains a Dataset or
138`Operation.error`. The metadata
139field type is OperationMetadata.
140A Google Cloud Platform project can contain up to 500 datasets across all
141regions.
142
143Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700144 parent: string, The name of the project where the server creates the dataset. For
145example, `projects/{project_id}/locations/{location_id}`. (required)
146 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700147 The object takes the form of:
148
149{ # A message representing a health dataset.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700150 #
151 # A health dataset represents a collection of healthcare data pertaining to one
152 # or more patients. This may include multiple modalities of healthcare data,
153 # such as electronic medical records or medical imaging data.
154 &quot;timeZone&quot;: &quot;A String&quot;, # The default timezone used by this dataset. Must be a either a valid IANA
155 # time zone name such as &quot;America/New_York&quot; or empty, which defaults to UTC.
156 # This is used for parsing times in resources, such as HL7 messages, where no
157 # explicit timezone is specified.
158 &quot;name&quot;: &quot;A String&quot;, # Resource name of the dataset, of the form
159 # `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`.
160 }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700161
Bu Sun Kim65020912020-05-20 12:08:20 -0700162 datasetId: string, The ID of the dataset that is being created.
163The string must match the following regex: `[\p{L}\p{N}_\-\.]{1,256}`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700164 x__xgafv: string, V1 error format.
165 Allowed values
166 1 - v1 error format
167 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700168
169Returns:
170 An object of the form:
171
172 { # This resource represents a long-running operation that is the result of a
173 # network API call.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700174 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
175 # If `true`, the operation is completed, and either `error` or `response` is
176 # available.
177 &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.
178 # different programming environments, including REST APIs and RPC APIs. It is
179 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
180 # three pieces of data: error code, error message, and error details.
181 #
182 # You can find out more about this error model and how to work with it in the
183 # [API Design Guide](https://cloud.google.com/apis/design/errors).
184 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
185 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
186 # user-facing error message should be localized and sent in the
187 # google.rpc.Status.details field, or localized by the client.
188 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
189 # message types for APIs to use.
190 {
191 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
192 },
193 ],
194 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700195 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
Dan O'Mearadd494642020-05-01 07:42:23 -0700196 # contains progress information and common metadata such as create time.
197 # Some services might not provide such metadata. Any method that returns a
198 # long-running operation should document the metadata type, if any.
Bu Sun Kim65020912020-05-20 12:08:20 -0700199 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700200 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700201 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
202 # originally returns it. If you use the default HTTP mapping, the
203 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700204 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -0700205 # method returns no data on success, such as `Delete`, the response is
206 # `google.protobuf.Empty`. If the original method is standard
207 # `Get`/`Create`/`Update`, the response should be the resource. For other
208 # methods, the response should have the type `XxxResponse`, where `Xxx`
209 # is the original method name. For example, if the original method name
210 # is `TakeSnapshot()`, the inferred response type is
211 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700212 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700213 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700214 }</pre>
215</div>
216
217<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700218 <code class="details" id="deidentify">deidentify(sourceDataset, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700219 <pre>Creates a new dataset containing de-identified data from the source
220dataset. The metadata field type
221is OperationMetadata.
222If the request is successful, the
223response field type is
224DeidentifySummary.
225If errors occur,
Dan O'Mearadd494642020-05-01 07:42:23 -0700226error
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700227details field type is
228DeidentifyErrorDetails.
Dan O'Mearadd494642020-05-01 07:42:23 -0700229The LRO result may still be successful if de-identification fails for some
230DICOM instances. The new de-identified dataset will not contain these
231failed resources. Failed resource totals are tracked in
232DeidentifySummary.failure_resource_count.
Bu Sun Kim65020912020-05-20 12:08:20 -0700233Error details are also logged to Cloud Logging. For more information,
234see [Viewing logs](/healthcare/docs/how-tos/logging).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700235
236Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700237 sourceDataset: string, Source dataset resource name. For example,
238`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`. (required)
239 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700240 The object takes the form of:
241
242{ # Redacts identifying information from the specified dataset.
Bu Sun Kim65020912020-05-20 12:08:20 -0700243 &quot;config&quot;: { # Configures de-id options specific to different types of content. # Deidentify configuration.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700244 # Each submessage customizes the handling of an
245 # https://tools.ietf.org/html/rfc6838 media type or subtype. Configs are
246 # applied in a nested manner at runtime.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700247 &quot;dicom&quot;: { # Specifies the parameters needed for de-identification of DICOM stores. # Configures de-id of application/DICOM content.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700248 &quot;removeList&quot;: { # List of tags to be filtered. # List of tags to remove. Keep all other tags.
249 &quot;tags&quot;: [ # Tags to be filtered. Tags must be DICOM Data Elements, File Meta
250 # Elements, or Directory Structuring Elements, as defined at:
251 # http://dicom.nema.org/medical/dicom/current/output/html/part06.html#table_6-1,.
252 # They may be provided by &quot;Keyword&quot; or &quot;Tag&quot;. For example, &quot;PatientID&quot;,
253 # &quot;00100010&quot;.
254 &quot;A String&quot;,
255 ],
256 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700257 &quot;keepList&quot;: { # List of tags to be filtered. # List of tags to keep. Remove all other tags.
258 &quot;tags&quot;: [ # Tags to be filtered. Tags must be DICOM Data Elements, File Meta
259 # Elements, or Directory Structuring Elements, as defined at:
260 # http://dicom.nema.org/medical/dicom/current/output/html/part06.html#table_6-1,.
261 # They may be provided by &quot;Keyword&quot; or &quot;Tag&quot;. For example, &quot;PatientID&quot;,
262 # &quot;00100010&quot;.
263 &quot;A String&quot;,
264 ],
265 },
266 &quot;filterProfile&quot;: &quot;A String&quot;, # Tag filtering profile that determines which tags to keep/remove.
267 &quot;skipIdRedaction&quot;: True or False, # If true, skip replacing StudyInstanceUID, SeriesInstanceUID,
268 # SOPInstanceUID, and MediaStorageSOPInstanceUID and leave them untouched.
269 # The Cloud Healthcare API regenerates these UIDs by default based on the
270 # DICOM Standard&#x27;s reasoning: &quot;Whilst these UIDs cannot be mapped directly
271 # to an individual out of context, given access to the original images, or
272 # to a database of the original images containing the UIDs, it would be
273 # possible to recover the individual&#x27;s identity.&quot;
274 # http://dicom.nema.org/medical/dicom/current/output/chtml/part15/sect_E.3.9.html
275 },
276 &quot;image&quot;: { # Specifies how to handle de-identification of image pixels. # Configures de-identification of image pixels wherever they are found in the
277 # source_dataset.
278 &quot;textRedactionMode&quot;: &quot;A String&quot;, # Determines how to redact text from image.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700279 },
280 &quot;fhir&quot;: { # Specifies how to handle de-identification of a FHIR store. # Configures de-id of application/FHIR content.
281 &quot;fieldMetadataList&quot;: [ # Specifies FHIR paths to match and how to transform them. Any field that
282 # is not matched by a FieldMetadata is passed through to the output
283 # dataset unmodified. All extensions are removed in the output.
284 # If a field can be matched by more than one FieldMetadata, the first
285 # FieldMetadata.Action is applied.
286 { # Specifies FHIR paths to match, and how to handle de-identification of
287 # matching fields.
288 &quot;paths&quot;: [ # List of paths to FHIR fields to redact. Each path is a
289 # period-separated list where each component is either a field name or
290 # FHIR type name. All types begin with an upper case letter. For example,
291 # the resource field &quot;Patient.Address.city&quot;, which uses a string type,
292 # can be matched by &quot;Patient.Address.String&quot;. Path also supports partial
293 # matching. For example, &quot;Patient.Address.city&quot; can be matched by
294 # &quot;Address.city&quot; (Patient omitted). Partial matching and type matching
295 # can be combined. For example, &quot;Patient.Address.city&quot; can be matched by
296 # &quot;Address.String&quot;. For &quot;choice&quot; types (those defined in the FHIR spec
297 # with the form: field[x]), use two separate components. For example,
298 # &quot;deceasedAge.unit&quot; is matched by &quot;Deceased.Age.unit&quot;. Supported types
299 # are: AdministrativeGenderCode, Code, Date, DateTime, Decimal,
300 # HumanName, Id, LanguageCode, Markdown, Oid, String, Uri, Uuid, Xhtml.
301 # The sub-type for HumanName, such as HumanName.given or
302 # HumanName.family, can be omitted.
303 &quot;A String&quot;,
304 ],
305 &quot;action&quot;: &quot;A String&quot;, # Deidentify action for one field.
306 },
307 ],
308 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700309 &quot;annotation&quot;: { # Specifies how to store annotations during de-identification operation. # Configures how annotations, meaning that the location and infoType
310 # of sensitive information findings, are created during de-identification.
311 # If unspecified, no annotations are created.
312 &quot;storeQuote&quot;: True or False, # If set to true, the sensitive texts are included in
313 # SensitiveTextAnnotation
314 # of Annotation.
315 &quot;annotationStoreName&quot;: &quot;A String&quot;, # The name of the annotation store, in the form
316 # `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationStores/{annotation_store_id}`).
317 #
318 # * The destination annotation store must be in the same project as the
319 # source data. De-identifying data across multiple projects is not
320 # supported.
321 # * The destination annotation store must exist when using
322 # DeidentifyDicomStore or
323 # DeidentifyFhirStore.
324 # DeidentifyDataset
325 # automatically creates the destination annotation store.
326 },
327 &quot;text&quot;: { # Configures de-identification of text wherever it is found in the
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700328 # source_dataset.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700329 &quot;transformations&quot;: [ # The transformations to apply to the detected data.
330 { # A transformation to apply to text that is identified as a specific
331 # info_type.
332 &quot;replaceWithInfoTypeConfig&quot;: { # When using the # Config for replace with InfoType.
333 # INSPECT_AND_TRANSFORM
334 # action, each match is replaced with the name of the info_type. For example,
335 # &quot;My name is Jane&quot; becomes &quot;My name is [PERSON_NAME].&quot; The
336 # TRANSFORM
337 # action is equivalent to redacting.
338 },
339 &quot;characterMaskConfig&quot;: { # Mask a string by replacing its characters with a fixed character. # Config for character mask.
340 &quot;maskingCharacter&quot;: &quot;A String&quot;, # Character to mask the sensitive values. If not supplied, defaults to &quot;*&quot;.
341 },
342 &quot;redactConfig&quot;: { # Define how to redact sensitive values. Default behaviour is erase. # Config for text redaction.
343 # For example, &quot;My name is Jane.&quot; becomes &quot;My name is .&quot;
344 },
345 &quot;infoTypes&quot;: [ # InfoTypes to apply this transformation to. If this is not specified, this
346 # transformation becomes the default transformation, and is used for any
347 # info_type that is not specified in another transformation.
348 &quot;A String&quot;,
349 ],
350 &quot;dateShiftConfig&quot;: { # Shift a date forward or backward in time by a random amount which is # Config for date shift.
351 # consistent for a given patient and crypto key combination.
352 &quot;cryptoKey&quot;: &quot;A String&quot;, # An AES 128/192/256 bit key. Causes the shift to be computed based on this
353 # key and the patient ID. A default key is generated for each
354 # Deidentify operation and is used wherever crypto_key is not specified.
355 },
356 &quot;cryptoHashConfig&quot;: { # Pseudonymization method that generates surrogates via cryptographic hashing. # Config for crypto hash.
357 # Uses SHA-256.
358 # Outputs a base64-encoded representation of the hashed output.
359 # For example, `L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=`.
360 &quot;cryptoKey&quot;: &quot;A String&quot;, # An AES 128/192/256 bit key. Causes the hash to be computed based on this
361 # key. A default key is generated for each Deidentify operation and is used
362 # wherever crypto_key is not specified.
363 },
364 },
365 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700366 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700367 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700368 &quot;destinationDataset&quot;: &quot;A String&quot;, # The name of the dataset resource to create and write the redacted data to.
369 #
370 # * The destination dataset must not exist.
371 # * The destination dataset must be in the same project and location as the
372 # source dataset. De-identifying data across multiple projects or locations
373 # is not supported.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700374 }
375
376 x__xgafv: string, V1 error format.
377 Allowed values
378 1 - v1 error format
379 2 - v2 error format
380
381Returns:
382 An object of the form:
383
384 { # This resource represents a long-running operation that is the result of a
385 # network API call.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700386 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
387 # If `true`, the operation is completed, and either `error` or `response` is
388 # available.
389 &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.
390 # different programming environments, including REST APIs and RPC APIs. It is
391 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
392 # three pieces of data: error code, error message, and error details.
393 #
394 # You can find out more about this error model and how to work with it in the
395 # [API Design Guide](https://cloud.google.com/apis/design/errors).
396 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
397 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
398 # user-facing error message should be localized and sent in the
399 # google.rpc.Status.details field, or localized by the client.
400 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
401 # message types for APIs to use.
402 {
403 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
404 },
405 ],
406 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700407 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
Dan O'Mearadd494642020-05-01 07:42:23 -0700408 # contains progress information and common metadata such as create time.
409 # Some services might not provide such metadata. Any method that returns a
410 # long-running operation should document the metadata type, if any.
Bu Sun Kim65020912020-05-20 12:08:20 -0700411 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700412 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700413 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
414 # originally returns it. If you use the default HTTP mapping, the
415 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700416 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -0700417 # method returns no data on success, such as `Delete`, the response is
418 # `google.protobuf.Empty`. If the original method is standard
419 # `Get`/`Create`/`Update`, the response should be the resource. For other
420 # methods, the response should have the type `XxxResponse`, where `Xxx`
421 # is the original method name. For example, if the original method name
422 # is `TakeSnapshot()`, the inferred response type is
423 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700424 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700425 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700426 }</pre>
427</div>
428
429<div class="method">
430 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
431 <pre>Deletes the specified health dataset and all data contained in the dataset.
432Deleting a dataset does not affect the sources from which the dataset was
433imported (if any).
434
435Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700436 name: string, The name of the dataset to delete. For example,
437`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700438 x__xgafv: string, V1 error format.
439 Allowed values
440 1 - v1 error format
441 2 - v2 error format
442
443Returns:
444 An object of the form:
445
446 { # A generic empty message that you can re-use to avoid defining duplicated
447 # empty messages in your APIs. A typical example is to use it as the request
448 # or the response type of an API method. For instance:
449 #
450 # service Foo {
451 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
452 # }
453 #
454 # The JSON representation for `Empty` is empty JSON object `{}`.
455 }</pre>
456</div>
457
458<div class="method">
459 <code class="details" id="get">get(name, x__xgafv=None)</code>
460 <pre>Gets any metadata associated with a dataset.
461
462Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700463 name: string, The name of the dataset to read. For example,
464`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700465 x__xgafv: string, V1 error format.
466 Allowed values
467 1 - v1 error format
468 2 - v2 error format
469
470Returns:
471 An object of the form:
472
473 { # A message representing a health dataset.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700474 #
475 # A health dataset represents a collection of healthcare data pertaining to one
476 # or more patients. This may include multiple modalities of healthcare data,
477 # such as electronic medical records or medical imaging data.
478 &quot;timeZone&quot;: &quot;A String&quot;, # The default timezone used by this dataset. Must be a either a valid IANA
479 # time zone name such as &quot;America/New_York&quot; or empty, which defaults to UTC.
480 # This is used for parsing times in resources, such as HL7 messages, where no
481 # explicit timezone is specified.
482 &quot;name&quot;: &quot;A String&quot;, # Resource name of the dataset, of the form
483 # `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`.
484 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700485</div>
486
487<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700488 <code class="details" id="getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700489 <pre>Gets the access control policy for a resource.
490Returns an empty policy if the resource exists and does not have a policy
491set.
492
493Args:
494 resource: string, REQUIRED: The resource for which the policy is being requested.
495See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700496 options_requestedPolicyVersion: integer, Optional. The policy format version to be returned.
497
498Valid values are 0, 1, and 3. Requests specifying an invalid value will be
499rejected.
500
501Requests for policies with any conditional bindings must specify version 3.
502Policies without any conditional bindings may specify any valid value or
503leave the field unset.
Bu Sun Kim65020912020-05-20 12:08:20 -0700504
505To learn which resources support conditions in their IAM policies, see the
506[IAM
507documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700508 x__xgafv: string, V1 error format.
509 Allowed values
510 1 - v1 error format
511 2 - v2 error format
512
513Returns:
514 An object of the form:
515
Dan O'Mearadd494642020-05-01 07:42:23 -0700516 { # An Identity and Access Management (IAM) policy, which specifies access
517 # controls for Google Cloud resources.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700518 #
519 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700520 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
521 # `members` to a single `role`. Members can be user accounts, service accounts,
522 # Google groups, and domains (such as G Suite). A `role` is a named list of
523 # permissions; each `role` can be an IAM predefined role or a user-created
524 # custom role.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700525 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700526 # For some types of Google Cloud resources, a `binding` can also specify a
527 # `condition`, which is a logical expression that allows access to a resource
528 # only if the expression evaluates to `true`. A condition can add constraints
529 # based on attributes of the request, the resource, or both. To learn which
530 # resources support conditions in their IAM policies, see the
531 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -0700532 #
533 # **JSON example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700534 #
535 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700536 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700537 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700538 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
539 # &quot;members&quot;: [
540 # &quot;user:mike@example.com&quot;,
541 # &quot;group:admins@example.com&quot;,
542 # &quot;domain:google.com&quot;,
543 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700544 # ]
545 # },
546 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700547 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
548 # &quot;members&quot;: [
549 # &quot;user:eve@example.com&quot;
550 # ],
551 # &quot;condition&quot;: {
552 # &quot;title&quot;: &quot;expirable access&quot;,
553 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
554 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700555 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700556 # }
Dan O'Mearadd494642020-05-01 07:42:23 -0700557 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700558 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
559 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700560 # }
561 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700562 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700563 #
564 # bindings:
565 # - members:
566 # - user:mike@example.com
567 # - group:admins@example.com
568 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -0700569 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
570 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700571 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -0700572 # - user:eve@example.com
573 # role: roles/resourcemanager.organizationViewer
574 # condition:
575 # title: expirable access
576 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -0700577 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -0700578 # - etag: BwWWja0YfJA=
579 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700580 #
581 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -0700582 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -0700583 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -0700584 # `condition` that determines how and when the `bindings` are applied. Each
585 # of the `bindings` must contain at least one member.
586 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700587 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
588 #
589 # If the condition evaluates to `true`, then this binding applies to the
590 # current request.
591 #
592 # If the condition evaluates to `false`, then this binding does not apply to
593 # the current request. However, a different role binding might grant the same
594 # role to one or more of the members in this binding.
595 #
596 # To learn which resources support conditions in their IAM policies, see the
597 # [IAM
598 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
599 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
600 # are documented at https://github.com/google/cel-spec.
601 #
602 # Example (Comparison):
603 #
604 # title: &quot;Summary size limit&quot;
605 # description: &quot;Determines if a summary is less than 100 chars&quot;
606 # expression: &quot;document.summary.size() &lt; 100&quot;
607 #
608 # Example (Equality):
609 #
610 # title: &quot;Requestor is owner&quot;
611 # description: &quot;Determines if requestor is the document owner&quot;
612 # expression: &quot;document.owner == request.auth.claims.email&quot;
613 #
614 # Example (Logic):
615 #
616 # title: &quot;Public documents&quot;
617 # description: &quot;Determine whether the document should be publicly visible&quot;
618 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
619 #
620 # Example (Data Manipulation):
621 #
622 # title: &quot;Notification string&quot;
623 # description: &quot;Create a notification string with a timestamp.&quot;
624 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
625 #
626 # The exact variables and functions that may be referenced within an expression
627 # are determined by the service that evaluates it. See the service
628 # documentation for additional information.
629 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
630 # its purpose. This can be used e.g. in UIs which allow to enter the
631 # expression.
Bu Sun Kim65020912020-05-20 12:08:20 -0700632 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
633 # describes the expression, e.g. when hovered over it in a UI.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700634 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
635 # syntax.
636 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
637 # reporting, e.g. a file name and a position in the file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700638 },
639 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Dan O'Mearadd494642020-05-01 07:42:23 -0700640 # `members` can have the following values:
641 #
642 # * `allUsers`: A special identifier that represents anyone who is
643 # on the internet; with or without a Google account.
644 #
645 # * `allAuthenticatedUsers`: A special identifier that represents anyone
646 # who is authenticated with a Google account or a service account.
647 #
648 # * `user:{emailid}`: An email address that represents a specific Google
649 # account. For example, `alice@example.com` .
650 #
651 #
652 # * `serviceAccount:{emailid}`: An email address that represents a service
653 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
654 #
655 # * `group:{emailid}`: An email address that represents a Google group.
656 # For example, `admins@example.com`.
657 #
658 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
659 # identifier) representing a user that has been recently deleted. For
660 # example, `alice@example.com?uid=123456789012345678901`. If the user is
661 # recovered, this value reverts to `user:{emailid}` and the recovered user
662 # retains the role in the binding.
663 #
664 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
665 # unique identifier) representing a service account that has been recently
666 # deleted. For example,
667 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
668 # If the service account is undeleted, this value reverts to
669 # `serviceAccount:{emailid}` and the undeleted service account retains the
670 # role in the binding.
671 #
672 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
673 # identifier) representing a Google group that has been recently
674 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
675 # the group is recovered, this value reverts to `group:{emailid}` and the
676 # recovered group retains the role in the binding.
677 #
678 #
679 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
680 # users of that domain. For example, `google.com` or `example.com`.
681 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700682 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700683 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700684 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
685 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Dan O'Mearadd494642020-05-01 07:42:23 -0700686 },
687 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700688 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
689 # prevent simultaneous updates of a policy from overwriting each other.
690 # It is strongly suggested that systems make use of the `etag` in the
691 # read-modify-write cycle to perform policy updates in order to avoid race
692 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
693 # systems are expected to put that etag in the request to `setIamPolicy` to
694 # ensure that their change will be applied to the same version of the policy.
695 #
696 # **Important:** If you use IAM Conditions, you must include the `etag` field
697 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
698 # you to overwrite a version `3` policy with a version `1` policy, and all of
699 # the conditions in the version `3` policy are lost.
700 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
701 { # Specifies the audit configuration for a service.
702 # The configuration determines which permission types are logged, and what
703 # identities, if any, are exempted from logging.
704 # An AuditConfig must have one or more AuditLogConfigs.
705 #
706 # If there are AuditConfigs for both `allServices` and a specific service,
707 # the union of the two AuditConfigs is used for that service: the log_types
708 # specified in each AuditConfig are enabled, and the exempted_members in each
709 # AuditLogConfig are exempted.
710 #
711 # Example Policy with multiple AuditConfigs:
712 #
713 # {
714 # &quot;audit_configs&quot;: [
715 # {
716 # &quot;service&quot;: &quot;allServices&quot;,
717 # &quot;audit_log_configs&quot;: [
718 # {
719 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
720 # &quot;exempted_members&quot;: [
721 # &quot;user:jose@example.com&quot;
722 # ]
723 # },
724 # {
725 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
726 # },
727 # {
728 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
729 # }
730 # ]
731 # },
732 # {
733 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
734 # &quot;audit_log_configs&quot;: [
735 # {
736 # &quot;log_type&quot;: &quot;DATA_READ&quot;
737 # },
738 # {
739 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
740 # &quot;exempted_members&quot;: [
741 # &quot;user:aliya@example.com&quot;
742 # ]
743 # }
744 # ]
745 # }
746 # ]
747 # }
748 #
749 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
750 # logging. It also exempts jose@example.com from DATA_READ logging, and
751 # aliya@example.com from DATA_WRITE logging.
752 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
753 { # Provides the configuration for logging a type of permissions.
754 # Example:
755 #
756 # {
757 # &quot;audit_log_configs&quot;: [
758 # {
759 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
760 # &quot;exempted_members&quot;: [
761 # &quot;user:jose@example.com&quot;
762 # ]
763 # },
764 # {
765 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
766 # }
767 # ]
768 # }
769 #
770 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
771 # jose@example.com from DATA_READ logging.
772 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
773 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
774 # permission.
775 # Follows the same format of Binding.members.
776 &quot;A String&quot;,
777 ],
778 },
779 ],
780 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
781 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
782 # `allServices` is a special value that covers all services.
783 },
784 ],
785 &quot;version&quot;: 42, # Specifies the format of the policy.
786 #
787 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
788 # are rejected.
789 #
790 # Any operation that affects conditional role bindings must specify version
791 # `3`. This requirement applies to the following operations:
792 #
793 # * Getting a policy that includes a conditional role binding
794 # * Adding a conditional role binding to a policy
795 # * Changing a conditional role binding in a policy
796 # * Removing any role binding, with or without a condition, from a policy
797 # that includes conditions
798 #
799 # **Important:** If you use IAM Conditions, you must include the `etag` field
800 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
801 # you to overwrite a version `3` policy with a version `1` policy, and all of
802 # the conditions in the version `3` policy are lost.
803 #
804 # If a policy does not include any conditions, operations on that policy may
805 # specify any valid version or leave the field unset.
806 #
807 # To learn which resources support conditions in their IAM policies, see the
808 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700809 }</pre>
810</div>
811
812<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700813 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700814 <pre>Lists the health datasets in the current project.
815
816Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700817 parent: string, The name of the project whose datasets should be listed.
818For example, `projects/{project_id}/locations/{location_id}`. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700819 pageSize: integer, The maximum number of items to return. Capped to 100 if not specified.
820May not be larger than 1000.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700821 pageToken: string, The next_page_token value returned from a previous List request, if any.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700822 x__xgafv: string, V1 error format.
823 Allowed values
824 1 - v1 error format
825 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700826
827Returns:
828 An object of the form:
829
830 { # Lists the available datasets.
Bu Sun Kim65020912020-05-20 12:08:20 -0700831 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no
832 # more results in the list.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700833 &quot;datasets&quot;: [ # The first page of datasets.
834 { # A message representing a health dataset.
835 #
836 # A health dataset represents a collection of healthcare data pertaining to one
837 # or more patients. This may include multiple modalities of healthcare data,
838 # such as electronic medical records or medical imaging data.
839 &quot;timeZone&quot;: &quot;A String&quot;, # The default timezone used by this dataset. Must be a either a valid IANA
840 # time zone name such as &quot;America/New_York&quot; or empty, which defaults to UTC.
841 # This is used for parsing times in resources, such as HL7 messages, where no
842 # explicit timezone is specified.
843 &quot;name&quot;: &quot;A String&quot;, # Resource name of the dataset, of the form
844 # `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`.
845 },
846 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700847 }</pre>
848</div>
849
850<div class="method">
851 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
852 <pre>Retrieves the next page of results.
853
854Args:
855 previous_request: The request for the previous page. (required)
856 previous_response: The response from the request for the previous page. (required)
857
858Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700859 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700860 page. Returns None if there are no more items in the collection.
861 </pre>
862</div>
863
864<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700865 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700866 <pre>Updates dataset metadata.
867
868Args:
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700869 name: string, Resource name of the dataset, of the form
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700870`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700871 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700872 The object takes the form of:
873
874{ # A message representing a health dataset.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700875 #
876 # A health dataset represents a collection of healthcare data pertaining to one
877 # or more patients. This may include multiple modalities of healthcare data,
878 # such as electronic medical records or medical imaging data.
879 &quot;timeZone&quot;: &quot;A String&quot;, # The default timezone used by this dataset. Must be a either a valid IANA
880 # time zone name such as &quot;America/New_York&quot; or empty, which defaults to UTC.
881 # This is used for parsing times in resources, such as HL7 messages, where no
882 # explicit timezone is specified.
883 &quot;name&quot;: &quot;A String&quot;, # Resource name of the dataset, of the form
884 # `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`.
885 }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700886
887 updateMask: string, The update mask applies to the resource. For the `FieldMask` definition,
888see
889https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
890 x__xgafv: string, V1 error format.
891 Allowed values
892 1 - v1 error format
893 2 - v2 error format
894
895Returns:
896 An object of the form:
897
898 { # A message representing a health dataset.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700899 #
900 # A health dataset represents a collection of healthcare data pertaining to one
901 # or more patients. This may include multiple modalities of healthcare data,
902 # such as electronic medical records or medical imaging data.
903 &quot;timeZone&quot;: &quot;A String&quot;, # The default timezone used by this dataset. Must be a either a valid IANA
904 # time zone name such as &quot;America/New_York&quot; or empty, which defaults to UTC.
905 # This is used for parsing times in resources, such as HL7 messages, where no
906 # explicit timezone is specified.
907 &quot;name&quot;: &quot;A String&quot;, # Resource name of the dataset, of the form
908 # `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`.
909 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700910</div>
911
912<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700913 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700914 <pre>Sets the access control policy on the specified resource. Replaces any
915existing policy.
916
Bu Sun Kim65020912020-05-20 12:08:20 -0700917Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
Dan O'Mearadd494642020-05-01 07:42:23 -0700918
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700919Args:
920 resource: string, REQUIRED: The resource for which the policy is being specified.
921See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700922 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700923 The object takes the form of:
924
925{ # Request message for `SetIamPolicy` method.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700926 &quot;updateMask&quot;: &quot;A String&quot;, # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
927 # the fields in the mask will be modified. If no mask is provided, the
928 # following default mask is used:
929 #
930 # `paths: &quot;bindings, etag&quot;`
Bu Sun Kim65020912020-05-20 12:08:20 -0700931 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access # REQUIRED: The complete policy to be applied to the `resource`. The size of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700932 # the policy is limited to a few 10s of KB. An empty policy is a
933 # valid policy but certain Cloud Platform services (such as Projects)
934 # might reject them.
Dan O'Mearadd494642020-05-01 07:42:23 -0700935 # controls for Google Cloud resources.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700936 #
937 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700938 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
939 # `members` to a single `role`. Members can be user accounts, service accounts,
940 # Google groups, and domains (such as G Suite). A `role` is a named list of
941 # permissions; each `role` can be an IAM predefined role or a user-created
942 # custom role.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700943 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700944 # For some types of Google Cloud resources, a `binding` can also specify a
945 # `condition`, which is a logical expression that allows access to a resource
946 # only if the expression evaluates to `true`. A condition can add constraints
947 # based on attributes of the request, the resource, or both. To learn which
948 # resources support conditions in their IAM policies, see the
949 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -0700950 #
951 # **JSON example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700952 #
953 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700954 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700955 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700956 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
957 # &quot;members&quot;: [
958 # &quot;user:mike@example.com&quot;,
959 # &quot;group:admins@example.com&quot;,
960 # &quot;domain:google.com&quot;,
961 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700962 # ]
963 # },
964 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700965 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
966 # &quot;members&quot;: [
967 # &quot;user:eve@example.com&quot;
968 # ],
969 # &quot;condition&quot;: {
970 # &quot;title&quot;: &quot;expirable access&quot;,
971 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
972 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700973 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700974 # }
Dan O'Mearadd494642020-05-01 07:42:23 -0700975 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700976 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
977 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700978 # }
979 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700980 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700981 #
982 # bindings:
983 # - members:
984 # - user:mike@example.com
985 # - group:admins@example.com
986 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -0700987 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
988 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700989 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -0700990 # - user:eve@example.com
991 # role: roles/resourcemanager.organizationViewer
992 # condition:
993 # title: expirable access
994 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -0700995 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -0700996 # - etag: BwWWja0YfJA=
997 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700998 #
999 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -07001000 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -07001001 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -07001002 # `condition` that determines how and when the `bindings` are applied. Each
1003 # of the `bindings` must contain at least one member.
1004 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001005 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
1006 #
1007 # If the condition evaluates to `true`, then this binding applies to the
1008 # current request.
1009 #
1010 # If the condition evaluates to `false`, then this binding does not apply to
1011 # the current request. However, a different role binding might grant the same
1012 # role to one or more of the members in this binding.
1013 #
1014 # To learn which resources support conditions in their IAM policies, see the
1015 # [IAM
1016 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1017 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1018 # are documented at https://github.com/google/cel-spec.
1019 #
1020 # Example (Comparison):
1021 #
1022 # title: &quot;Summary size limit&quot;
1023 # description: &quot;Determines if a summary is less than 100 chars&quot;
1024 # expression: &quot;document.summary.size() &lt; 100&quot;
1025 #
1026 # Example (Equality):
1027 #
1028 # title: &quot;Requestor is owner&quot;
1029 # description: &quot;Determines if requestor is the document owner&quot;
1030 # expression: &quot;document.owner == request.auth.claims.email&quot;
1031 #
1032 # Example (Logic):
1033 #
1034 # title: &quot;Public documents&quot;
1035 # description: &quot;Determine whether the document should be publicly visible&quot;
1036 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1037 #
1038 # Example (Data Manipulation):
1039 #
1040 # title: &quot;Notification string&quot;
1041 # description: &quot;Create a notification string with a timestamp.&quot;
1042 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1043 #
1044 # The exact variables and functions that may be referenced within an expression
1045 # are determined by the service that evaluates it. See the service
1046 # documentation for additional information.
1047 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
1048 # its purpose. This can be used e.g. in UIs which allow to enter the
1049 # expression.
Bu Sun Kim65020912020-05-20 12:08:20 -07001050 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1051 # describes the expression, e.g. when hovered over it in a UI.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001052 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1053 # syntax.
1054 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1055 # reporting, e.g. a file name and a position in the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07001056 },
1057 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Dan O'Mearadd494642020-05-01 07:42:23 -07001058 # `members` can have the following values:
1059 #
1060 # * `allUsers`: A special identifier that represents anyone who is
1061 # on the internet; with or without a Google account.
1062 #
1063 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1064 # who is authenticated with a Google account or a service account.
1065 #
1066 # * `user:{emailid}`: An email address that represents a specific Google
1067 # account. For example, `alice@example.com` .
1068 #
1069 #
1070 # * `serviceAccount:{emailid}`: An email address that represents a service
1071 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1072 #
1073 # * `group:{emailid}`: An email address that represents a Google group.
1074 # For example, `admins@example.com`.
1075 #
1076 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1077 # identifier) representing a user that has been recently deleted. For
1078 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1079 # recovered, this value reverts to `user:{emailid}` and the recovered user
1080 # retains the role in the binding.
1081 #
1082 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1083 # unique identifier) representing a service account that has been recently
1084 # deleted. For example,
1085 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1086 # If the service account is undeleted, this value reverts to
1087 # `serviceAccount:{emailid}` and the undeleted service account retains the
1088 # role in the binding.
1089 #
1090 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1091 # identifier) representing a Google group that has been recently
1092 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1093 # the group is recovered, this value reverts to `group:{emailid}` and the
1094 # recovered group retains the role in the binding.
1095 #
1096 #
1097 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1098 # users of that domain. For example, `google.com` or `example.com`.
1099 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001100 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001101 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001102 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
1103 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Dan O'Mearadd494642020-05-01 07:42:23 -07001104 },
1105 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001106 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
1107 # prevent simultaneous updates of a policy from overwriting each other.
1108 # It is strongly suggested that systems make use of the `etag` in the
1109 # read-modify-write cycle to perform policy updates in order to avoid race
1110 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1111 # systems are expected to put that etag in the request to `setIamPolicy` to
1112 # ensure that their change will be applied to the same version of the policy.
1113 #
1114 # **Important:** If you use IAM Conditions, you must include the `etag` field
1115 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1116 # you to overwrite a version `3` policy with a version `1` policy, and all of
1117 # the conditions in the version `3` policy are lost.
1118 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1119 { # Specifies the audit configuration for a service.
1120 # The configuration determines which permission types are logged, and what
1121 # identities, if any, are exempted from logging.
1122 # An AuditConfig must have one or more AuditLogConfigs.
1123 #
1124 # If there are AuditConfigs for both `allServices` and a specific service,
1125 # the union of the two AuditConfigs is used for that service: the log_types
1126 # specified in each AuditConfig are enabled, and the exempted_members in each
1127 # AuditLogConfig are exempted.
1128 #
1129 # Example Policy with multiple AuditConfigs:
1130 #
1131 # {
1132 # &quot;audit_configs&quot;: [
1133 # {
1134 # &quot;service&quot;: &quot;allServices&quot;,
1135 # &quot;audit_log_configs&quot;: [
1136 # {
1137 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1138 # &quot;exempted_members&quot;: [
1139 # &quot;user:jose@example.com&quot;
1140 # ]
1141 # },
1142 # {
1143 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
1144 # },
1145 # {
1146 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
1147 # }
1148 # ]
1149 # },
1150 # {
1151 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
1152 # &quot;audit_log_configs&quot;: [
1153 # {
1154 # &quot;log_type&quot;: &quot;DATA_READ&quot;
1155 # },
1156 # {
1157 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1158 # &quot;exempted_members&quot;: [
1159 # &quot;user:aliya@example.com&quot;
1160 # ]
1161 # }
1162 # ]
1163 # }
1164 # ]
1165 # }
1166 #
1167 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
1168 # logging. It also exempts jose@example.com from DATA_READ logging, and
1169 # aliya@example.com from DATA_WRITE logging.
1170 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1171 { # Provides the configuration for logging a type of permissions.
1172 # Example:
1173 #
1174 # {
1175 # &quot;audit_log_configs&quot;: [
1176 # {
1177 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1178 # &quot;exempted_members&quot;: [
1179 # &quot;user:jose@example.com&quot;
1180 # ]
1181 # },
1182 # {
1183 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
1184 # }
1185 # ]
1186 # }
1187 #
1188 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
1189 # jose@example.com from DATA_READ logging.
1190 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
1191 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
1192 # permission.
1193 # Follows the same format of Binding.members.
1194 &quot;A String&quot;,
1195 ],
1196 },
1197 ],
1198 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
1199 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
1200 # `allServices` is a special value that covers all services.
1201 },
1202 ],
1203 &quot;version&quot;: 42, # Specifies the format of the policy.
1204 #
1205 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
1206 # are rejected.
1207 #
1208 # Any operation that affects conditional role bindings must specify version
1209 # `3`. This requirement applies to the following operations:
1210 #
1211 # * Getting a policy that includes a conditional role binding
1212 # * Adding a conditional role binding to a policy
1213 # * Changing a conditional role binding in a policy
1214 # * Removing any role binding, with or without a condition, from a policy
1215 # that includes conditions
1216 #
1217 # **Important:** If you use IAM Conditions, you must include the `etag` field
1218 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1219 # you to overwrite a version `3` policy with a version `1` policy, and all of
1220 # the conditions in the version `3` policy are lost.
1221 #
1222 # If a policy does not include any conditions, operations on that policy may
1223 # specify any valid version or leave the field unset.
1224 #
1225 # To learn which resources support conditions in their IAM policies, see the
1226 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001227 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001228 }
1229
1230 x__xgafv: string, V1 error format.
1231 Allowed values
1232 1 - v1 error format
1233 2 - v2 error format
1234
1235Returns:
1236 An object of the form:
1237
Dan O'Mearadd494642020-05-01 07:42:23 -07001238 { # An Identity and Access Management (IAM) policy, which specifies access
1239 # controls for Google Cloud resources.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001240 #
1241 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001242 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
1243 # `members` to a single `role`. Members can be user accounts, service accounts,
1244 # Google groups, and domains (such as G Suite). A `role` is a named list of
1245 # permissions; each `role` can be an IAM predefined role or a user-created
1246 # custom role.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001247 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001248 # For some types of Google Cloud resources, a `binding` can also specify a
1249 # `condition`, which is a logical expression that allows access to a resource
1250 # only if the expression evaluates to `true`. A condition can add constraints
1251 # based on attributes of the request, the resource, or both. To learn which
1252 # resources support conditions in their IAM policies, see the
1253 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -07001254 #
1255 # **JSON example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001256 #
1257 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001258 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001259 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001260 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
1261 # &quot;members&quot;: [
1262 # &quot;user:mike@example.com&quot;,
1263 # &quot;group:admins@example.com&quot;,
1264 # &quot;domain:google.com&quot;,
1265 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001266 # ]
1267 # },
1268 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001269 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
1270 # &quot;members&quot;: [
1271 # &quot;user:eve@example.com&quot;
1272 # ],
1273 # &quot;condition&quot;: {
1274 # &quot;title&quot;: &quot;expirable access&quot;,
1275 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
1276 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001277 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001278 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07001279 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001280 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
1281 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001282 # }
1283 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001284 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001285 #
1286 # bindings:
1287 # - members:
1288 # - user:mike@example.com
1289 # - group:admins@example.com
1290 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -07001291 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
1292 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001293 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -07001294 # - user:eve@example.com
1295 # role: roles/resourcemanager.organizationViewer
1296 # condition:
1297 # title: expirable access
1298 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -07001299 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -07001300 # - etag: BwWWja0YfJA=
1301 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001302 #
1303 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -07001304 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -07001305 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -07001306 # `condition` that determines how and when the `bindings` are applied. Each
1307 # of the `bindings` must contain at least one member.
1308 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001309 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
1310 #
1311 # If the condition evaluates to `true`, then this binding applies to the
1312 # current request.
1313 #
1314 # If the condition evaluates to `false`, then this binding does not apply to
1315 # the current request. However, a different role binding might grant the same
1316 # role to one or more of the members in this binding.
1317 #
1318 # To learn which resources support conditions in their IAM policies, see the
1319 # [IAM
1320 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1321 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1322 # are documented at https://github.com/google/cel-spec.
1323 #
1324 # Example (Comparison):
1325 #
1326 # title: &quot;Summary size limit&quot;
1327 # description: &quot;Determines if a summary is less than 100 chars&quot;
1328 # expression: &quot;document.summary.size() &lt; 100&quot;
1329 #
1330 # Example (Equality):
1331 #
1332 # title: &quot;Requestor is owner&quot;
1333 # description: &quot;Determines if requestor is the document owner&quot;
1334 # expression: &quot;document.owner == request.auth.claims.email&quot;
1335 #
1336 # Example (Logic):
1337 #
1338 # title: &quot;Public documents&quot;
1339 # description: &quot;Determine whether the document should be publicly visible&quot;
1340 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1341 #
1342 # Example (Data Manipulation):
1343 #
1344 # title: &quot;Notification string&quot;
1345 # description: &quot;Create a notification string with a timestamp.&quot;
1346 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1347 #
1348 # The exact variables and functions that may be referenced within an expression
1349 # are determined by the service that evaluates it. See the service
1350 # documentation for additional information.
1351 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
1352 # its purpose. This can be used e.g. in UIs which allow to enter the
1353 # expression.
Bu Sun Kim65020912020-05-20 12:08:20 -07001354 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1355 # describes the expression, e.g. when hovered over it in a UI.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001356 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1357 # syntax.
1358 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1359 # reporting, e.g. a file name and a position in the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07001360 },
1361 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Dan O'Mearadd494642020-05-01 07:42:23 -07001362 # `members` can have the following values:
1363 #
1364 # * `allUsers`: A special identifier that represents anyone who is
1365 # on the internet; with or without a Google account.
1366 #
1367 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1368 # who is authenticated with a Google account or a service account.
1369 #
1370 # * `user:{emailid}`: An email address that represents a specific Google
1371 # account. For example, `alice@example.com` .
1372 #
1373 #
1374 # * `serviceAccount:{emailid}`: An email address that represents a service
1375 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1376 #
1377 # * `group:{emailid}`: An email address that represents a Google group.
1378 # For example, `admins@example.com`.
1379 #
1380 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1381 # identifier) representing a user that has been recently deleted. For
1382 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1383 # recovered, this value reverts to `user:{emailid}` and the recovered user
1384 # retains the role in the binding.
1385 #
1386 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1387 # unique identifier) representing a service account that has been recently
1388 # deleted. For example,
1389 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1390 # If the service account is undeleted, this value reverts to
1391 # `serviceAccount:{emailid}` and the undeleted service account retains the
1392 # role in the binding.
1393 #
1394 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1395 # identifier) representing a Google group that has been recently
1396 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1397 # the group is recovered, this value reverts to `group:{emailid}` and the
1398 # recovered group retains the role in the binding.
1399 #
1400 #
1401 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1402 # users of that domain. For example, `google.com` or `example.com`.
1403 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001404 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001405 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001406 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
1407 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Dan O'Mearadd494642020-05-01 07:42:23 -07001408 },
1409 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001410 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
1411 # prevent simultaneous updates of a policy from overwriting each other.
1412 # It is strongly suggested that systems make use of the `etag` in the
1413 # read-modify-write cycle to perform policy updates in order to avoid race
1414 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1415 # systems are expected to put that etag in the request to `setIamPolicy` to
1416 # ensure that their change will be applied to the same version of the policy.
1417 #
1418 # **Important:** If you use IAM Conditions, you must include the `etag` field
1419 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1420 # you to overwrite a version `3` policy with a version `1` policy, and all of
1421 # the conditions in the version `3` policy are lost.
1422 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1423 { # Specifies the audit configuration for a service.
1424 # The configuration determines which permission types are logged, and what
1425 # identities, if any, are exempted from logging.
1426 # An AuditConfig must have one or more AuditLogConfigs.
1427 #
1428 # If there are AuditConfigs for both `allServices` and a specific service,
1429 # the union of the two AuditConfigs is used for that service: the log_types
1430 # specified in each AuditConfig are enabled, and the exempted_members in each
1431 # AuditLogConfig are exempted.
1432 #
1433 # Example Policy with multiple AuditConfigs:
1434 #
1435 # {
1436 # &quot;audit_configs&quot;: [
1437 # {
1438 # &quot;service&quot;: &quot;allServices&quot;,
1439 # &quot;audit_log_configs&quot;: [
1440 # {
1441 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1442 # &quot;exempted_members&quot;: [
1443 # &quot;user:jose@example.com&quot;
1444 # ]
1445 # },
1446 # {
1447 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
1448 # },
1449 # {
1450 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;
1451 # }
1452 # ]
1453 # },
1454 # {
1455 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;,
1456 # &quot;audit_log_configs&quot;: [
1457 # {
1458 # &quot;log_type&quot;: &quot;DATA_READ&quot;
1459 # },
1460 # {
1461 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1462 # &quot;exempted_members&quot;: [
1463 # &quot;user:aliya@example.com&quot;
1464 # ]
1465 # }
1466 # ]
1467 # }
1468 # ]
1469 # }
1470 #
1471 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
1472 # logging. It also exempts jose@example.com from DATA_READ logging, and
1473 # aliya@example.com from DATA_WRITE logging.
1474 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1475 { # Provides the configuration for logging a type of permissions.
1476 # Example:
1477 #
1478 # {
1479 # &quot;audit_log_configs&quot;: [
1480 # {
1481 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1482 # &quot;exempted_members&quot;: [
1483 # &quot;user:jose@example.com&quot;
1484 # ]
1485 # },
1486 # {
1487 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;
1488 # }
1489 # ]
1490 # }
1491 #
1492 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
1493 # jose@example.com from DATA_READ logging.
1494 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
1495 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
1496 # permission.
1497 # Follows the same format of Binding.members.
1498 &quot;A String&quot;,
1499 ],
1500 },
1501 ],
1502 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
1503 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
1504 # `allServices` is a special value that covers all services.
1505 },
1506 ],
1507 &quot;version&quot;: 42, # Specifies the format of the policy.
1508 #
1509 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
1510 # are rejected.
1511 #
1512 # Any operation that affects conditional role bindings must specify version
1513 # `3`. This requirement applies to the following operations:
1514 #
1515 # * Getting a policy that includes a conditional role binding
1516 # * Adding a conditional role binding to a policy
1517 # * Changing a conditional role binding in a policy
1518 # * Removing any role binding, with or without a condition, from a policy
1519 # that includes conditions
1520 #
1521 # **Important:** If you use IAM Conditions, you must include the `etag` field
1522 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1523 # you to overwrite a version `3` policy with a version `1` policy, and all of
1524 # the conditions in the version `3` policy are lost.
1525 #
1526 # If a policy does not include any conditions, operations on that policy may
1527 # specify any valid version or leave the field unset.
1528 #
1529 # To learn which resources support conditions in their IAM policies, see the
1530 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001531 }</pre>
1532</div>
1533
1534<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001535 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001536 <pre>Returns permissions that a caller has on the specified resource.
1537If the resource does not exist, this will return an empty set of
Bu Sun Kim65020912020-05-20 12:08:20 -07001538permissions, not a `NOT_FOUND` error.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001539
1540Note: This operation is designed to be used for building permission-aware
1541UIs and command-line tools, not for authorization checking. This operation
Bu Sun Kim65020912020-05-20 12:08:20 -07001542may &quot;fail open&quot; without warning.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001543
1544Args:
1545 resource: string, REQUIRED: The resource for which the policy detail is being requested.
1546See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001547 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001548 The object takes the form of:
1549
1550{ # Request message for `TestIamPermissions` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07001551 &quot;permissions&quot;: [ # The set of permissions to check for the `resource`. Permissions with
1552 # wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed. For more
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001553 # information see
1554 # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
Bu Sun Kim65020912020-05-20 12:08:20 -07001555 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001556 ],
1557 }
1558
1559 x__xgafv: string, V1 error format.
1560 Allowed values
1561 1 - v1 error format
1562 2 - v2 error format
1563
1564Returns:
1565 An object of the form:
1566
1567 { # Response message for `TestIamPermissions` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07001568 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001569 # allowed.
Bu Sun Kim65020912020-05-20 12:08:20 -07001570 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001571 ],
1572 }</pre>
1573</div>
1574
1575</body></html>