1<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_v1alpha2.html">Cloud Healthcare API</a> . <a href="healthcare_v1alpha2.projects.html">projects</a> . <a href="healthcare_v1alpha2.projects.locations.html">locations</a> . <a href="healthcare_v1alpha2.projects.locations.datasets.html">datasets</a> . <a href="healthcare_v1alpha2.projects.locations.datasets.annotationStores.html">annotationStores</a> . <a href="healthcare_v1alpha2.projects.locations.datasets.annotationStores.annotations.html">annotations</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#create">create(parent, body, x__xgafv=None)</a></code></p> 79<p class="firstline">Creates a new Annotation record. It is</p> 80<p class="toc_element"> 81 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p> 82<p class="firstline">Deletes an Annotation or returns</p> 83<p class="toc_element"> 84 <code><a href="#get">get(name, x__xgafv=None)</a></code></p> 85<p class="firstline">Gets an Annotation.</p> 86<p class="toc_element"> 87 <code><a href="#list">list(parent, pageToken=None, x__xgafv=None, pageSize=None, filter=None)</a></code></p> 88<p class="firstline">Lists the Annotations in the given</p> 89<p class="toc_element"> 90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 91<p class="firstline">Retrieves the next page of results.</p> 92<p class="toc_element"> 93 <code><a href="#patch">patch(name, body, updateMask=None, x__xgafv=None)</a></code></p> 94<p class="firstline">Updates the Annotation.</p> 95<h3>Method Details</h3> 96<div class="method"> 97 <code class="details" id="create">create(parent, body, x__xgafv=None)</code> 98 <pre>Creates a new Annotation record. It is 99valid to create Annotation objects for the same source more than once since 100a unique ID is assigned to each record by this service. 101 102Args: 103 parent: string, The name of the Annotation store this annotation belongs to. For example, 104`projects/my-project/locations/us-central1/datasets/mydataset/annotationStores/myannotationstore`. (required) 105 body: object, The request body. (required) 106 The object takes the form of: 107 108{ # An annotation record. 109 "annotationSource": { # AnnotationSource holds the source information of the annotation. # Details of the source. 110 "cloudHealthcareSource": { # Cloud Healthcare API resource. # Cloud Healthcare API resource. 111 "name": "A String", # Full path of a Cloud Healthcare API resource. 112 }, 113 }, 114 "resourceAnnotation": { # Resource level annotation. # Annotations for resource, e.g., classification tags. 115 "label": "A String", 116 }, 117 "textAnnotation": { # A TextAnnotation specifies a text range that includes sensitive information. # Annotations for sentitive texts, e.g., range of such texts. 118 "details": { # Maps from a resource slice (e.g. FHIR resource field path) to a set of 119 # sensitive text findings. For example, 120 # Appointment.Narrative text1 --> {findings_1, findings_2, findings_3} 121 "a_key": { # Contains multiple sensitive information findings for each resource slice. 122 "findings": [ 123 { 124 "start": "A String", # Zero-based starting index of the found text, inclusively. 125 "end": "A String", # Zero-based ending index of the found text, exclusively. 126 "infoType": "A String", # The type of information stored in this text range (e.g. HumanName, 127 # BirthDate, Address, etc.) 128 }, 129 ], 130 }, 131 }, 132 }, 133 "name": "A String", # Output only. Resource name of the Annotation, of the form 134 # `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationStores/{annotation_store_id}/annotations/{annotation_id}`. 135 "imageAnnotation": { # Image annotation. # Annnotations for images, e.g., bounding polygons. 136 "boundingPolys": [ # The list of polygons outlining the sensitive regions in the image. 137 { # A bounding polygon for the detected image annotation. 138 "vertices": [ 139 { # A 2D coordinate in an image. The origin is the top-left. 140 "y": 3.14, # Y coordinate. 141 "x": 3.14, # X coordinate. 142 }, 143 ], 144 "label": "A String", 145 }, 146 ], 147 }, 148 } 149 150 x__xgafv: string, V1 error format. 151 Allowed values 152 1 - v1 error format 153 2 - v2 error format 154 155Returns: 156 An object of the form: 157 158 { # An annotation record. 159 "annotationSource": { # AnnotationSource holds the source information of the annotation. # Details of the source. 160 "cloudHealthcareSource": { # Cloud Healthcare API resource. # Cloud Healthcare API resource. 161 "name": "A String", # Full path of a Cloud Healthcare API resource. 162 }, 163 }, 164 "resourceAnnotation": { # Resource level annotation. # Annotations for resource, e.g., classification tags. 165 "label": "A String", 166 }, 167 "textAnnotation": { # A TextAnnotation specifies a text range that includes sensitive information. # Annotations for sentitive texts, e.g., range of such texts. 168 "details": { # Maps from a resource slice (e.g. FHIR resource field path) to a set of 169 # sensitive text findings. For example, 170 # Appointment.Narrative text1 --> {findings_1, findings_2, findings_3} 171 "a_key": { # Contains multiple sensitive information findings for each resource slice. 172 "findings": [ 173 { 174 "start": "A String", # Zero-based starting index of the found text, inclusively. 175 "end": "A String", # Zero-based ending index of the found text, exclusively. 176 "infoType": "A String", # The type of information stored in this text range (e.g. HumanName, 177 # BirthDate, Address, etc.) 178 }, 179 ], 180 }, 181 }, 182 }, 183 "name": "A String", # Output only. Resource name of the Annotation, of the form 184 # `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationStores/{annotation_store_id}/annotations/{annotation_id}`. 185 "imageAnnotation": { # Image annotation. # Annnotations for images, e.g., bounding polygons. 186 "boundingPolys": [ # The list of polygons outlining the sensitive regions in the image. 187 { # A bounding polygon for the detected image annotation. 188 "vertices": [ 189 { # A 2D coordinate in an image. The origin is the top-left. 190 "y": 3.14, # Y coordinate. 191 "x": 3.14, # X coordinate. 192 }, 193 ], 194 "label": "A String", 195 }, 196 ], 197 }, 198 }</pre> 199</div> 200 201<div class="method"> 202 <code class="details" id="delete">delete(name, x__xgafv=None)</code> 203 <pre>Deletes an Annotation or returns 204NOT_FOUND if it does not exist. 205 206Args: 207 name: string, The resource name of the Annotation to delete. (required) 208 x__xgafv: string, V1 error format. 209 Allowed values 210 1 - v1 error format 211 2 - v2 error format 212 213Returns: 214 An object of the form: 215 216 { # A generic empty message that you can re-use to avoid defining duplicated 217 # empty messages in your APIs. A typical example is to use it as the request 218 # or the response type of an API method. For instance: 219 # 220 # service Foo { 221 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); 222 # } 223 # 224 # The JSON representation for `Empty` is empty JSON object `{}`. 225 }</pre> 226</div> 227 228<div class="method"> 229 <code class="details" id="get">get(name, x__xgafv=None)</code> 230 <pre>Gets an Annotation. 231 232Args: 233 name: string, The resource name of the Annotation to retrieve. (required) 234 x__xgafv: string, V1 error format. 235 Allowed values 236 1 - v1 error format 237 2 - v2 error format 238 239Returns: 240 An object of the form: 241 242 { # An annotation record. 243 "annotationSource": { # AnnotationSource holds the source information of the annotation. # Details of the source. 244 "cloudHealthcareSource": { # Cloud Healthcare API resource. # Cloud Healthcare API resource. 245 "name": "A String", # Full path of a Cloud Healthcare API resource. 246 }, 247 }, 248 "resourceAnnotation": { # Resource level annotation. # Annotations for resource, e.g., classification tags. 249 "label": "A String", 250 }, 251 "textAnnotation": { # A TextAnnotation specifies a text range that includes sensitive information. # Annotations for sentitive texts, e.g., range of such texts. 252 "details": { # Maps from a resource slice (e.g. FHIR resource field path) to a set of 253 # sensitive text findings. For example, 254 # Appointment.Narrative text1 --> {findings_1, findings_2, findings_3} 255 "a_key": { # Contains multiple sensitive information findings for each resource slice. 256 "findings": [ 257 { 258 "start": "A String", # Zero-based starting index of the found text, inclusively. 259 "end": "A String", # Zero-based ending index of the found text, exclusively. 260 "infoType": "A String", # The type of information stored in this text range (e.g. HumanName, 261 # BirthDate, Address, etc.) 262 }, 263 ], 264 }, 265 }, 266 }, 267 "name": "A String", # Output only. Resource name of the Annotation, of the form 268 # `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationStores/{annotation_store_id}/annotations/{annotation_id}`. 269 "imageAnnotation": { # Image annotation. # Annnotations for images, e.g., bounding polygons. 270 "boundingPolys": [ # The list of polygons outlining the sensitive regions in the image. 271 { # A bounding polygon for the detected image annotation. 272 "vertices": [ 273 { # A 2D coordinate in an image. The origin is the top-left. 274 "y": 3.14, # Y coordinate. 275 "x": 3.14, # X coordinate. 276 }, 277 ], 278 "label": "A String", 279 }, 280 ], 281 }, 282 }</pre> 283</div> 284 285<div class="method"> 286 <code class="details" id="list">list(parent, pageToken=None, x__xgafv=None, pageSize=None, filter=None)</code> 287 <pre>Lists the Annotations in the given 288Annotation store for a source 289resource. 290 291Args: 292 parent: string, Name of the Annotation store to retrieve Annotations from. (required) 293 pageToken: string, The next_page_token value returned from the previous List request, if any. 294 x__xgafv: string, V1 error format. 295 Allowed values 296 1 - v1 error format 297 2 - v2 error format 298 pageSize: integer, Limit on the number of Annotations to return in a single response. 299If zero the default page size of 100 is used. 300 filter: string, Restricts Annotations returned to those matching a filter. Syntax: 301https://cloud.google.com/appengine/docs/standard/python/search/query_strings 302Fields/functions available for filtering are: 303- source_version 304 305Returns: 306 An object of the form: 307 308 { # Lists the Annotations in the specified 309 # Annotation store. 310 "nextPageToken": "A String", # Token to retrieve the next page of results or empty if there are no more 311 # results in the list. 312 "annotations": [ # The returned Annotations names. Won't be more values than the value of 313 # page_size in the request. 314 "A String", 315 ], 316 }</pre> 317</div> 318 319<div class="method"> 320 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 321 <pre>Retrieves the next page of results. 322 323Args: 324 previous_request: The request for the previous page. (required) 325 previous_response: The response from the request for the previous page. (required) 326 327Returns: 328 A request object that you can call 'execute()' on to request the next 329 page. Returns None if there are no more items in the collection. 330 </pre> 331</div> 332 333<div class="method"> 334 <code class="details" id="patch">patch(name, body, updateMask=None, x__xgafv=None)</code> 335 <pre>Updates the Annotation. 336 337Args: 338 name: string, Output only. Resource name of the Annotation, of the form 339`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationStores/{annotation_store_id}/annotations/{annotation_id}`. (required) 340 body: object, The request body. (required) 341 The object takes the form of: 342 343{ # An annotation record. 344 "annotationSource": { # AnnotationSource holds the source information of the annotation. # Details of the source. 345 "cloudHealthcareSource": { # Cloud Healthcare API resource. # Cloud Healthcare API resource. 346 "name": "A String", # Full path of a Cloud Healthcare API resource. 347 }, 348 }, 349 "resourceAnnotation": { # Resource level annotation. # Annotations for resource, e.g., classification tags. 350 "label": "A String", 351 }, 352 "textAnnotation": { # A TextAnnotation specifies a text range that includes sensitive information. # Annotations for sentitive texts, e.g., range of such texts. 353 "details": { # Maps from a resource slice (e.g. FHIR resource field path) to a set of 354 # sensitive text findings. For example, 355 # Appointment.Narrative text1 --> {findings_1, findings_2, findings_3} 356 "a_key": { # Contains multiple sensitive information findings for each resource slice. 357 "findings": [ 358 { 359 "start": "A String", # Zero-based starting index of the found text, inclusively. 360 "end": "A String", # Zero-based ending index of the found text, exclusively. 361 "infoType": "A String", # The type of information stored in this text range (e.g. HumanName, 362 # BirthDate, Address, etc.) 363 }, 364 ], 365 }, 366 }, 367 }, 368 "name": "A String", # Output only. Resource name of the Annotation, of the form 369 # `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationStores/{annotation_store_id}/annotations/{annotation_id}`. 370 "imageAnnotation": { # Image annotation. # Annnotations for images, e.g., bounding polygons. 371 "boundingPolys": [ # The list of polygons outlining the sensitive regions in the image. 372 { # A bounding polygon for the detected image annotation. 373 "vertices": [ 374 { # A 2D coordinate in an image. The origin is the top-left. 375 "y": 3.14, # Y coordinate. 376 "x": 3.14, # X coordinate. 377 }, 378 ], 379 "label": "A String", 380 }, 381 ], 382 }, 383 } 384 385 updateMask: string, The update mask applies to the resource. For the `FieldMask` definition, 386see 387https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask 388 x__xgafv: string, V1 error format. 389 Allowed values 390 1 - v1 error format 391 2 - v2 error format 392 393Returns: 394 An object of the form: 395 396 { # An annotation record. 397 "annotationSource": { # AnnotationSource holds the source information of the annotation. # Details of the source. 398 "cloudHealthcareSource": { # Cloud Healthcare API resource. # Cloud Healthcare API resource. 399 "name": "A String", # Full path of a Cloud Healthcare API resource. 400 }, 401 }, 402 "resourceAnnotation": { # Resource level annotation. # Annotations for resource, e.g., classification tags. 403 "label": "A String", 404 }, 405 "textAnnotation": { # A TextAnnotation specifies a text range that includes sensitive information. # Annotations for sentitive texts, e.g., range of such texts. 406 "details": { # Maps from a resource slice (e.g. FHIR resource field path) to a set of 407 # sensitive text findings. For example, 408 # Appointment.Narrative text1 --> {findings_1, findings_2, findings_3} 409 "a_key": { # Contains multiple sensitive information findings for each resource slice. 410 "findings": [ 411 { 412 "start": "A String", # Zero-based starting index of the found text, inclusively. 413 "end": "A String", # Zero-based ending index of the found text, exclusively. 414 "infoType": "A String", # The type of information stored in this text range (e.g. HumanName, 415 # BirthDate, Address, etc.) 416 }, 417 ], 418 }, 419 }, 420 }, 421 "name": "A String", # Output only. Resource name of the Annotation, of the form 422 # `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationStores/{annotation_store_id}/annotations/{annotation_id}`. 423 "imageAnnotation": { # Image annotation. # Annnotations for images, e.g., bounding polygons. 424 "boundingPolys": [ # The list of polygons outlining the sensitive regions in the image. 425 { # A bounding polygon for the detected image annotation. 426 "vertices": [ 427 { # A 2D coordinate in an image. The origin is the top-left. 428 "y": 3.14, # Y coordinate. 429 "x": 3.14, # X coordinate. 430 }, 431 ], 432 "label": "A String", 433 }, 434 ], 435 }, 436 }</pre> 437</div> 438 439</body></html>