Class: Google::Apis::BooksV1::AnnotationData
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::BooksV1::AnnotationData
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/books_v1/classes.rb,
 generated/google/apis/books_v1/representations.rb,
 generated/google/apis/books_v1/representations.rb
Instance Attribute Summary collapse
- 
  
    
      #annotation_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The type of annotation this data is for. 
- 
  
    
      #data  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property data.
- 
  
    
      #encoded_data  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Base64 encoded data for this annotation data. 
- 
  
    
      #id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Unique id for this annotation data. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Resource Type Corresponds to the JSON property kind.
- 
  
    
      #layer_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The Layer id for this data. 
- 
  
    
      #self_link  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    URL for this resource. 
- 
  
    
      #updated  ⇒ DateTime 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Timestamp for the last time this data was updated. 
- 
  
    
      #volume_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The volume id for this data. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ AnnotationData 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of AnnotationData. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AnnotationData
Returns a new instance of AnnotationData
| 312 313 314 | # File 'generated/google/apis/books_v1/classes.rb', line 312 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#annotation_type ⇒ String
The type of annotation this data is for.
Corresponds to the JSON property annotationType
| 268 269 270 | # File 'generated/google/apis/books_v1/classes.rb', line 268 def annotation_type @annotation_type end | 
#data ⇒ Object
Corresponds to the JSON property data
| 273 274 275 | # File 'generated/google/apis/books_v1/classes.rb', line 273 def data @data end | 
#encoded_data ⇒ String
Base64 encoded data for this annotation data.
Corresponds to the JSON property encoded_data
NOTE: Values are automatically base64 encoded/decoded in the client library.
| 279 280 281 | # File 'generated/google/apis/books_v1/classes.rb', line 279 def encoded_data @encoded_data end | 
#id ⇒ String
Unique id for this annotation data.
Corresponds to the JSON property id
| 284 285 286 | # File 'generated/google/apis/books_v1/classes.rb', line 284 def id @id end | 
#kind ⇒ String
Resource Type
Corresponds to the JSON property kind
| 289 290 291 | # File 'generated/google/apis/books_v1/classes.rb', line 289 def kind @kind end | 
#layer_id ⇒ String
The Layer id for this data. *
Corresponds to the JSON property layerId
| 294 295 296 | # File 'generated/google/apis/books_v1/classes.rb', line 294 def layer_id @layer_id end | 
#self_link ⇒ String
URL for this resource. *
Corresponds to the JSON property selfLink
| 299 300 301 | # File 'generated/google/apis/books_v1/classes.rb', line 299 def self_link @self_link end | 
#updated ⇒ DateTime
Timestamp for the last time this data was updated. (RFC 3339 UTC date-time
format).
Corresponds to the JSON property updated
| 305 306 307 | # File 'generated/google/apis/books_v1/classes.rb', line 305 def updated @updated end | 
#volume_id ⇒ String
The volume id for this data. *
Corresponds to the JSON property volumeId
| 310 311 312 | # File 'generated/google/apis/books_v1/classes.rb', line 310 def volume_id @volume_id end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 317 318 319 320 321 322 323 324 325 326 327 | # File 'generated/google/apis/books_v1/classes.rb', line 317 def update!(**args) @annotation_type = args[:annotation_type] if args.key?(:annotation_type) @data = args[:data] if args.key?(:data) @encoded_data = args[:encoded_data] if args.key?(:encoded_data) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @layer_id = args[:layer_id] if args.key?(:layer_id) @self_link = args[:self_link] if args.key?(:self_link) @updated = args[:updated] if args.key?(:updated) @volume_id = args[:volume_id] if args.key?(:volume_id) end |