google-api-client 0.40.2 → 0.41.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +66 -0
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +117 -0
- data/generated/google/apis/androidmanagement_v1/representations.rb +39 -0
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
- data/generated/google/apis/artifactregistry_v1beta1/classes.rb +9 -0
- data/generated/google/apis/artifactregistry_v1beta1/representations.rb +1 -0
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +4 -4
- data/generated/google/apis/bigtableadmin_v1.rb +1 -1
- data/generated/google/apis/bigtableadmin_v1/classes.rb +5 -10
- data/generated/google/apis/bigtableadmin_v2.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2/classes.rb +39 -31
- data/generated/google/apis/bigtableadmin_v2/service.rb +1 -5
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chat_v1/classes.rb +2 -0
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +12 -3
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +948 -36
- data/generated/google/apis/cloudasset_v1beta1/representations.rb +241 -0
- data/generated/google/apis/cloudasset_v1beta1/service.rb +4 -4
- data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +18 -19
- data/generated/google/apis/cloudasset_v1p4beta1/service.rb +10 -6
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +5 -6
- data/generated/google/apis/cloudidentity_v1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +14 -9
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +15 -6
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +4 -2
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +535 -43
- data/generated/google/apis/compute_alpha/representations.rb +167 -0
- data/generated/google/apis/compute_alpha/service.rb +922 -172
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +107 -42
- data/generated/google/apis/compute_beta/representations.rb +20 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +22 -10
- data/generated/google/apis/compute_v1/representations.rb +1 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +21 -7
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +7 -1
- data/generated/google/apis/content_v2/representations.rb +1 -0
- data/generated/google/apis/content_v2/service.rb +10 -5
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +93 -7
- data/generated/google/apis/content_v2_1/representations.rb +37 -0
- data/generated/google/apis/content_v2_1/service.rb +10 -5
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +46 -0
- data/generated/google/apis/dataproc_v1/representations.rb +17 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +12 -0
- data/generated/google/apis/dataproc_v1beta2/representations.rb +1 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/service.rb +14 -2
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/service.rb +28 -4
- data/generated/google/apis/documentai_v1beta2.rb +36 -0
- data/generated/google/apis/documentai_v1beta2/classes.rb +3284 -0
- data/generated/google/apis/documentai_v1beta2/representations.rb +1344 -0
- data/generated/google/apis/documentai_v1beta2/service.rb +269 -0
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +26 -78
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +18 -54
- data/generated/google/apis/fcm_v1.rb +1 -1
- data/generated/google/apis/fcm_v1/classes.rb +6 -0
- data/generated/google/apis/firebase_v1beta1.rb +1 -1
- data/generated/google/apis/firebase_v1beta1/classes.rb +7 -6
- data/generated/google/apis/firebase_v1beta1/service.rb +53 -49
- data/generated/google/apis/healthcare_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1/service.rb +2 -0
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +910 -43
- data/generated/google/apis/healthcare_v1beta1/representations.rb +404 -0
- data/generated/google/apis/healthcare_v1beta1/service.rb +517 -0
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +5 -0
- data/generated/google/apis/iam_v1/service.rb +4 -0
- data/generated/google/apis/iamcredentials_v1.rb +2 -2
- data/generated/google/apis/iamcredentials_v1/service.rb +1 -1
- data/generated/google/apis/lifesciences_v2beta.rb +1 -1
- data/generated/google/apis/lifesciences_v2beta/classes.rb +10 -0
- data/generated/google/apis/lifesciences_v2beta/representations.rb +1 -0
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +56 -17
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +4 -4
- data/generated/google/apis/people_v1/service.rb +6 -5
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +6 -6
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +6 -6
- data/generated/google/apis/run_v1beta1.rb +1 -1
- data/generated/google/apis/secretmanager_v1.rb +1 -1
- data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +10 -10
- data/generated/google/apis/securitycenter_v1/service.rb +10 -10
- data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +10 -10
- data/generated/google/apis/securitycenter_v1p1beta1/service.rb +10 -10
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +21 -2
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +1 -0
- data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +21 -2
- data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +1 -0
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +117 -37
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +13 -2
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +13 -2
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +27 -2
- data/generated/google/apis/serviceusage_v1/representations.rb +2 -0
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +72 -2
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +30 -0
- data/generated/google/apis/serviceusage_v1beta1/service.rb +37 -0
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +4 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +18 -0
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +18 -0
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +18 -0
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +38 -0
- data/generated/google/apis/youtube_v3/representations.rb +27 -0
- data/generated/google/apis/youtube_v3/service.rb +32 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +7 -7
- data/generated/google/apis/customsearch_v1.rb +0 -31
- data/generated/google/apis/customsearch_v1/classes.rb +0 -1606
- data/generated/google/apis/customsearch_v1/representations.rb +0 -372
- data/generated/google/apis/customsearch_v1/service.rb +0 -608
@@ -470,6 +470,196 @@ module Google
|
|
470
470
|
execute_or_queue_command(command, &block)
|
471
471
|
end
|
472
472
|
|
473
|
+
# Creates a new Annotation store within the parent dataset.
|
474
|
+
# @param [String] parent
|
475
|
+
# The name of the dataset this Annotation store belongs to.
|
476
|
+
# @param [Google::Apis::HealthcareV1beta1::AnnotationStore] annotation_store_object
|
477
|
+
# @param [String] annotation_store_id
|
478
|
+
# The ID of the Annotation store that is being created.
|
479
|
+
# The string must match the following regex: `[\p`L`\p`N`_\-\.]`1,256``.
|
480
|
+
# @param [String] fields
|
481
|
+
# Selector specifying which fields to include in a partial response.
|
482
|
+
# @param [String] quota_user
|
483
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
484
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
485
|
+
# @param [Google::Apis::RequestOptions] options
|
486
|
+
# Request-specific options
|
487
|
+
#
|
488
|
+
# @yield [result, err] Result & error if block supplied
|
489
|
+
# @yieldparam result [Google::Apis::HealthcareV1beta1::AnnotationStore] parsed result object
|
490
|
+
# @yieldparam err [StandardError] error object if request failed
|
491
|
+
#
|
492
|
+
# @return [Google::Apis::HealthcareV1beta1::AnnotationStore]
|
493
|
+
#
|
494
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
495
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
496
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
497
|
+
def create_project_location_dataset_annotation_store(parent, annotation_store_object = nil, annotation_store_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
498
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/annotationStores', options)
|
499
|
+
command.request_representation = Google::Apis::HealthcareV1beta1::AnnotationStore::Representation
|
500
|
+
command.request_object = annotation_store_object
|
501
|
+
command.response_representation = Google::Apis::HealthcareV1beta1::AnnotationStore::Representation
|
502
|
+
command.response_class = Google::Apis::HealthcareV1beta1::AnnotationStore
|
503
|
+
command.params['parent'] = parent unless parent.nil?
|
504
|
+
command.query['annotationStoreId'] = annotation_store_id unless annotation_store_id.nil?
|
505
|
+
command.query['fields'] = fields unless fields.nil?
|
506
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
507
|
+
execute_or_queue_command(command, &block)
|
508
|
+
end
|
509
|
+
|
510
|
+
# Deletes the specified Annotation store and removes all annotations that are
|
511
|
+
# contained within it.
|
512
|
+
# @param [String] name
|
513
|
+
# The resource name of the Annotation store to delete.
|
514
|
+
# @param [String] fields
|
515
|
+
# Selector specifying which fields to include in a partial response.
|
516
|
+
# @param [String] quota_user
|
517
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
518
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
519
|
+
# @param [Google::Apis::RequestOptions] options
|
520
|
+
# Request-specific options
|
521
|
+
#
|
522
|
+
# @yield [result, err] Result & error if block supplied
|
523
|
+
# @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object
|
524
|
+
# @yieldparam err [StandardError] error object if request failed
|
525
|
+
#
|
526
|
+
# @return [Google::Apis::HealthcareV1beta1::Empty]
|
527
|
+
#
|
528
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
529
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
530
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
531
|
+
def delete_project_location_dataset_annotation_store(name, fields: nil, quota_user: nil, options: nil, &block)
|
532
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
533
|
+
command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation
|
534
|
+
command.response_class = Google::Apis::HealthcareV1beta1::Empty
|
535
|
+
command.params['name'] = name unless name.nil?
|
536
|
+
command.query['fields'] = fields unless fields.nil?
|
537
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
538
|
+
execute_or_queue_command(command, &block)
|
539
|
+
end
|
540
|
+
|
541
|
+
# Evaluate an Annotation store against a
|
542
|
+
# ground truth Annotation store.
|
543
|
+
# When the operation finishes successfully, a detailed response is returned
|
544
|
+
# of type EvaluateAnnotationStoreResponse, contained in the response. The
|
545
|
+
# metadata field type is
|
546
|
+
# OperationMetadata.
|
547
|
+
# Errors are logged to Cloud Logging
|
548
|
+
# (see [Viewing logs](/healthcare/docs/how-tos/logging)).
|
549
|
+
# @param [String] eval_store
|
550
|
+
# The Annotation store to compare against `golden_store`, in the format of
|
551
|
+
# `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
|
552
|
+
# annotationStores/`annotation_store_id``.
|
553
|
+
# @param [Google::Apis::HealthcareV1beta1::EvaluateAnnotationStoreRequest] evaluate_annotation_store_request_object
|
554
|
+
# @param [String] fields
|
555
|
+
# Selector specifying which fields to include in a partial response.
|
556
|
+
# @param [String] quota_user
|
557
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
558
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
559
|
+
# @param [Google::Apis::RequestOptions] options
|
560
|
+
# Request-specific options
|
561
|
+
#
|
562
|
+
# @yield [result, err] Result & error if block supplied
|
563
|
+
# @yieldparam result [Google::Apis::HealthcareV1beta1::Operation] parsed result object
|
564
|
+
# @yieldparam err [StandardError] error object if request failed
|
565
|
+
#
|
566
|
+
# @return [Google::Apis::HealthcareV1beta1::Operation]
|
567
|
+
#
|
568
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
569
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
570
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
571
|
+
def evaluate_annotation_store(eval_store, evaluate_annotation_store_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
572
|
+
command = make_simple_command(:post, 'v1beta1/{+evalStore}:evaluate', options)
|
573
|
+
command.request_representation = Google::Apis::HealthcareV1beta1::EvaluateAnnotationStoreRequest::Representation
|
574
|
+
command.request_object = evaluate_annotation_store_request_object
|
575
|
+
command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation
|
576
|
+
command.response_class = Google::Apis::HealthcareV1beta1::Operation
|
577
|
+
command.params['evalStore'] = eval_store unless eval_store.nil?
|
578
|
+
command.query['fields'] = fields unless fields.nil?
|
579
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
580
|
+
execute_or_queue_command(command, &block)
|
581
|
+
end
|
582
|
+
|
583
|
+
# Export
|
584
|
+
# Annotations from
|
585
|
+
# the Annotation
|
586
|
+
# store.
|
587
|
+
# If the request is successful, a detailed response is returned of type
|
588
|
+
# ExportAnnotationsResponse, contained in the
|
589
|
+
# response field when the
|
590
|
+
# operation finishes.
|
591
|
+
# The metadata field type is
|
592
|
+
# OperationMetadata.
|
593
|
+
# If errors occur, the error
|
594
|
+
# field type is ImportAnnotationsErrorDetails.
|
595
|
+
# Errors are also logged to Cloud Logging
|
596
|
+
# (see [Viewing logs](/healthcare/docs/how-tos/logging)).
|
597
|
+
# @param [String] annotation_store
|
598
|
+
# The name of the Annotation store to export annotations to, in
|
599
|
+
# the format of
|
600
|
+
# `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
|
601
|
+
# annotationStores/`annotation_store_id``.
|
602
|
+
# @param [Google::Apis::HealthcareV1beta1::ExportAnnotationsRequest] export_annotations_request_object
|
603
|
+
# @param [String] fields
|
604
|
+
# Selector specifying which fields to include in a partial response.
|
605
|
+
# @param [String] quota_user
|
606
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
607
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
608
|
+
# @param [Google::Apis::RequestOptions] options
|
609
|
+
# Request-specific options
|
610
|
+
#
|
611
|
+
# @yield [result, err] Result & error if block supplied
|
612
|
+
# @yieldparam result [Google::Apis::HealthcareV1beta1::Operation] parsed result object
|
613
|
+
# @yieldparam err [StandardError] error object if request failed
|
614
|
+
#
|
615
|
+
# @return [Google::Apis::HealthcareV1beta1::Operation]
|
616
|
+
#
|
617
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
618
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
619
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
620
|
+
def export_annotation_store_annotations(annotation_store, export_annotations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
621
|
+
command = make_simple_command(:post, 'v1beta1/{+annotationStore}:export', options)
|
622
|
+
command.request_representation = Google::Apis::HealthcareV1beta1::ExportAnnotationsRequest::Representation
|
623
|
+
command.request_object = export_annotations_request_object
|
624
|
+
command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation
|
625
|
+
command.response_class = Google::Apis::HealthcareV1beta1::Operation
|
626
|
+
command.params['annotationStore'] = annotation_store unless annotation_store.nil?
|
627
|
+
command.query['fields'] = fields unless fields.nil?
|
628
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
629
|
+
execute_or_queue_command(command, &block)
|
630
|
+
end
|
631
|
+
|
632
|
+
# Gets the specified Annotation store or returns NOT_FOUND if it does not
|
633
|
+
# exist.
|
634
|
+
# @param [String] name
|
635
|
+
# The resource name of the Annotation store to get.
|
636
|
+
# @param [String] fields
|
637
|
+
# Selector specifying which fields to include in a partial response.
|
638
|
+
# @param [String] quota_user
|
639
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
640
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
641
|
+
# @param [Google::Apis::RequestOptions] options
|
642
|
+
# Request-specific options
|
643
|
+
#
|
644
|
+
# @yield [result, err] Result & error if block supplied
|
645
|
+
# @yieldparam result [Google::Apis::HealthcareV1beta1::AnnotationStore] parsed result object
|
646
|
+
# @yieldparam err [StandardError] error object if request failed
|
647
|
+
#
|
648
|
+
# @return [Google::Apis::HealthcareV1beta1::AnnotationStore]
|
649
|
+
#
|
650
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
651
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
652
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
653
|
+
def get_project_location_dataset_annotation_store(name, fields: nil, quota_user: nil, options: nil, &block)
|
654
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
655
|
+
command.response_representation = Google::Apis::HealthcareV1beta1::AnnotationStore::Representation
|
656
|
+
command.response_class = Google::Apis::HealthcareV1beta1::AnnotationStore
|
657
|
+
command.params['name'] = name unless name.nil?
|
658
|
+
command.query['fields'] = fields unless fields.nil?
|
659
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
660
|
+
execute_or_queue_command(command, &block)
|
661
|
+
end
|
662
|
+
|
473
663
|
# Gets the access control policy for a resource.
|
474
664
|
# Returns an empty policy if the resource exists and does not have a policy
|
475
665
|
# set.
|
@@ -514,6 +704,139 @@ module Google
|
|
514
704
|
execute_or_queue_command(command, &block)
|
515
705
|
end
|
516
706
|
|
707
|
+
# Import
|
708
|
+
# Annotations to
|
709
|
+
# the Annotation
|
710
|
+
# store by
|
711
|
+
# loading data from the specified sources.
|
712
|
+
# If the request is successful, a detailed response is returned as of type
|
713
|
+
# ImportAnnotationsResponse, contained in the
|
714
|
+
# response field when the
|
715
|
+
# operation finishes.
|
716
|
+
# The metadata field type is
|
717
|
+
# OperationMetadata.
|
718
|
+
# If errors occur, the error
|
719
|
+
# field type is ImportAnnotationsErrorDetails.
|
720
|
+
# Errors are also logged to Cloud Logging
|
721
|
+
# (see [Viewing logs](/healthcare/docs/how-tos/logging)).
|
722
|
+
# @param [String] annotation_store
|
723
|
+
# The name of the Annotation store to which the server imports annotations,
|
724
|
+
# in the format
|
725
|
+
# `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
|
726
|
+
# annotationStores/`annotation_store_id``.
|
727
|
+
# @param [Google::Apis::HealthcareV1beta1::ImportAnnotationsRequest] import_annotations_request_object
|
728
|
+
# @param [String] fields
|
729
|
+
# Selector specifying which fields to include in a partial response.
|
730
|
+
# @param [String] quota_user
|
731
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
732
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
733
|
+
# @param [Google::Apis::RequestOptions] options
|
734
|
+
# Request-specific options
|
735
|
+
#
|
736
|
+
# @yield [result, err] Result & error if block supplied
|
737
|
+
# @yieldparam result [Google::Apis::HealthcareV1beta1::Operation] parsed result object
|
738
|
+
# @yieldparam err [StandardError] error object if request failed
|
739
|
+
#
|
740
|
+
# @return [Google::Apis::HealthcareV1beta1::Operation]
|
741
|
+
#
|
742
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
743
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
744
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
745
|
+
def import_annotation_store_annotations(annotation_store, import_annotations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
746
|
+
command = make_simple_command(:post, 'v1beta1/{+annotationStore}:import', options)
|
747
|
+
command.request_representation = Google::Apis::HealthcareV1beta1::ImportAnnotationsRequest::Representation
|
748
|
+
command.request_object = import_annotations_request_object
|
749
|
+
command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation
|
750
|
+
command.response_class = Google::Apis::HealthcareV1beta1::Operation
|
751
|
+
command.params['annotationStore'] = annotation_store unless annotation_store.nil?
|
752
|
+
command.query['fields'] = fields unless fields.nil?
|
753
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
754
|
+
execute_or_queue_command(command, &block)
|
755
|
+
end
|
756
|
+
|
757
|
+
# Lists the Annotation stores in the given dataset for a source store.
|
758
|
+
# @param [String] parent
|
759
|
+
# Name of the dataset.
|
760
|
+
# @param [String] filter
|
761
|
+
# Restricts stores returned to those matching a filter. Syntax:
|
762
|
+
# https://cloud.google.com/appengine/docs/standard/python/search/query_strings
|
763
|
+
# Only filtering on labels is supported, for example `labels.key=value`.
|
764
|
+
# @param [Fixnum] page_size
|
765
|
+
# Limit on the number of Annotation stores to return in a single response.
|
766
|
+
# If zero the default page size of 100 is used.
|
767
|
+
# @param [String] page_token
|
768
|
+
# The next_page_token value returned from the previous List request, if any.
|
769
|
+
# @param [String] fields
|
770
|
+
# Selector specifying which fields to include in a partial response.
|
771
|
+
# @param [String] quota_user
|
772
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
773
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
774
|
+
# @param [Google::Apis::RequestOptions] options
|
775
|
+
# Request-specific options
|
776
|
+
#
|
777
|
+
# @yield [result, err] Result & error if block supplied
|
778
|
+
# @yieldparam result [Google::Apis::HealthcareV1beta1::ListAnnotationStoresResponse] parsed result object
|
779
|
+
# @yieldparam err [StandardError] error object if request failed
|
780
|
+
#
|
781
|
+
# @return [Google::Apis::HealthcareV1beta1::ListAnnotationStoresResponse]
|
782
|
+
#
|
783
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
784
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
785
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
786
|
+
def list_project_location_dataset_annotation_stores(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
787
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/annotationStores', options)
|
788
|
+
command.response_representation = Google::Apis::HealthcareV1beta1::ListAnnotationStoresResponse::Representation
|
789
|
+
command.response_class = Google::Apis::HealthcareV1beta1::ListAnnotationStoresResponse
|
790
|
+
command.params['parent'] = parent unless parent.nil?
|
791
|
+
command.query['filter'] = filter unless filter.nil?
|
792
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
793
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
794
|
+
command.query['fields'] = fields unless fields.nil?
|
795
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
796
|
+
execute_or_queue_command(command, &block)
|
797
|
+
end
|
798
|
+
|
799
|
+
# Updates the specified Annotation store.
|
800
|
+
# @param [String] name
|
801
|
+
# Resource name of the Annotation store, of the form
|
802
|
+
# `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
|
803
|
+
# annotationStores/`annotation_store_id``.
|
804
|
+
# @param [Google::Apis::HealthcareV1beta1::AnnotationStore] annotation_store_object
|
805
|
+
# @param [String] update_mask
|
806
|
+
# The update mask applies to the resource. For the `FieldMask` definition,
|
807
|
+
# see
|
808
|
+
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
|
809
|
+
# fieldmask
|
810
|
+
# @param [String] fields
|
811
|
+
# Selector specifying which fields to include in a partial response.
|
812
|
+
# @param [String] quota_user
|
813
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
814
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
815
|
+
# @param [Google::Apis::RequestOptions] options
|
816
|
+
# Request-specific options
|
817
|
+
#
|
818
|
+
# @yield [result, err] Result & error if block supplied
|
819
|
+
# @yieldparam result [Google::Apis::HealthcareV1beta1::AnnotationStore] parsed result object
|
820
|
+
# @yieldparam err [StandardError] error object if request failed
|
821
|
+
#
|
822
|
+
# @return [Google::Apis::HealthcareV1beta1::AnnotationStore]
|
823
|
+
#
|
824
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
825
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
826
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
827
|
+
def patch_project_location_dataset_annotation_store(name, annotation_store_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
828
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
829
|
+
command.request_representation = Google::Apis::HealthcareV1beta1::AnnotationStore::Representation
|
830
|
+
command.request_object = annotation_store_object
|
831
|
+
command.response_representation = Google::Apis::HealthcareV1beta1::AnnotationStore::Representation
|
832
|
+
command.response_class = Google::Apis::HealthcareV1beta1::AnnotationStore
|
833
|
+
command.params['name'] = name unless name.nil?
|
834
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
835
|
+
command.query['fields'] = fields unless fields.nil?
|
836
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
837
|
+
execute_or_queue_command(command, &block)
|
838
|
+
end
|
839
|
+
|
517
840
|
# Sets the access control policy on the specified resource. Replaces any
|
518
841
|
# existing policy.
|
519
842
|
# Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
|
@@ -589,6 +912,198 @@ module Google
|
|
589
912
|
execute_or_queue_command(command, &block)
|
590
913
|
end
|
591
914
|
|
915
|
+
# Creates a new Annotation record. It is
|
916
|
+
# valid to create Annotation objects for the same source more than once since
|
917
|
+
# a unique ID is assigned to each record by this service.
|
918
|
+
# @param [String] parent
|
919
|
+
# The name of the Annotation store this annotation belongs to. For example,
|
920
|
+
# `projects/my-project/locations/us-central1/datasets/mydataset/annotationStores/
|
921
|
+
# myannotationstore`.
|
922
|
+
# @param [Google::Apis::HealthcareV1beta1::Annotation] annotation_object
|
923
|
+
# @param [String] fields
|
924
|
+
# Selector specifying which fields to include in a partial response.
|
925
|
+
# @param [String] quota_user
|
926
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
927
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
928
|
+
# @param [Google::Apis::RequestOptions] options
|
929
|
+
# Request-specific options
|
930
|
+
#
|
931
|
+
# @yield [result, err] Result & error if block supplied
|
932
|
+
# @yieldparam result [Google::Apis::HealthcareV1beta1::Annotation] parsed result object
|
933
|
+
# @yieldparam err [StandardError] error object if request failed
|
934
|
+
#
|
935
|
+
# @return [Google::Apis::HealthcareV1beta1::Annotation]
|
936
|
+
#
|
937
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
938
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
939
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
940
|
+
def create_project_location_dataset_annotation_store_annotation(parent, annotation_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
941
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/annotations', options)
|
942
|
+
command.request_representation = Google::Apis::HealthcareV1beta1::Annotation::Representation
|
943
|
+
command.request_object = annotation_object
|
944
|
+
command.response_representation = Google::Apis::HealthcareV1beta1::Annotation::Representation
|
945
|
+
command.response_class = Google::Apis::HealthcareV1beta1::Annotation
|
946
|
+
command.params['parent'] = parent unless parent.nil?
|
947
|
+
command.query['fields'] = fields unless fields.nil?
|
948
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
949
|
+
execute_or_queue_command(command, &block)
|
950
|
+
end
|
951
|
+
|
952
|
+
# Deletes an Annotation or returns
|
953
|
+
# NOT_FOUND if it does not exist.
|
954
|
+
# @param [String] name
|
955
|
+
# The resource name of the Annotation to delete.
|
956
|
+
# @param [String] fields
|
957
|
+
# Selector specifying which fields to include in a partial response.
|
958
|
+
# @param [String] quota_user
|
959
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
960
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
961
|
+
# @param [Google::Apis::RequestOptions] options
|
962
|
+
# Request-specific options
|
963
|
+
#
|
964
|
+
# @yield [result, err] Result & error if block supplied
|
965
|
+
# @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object
|
966
|
+
# @yieldparam err [StandardError] error object if request failed
|
967
|
+
#
|
968
|
+
# @return [Google::Apis::HealthcareV1beta1::Empty]
|
969
|
+
#
|
970
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
971
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
972
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
973
|
+
def delete_project_location_dataset_annotation_store_annotation(name, fields: nil, quota_user: nil, options: nil, &block)
|
974
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
975
|
+
command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation
|
976
|
+
command.response_class = Google::Apis::HealthcareV1beta1::Empty
|
977
|
+
command.params['name'] = name unless name.nil?
|
978
|
+
command.query['fields'] = fields unless fields.nil?
|
979
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
980
|
+
execute_or_queue_command(command, &block)
|
981
|
+
end
|
982
|
+
|
983
|
+
# Gets an Annotation.
|
984
|
+
# @param [String] name
|
985
|
+
# The resource name of the Annotation to retrieve.
|
986
|
+
# @param [String] fields
|
987
|
+
# Selector specifying which fields to include in a partial response.
|
988
|
+
# @param [String] quota_user
|
989
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
990
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
991
|
+
# @param [Google::Apis::RequestOptions] options
|
992
|
+
# Request-specific options
|
993
|
+
#
|
994
|
+
# @yield [result, err] Result & error if block supplied
|
995
|
+
# @yieldparam result [Google::Apis::HealthcareV1beta1::Annotation] parsed result object
|
996
|
+
# @yieldparam err [StandardError] error object if request failed
|
997
|
+
#
|
998
|
+
# @return [Google::Apis::HealthcareV1beta1::Annotation]
|
999
|
+
#
|
1000
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1001
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1002
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1003
|
+
def get_project_location_dataset_annotation_store_annotation(name, fields: nil, quota_user: nil, options: nil, &block)
|
1004
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
1005
|
+
command.response_representation = Google::Apis::HealthcareV1beta1::Annotation::Representation
|
1006
|
+
command.response_class = Google::Apis::HealthcareV1beta1::Annotation
|
1007
|
+
command.params['name'] = name unless name.nil?
|
1008
|
+
command.query['fields'] = fields unless fields.nil?
|
1009
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1010
|
+
execute_or_queue_command(command, &block)
|
1011
|
+
end
|
1012
|
+
|
1013
|
+
# Lists the Annotations in the given
|
1014
|
+
# Annotation store for a source
|
1015
|
+
# resource.
|
1016
|
+
# @param [String] parent
|
1017
|
+
# Name of the Annotation store to retrieve Annotations from.
|
1018
|
+
# @param [String] filter
|
1019
|
+
# Restricts Annotations returned to those matching a filter. Functions
|
1020
|
+
# available for filtering are:
|
1021
|
+
# - `matches("annotation_source.cloud_healthcare_source.name", substring)`.
|
1022
|
+
# Filter on `cloud_healthcare_source.name`. For example:
|
1023
|
+
# `matches("annotation_source.cloud_healthcare_source.name", "some source")`.
|
1024
|
+
# - `matches("annotation", substring)`. Filter on all fields of annotation.
|
1025
|
+
# For example: `matches("annotation", "some-content")`.
|
1026
|
+
# - `type("text")`, `type("image")`, `type("resource")`. Filter on the type
|
1027
|
+
# of annotation `data`.
|
1028
|
+
# @param [Fixnum] page_size
|
1029
|
+
# Limit on the number of Annotations to return in a single response.
|
1030
|
+
# If zero the default page size of 100 is used.
|
1031
|
+
# @param [String] page_token
|
1032
|
+
# The next_page_token value returned from the previous List request, if any.
|
1033
|
+
# @param [String] view
|
1034
|
+
# Controls which fields are populated in the response.
|
1035
|
+
# @param [String] fields
|
1036
|
+
# Selector specifying which fields to include in a partial response.
|
1037
|
+
# @param [String] quota_user
|
1038
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1039
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1040
|
+
# @param [Google::Apis::RequestOptions] options
|
1041
|
+
# Request-specific options
|
1042
|
+
#
|
1043
|
+
# @yield [result, err] Result & error if block supplied
|
1044
|
+
# @yieldparam result [Google::Apis::HealthcareV1beta1::ListAnnotationsResponse] parsed result object
|
1045
|
+
# @yieldparam err [StandardError] error object if request failed
|
1046
|
+
#
|
1047
|
+
# @return [Google::Apis::HealthcareV1beta1::ListAnnotationsResponse]
|
1048
|
+
#
|
1049
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1050
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1051
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1052
|
+
def list_project_location_dataset_annotation_store_annotations(parent, filter: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1053
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/annotations', options)
|
1054
|
+
command.response_representation = Google::Apis::HealthcareV1beta1::ListAnnotationsResponse::Representation
|
1055
|
+
command.response_class = Google::Apis::HealthcareV1beta1::ListAnnotationsResponse
|
1056
|
+
command.params['parent'] = parent unless parent.nil?
|
1057
|
+
command.query['filter'] = filter unless filter.nil?
|
1058
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1059
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1060
|
+
command.query['view'] = view unless view.nil?
|
1061
|
+
command.query['fields'] = fields unless fields.nil?
|
1062
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1063
|
+
execute_or_queue_command(command, &block)
|
1064
|
+
end
|
1065
|
+
|
1066
|
+
# Updates the Annotation.
|
1067
|
+
# @param [String] name
|
1068
|
+
# Resource name of the Annotation, of the form
|
1069
|
+
# `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
|
1070
|
+
# annotationStores/`annotation_store_id`/annotations/`annotation_id``.
|
1071
|
+
# @param [Google::Apis::HealthcareV1beta1::Annotation] annotation_object
|
1072
|
+
# @param [String] update_mask
|
1073
|
+
# The update mask applies to the resource. For the `FieldMask` definition,
|
1074
|
+
# see
|
1075
|
+
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
|
1076
|
+
# fieldmask
|
1077
|
+
# @param [String] fields
|
1078
|
+
# Selector specifying which fields to include in a partial response.
|
1079
|
+
# @param [String] quota_user
|
1080
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1081
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1082
|
+
# @param [Google::Apis::RequestOptions] options
|
1083
|
+
# Request-specific options
|
1084
|
+
#
|
1085
|
+
# @yield [result, err] Result & error if block supplied
|
1086
|
+
# @yieldparam result [Google::Apis::HealthcareV1beta1::Annotation] parsed result object
|
1087
|
+
# @yieldparam err [StandardError] error object if request failed
|
1088
|
+
#
|
1089
|
+
# @return [Google::Apis::HealthcareV1beta1::Annotation]
|
1090
|
+
#
|
1091
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1092
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1093
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1094
|
+
def patch_project_location_dataset_annotation_store_annotation(name, annotation_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1095
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
1096
|
+
command.request_representation = Google::Apis::HealthcareV1beta1::Annotation::Representation
|
1097
|
+
command.request_object = annotation_object
|
1098
|
+
command.response_representation = Google::Apis::HealthcareV1beta1::Annotation::Representation
|
1099
|
+
command.response_class = Google::Apis::HealthcareV1beta1::Annotation
|
1100
|
+
command.params['name'] = name unless name.nil?
|
1101
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1102
|
+
command.query['fields'] = fields unless fields.nil?
|
1103
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1104
|
+
execute_or_queue_command(command, &block)
|
1105
|
+
end
|
1106
|
+
|
592
1107
|
# Creates a new DICOM store within the parent dataset.
|
593
1108
|
# @param [String] parent
|
594
1109
|
# The name of the dataset this DICOM store belongs to.
|
@@ -1565,6 +2080,8 @@ module Google
|
|
1565
2080
|
# DeleteInstance deletes an instance associated with the given study, series,
|
1566
2081
|
# and SOP Instance UID. Delete requests are equivalent to the GET requests
|
1567
2082
|
# specified in the Retrieve transaction.
|
2083
|
+
# Study and series search results can take a few seconds to be updated after
|
2084
|
+
# an instance is deleted using DeleteInstance.
|
1568
2085
|
# @param [String] parent
|
1569
2086
|
# The name of the DICOM store that is being accessed. For example,
|
1570
2087
|
# `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
|