Class: Google::Apis::HealthcareV1alpha2::AnnotationStore
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1alpha2::AnnotationStore
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/healthcare_v1alpha2/classes.rb,
generated/google/apis/healthcare_v1alpha2/representations.rb,
generated/google/apis/healthcare_v1alpha2/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
-
#labels ⇒ Hash<String,String>
User-supplied key-value pairs used to organize Annotation stores.
-
#name ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AnnotationStore
constructor
A new instance of AnnotationStore.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AnnotationStore
Returns a new instance of AnnotationStore
114 115 116 |
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 114 def initialize(**args) update!(**args) end |
Instance Attribute Details
#labels ⇒ Hash<String,String>
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
\pLo
0,62
Label values are optional, 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
105 106 107 |
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 105 def labels @labels end |
#name ⇒ String
Output only. 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 property
name`
112 113 114 |
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 112 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
119 120 121 122 |
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 119 def update!(**args) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) end |