Class: Google::Apis::GenomicsV1beta2::Metadata
- Inherits:
-
Object
- Object
- Google::Apis::GenomicsV1beta2::Metadata
- Includes:
- Core::Hashable
- Defined in:
- generated/google/apis/genomics_v1beta2/classes.rb,
generated/google/apis/genomics_v1beta2/representations.rb,
generated/google/apis/genomics_v1beta2/representations.rb
Overview
Metadata describes a single piece of variant call metadata. These data include a top level key and either a single value string (value) or a list of key- value pairs (info.) Value and info are mutually exclusive.
Instance Attribute Summary collapse
-
#description ⇒ String
A textual description of this metadata.
-
#id ⇒ String
User-provided ID field, not enforced by this API.
-
#info ⇒ Hash<String,Array<String>>
A string which maps to an array of values.
-
#key ⇒ String
The top-level key.
-
#number ⇒ String
The number of values that can be included in a field described by this metadata.
-
#type ⇒ String
The type of data.
-
#value ⇒ String
The value field for simple metadata Corresponds to the JSON property
value
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Metadata
constructor
A new instance of Metadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Metadata
Returns a new instance of Metadata
1363 1364 1365 |
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1363 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
A textual description of this metadata.
Corresponds to the JSON property description
1328 1329 1330 |
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1328 def description @description end |
#id ⇒ String
User-provided ID field, not enforced by this API. Two or more pieces of
structured metadata with identical id and key fields are considered equivalent.
Corresponds to the JSON property id
1334 1335 1336 |
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1334 def id @id end |
#info ⇒ Hash<String,Array<String>>
A string which maps to an array of values.
Corresponds to the JSON property info
1339 1340 1341 |
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1339 def info @info end |
#key ⇒ String
The top-level key.
Corresponds to the JSON property key
1344 1345 1346 |
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1344 def key @key end |
#number ⇒ String
The number of values that can be included in a field described by this
metadata.
Corresponds to the JSON property number
1350 1351 1352 |
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1350 def number @number end |
#type ⇒ String
The type of data. Possible types include: Integer, Float, Flag, Character, and
String.
Corresponds to the JSON property type
1356 1357 1358 |
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1356 def type @type end |
#value ⇒ String
The value field for simple metadata
Corresponds to the JSON property value
1361 1362 1363 |
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1361 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1368 1369 1370 1371 1372 1373 1374 1375 1376 |
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1368 def update!(**args) @description = args[:description] unless args[:description].nil? @id = args[:id] unless args[:id].nil? @info = args[:info] unless args[:info].nil? @key = args[:key] unless args[:key].nil? @number = args[:number] unless args[:number].nil? @type = args[:type] unless args[:type].nil? @value = args[:value] unless args[:value].nil? end |