blob: eb59a8c8a58e049bd12115d9d9f31b21175a42ec [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 Kim65020912020-05-20 12:08:20 -0700118 <code><a href="#list">list(parent, pageToken=None, pageSize=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.
150 #
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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700154 &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the dataset, of the form
155 # `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700156 &quot;timeZone&quot;: &quot;A String&quot;, # The default timezone used by this dataset. Must be a either a valid IANA
157 # time zone name such as &quot;America/New_York&quot; or empty, which defaults to UTC.
Dan O'Mearadd494642020-05-01 07:42:23 -0700158 # This is used for parsing times in resources, such as HL7 messages, where no
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700159 # explicit timezone is specified.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700160}
161
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 Kim65020912020-05-20 12:08:20 -0700174 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
Dan O'Mearadd494642020-05-01 07:42:23 -0700175 # contains progress information and common metadata such as create time.
176 # Some services might not provide such metadata. Any method that returns a
177 # long-running operation should document the metadata type, if any.
Bu Sun Kim65020912020-05-20 12:08:20 -0700178 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700179 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700180 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
Dan O'Mearadd494642020-05-01 07:42:23 -0700181 # If `true`, the operation is completed, and either `error` or `response` is
182 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700183 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -0700184 # method returns no data on success, such as `Delete`, the response is
185 # `google.protobuf.Empty`. If the original method is standard
186 # `Get`/`Create`/`Update`, the response should be the resource. For other
187 # methods, the response should have the type `XxxResponse`, where `Xxx`
188 # is the original method name. For example, if the original method name
189 # is `TakeSnapshot()`, the inferred response type is
190 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700191 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700192 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700193 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
194 # originally returns it. If you use the default HTTP mapping, the
195 # `name` should be a resource name ending with `operations/{unique_id}`.
196 &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.
197 # different programming environments, including REST APIs and RPC APIs. It is
198 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
199 # three pieces of data: error code, error message, and error details.
200 #
201 # You can find out more about this error model and how to work with it in the
202 # [API Design Guide](https://cloud.google.com/apis/design/errors).
203 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
204 # message types for APIs to use.
205 {
206 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
207 },
208 ],
209 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
210 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
211 # user-facing error message should be localized and sent in the
212 # google.rpc.Status.details field, or localized by the client.
213 },
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 Kim65020912020-05-20 12:08:20 -0700247 &quot;text&quot;: { # Configures de-identification of text wherever it is found in the
248 # source_dataset.
249 &quot;transformations&quot;: [ # The transformations to apply to the detected data.
250 { # A transformation to apply to text that is identified as a specific
251 # info_type.
252 &quot;dateShiftConfig&quot;: { # Shift a date forward or backward in time by a random amount which is # Config for date shift.
253 # consistent for a given patient and crypto key combination.
254 &quot;cryptoKey&quot;: &quot;A String&quot;, # An AES 128/192/256 bit key. Causes the shift to be computed based on this
255 # key and the patient ID. A default key is generated for each
256 # Deidentify operation and is used wherever crypto_key is not specified.
257 },
258 &quot;characterMaskConfig&quot;: { # Mask a string by replacing its characters with a fixed character. # Config for character mask.
259 &quot;maskingCharacter&quot;: &quot;A String&quot;, # Character to mask the sensitive values. If not supplied, defaults to &quot;*&quot;.
260 },
261 &quot;redactConfig&quot;: { # Define how to redact sensitive values. Default behaviour is erase. # Config for text redaction.
262 # For example, &quot;My name is Jane.&quot; becomes &quot;My name is .&quot;
263 },
264 &quot;infoTypes&quot;: [ # InfoTypes to apply this transformation to. If this is not specified, this
265 # transformation becomes the default transformation, and is used for any
266 # info_type that is not specified in another transformation.
267 &quot;A String&quot;,
268 ],
269 &quot;replaceWithInfoTypeConfig&quot;: { # When using the # Config for replace with InfoType.
270 # INSPECT_AND_TRANSFORM
271 # action, each match is replaced with the name of the info_type. For example,
272 # &quot;My name is Jane&quot; becomes &quot;My name is [PERSON_NAME].&quot; The
273 # TRANSFORM
274 # action is equivalent to redacting.
275 },
276 &quot;cryptoHashConfig&quot;: { # Pseudonymization method that generates surrogates via cryptographic hashing. # Config for crypto hash.
277 # Uses SHA-256.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700278 # Outputs a base64-encoded representation of the hashed output.
279 # For example, `L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700280 &quot;cryptoKey&quot;: &quot;A String&quot;, # An AES 128/192/256 bit key. Causes the hash to be computed based on this
281 # key. A default key is generated for each Deidentify operation and is used
282 # wherever crypto_key is not specified.
283 },
284 },
285 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700286 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700287 &quot;dicom&quot;: { # Specifies the parameters needed for de-identification of DICOM stores. # Configures de-id of application/DICOM content.
288 &quot;filterProfile&quot;: &quot;A String&quot;, # Tag filtering profile that determines which tags to keep/remove.
289 &quot;skipIdRedaction&quot;: True or False, # If true, skip replacing StudyInstanceUID, SeriesInstanceUID,
290 # SOPInstanceUID, and MediaStorageSOPInstanceUID and leave them untouched.
291 # The Cloud Healthcare API regenerates these UIDs by default based on the
292 # DICOM Standard&#x27;s reasoning: &quot;Whilst these UIDs cannot be mapped directly
293 # to an individual out of context, given access to the original images, or
294 # to a database of the original images containing the UIDs, it would be
295 # possible to recover the individual&#x27;s identity.&quot;
296 # http://dicom.nema.org/medical/dicom/current/output/chtml/part15/sect_E.3.9.html
297 &quot;keepList&quot;: { # List of tags to be filtered. # List of tags to keep. Remove 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 &quot;removeList&quot;: { # List of tags to be filtered. # List of tags to remove. Keep all other tags.
307 &quot;tags&quot;: [ # Tags to be filtered. Tags must be DICOM Data Elements, File Meta
308 # Elements, or Directory Structuring Elements, as defined at:
309 # http://dicom.nema.org/medical/dicom/current/output/html/part06.html#table_6-1,.
310 # They may be provided by &quot;Keyword&quot; or &quot;Tag&quot;. For example, &quot;PatientID&quot;,
311 # &quot;00100010&quot;.
312 &quot;A String&quot;,
313 ],
314 },
315 },
316 &quot;fhir&quot;: { # Specifies how to handle de-identification of a FHIR store. # Configures de-id of application/FHIR content.
317 &quot;fieldMetadataList&quot;: [ # Specifies FHIR paths to match and how to transform them. Any field that
318 # is not matched by a FieldMetadata is passed through to the output
319 # dataset unmodified. All extensions are removed in the output.
320 # If a field can be matched by more than one FieldMetadata, the first
321 # FieldMetadata.Action is applied.
322 { # Specifies FHIR paths to match, and how to handle de-identification of
323 # matching fields.
324 &quot;paths&quot;: [ # List of paths to FHIR fields to redact. Each path is a
325 # period-separated list where each component is either a field name or
326 # FHIR type name. All types begin with an upper case letter. For example,
327 # the resource field &quot;Patient.Address.city&quot;, which uses a string type,
328 # can be matched by &quot;Patient.Address.String&quot;. Path also supports partial
329 # matching. For example, &quot;Patient.Address.city&quot; can be matched by
330 # &quot;Address.city&quot; (Patient omitted). Partial matching and type matching
331 # can be combined. For example, &quot;Patient.Address.city&quot; can be matched by
332 # &quot;Address.String&quot;. For &quot;choice&quot; types (those defined in the FHIR spec
333 # with the form: field[x]), use two separate components. For example,
334 # &quot;deceasedAge.unit&quot; is matched by &quot;Deceased.Age.unit&quot;. Supported types
335 # are: AdministrativeGenderCode, Code, Date, DateTime, Decimal,
336 # HumanName, Id, LanguageCode, Markdown, Oid, String, Uri, Uuid, Xhtml.
337 # The sub-type for HumanName, such as HumanName.given or
338 # HumanName.family, can be omitted.
339 &quot;A String&quot;,
340 ],
341 &quot;action&quot;: &quot;A String&quot;, # Deidentify action for one field.
342 },
343 ],
344 },
345 &quot;image&quot;: { # Specifies how to handle de-identification of image pixels. # Configures de-identification of image pixels wherever they are found in the
346 # source_dataset.
347 &quot;textRedactionMode&quot;: &quot;A String&quot;, # Determines how to redact text from image.
348 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700349 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700350 &quot;destinationDataset&quot;: &quot;A String&quot;, # The name of the dataset resource to create and write the redacted data to.
351 #
352 # * The destination dataset must not exist.
353 # * The destination dataset must be in the same project and location as the
354 # source dataset. De-identifying data across multiple projects or locations
355 # is not supported.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700356 }
357
358 x__xgafv: string, V1 error format.
359 Allowed values
360 1 - v1 error format
361 2 - v2 error format
362
363Returns:
364 An object of the form:
365
366 { # This resource represents a long-running operation that is the result of a
367 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700368 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
Dan O'Mearadd494642020-05-01 07:42:23 -0700369 # contains progress information and common metadata such as create time.
370 # Some services might not provide such metadata. Any method that returns a
371 # long-running operation should document the metadata type, if any.
Bu Sun Kim65020912020-05-20 12:08:20 -0700372 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700373 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700374 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
Dan O'Mearadd494642020-05-01 07:42:23 -0700375 # If `true`, the operation is completed, and either `error` or `response` is
376 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700377 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -0700378 # method returns no data on success, such as `Delete`, the response is
379 # `google.protobuf.Empty`. If the original method is standard
380 # `Get`/`Create`/`Update`, the response should be the resource. For other
381 # methods, the response should have the type `XxxResponse`, where `Xxx`
382 # is the original method name. For example, if the original method name
383 # is `TakeSnapshot()`, the inferred response type is
384 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700385 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700386 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700387 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
388 # originally returns it. If you use the default HTTP mapping, the
389 # `name` should be a resource name ending with `operations/{unique_id}`.
390 &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.
391 # different programming environments, including REST APIs and RPC APIs. It is
392 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
393 # three pieces of data: error code, error message, and error details.
394 #
395 # You can find out more about this error model and how to work with it in the
396 # [API Design Guide](https://cloud.google.com/apis/design/errors).
397 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
398 # message types for APIs to use.
399 {
400 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
401 },
402 ],
403 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
404 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
405 # user-facing error message should be localized and sent in the
406 # google.rpc.Status.details field, or localized by the client.
407 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700408 }</pre>
409</div>
410
411<div class="method">
412 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
413 <pre>Deletes the specified health dataset and all data contained in the dataset.
414Deleting a dataset does not affect the sources from which the dataset was
415imported (if any).
416
417Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700418 name: string, The name of the dataset to delete. For example,
419`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700420 x__xgafv: string, V1 error format.
421 Allowed values
422 1 - v1 error format
423 2 - v2 error format
424
425Returns:
426 An object of the form:
427
428 { # A generic empty message that you can re-use to avoid defining duplicated
429 # empty messages in your APIs. A typical example is to use it as the request
430 # or the response type of an API method. For instance:
431 #
432 # service Foo {
433 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
434 # }
435 #
436 # The JSON representation for `Empty` is empty JSON object `{}`.
437 }</pre>
438</div>
439
440<div class="method">
441 <code class="details" id="get">get(name, x__xgafv=None)</code>
442 <pre>Gets any metadata associated with a dataset.
443
444Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700445 name: string, The name of the dataset to read. For example,
446`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700447 x__xgafv: string, V1 error format.
448 Allowed values
449 1 - v1 error format
450 2 - v2 error format
451
452Returns:
453 An object of the form:
454
455 { # A message representing a health dataset.
456 #
457 # A health dataset represents a collection of healthcare data pertaining to one
458 # or more patients. This may include multiple modalities of healthcare data,
459 # such as electronic medical records or medical imaging data.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700460 &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the dataset, of the form
461 # `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700462 &quot;timeZone&quot;: &quot;A String&quot;, # The default timezone used by this dataset. Must be a either a valid IANA
463 # time zone name such as &quot;America/New_York&quot; or empty, which defaults to UTC.
Dan O'Mearadd494642020-05-01 07:42:23 -0700464 # This is used for parsing times in resources, such as HL7 messages, where no
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700465 # explicit timezone is specified.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700466 }</pre>
467</div>
468
469<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700470 <code class="details" id="getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700471 <pre>Gets the access control policy for a resource.
472Returns an empty policy if the resource exists and does not have a policy
473set.
474
475Args:
476 resource: string, REQUIRED: The resource for which the policy is being requested.
477See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700478 options_requestedPolicyVersion: integer, Optional. The policy format version to be returned.
479
480Valid values are 0, 1, and 3. Requests specifying an invalid value will be
481rejected.
482
483Requests for policies with any conditional bindings must specify version 3.
484Policies without any conditional bindings may specify any valid value or
485leave the field unset.
Bu Sun Kim65020912020-05-20 12:08:20 -0700486
487To learn which resources support conditions in their IAM policies, see the
488[IAM
489documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700490 x__xgafv: string, V1 error format.
491 Allowed values
492 1 - v1 error format
493 2 - v2 error format
494
495Returns:
496 An object of the form:
497
Dan O'Mearadd494642020-05-01 07:42:23 -0700498 { # An Identity and Access Management (IAM) policy, which specifies access
499 # controls for Google Cloud resources.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700500 #
501 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700502 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
503 # `members` to a single `role`. Members can be user accounts, service accounts,
504 # Google groups, and domains (such as G Suite). A `role` is a named list of
505 # permissions; each `role` can be an IAM predefined role or a user-created
506 # custom role.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700507 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700508 # For some types of Google Cloud resources, a `binding` can also specify a
509 # `condition`, which is a logical expression that allows access to a resource
510 # only if the expression evaluates to `true`. A condition can add constraints
511 # based on attributes of the request, the resource, or both. To learn which
512 # resources support conditions in their IAM policies, see the
513 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -0700514 #
515 # **JSON example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700516 #
517 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700518 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700519 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700520 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
521 # &quot;members&quot;: [
522 # &quot;user:mike@example.com&quot;,
523 # &quot;group:admins@example.com&quot;,
524 # &quot;domain:google.com&quot;,
525 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700526 # ]
527 # },
528 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700529 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
530 # &quot;members&quot;: [
531 # &quot;user:eve@example.com&quot;
532 # ],
533 # &quot;condition&quot;: {
534 # &quot;title&quot;: &quot;expirable access&quot;,
535 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
536 # &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 -0700537 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700538 # }
Dan O'Mearadd494642020-05-01 07:42:23 -0700539 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700540 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
541 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700542 # }
543 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700544 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700545 #
546 # bindings:
547 # - members:
548 # - user:mike@example.com
549 # - group:admins@example.com
550 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -0700551 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
552 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700553 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -0700554 # - user:eve@example.com
555 # role: roles/resourcemanager.organizationViewer
556 # condition:
557 # title: expirable access
558 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -0700559 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -0700560 # - etag: BwWWja0YfJA=
561 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700562 #
563 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -0700564 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -0700565 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
566 # prevent simultaneous updates of a policy from overwriting each other.
567 # It is strongly suggested that systems make use of the `etag` in the
568 # read-modify-write cycle to perform policy updates in order to avoid race
569 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
570 # systems are expected to put that etag in the request to `setIamPolicy` to
571 # ensure that their change will be applied to the same version of the policy.
572 #
573 # **Important:** If you use IAM Conditions, you must include the `etag` field
574 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
575 # you to overwrite a version `3` policy with a version `1` policy, and all of
576 # the conditions in the version `3` policy are lost.
577 &quot;version&quot;: 42, # Specifies the format of the policy.
578 #
579 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
580 # are rejected.
581 #
582 # Any operation that affects conditional role bindings must specify version
583 # `3`. This requirement applies to the following operations:
584 #
585 # * Getting a policy that includes a conditional role binding
586 # * Adding a conditional role binding to a policy
587 # * Changing a conditional role binding in a policy
588 # * Removing any role binding, with or without a condition, from a policy
589 # that includes conditions
590 #
591 # **Important:** If you use IAM Conditions, you must include the `etag` field
592 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
593 # you to overwrite a version `3` policy with a version `1` policy, and all of
594 # the conditions in the version `3` policy are lost.
595 #
596 # If a policy does not include any conditions, operations on that policy may
597 # specify any valid version or leave the field unset.
598 #
599 # To learn which resources support conditions in their IAM policies, see the
600 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
601 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
602 { # Specifies the audit configuration for a service.
603 # The configuration determines which permission types are logged, and what
604 # identities, if any, are exempted from logging.
605 # An AuditConfig must have one or more AuditLogConfigs.
606 #
607 # If there are AuditConfigs for both `allServices` and a specific service,
608 # the union of the two AuditConfigs is used for that service: the log_types
609 # specified in each AuditConfig are enabled, and the exempted_members in each
610 # AuditLogConfig are exempted.
611 #
612 # Example Policy with multiple AuditConfigs:
613 #
614 # {
615 # &quot;audit_configs&quot;: [
616 # {
617 # &quot;service&quot;: &quot;allServices&quot;
618 # &quot;audit_log_configs&quot;: [
619 # {
620 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
621 # &quot;exempted_members&quot;: [
622 # &quot;user:jose@example.com&quot;
623 # ]
624 # },
625 # {
626 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
627 # },
628 # {
629 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
630 # }
631 # ]
632 # },
633 # {
634 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
635 # &quot;audit_log_configs&quot;: [
636 # {
637 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
638 # },
639 # {
640 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
641 # &quot;exempted_members&quot;: [
642 # &quot;user:aliya@example.com&quot;
643 # ]
644 # }
645 # ]
646 # }
647 # ]
648 # }
649 #
650 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
651 # logging. It also exempts jose@example.com from DATA_READ logging, and
652 # aliya@example.com from DATA_WRITE logging.
653 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
654 { # Provides the configuration for logging a type of permissions.
655 # Example:
656 #
657 # {
658 # &quot;audit_log_configs&quot;: [
659 # {
660 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
661 # &quot;exempted_members&quot;: [
662 # &quot;user:jose@example.com&quot;
663 # ]
664 # },
665 # {
666 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
667 # }
668 # ]
669 # }
670 #
671 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
672 # jose@example.com from DATA_READ logging.
Bu Sun Kim65020912020-05-20 12:08:20 -0700673 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
674 # permission.
675 # Follows the same format of Binding.members.
676 &quot;A String&quot;,
677 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700678 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
Bu Sun Kim65020912020-05-20 12:08:20 -0700679 },
680 ],
681 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
682 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
683 # `allServices` is a special value that covers all services.
684 },
685 ],
686 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -0700687 # `condition` that determines how and when the `bindings` are applied. Each
688 # of the `bindings` must contain at least one member.
689 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700690 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
691 #
692 # If the condition evaluates to `true`, then this binding applies to the
693 # current request.
694 #
695 # If the condition evaluates to `false`, then this binding does not apply to
696 # the current request. However, a different role binding might grant the same
697 # role to one or more of the members in this binding.
698 #
699 # To learn which resources support conditions in their IAM policies, see the
700 # [IAM
701 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
702 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
703 # are documented at https://github.com/google/cel-spec.
704 #
705 # Example (Comparison):
706 #
707 # title: &quot;Summary size limit&quot;
708 # description: &quot;Determines if a summary is less than 100 chars&quot;
709 # expression: &quot;document.summary.size() &lt; 100&quot;
710 #
711 # Example (Equality):
712 #
713 # title: &quot;Requestor is owner&quot;
714 # description: &quot;Determines if requestor is the document owner&quot;
715 # expression: &quot;document.owner == request.auth.claims.email&quot;
716 #
717 # Example (Logic):
718 #
719 # title: &quot;Public documents&quot;
720 # description: &quot;Determine whether the document should be publicly visible&quot;
721 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
722 #
723 # Example (Data Manipulation):
724 #
725 # title: &quot;Notification string&quot;
726 # description: &quot;Create a notification string with a timestamp.&quot;
727 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
728 #
729 # The exact variables and functions that may be referenced within an expression
730 # are determined by the service that evaluates it. See the service
731 # documentation for additional information.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700732 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
733 # syntax.
Bu Sun Kim65020912020-05-20 12:08:20 -0700734 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
735 # its purpose. This can be used e.g. in UIs which allow to enter the
736 # expression.
737 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
738 # reporting, e.g. a file name and a position in the file.
739 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
740 # describes the expression, e.g. when hovered over it in a UI.
Bu Sun Kim65020912020-05-20 12:08:20 -0700741 },
742 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Dan O'Mearadd494642020-05-01 07:42:23 -0700743 # `members` can have the following values:
744 #
745 # * `allUsers`: A special identifier that represents anyone who is
746 # on the internet; with or without a Google account.
747 #
748 # * `allAuthenticatedUsers`: A special identifier that represents anyone
749 # who is authenticated with a Google account or a service account.
750 #
751 # * `user:{emailid}`: An email address that represents a specific Google
752 # account. For example, `alice@example.com` .
753 #
754 #
755 # * `serviceAccount:{emailid}`: An email address that represents a service
756 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
757 #
758 # * `group:{emailid}`: An email address that represents a Google group.
759 # For example, `admins@example.com`.
760 #
761 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
762 # identifier) representing a user that has been recently deleted. For
763 # example, `alice@example.com?uid=123456789012345678901`. If the user is
764 # recovered, this value reverts to `user:{emailid}` and the recovered user
765 # retains the role in the binding.
766 #
767 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
768 # unique identifier) representing a service account that has been recently
769 # deleted. For example,
770 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
771 # If the service account is undeleted, this value reverts to
772 # `serviceAccount:{emailid}` and the undeleted service account retains the
773 # role in the binding.
774 #
775 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
776 # identifier) representing a Google group that has been recently
777 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
778 # the group is recovered, this value reverts to `group:{emailid}` and the
779 # recovered group retains the role in the binding.
780 #
781 #
782 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
783 # users of that domain. For example, `google.com` or `example.com`.
784 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700785 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700786 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700787 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
788 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Dan O'Mearadd494642020-05-01 07:42:23 -0700789 },
790 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700791 }</pre>
792</div>
793
794<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700795 <code class="details" id="list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700796 <pre>Lists the health datasets in the current project.
797
798Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700799 parent: string, The name of the project whose datasets should be listed.
800For example, `projects/{project_id}/locations/{location_id}`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700801 pageToken: string, The next_page_token value returned from a previous List request, if any.
Bu Sun Kim65020912020-05-20 12:08:20 -0700802 pageSize: integer, The maximum number of items to return. Capped to 100 if not specified.
803May not be larger than 1000.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700804 x__xgafv: string, V1 error format.
805 Allowed values
806 1 - v1 error format
807 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700808
809Returns:
810 An object of the form:
811
812 { # Lists the available datasets.
Bu Sun Kim65020912020-05-20 12:08:20 -0700813 &quot;datasets&quot;: [ # The first page of datasets.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700814 { # A message representing a health dataset.
815 #
816 # A health dataset represents a collection of healthcare data pertaining to one
817 # or more patients. This may include multiple modalities of healthcare data,
818 # such as electronic medical records or medical imaging data.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700819 &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the dataset, of the form
820 # `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700821 &quot;timeZone&quot;: &quot;A String&quot;, # The default timezone used by this dataset. Must be a either a valid IANA
822 # time zone name such as &quot;America/New_York&quot; or empty, which defaults to UTC.
Dan O'Mearadd494642020-05-01 07:42:23 -0700823 # This is used for parsing times in resources, such as HL7 messages, where no
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700824 # explicit timezone is specified.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700825 },
826 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700827 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no
828 # more results in the list.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700829 }</pre>
830</div>
831
832<div class="method">
833 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
834 <pre>Retrieves the next page of results.
835
836Args:
837 previous_request: The request for the previous page. (required)
838 previous_response: The response from the request for the previous page. (required)
839
840Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700841 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700842 page. Returns None if there are no more items in the collection.
843 </pre>
844</div>
845
846<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700847 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700848 <pre>Updates dataset metadata.
849
850Args:
851 name: string, Output only. Resource name of the dataset, of the form
852`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700853 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700854 The object takes the form of:
855
856{ # A message representing a health dataset.
857 #
858 # A health dataset represents a collection of healthcare data pertaining to one
859 # or more patients. This may include multiple modalities of healthcare data,
860 # such as electronic medical records or medical imaging data.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700861 &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the dataset, of the form
862 # `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700863 &quot;timeZone&quot;: &quot;A String&quot;, # The default timezone used by this dataset. Must be a either a valid IANA
864 # time zone name such as &quot;America/New_York&quot; or empty, which defaults to UTC.
Dan O'Mearadd494642020-05-01 07:42:23 -0700865 # This is used for parsing times in resources, such as HL7 messages, where no
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700866 # explicit timezone is specified.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700867}
868
869 updateMask: string, The update mask applies to the resource. For the `FieldMask` definition,
870see
871https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
872 x__xgafv: string, V1 error format.
873 Allowed values
874 1 - v1 error format
875 2 - v2 error format
876
877Returns:
878 An object of the form:
879
880 { # A message representing a health dataset.
881 #
882 # A health dataset represents a collection of healthcare data pertaining to one
883 # or more patients. This may include multiple modalities of healthcare data,
884 # such as electronic medical records or medical imaging data.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700885 &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the dataset, of the form
886 # `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700887 &quot;timeZone&quot;: &quot;A String&quot;, # The default timezone used by this dataset. Must be a either a valid IANA
888 # time zone name such as &quot;America/New_York&quot; or empty, which defaults to UTC.
Dan O'Mearadd494642020-05-01 07:42:23 -0700889 # This is used for parsing times in resources, such as HL7 messages, where no
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700890 # explicit timezone is specified.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700891 }</pre>
892</div>
893
894<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700895 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700896 <pre>Sets the access control policy on the specified resource. Replaces any
897existing policy.
898
Bu Sun Kim65020912020-05-20 12:08:20 -0700899Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
Dan O'Mearadd494642020-05-01 07:42:23 -0700900
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700901Args:
902 resource: string, REQUIRED: The resource for which the policy is being specified.
903See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700904 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700905 The object takes the form of:
906
907{ # Request message for `SetIamPolicy` method.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700908 &quot;updateMask&quot;: &quot;A String&quot;, # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
909 # the fields in the mask will be modified. If no mask is provided, the
910 # following default mask is used:
911 #
912 # `paths: &quot;bindings, etag&quot;`
Bu Sun Kim65020912020-05-20 12:08:20 -0700913 &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 -0700914 # the policy is limited to a few 10s of KB. An empty policy is a
915 # valid policy but certain Cloud Platform services (such as Projects)
916 # might reject them.
Dan O'Mearadd494642020-05-01 07:42:23 -0700917 # controls for Google Cloud resources.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700918 #
919 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700920 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
921 # `members` to a single `role`. Members can be user accounts, service accounts,
922 # Google groups, and domains (such as G Suite). A `role` is a named list of
923 # permissions; each `role` can be an IAM predefined role or a user-created
924 # custom role.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700925 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700926 # For some types of Google Cloud resources, a `binding` can also specify a
927 # `condition`, which is a logical expression that allows access to a resource
928 # only if the expression evaluates to `true`. A condition can add constraints
929 # based on attributes of the request, the resource, or both. To learn which
930 # resources support conditions in their IAM policies, see the
931 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -0700932 #
933 # **JSON example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700934 #
935 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700936 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700937 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700938 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
939 # &quot;members&quot;: [
940 # &quot;user:mike@example.com&quot;,
941 # &quot;group:admins@example.com&quot;,
942 # &quot;domain:google.com&quot;,
943 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700944 # ]
945 # },
946 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700947 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
948 # &quot;members&quot;: [
949 # &quot;user:eve@example.com&quot;
950 # ],
951 # &quot;condition&quot;: {
952 # &quot;title&quot;: &quot;expirable access&quot;,
953 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
954 # &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 -0700955 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700956 # }
Dan O'Mearadd494642020-05-01 07:42:23 -0700957 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700958 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
959 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700960 # }
961 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700962 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700963 #
964 # bindings:
965 # - members:
966 # - user:mike@example.com
967 # - group:admins@example.com
968 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -0700969 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
970 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700971 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -0700972 # - user:eve@example.com
973 # role: roles/resourcemanager.organizationViewer
974 # condition:
975 # title: expirable access
976 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -0700977 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -0700978 # - etag: BwWWja0YfJA=
979 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700980 #
981 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -0700982 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -0700983 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
984 # prevent simultaneous updates of a policy from overwriting each other.
985 # It is strongly suggested that systems make use of the `etag` in the
986 # read-modify-write cycle to perform policy updates in order to avoid race
987 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
988 # systems are expected to put that etag in the request to `setIamPolicy` to
989 # ensure that their change will be applied to the same version of the policy.
990 #
991 # **Important:** If you use IAM Conditions, you must include the `etag` field
992 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
993 # you to overwrite a version `3` policy with a version `1` policy, and all of
994 # the conditions in the version `3` policy are lost.
995 &quot;version&quot;: 42, # Specifies the format of the policy.
996 #
997 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
998 # are rejected.
999 #
1000 # Any operation that affects conditional role bindings must specify version
1001 # `3`. This requirement applies to the following operations:
1002 #
1003 # * Getting a policy that includes a conditional role binding
1004 # * Adding a conditional role binding to a policy
1005 # * Changing a conditional role binding in a policy
1006 # * Removing any role binding, with or without a condition, from a policy
1007 # that includes conditions
1008 #
1009 # **Important:** If you use IAM Conditions, you must include the `etag` field
1010 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1011 # you to overwrite a version `3` policy with a version `1` policy, and all of
1012 # the conditions in the version `3` policy are lost.
1013 #
1014 # If a policy does not include any conditions, operations on that policy may
1015 # specify any valid version or leave the field unset.
1016 #
1017 # To learn which resources support conditions in their IAM policies, see the
1018 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1019 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1020 { # Specifies the audit configuration for a service.
1021 # The configuration determines which permission types are logged, and what
1022 # identities, if any, are exempted from logging.
1023 # An AuditConfig must have one or more AuditLogConfigs.
1024 #
1025 # If there are AuditConfigs for both `allServices` and a specific service,
1026 # the union of the two AuditConfigs is used for that service: the log_types
1027 # specified in each AuditConfig are enabled, and the exempted_members in each
1028 # AuditLogConfig are exempted.
1029 #
1030 # Example Policy with multiple AuditConfigs:
1031 #
1032 # {
1033 # &quot;audit_configs&quot;: [
1034 # {
1035 # &quot;service&quot;: &quot;allServices&quot;
1036 # &quot;audit_log_configs&quot;: [
1037 # {
1038 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1039 # &quot;exempted_members&quot;: [
1040 # &quot;user:jose@example.com&quot;
1041 # ]
1042 # },
1043 # {
1044 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1045 # },
1046 # {
1047 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
1048 # }
1049 # ]
1050 # },
1051 # {
1052 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
1053 # &quot;audit_log_configs&quot;: [
1054 # {
1055 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1056 # },
1057 # {
1058 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1059 # &quot;exempted_members&quot;: [
1060 # &quot;user:aliya@example.com&quot;
1061 # ]
1062 # }
1063 # ]
1064 # }
1065 # ]
1066 # }
1067 #
1068 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
1069 # logging. It also exempts jose@example.com from DATA_READ logging, and
1070 # aliya@example.com from DATA_WRITE logging.
1071 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1072 { # Provides the configuration for logging a type of permissions.
1073 # Example:
1074 #
1075 # {
1076 # &quot;audit_log_configs&quot;: [
1077 # {
1078 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1079 # &quot;exempted_members&quot;: [
1080 # &quot;user:jose@example.com&quot;
1081 # ]
1082 # },
1083 # {
1084 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1085 # }
1086 # ]
1087 # }
1088 #
1089 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
1090 # jose@example.com from DATA_READ logging.
Bu Sun Kim65020912020-05-20 12:08:20 -07001091 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
1092 # permission.
1093 # Follows the same format of Binding.members.
1094 &quot;A String&quot;,
1095 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001096 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
Bu Sun Kim65020912020-05-20 12:08:20 -07001097 },
1098 ],
1099 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
1100 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
1101 # `allServices` is a special value that covers all services.
1102 },
1103 ],
1104 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -07001105 # `condition` that determines how and when the `bindings` are applied. Each
1106 # of the `bindings` must contain at least one member.
1107 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001108 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
1109 #
1110 # If the condition evaluates to `true`, then this binding applies to the
1111 # current request.
1112 #
1113 # If the condition evaluates to `false`, then this binding does not apply to
1114 # the current request. However, a different role binding might grant the same
1115 # role to one or more of the members in this binding.
1116 #
1117 # To learn which resources support conditions in their IAM policies, see the
1118 # [IAM
1119 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1120 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1121 # are documented at https://github.com/google/cel-spec.
1122 #
1123 # Example (Comparison):
1124 #
1125 # title: &quot;Summary size limit&quot;
1126 # description: &quot;Determines if a summary is less than 100 chars&quot;
1127 # expression: &quot;document.summary.size() &lt; 100&quot;
1128 #
1129 # Example (Equality):
1130 #
1131 # title: &quot;Requestor is owner&quot;
1132 # description: &quot;Determines if requestor is the document owner&quot;
1133 # expression: &quot;document.owner == request.auth.claims.email&quot;
1134 #
1135 # Example (Logic):
1136 #
1137 # title: &quot;Public documents&quot;
1138 # description: &quot;Determine whether the document should be publicly visible&quot;
1139 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1140 #
1141 # Example (Data Manipulation):
1142 #
1143 # title: &quot;Notification string&quot;
1144 # description: &quot;Create a notification string with a timestamp.&quot;
1145 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1146 #
1147 # The exact variables and functions that may be referenced within an expression
1148 # are determined by the service that evaluates it. See the service
1149 # documentation for additional information.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001150 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1151 # syntax.
Bu Sun Kim65020912020-05-20 12:08:20 -07001152 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
1153 # its purpose. This can be used e.g. in UIs which allow to enter the
1154 # expression.
1155 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1156 # reporting, e.g. a file name and a position in the file.
1157 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1158 # describes the expression, e.g. when hovered over it in a UI.
Bu Sun Kim65020912020-05-20 12:08:20 -07001159 },
1160 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Dan O'Mearadd494642020-05-01 07:42:23 -07001161 # `members` can have the following values:
1162 #
1163 # * `allUsers`: A special identifier that represents anyone who is
1164 # on the internet; with or without a Google account.
1165 #
1166 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1167 # who is authenticated with a Google account or a service account.
1168 #
1169 # * `user:{emailid}`: An email address that represents a specific Google
1170 # account. For example, `alice@example.com` .
1171 #
1172 #
1173 # * `serviceAccount:{emailid}`: An email address that represents a service
1174 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1175 #
1176 # * `group:{emailid}`: An email address that represents a Google group.
1177 # For example, `admins@example.com`.
1178 #
1179 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1180 # identifier) representing a user that has been recently deleted. For
1181 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1182 # recovered, this value reverts to `user:{emailid}` and the recovered user
1183 # retains the role in the binding.
1184 #
1185 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1186 # unique identifier) representing a service account that has been recently
1187 # deleted. For example,
1188 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1189 # If the service account is undeleted, this value reverts to
1190 # `serviceAccount:{emailid}` and the undeleted service account retains the
1191 # role in the binding.
1192 #
1193 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1194 # identifier) representing a Google group that has been recently
1195 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1196 # the group is recovered, this value reverts to `group:{emailid}` and the
1197 # recovered group retains the role in the binding.
1198 #
1199 #
1200 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1201 # users of that domain. For example, `google.com` or `example.com`.
1202 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001203 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001204 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001205 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
1206 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Dan O'Mearadd494642020-05-01 07:42:23 -07001207 },
1208 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001209 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001210 }
1211
1212 x__xgafv: string, V1 error format.
1213 Allowed values
1214 1 - v1 error format
1215 2 - v2 error format
1216
1217Returns:
1218 An object of the form:
1219
Dan O'Mearadd494642020-05-01 07:42:23 -07001220 { # An Identity and Access Management (IAM) policy, which specifies access
1221 # controls for Google Cloud resources.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001222 #
1223 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001224 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
1225 # `members` to a single `role`. Members can be user accounts, service accounts,
1226 # Google groups, and domains (such as G Suite). A `role` is a named list of
1227 # permissions; each `role` can be an IAM predefined role or a user-created
1228 # custom role.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001229 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001230 # For some types of Google Cloud resources, a `binding` can also specify a
1231 # `condition`, which is a logical expression that allows access to a resource
1232 # only if the expression evaluates to `true`. A condition can add constraints
1233 # based on attributes of the request, the resource, or both. To learn which
1234 # resources support conditions in their IAM policies, see the
1235 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -07001236 #
1237 # **JSON example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001238 #
1239 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001240 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001241 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001242 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
1243 # &quot;members&quot;: [
1244 # &quot;user:mike@example.com&quot;,
1245 # &quot;group:admins@example.com&quot;,
1246 # &quot;domain:google.com&quot;,
1247 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001248 # ]
1249 # },
1250 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001251 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
1252 # &quot;members&quot;: [
1253 # &quot;user:eve@example.com&quot;
1254 # ],
1255 # &quot;condition&quot;: {
1256 # &quot;title&quot;: &quot;expirable access&quot;,
1257 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
1258 # &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 -07001259 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001260 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07001261 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001262 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
1263 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001264 # }
1265 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001266 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001267 #
1268 # bindings:
1269 # - members:
1270 # - user:mike@example.com
1271 # - group:admins@example.com
1272 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -07001273 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
1274 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001275 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -07001276 # - user:eve@example.com
1277 # role: roles/resourcemanager.organizationViewer
1278 # condition:
1279 # title: expirable access
1280 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -07001281 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -07001282 # - etag: BwWWja0YfJA=
1283 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001284 #
1285 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -07001286 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -07001287 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
1288 # prevent simultaneous updates of a policy from overwriting each other.
1289 # It is strongly suggested that systems make use of the `etag` in the
1290 # read-modify-write cycle to perform policy updates in order to avoid race
1291 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1292 # systems are expected to put that etag in the request to `setIamPolicy` to
1293 # ensure that their change will be applied to the same version of the policy.
1294 #
1295 # **Important:** If you use IAM Conditions, you must include the `etag` field
1296 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1297 # you to overwrite a version `3` policy with a version `1` policy, and all of
1298 # the conditions in the version `3` policy are lost.
1299 &quot;version&quot;: 42, # Specifies the format of the policy.
1300 #
1301 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
1302 # are rejected.
1303 #
1304 # Any operation that affects conditional role bindings must specify version
1305 # `3`. This requirement applies to the following operations:
1306 #
1307 # * Getting a policy that includes a conditional role binding
1308 # * Adding a conditional role binding to a policy
1309 # * Changing a conditional role binding in a policy
1310 # * Removing any role binding, with or without a condition, from a policy
1311 # that includes conditions
1312 #
1313 # **Important:** If you use IAM Conditions, you must include the `etag` field
1314 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1315 # you to overwrite a version `3` policy with a version `1` policy, and all of
1316 # the conditions in the version `3` policy are lost.
1317 #
1318 # If a policy does not include any conditions, operations on that policy may
1319 # specify any valid version or leave the field unset.
1320 #
1321 # To learn which resources support conditions in their IAM policies, see the
1322 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1323 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1324 { # Specifies the audit configuration for a service.
1325 # The configuration determines which permission types are logged, and what
1326 # identities, if any, are exempted from logging.
1327 # An AuditConfig must have one or more AuditLogConfigs.
1328 #
1329 # If there are AuditConfigs for both `allServices` and a specific service,
1330 # the union of the two AuditConfigs is used for that service: the log_types
1331 # specified in each AuditConfig are enabled, and the exempted_members in each
1332 # AuditLogConfig are exempted.
1333 #
1334 # Example Policy with multiple AuditConfigs:
1335 #
1336 # {
1337 # &quot;audit_configs&quot;: [
1338 # {
1339 # &quot;service&quot;: &quot;allServices&quot;
1340 # &quot;audit_log_configs&quot;: [
1341 # {
1342 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1343 # &quot;exempted_members&quot;: [
1344 # &quot;user:jose@example.com&quot;
1345 # ]
1346 # },
1347 # {
1348 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1349 # },
1350 # {
1351 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
1352 # }
1353 # ]
1354 # },
1355 # {
1356 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
1357 # &quot;audit_log_configs&quot;: [
1358 # {
1359 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1360 # },
1361 # {
1362 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1363 # &quot;exempted_members&quot;: [
1364 # &quot;user:aliya@example.com&quot;
1365 # ]
1366 # }
1367 # ]
1368 # }
1369 # ]
1370 # }
1371 #
1372 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
1373 # logging. It also exempts jose@example.com from DATA_READ logging, and
1374 # aliya@example.com from DATA_WRITE logging.
1375 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1376 { # Provides the configuration for logging a type of permissions.
1377 # Example:
1378 #
1379 # {
1380 # &quot;audit_log_configs&quot;: [
1381 # {
1382 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1383 # &quot;exempted_members&quot;: [
1384 # &quot;user:jose@example.com&quot;
1385 # ]
1386 # },
1387 # {
1388 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1389 # }
1390 # ]
1391 # }
1392 #
1393 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
1394 # jose@example.com from DATA_READ logging.
Bu Sun Kim65020912020-05-20 12:08:20 -07001395 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
1396 # permission.
1397 # Follows the same format of Binding.members.
1398 &quot;A String&quot;,
1399 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001400 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
Bu Sun Kim65020912020-05-20 12:08:20 -07001401 },
1402 ],
1403 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
1404 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
1405 # `allServices` is a special value that covers all services.
1406 },
1407 ],
1408 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -07001409 # `condition` that determines how and when the `bindings` are applied. Each
1410 # of the `bindings` must contain at least one member.
1411 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001412 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
1413 #
1414 # If the condition evaluates to `true`, then this binding applies to the
1415 # current request.
1416 #
1417 # If the condition evaluates to `false`, then this binding does not apply to
1418 # the current request. However, a different role binding might grant the same
1419 # role to one or more of the members in this binding.
1420 #
1421 # To learn which resources support conditions in their IAM policies, see the
1422 # [IAM
1423 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1424 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1425 # are documented at https://github.com/google/cel-spec.
1426 #
1427 # Example (Comparison):
1428 #
1429 # title: &quot;Summary size limit&quot;
1430 # description: &quot;Determines if a summary is less than 100 chars&quot;
1431 # expression: &quot;document.summary.size() &lt; 100&quot;
1432 #
1433 # Example (Equality):
1434 #
1435 # title: &quot;Requestor is owner&quot;
1436 # description: &quot;Determines if requestor is the document owner&quot;
1437 # expression: &quot;document.owner == request.auth.claims.email&quot;
1438 #
1439 # Example (Logic):
1440 #
1441 # title: &quot;Public documents&quot;
1442 # description: &quot;Determine whether the document should be publicly visible&quot;
1443 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1444 #
1445 # Example (Data Manipulation):
1446 #
1447 # title: &quot;Notification string&quot;
1448 # description: &quot;Create a notification string with a timestamp.&quot;
1449 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1450 #
1451 # The exact variables and functions that may be referenced within an expression
1452 # are determined by the service that evaluates it. See the service
1453 # documentation for additional information.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001454 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1455 # syntax.
Bu Sun Kim65020912020-05-20 12:08:20 -07001456 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
1457 # its purpose. This can be used e.g. in UIs which allow to enter the
1458 # expression.
1459 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1460 # reporting, e.g. a file name and a position in the file.
1461 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1462 # describes the expression, e.g. when hovered over it in a UI.
Bu Sun Kim65020912020-05-20 12:08:20 -07001463 },
1464 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Dan O'Mearadd494642020-05-01 07:42:23 -07001465 # `members` can have the following values:
1466 #
1467 # * `allUsers`: A special identifier that represents anyone who is
1468 # on the internet; with or without a Google account.
1469 #
1470 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1471 # who is authenticated with a Google account or a service account.
1472 #
1473 # * `user:{emailid}`: An email address that represents a specific Google
1474 # account. For example, `alice@example.com` .
1475 #
1476 #
1477 # * `serviceAccount:{emailid}`: An email address that represents a service
1478 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1479 #
1480 # * `group:{emailid}`: An email address that represents a Google group.
1481 # For example, `admins@example.com`.
1482 #
1483 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1484 # identifier) representing a user that has been recently deleted. For
1485 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1486 # recovered, this value reverts to `user:{emailid}` and the recovered user
1487 # retains the role in the binding.
1488 #
1489 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1490 # unique identifier) representing a service account that has been recently
1491 # deleted. For example,
1492 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1493 # If the service account is undeleted, this value reverts to
1494 # `serviceAccount:{emailid}` and the undeleted service account retains the
1495 # role in the binding.
1496 #
1497 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1498 # identifier) representing a Google group that has been recently
1499 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1500 # the group is recovered, this value reverts to `group:{emailid}` and the
1501 # recovered group retains the role in the binding.
1502 #
1503 #
1504 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1505 # users of that domain. For example, `google.com` or `example.com`.
1506 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001507 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001508 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001509 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
1510 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Dan O'Mearadd494642020-05-01 07:42:23 -07001511 },
1512 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001513 }</pre>
1514</div>
1515
1516<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001517 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001518 <pre>Returns permissions that a caller has on the specified resource.
1519If the resource does not exist, this will return an empty set of
Bu Sun Kim65020912020-05-20 12:08:20 -07001520permissions, not a `NOT_FOUND` error.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001521
1522Note: This operation is designed to be used for building permission-aware
1523UIs and command-line tools, not for authorization checking. This operation
Bu Sun Kim65020912020-05-20 12:08:20 -07001524may &quot;fail open&quot; without warning.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001525
1526Args:
1527 resource: string, REQUIRED: The resource for which the policy detail is being requested.
1528See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001529 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001530 The object takes the form of:
1531
1532{ # Request message for `TestIamPermissions` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07001533 &quot;permissions&quot;: [ # The set of permissions to check for the `resource`. Permissions with
1534 # wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed. For more
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001535 # information see
1536 # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
Bu Sun Kim65020912020-05-20 12:08:20 -07001537 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001538 ],
1539 }
1540
1541 x__xgafv: string, V1 error format.
1542 Allowed values
1543 1 - v1 error format
1544 2 - v2 error format
1545
1546Returns:
1547 An object of the form:
1548
1549 { # Response message for `TestIamPermissions` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07001550 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001551 # allowed.
Bu Sun Kim65020912020-05-20 12:08:20 -07001552 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001553 ],
1554 }</pre>
1555</div>
1556
1557</body></html>