Class: Google::Apis::GenomicsV1::BatchCreateAnnotationsRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BatchCreateAnnotationsRequest

Returns a new instance of BatchCreateAnnotationsRequest.



545
546
547
# File 'generated/google/apis/genomics_v1/classes.rb', line 545

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

Instance Attribute Details

#annotationsArray<Google::Apis::GenomicsV1::Annotation>

The annotations to be created. At most 4096 can be specified in a single request. Corresponds to the JSON property annotations



532
533
534
# File 'generated/google/apis/genomics_v1/classes.rb', line 532

def annotations
  @annotations
end

#request_idString

A unique request ID which enables the server to detect duplicated requests. If provided, duplicated requests will result in the same response; if not provided, duplicated requests may result in duplicated data. For a given annotation set, callers should not reuse request_ids when writing different batches of annotations - behavior in this case is undefined. A common approach is to use a UUID. For batch jobs where worker crashes are a possibility, consider using some unique variant of a worker or run ID. Corresponds to the JSON property requestId

Returns:

  • (String)


543
544
545
# File 'generated/google/apis/genomics_v1/classes.rb', line 543

def request_id
  @request_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



550
551
552
553
# File 'generated/google/apis/genomics_v1/classes.rb', line 550

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