Class: Google::Apis::GenomicsV1::BatchCreateAnnotationsRequest
- Inherits:
-
Object
- Object
- Google::Apis::GenomicsV1::BatchCreateAnnotationsRequest
- 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
-
#annotations ⇒ Array<Google::Apis::GenomicsV1::Annotation>
The annotations to be created.
-
#request_id ⇒ String
A unique request ID which enables the server to detect duplicated requests.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BatchCreateAnnotationsRequest
constructor
A new instance of BatchCreateAnnotationsRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#annotations ⇒ Array<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_id ⇒ String
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_id
s 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
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 |