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
| 206 207 208 | # File 'generated/google/apis/genomics_v1/classes.rb', line 206 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
| 193 194 195 | # File 'generated/google/apis/genomics_v1/classes.rb', line 193 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_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
| 204 205 206 | # File 'generated/google/apis/genomics_v1/classes.rb', line 204 def request_id @request_id end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 211 212 213 214 | # File 'generated/google/apis/genomics_v1/classes.rb', line 211 def update!(**args) @annotations = args[:annotations] if args.key?(:annotations) @request_id = args[:request_id] if args.key?(:request_id) end |