Class: Google::Apis::HealthcareV1beta1::AnnotationStore

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/healthcare_v1beta1/classes.rb,
lib/google/apis/healthcare_v1beta1/representations.rb,
lib/google/apis/healthcare_v1beta1/representations.rb

Overview

An Annotation store that can store annotation resources such as labels and tags for text, image and audio.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AnnotationStore

Returns a new instance of AnnotationStore.



387
388
389
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 387

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#labelsHash<String,String>

Optional. User-supplied key-value pairs used to organize Annotation stores. Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: \ pLl\pLo0,62 Label values must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: [\pLl\pLo\pN_-]0,63 No more than 64 labels can be associated with a given store. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


378
379
380
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 378

def labels
  @labels
end

#nameString

Identifier. Resource name of the Annotation store, of the form projects/ project_id/locations/location_id/datasets/dataset_id/annotationStores/ annotation_store_id`. Corresponds to the JSON propertyname`

Returns:

  • (String)


385
386
387
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 385

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



392
393
394
395
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 392

def update!(**args)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
end