Class: Google::Apis::BooksV1::LayerSummary

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ LayerSummary

Returns a new instance of LayerSummary.



2040
2041
2042
# File 'generated/google/apis/books_v1/classes.rb', line 2040

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

Instance Attribute Details

#annotation_countFixnum

The number of annotations for this layer. Corresponds to the JSON property annotationCount

Returns:

  • (Fixnum)


1975
1976
1977
# File 'generated/google/apis/books_v1/classes.rb', line 1975

def annotation_count
  @annotation_count
end

#annotation_typesArray<String>

The list of annotation types contained for this layer. Corresponds to the JSON property annotationTypes

Returns:

  • (Array<String>)


1980
1981
1982
# File 'generated/google/apis/books_v1/classes.rb', line 1980

def annotation_types
  @annotation_types
end

Link to get data for this annotation. Corresponds to the JSON property annotationsDataLink

Returns:

  • (String)


1985
1986
1987
# File 'generated/google/apis/books_v1/classes.rb', line 1985

def annotations_data_link
  @annotations_data_link
end

The link to get the annotations for this layer. Corresponds to the JSON property annotationsLink

Returns:

  • (String)


1990
1991
1992
# File 'generated/google/apis/books_v1/classes.rb', line 1990

def annotations_link
  @annotations_link
end

#content_versionString

The content version this resource is for. Corresponds to the JSON property contentVersion

Returns:

  • (String)


1995
1996
1997
# File 'generated/google/apis/books_v1/classes.rb', line 1995

def content_version
  @content_version
end

#data_countFixnum

The number of data items for this layer. Corresponds to the JSON property dataCount

Returns:

  • (Fixnum)


2000
2001
2002
# File 'generated/google/apis/books_v1/classes.rb', line 2000

def data_count
  @data_count
end

#idString

Unique id of this layer summary. Corresponds to the JSON property id

Returns:

  • (String)


2005
2006
2007
# File 'generated/google/apis/books_v1/classes.rb', line 2005

def id
  @id
end

#kindString

Resource Type Corresponds to the JSON property kind

Returns:

  • (String)


2010
2011
2012
# File 'generated/google/apis/books_v1/classes.rb', line 2010

def kind
  @kind
end

#layer_idString

The layer id for this summary. Corresponds to the JSON property layerId

Returns:

  • (String)


2015
2016
2017
# File 'generated/google/apis/books_v1/classes.rb', line 2015

def layer_id
  @layer_id
end

URL to this resource. Corresponds to the JSON property selfLink

Returns:

  • (String)


2020
2021
2022
# File 'generated/google/apis/books_v1/classes.rb', line 2020

def self_link
  @self_link
end

#updatedString

Timestamp for the last time an item in this layer was updated. (RFC 3339 UTC date-time format). Corresponds to the JSON property updated

Returns:

  • (String)


2026
2027
2028
# File 'generated/google/apis/books_v1/classes.rb', line 2026

def updated
  @updated
end

#volume_annotations_versionString

The current version of this layer's volume annotations. Note that this version applies only to the data in the books.layers.volumeAnnotations.* responses. The actual annotation data is versioned separately. Corresponds to the JSON property volumeAnnotationsVersion

Returns:

  • (String)


2033
2034
2035
# File 'generated/google/apis/books_v1/classes.rb', line 2033

def volume_annotations_version
  @volume_annotations_version
end

#volume_idString

The volume id this resource is for. Corresponds to the JSON property volumeId

Returns:

  • (String)


2038
2039
2040
# File 'generated/google/apis/books_v1/classes.rb', line 2038

def volume_id
  @volume_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
# File 'generated/google/apis/books_v1/classes.rb', line 2045

def update!(**args)
  @annotation_count = args[:annotation_count] if args.key?(:annotation_count)
  @annotation_types = args[:annotation_types] if args.key?(:annotation_types)
  @annotations_data_link = args[:annotations_data_link] if args.key?(:annotations_data_link)
  @annotations_link = args[:annotations_link] if args.key?(:annotations_link)
  @content_version = args[:content_version] if args.key?(:content_version)
  @data_count = args[:data_count] if args.key?(:data_count)
  @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_annotations_version = args[:volume_annotations_version] if args.key?(:volume_annotations_version)
  @volume_id = args[:volume_id] if args.key?(:volume_id)
end