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



3172
3173
3174
# File 'generated/google/apis/genomics_v1/classes.rb', line 3172

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



3159
3160
3161
# File 'generated/google/apis/genomics_v1/classes.rb', line 3159

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)


3170
3171
3172
# File 'generated/google/apis/genomics_v1/classes.rb', line 3170

def request_id
  @request_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3177
3178
3179
3180
# File 'generated/google/apis/genomics_v1/classes.rb', line 3177

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