google-api-client 0.39.0 → 0.39.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/generated/google/apis/bigquery_v2.rb +1 -1
  4. data/generated/google/apis/bigquery_v2/classes.rb +566 -0
  5. data/generated/google/apis/bigquery_v2/representations.rb +147 -0
  6. data/generated/google/apis/bigquery_v2/service.rb +120 -0
  7. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  8. data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +26 -10
  9. data/generated/google/apis/books_v1.rb +3 -3
  10. data/generated/google/apis/books_v1/classes.rb +435 -289
  11. data/generated/google/apis/books_v1/representations.rb +124 -91
  12. data/generated/google/apis/books_v1/service.rb +354 -484
  13. data/generated/google/apis/chat_v1.rb +1 -1
  14. data/generated/google/apis/chat_v1/classes.rb +15 -0
  15. data/generated/google/apis/chat_v1/representations.rb +2 -0
  16. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  17. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  18. data/generated/google/apis/cloudfunctions_v1/classes.rb +24 -12
  19. data/generated/google/apis/cloudfunctions_v1/service.rb +3 -0
  20. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  21. data/generated/google/apis/cloudtasks_v2/classes.rb +26 -10
  22. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  23. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +26 -10
  24. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  25. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +26 -10
  26. data/generated/google/apis/logging_v2.rb +1 -1
  27. data/generated/google/apis/logging_v2/classes.rb +45 -32
  28. data/generated/google/apis/logging_v2/service.rb +9 -5
  29. data/generated/google/apis/monitoring_v3.rb +1 -1
  30. data/generated/google/apis/monitoring_v3/classes.rb +7 -5
  31. data/generated/google/apis/networkmanagement_v1beta1.rb +1 -1
  32. data/generated/google/apis/networkmanagement_v1beta1/classes.rb +26 -14
  33. data/generated/google/apis/networkmanagement_v1beta1/service.rb +9 -6
  34. data/generated/google/apis/osconfig_v1beta.rb +35 -0
  35. data/generated/google/apis/osconfig_v1beta/classes.rb +2365 -0
  36. data/generated/google/apis/osconfig_v1beta/representations.rb +966 -0
  37. data/generated/google/apis/osconfig_v1beta/service.rb +605 -0
  38. data/generated/google/apis/pubsub_v1.rb +1 -1
  39. data/generated/google/apis/pubsub_v1/classes.rb +36 -11
  40. data/generated/google/apis/pubsub_v1/representations.rb +1 -0
  41. data/generated/google/apis/pubsub_v1/service.rb +15 -6
  42. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  43. data/generated/google/apis/pubsub_v1beta2/classes.rb +23 -10
  44. data/generated/google/apis/pubsub_v1beta2/service.rb +10 -4
  45. data/generated/google/apis/servicedirectory_v1beta1.rb +1 -1
  46. data/generated/google/apis/servicedirectory_v1beta1/classes.rb +26 -10
  47. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  48. data/generated/google/apis/servicemanagement_v1/classes.rb +61 -26
  49. data/generated/google/apis/servicemanagement_v1/service.rb +4 -4
  50. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  51. data/generated/google/apis/toolresults_v1beta3/service.rb +1 -1
  52. data/generated/google/apis/vault_v1.rb +1 -1
  53. data/generated/google/apis/vault_v1/classes.rb +4 -1
  54. data/lib/google/apis/version.rb +1 -1
  55. metadata +7 -3
@@ -46,12 +46,6 @@ module Google
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
- class AnnotationData
50
- class Representation < Google::Apis::Core::JsonRepresentation; end
51
-
52
- include Google::Apis::Core::JsonObjectSupport
53
- end
54
-
55
49
  class Annotations
56
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
51
 
@@ -88,12 +82,6 @@ module Google
88
82
  include Google::Apis::Core::JsonObjectSupport
89
83
  end
90
84
 
91
- class BooksSubscriptionReleaseInfo
92
- class Representation < Google::Apis::Core::JsonRepresentation; end
93
-
94
- include Google::Apis::Core::JsonObjectSupport
95
- end
96
-
97
85
  class RateRecommendedVolumeResponse
98
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
87
 
@@ -130,6 +118,12 @@ module Google
130
118
  include Google::Apis::Core::JsonObjectSupport
131
119
  end
132
120
 
121
+ class DictionaryAnnotationdata
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
133
127
  class DictLayerData
134
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
129
 
@@ -268,6 +262,12 @@ module Google
268
262
  include Google::Apis::Core::JsonObjectSupport
269
263
  end
270
264
 
265
+ class Empty
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
271
271
  class FamilyInfo
272
272
  class Representation < Google::Apis::Core::JsonRepresentation; end
273
273
 
@@ -280,6 +280,12 @@ module Google
280
280
  include Google::Apis::Core::JsonObjectSupport
281
281
  end
282
282
 
283
+ class GeoAnnotationdata
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
283
289
  class GeoLayerData
284
290
  class Representation < Google::Apis::Core::JsonRepresentation; end
285
291
 
@@ -292,12 +298,6 @@ module Google
292
298
  class Geo
293
299
  class Representation < Google::Apis::Core::JsonRepresentation; end
294
300
 
295
- class Boundary
296
- class Representation < Google::Apis::Core::JsonRepresentation; end
297
-
298
- include Google::Apis::Core::JsonObjectSupport
299
- end
300
-
301
301
  class Viewport
302
302
  class Representation < Google::Apis::Core::JsonRepresentation; end
303
303
 
@@ -376,7 +376,7 @@ module Google
376
376
  include Google::Apis::Core::JsonObjectSupport
377
377
  end
378
378
 
379
- class RequestAccess
379
+ class RequestAccessData
380
380
  class Representation < Google::Apis::Core::JsonRepresentation; end
381
381
 
382
382
  include Google::Apis::Core::JsonObjectSupport
@@ -408,6 +408,18 @@ module Google
408
408
 
409
409
  class SeriesSubscriptionReleaseInfo
410
410
  class Representation < Google::Apis::Core::JsonRepresentation; end
411
+
412
+ class CurrentReleaseInfo
413
+ class Representation < Google::Apis::Core::JsonRepresentation; end
414
+
415
+ include Google::Apis::Core::JsonObjectSupport
416
+ end
417
+
418
+ class NextReleaseInfo
419
+ class Representation < Google::Apis::Core::JsonRepresentation; end
420
+
421
+ include Google::Apis::Core::JsonObjectSupport
422
+ end
411
423
 
412
424
  include Google::Apis::Core::JsonObjectSupport
413
425
  end
@@ -615,6 +627,12 @@ module Google
615
627
 
616
628
  include Google::Apis::Core::JsonObjectSupport
617
629
  end
630
+
631
+ class ReadingModes
632
+ class Representation < Google::Apis::Core::JsonRepresentation; end
633
+
634
+ include Google::Apis::Core::JsonObjectSupport
635
+ end
618
636
 
619
637
  include Google::Apis::Core::JsonObjectSupport
620
638
  end
@@ -677,8 +695,7 @@ module Google
677
695
  property :before_selected_text, as: 'beforeSelectedText'
678
696
  property :client_version_ranges, as: 'clientVersionRanges', class: Google::Apis::BooksV1::Annotation::ClientVersionRanges, decorator: Google::Apis::BooksV1::Annotation::ClientVersionRanges::Representation
679
697
 
680
- property :created, as: 'created', type: DateTime
681
-
698
+ property :created, as: 'created'
682
699
  property :current_version_ranges, as: 'currentVersionRanges', class: Google::Apis::BooksV1::Annotation::CurrentVersionRanges, decorator: Google::Apis::BooksV1::Annotation::CurrentVersionRanges::Representation
683
700
 
684
701
  property :data, as: 'data'
@@ -692,8 +709,7 @@ module Google
692
709
  collection :page_ids, as: 'pageIds'
693
710
  property :selected_text, as: 'selectedText'
694
711
  property :self_link, as: 'selfLink'
695
- property :updated, as: 'updated', type: DateTime
696
-
712
+ property :updated, as: 'updated'
697
713
  property :volume_id, as: 'volumeId'
698
714
  end
699
715
 
@@ -737,22 +753,6 @@ module Google
737
753
  end
738
754
  end
739
755
 
740
- class AnnotationData
741
- # @private
742
- class Representation < Google::Apis::Core::JsonRepresentation
743
- property :annotation_type, as: 'annotationType'
744
- property :data, as: 'data'
745
- property :encoded_data, :base64 => true, as: 'encoded_data'
746
- property :id, as: 'id'
747
- property :kind, as: 'kind'
748
- property :layer_id, as: 'layerId'
749
- property :self_link, as: 'selfLink'
750
- property :updated, as: 'updated', type: DateTime
751
-
752
- property :volume_id, as: 'volumeId'
753
- end
754
- end
755
-
756
756
  class Annotations
757
757
  # @private
758
758
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -779,8 +779,7 @@ module Google
779
779
  property :layer_id, as: 'layerId'
780
780
  property :limit_type, as: 'limitType'
781
781
  property :remaining_character_count, as: 'remainingCharacterCount'
782
- property :updated, as: 'updated', type: DateTime
783
-
782
+ property :updated, as: 'updated'
784
783
  end
785
784
  end
786
785
  end
@@ -788,7 +787,7 @@ module Google
788
787
  class AnnotationsData
789
788
  # @private
790
789
  class Representation < Google::Apis::Core::JsonRepresentation
791
- collection :items, as: 'items', class: Google::Apis::BooksV1::AnnotationData, decorator: Google::Apis::BooksV1::AnnotationData::Representation
790
+ collection :items, as: 'items', class: Google::Apis::BooksV1::GeoAnnotationdata, decorator: Google::Apis::BooksV1::GeoAnnotationdata::Representation
792
791
 
793
792
  property :kind, as: 'kind'
794
793
  property :next_page_token, as: 'nextPageToken'
@@ -816,16 +815,6 @@ module Google
816
815
  end
817
816
  end
818
817
 
819
- class BooksSubscriptionReleaseInfo
820
- # @private
821
- class Representation < Google::Apis::Core::JsonRepresentation
822
- property :amount_in_micros, :numeric_string => true, as: 'amountInMicros'
823
- property :currency_code, as: 'currencyCode'
824
- property :release_number, as: 'releaseNumber'
825
- property :release_timestamp_us, :numeric_string => true, as: 'releaseTimestampUs'
826
- end
827
- end
828
-
829
818
  class RateRecommendedVolumeResponse
830
819
  # @private
831
820
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -837,18 +826,15 @@ module Google
837
826
  # @private
838
827
  class Representation < Google::Apis::Core::JsonRepresentation
839
828
  property :access, as: 'access'
840
- property :created, as: 'created', type: DateTime
841
-
829
+ property :created, as: 'created'
842
830
  property :description, as: 'description'
843
831
  property :id, as: 'id'
844
832
  property :kind, as: 'kind'
845
833
  property :self_link, as: 'selfLink'
846
834
  property :title, as: 'title'
847
- property :updated, as: 'updated', type: DateTime
848
-
835
+ property :updated, as: 'updated'
849
836
  property :volume_count, as: 'volumeCount'
850
- property :volumes_last_updated, as: 'volumesLastUpdated', type: DateTime
851
-
837
+ property :volumes_last_updated, as: 'volumesLastUpdated'
852
838
  end
853
839
  end
854
840
 
@@ -896,6 +882,22 @@ module Google
896
882
  end
897
883
  end
898
884
 
885
+ class DictionaryAnnotationdata
886
+ # @private
887
+ class Representation < Google::Apis::Core::JsonRepresentation
888
+ property :annotation_type, as: 'annotationType'
889
+ property :data, as: 'data', class: Google::Apis::BooksV1::DictLayerData, decorator: Google::Apis::BooksV1::DictLayerData::Representation
890
+
891
+ property :encoded_data, :base64 => true, as: 'encodedData'
892
+ property :id, as: 'id'
893
+ property :kind, as: 'kind'
894
+ property :layer_id, as: 'layerId'
895
+ property :self_link, as: 'selfLink'
896
+ property :updated, as: 'updated'
897
+ property :volume_id, as: 'volumeId'
898
+ end
899
+ end
900
+
899
901
  class DictLayerData
900
902
  # @private
901
903
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1128,6 +1130,12 @@ module Google
1128
1130
  end
1129
1131
  end
1130
1132
 
1133
+ class Empty
1134
+ # @private
1135
+ class Representation < Google::Apis::Core::JsonRepresentation
1136
+ end
1137
+ end
1138
+
1131
1139
  class FamilyInfo
1132
1140
  # @private
1133
1141
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1148,6 +1156,22 @@ module Google
1148
1156
  end
1149
1157
  end
1150
1158
 
1159
+ class GeoAnnotationdata
1160
+ # @private
1161
+ class Representation < Google::Apis::Core::JsonRepresentation
1162
+ property :annotation_type, as: 'annotationType'
1163
+ property :data, as: 'data', class: Google::Apis::BooksV1::GeoLayerData, decorator: Google::Apis::BooksV1::GeoLayerData::Representation
1164
+
1165
+ property :encoded_data, :base64 => true, as: 'encodedData'
1166
+ property :id, as: 'id'
1167
+ property :kind, as: 'kind'
1168
+ property :layer_id, as: 'layerId'
1169
+ property :self_link, as: 'selfLink'
1170
+ property :updated, as: 'updated'
1171
+ property :volume_id, as: 'volumeId'
1172
+ end
1173
+ end
1174
+
1151
1175
  class GeoLayerData
1152
1176
  # @private
1153
1177
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1172,12 +1196,7 @@ module Google
1172
1196
  class Geo
1173
1197
  # @private
1174
1198
  class Representation < Google::Apis::Core::JsonRepresentation
1175
- collection :boundary, as: 'boundary', :class => Array do
1176
- include Representable::JSON::Collection
1177
- items class: Google::Apis::BooksV1::GeoLayerData::Geo::Boundary, decorator: Google::Apis::BooksV1::GeoLayerData::Geo::Boundary::Representation
1178
-
1179
- end
1180
-
1199
+ collection :boundary, as: 'boundary'
1181
1200
  property :cache_policy, as: 'cachePolicy'
1182
1201
  property :country_code, as: 'countryCode'
1183
1202
  property :latitude, as: 'latitude'
@@ -1188,14 +1207,6 @@ module Google
1188
1207
  property :zoom, as: 'zoom'
1189
1208
  end
1190
1209
 
1191
- class Boundary
1192
- # @private
1193
- class Representation < Google::Apis::Core::JsonRepresentation
1194
- property :latitude, as: 'latitude'
1195
- property :longitude, as: 'longitude'
1196
- end
1197
- end
1198
-
1199
1210
  class Viewport
1200
1211
  # @private
1201
1212
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1247,8 +1258,7 @@ module Google
1247
1258
  property :kind, as: 'kind'
1248
1259
  property :layer_id, as: 'layerId'
1249
1260
  property :self_link, as: 'selfLink'
1250
- property :updated, as: 'updated', type: DateTime
1251
-
1261
+ property :updated, as: 'updated'
1252
1262
  property :volume_annotations_version, as: 'volumeAnnotationsVersion'
1253
1263
  property :volume_id, as: 'volumeId'
1254
1264
  end
@@ -1336,13 +1346,12 @@ module Google
1336
1346
  property :gb_text_position, as: 'gbTextPosition'
1337
1347
  property :kind, as: 'kind'
1338
1348
  property :pdf_position, as: 'pdfPosition'
1339
- property :updated, as: 'updated', type: DateTime
1340
-
1349
+ property :updated, as: 'updated'
1341
1350
  property :volume_id, as: 'volumeId'
1342
1351
  end
1343
1352
  end
1344
1353
 
1345
- class RequestAccess
1354
+ class RequestAccessData
1346
1355
  # @private
1347
1356
  class Representation < Google::Apis::Core::JsonRepresentation
1348
1357
  property :concurrent_access, as: 'concurrentAccess', class: Google::Apis::BooksV1::ConcurrentAccessRestriction, decorator: Google::Apis::BooksV1::ConcurrentAccessRestriction::Representation
@@ -1414,13 +1423,33 @@ module Google
1414
1423
  class SeriesSubscriptionReleaseInfo
1415
1424
  # @private
1416
1425
  class Representation < Google::Apis::Core::JsonRepresentation
1417
- property :cancellation_timestamp_us, :numeric_string => true, as: 'cancellationTimestampUs'
1418
- property :current_release_info, as: 'currentReleaseInfo', class: Google::Apis::BooksV1::BooksSubscriptionReleaseInfo, decorator: Google::Apis::BooksV1::BooksSubscriptionReleaseInfo::Representation
1426
+ property :cancel_time, as: 'cancelTime'
1427
+ property :current_release_info, as: 'currentReleaseInfo', class: Google::Apis::BooksV1::Series::Series::SeriesSubscriptionReleaseInfo::CurrentReleaseInfo, decorator: Google::Apis::BooksV1::Series::Series::SeriesSubscriptionReleaseInfo::CurrentReleaseInfo::Representation
1419
1428
 
1420
- property :next_release_info, as: 'nextReleaseInfo', class: Google::Apis::BooksV1::BooksSubscriptionReleaseInfo, decorator: Google::Apis::BooksV1::BooksSubscriptionReleaseInfo::Representation
1429
+ property :next_release_info, as: 'nextReleaseInfo', class: Google::Apis::BooksV1::Series::Series::SeriesSubscriptionReleaseInfo::NextReleaseInfo, decorator: Google::Apis::BooksV1::Series::Series::SeriesSubscriptionReleaseInfo::NextReleaseInfo::Representation
1421
1430
 
1422
1431
  property :series_subscription_type, as: 'seriesSubscriptionType'
1423
1432
  end
1433
+
1434
+ class CurrentReleaseInfo
1435
+ # @private
1436
+ class Representation < Google::Apis::Core::JsonRepresentation
1437
+ property :amount_in_micros, as: 'amountInMicros'
1438
+ property :currency_code, as: 'currencyCode'
1439
+ property :release_number, as: 'releaseNumber'
1440
+ property :release_time, as: 'releaseTime'
1441
+ end
1442
+ end
1443
+
1444
+ class NextReleaseInfo
1445
+ # @private
1446
+ class Representation < Google::Apis::Core::JsonRepresentation
1447
+ property :amount_in_micros, as: 'amountInMicros'
1448
+ property :currency_code, as: 'currencyCode'
1449
+ property :release_number, as: 'releaseNumber'
1450
+ property :release_time, as: 'releaseTime'
1451
+ end
1452
+ end
1424
1453
  end
1425
1454
  end
1426
1455
  end
@@ -1602,8 +1631,7 @@ module Google
1602
1631
 
1603
1632
  collection :offers, as: 'offers', class: Google::Apis::BooksV1::Volume::SaleInfo::Offer, decorator: Google::Apis::BooksV1::Volume::SaleInfo::Offer::Representation
1604
1633
 
1605
- property :on_sale_date, as: 'onSaleDate', type: DateTime
1606
-
1634
+ property :on_sale_date, as: 'onSaleDate'
1607
1635
  property :retail_price, as: 'retailPrice', class: Google::Apis::BooksV1::Volume::SaleInfo::RetailPrice, decorator: Google::Apis::BooksV1::Volume::SaleInfo::RetailPrice::Representation
1608
1636
 
1609
1637
  property :saleability, as: 'saleability'
@@ -1674,8 +1702,7 @@ module Google
1674
1702
  class UserInfo
1675
1703
  # @private
1676
1704
  class Representation < Google::Apis::Core::JsonRepresentation
1677
- property :acquired_time, as: 'acquiredTime', type: DateTime
1678
-
1705
+ property :acquired_time, as: 'acquiredTime'
1679
1706
  property :acquisition_type, as: 'acquisitionType'
1680
1707
  property :copy, as: 'copy', class: Google::Apis::BooksV1::Volume::UserInfo::Copy, decorator: Google::Apis::BooksV1::Volume::UserInfo::Copy::Representation
1681
1708
 
@@ -1697,8 +1724,7 @@ module Google
1697
1724
  property :rental_state, as: 'rentalState'
1698
1725
  property :review, as: 'review', class: Google::Apis::BooksV1::Review, decorator: Google::Apis::BooksV1::Review::Representation
1699
1726
 
1700
- property :updated, as: 'updated', type: DateTime
1701
-
1727
+ property :updated, as: 'updated'
1702
1728
  property :user_uploaded_volume_info, as: 'userUploadedVolumeInfo', class: Google::Apis::BooksV1::Volume::UserInfo::UserUploadedVolumeInfo, decorator: Google::Apis::BooksV1::Volume::UserInfo::UserUploadedVolumeInfo::Representation
1703
1729
 
1704
1730
  end
@@ -1709,8 +1735,7 @@ module Google
1709
1735
  property :allowed_character_count, as: 'allowedCharacterCount'
1710
1736
  property :limit_type, as: 'limitType'
1711
1737
  property :remaining_character_count, as: 'remainingCharacterCount'
1712
- property :updated, as: 'updated', type: DateTime
1713
-
1738
+ property :updated, as: 'updated'
1714
1739
  end
1715
1740
  end
1716
1741
 
@@ -1769,7 +1794,8 @@ module Google
1769
1794
  property :published_date, as: 'publishedDate'
1770
1795
  property :publisher, as: 'publisher'
1771
1796
  property :ratings_count, as: 'ratingsCount'
1772
- property :reading_modes, as: 'readingModes'
1797
+ property :reading_modes, as: 'readingModes', class: Google::Apis::BooksV1::Volume::VolumeInfo::ReadingModes, decorator: Google::Apis::BooksV1::Volume::VolumeInfo::ReadingModes::Representation
1798
+
1773
1799
  property :sample_page_count, as: 'samplePageCount'
1774
1800
  property :series_info, as: 'seriesInfo', class: Google::Apis::BooksV1::Volumeseriesinfo, decorator: Google::Apis::BooksV1::Volumeseriesinfo::Representation
1775
1801
 
@@ -1815,6 +1841,14 @@ module Google
1815
1841
  property :image_bubble_version, as: 'imageBubbleVersion'
1816
1842
  end
1817
1843
  end
1844
+
1845
+ class ReadingModes
1846
+ # @private
1847
+ class Representation < Google::Apis::Core::JsonRepresentation
1848
+ property :image, as: 'image'
1849
+ property :text, as: 'text'
1850
+ end
1851
+ end
1818
1852
  end
1819
1853
  end
1820
1854
 
@@ -1844,8 +1878,7 @@ module Google
1844
1878
  collection :page_ids, as: 'pageIds'
1845
1879
  property :selected_text, as: 'selectedText'
1846
1880
  property :self_link, as: 'selfLink'
1847
- property :updated, as: 'updated', type: DateTime
1848
-
1881
+ property :updated, as: 'updated'
1849
1882
  property :volume_id, as: 'volumeId'
1850
1883
  end
1851
1884
 
@@ -22,7 +22,7 @@ module Google
22
22
  module BooksV1
23
23
  # Books API
24
24
  #
25
- # Searches for books and manages your Google Books library.
25
+ # The Google Books API allows clients to access the Google Books repository.
26
26
  #
27
27
  # @example
28
28
  # require 'google/apis/books_v1'
@@ -30,7 +30,7 @@ module Google
30
30
  # Books = Google::Apis::BooksV1 # Alias the module
31
31
  # service = Books::BooksService.new
32
32
  #
33
- # @see https://developers.google.com/books/docs/v1/getting_started
33
+ # @see https://code.google.com/apis/books/docs/v1/getting_started.html
34
34
  class BooksService < Google::Apis::Core::BaseService
35
35
  # @return [String]
36
36
  # API key. Your API key identifies your project and provides you with API access,
@@ -38,17 +38,13 @@ module Google
38
38
  attr_accessor :key
39
39
 
40
40
  # @return [String]
41
- # An opaque string that represents a user for quota purposes. Must not exceed 40
42
- # characters.
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
43
  attr_accessor :quota_user
44
44
 
45
- # @return [String]
46
- # Deprecated. Please use quotaUser instead.
47
- attr_accessor :user_ip
48
-
49
45
  def initialize
50
- super('https://www.googleapis.com/', 'books/v1/')
51
- @batch_path = 'batch/books/v1'
46
+ super('https://books.googleapis.com/', '')
47
+ @batch_path = 'batch'
52
48
  end
53
49
 
54
50
  # Retrieves metadata for a specific bookshelf for the specified user.
@@ -61,10 +57,8 @@ module Google
61
57
  # @param [String] fields
62
58
  # Selector specifying which fields to include in a partial response.
63
59
  # @param [String] quota_user
64
- # An opaque string that represents a user for quota purposes. Must not exceed 40
65
- # characters.
66
- # @param [String] user_ip
67
- # Deprecated. Please use quotaUser instead.
60
+ # Available to use for quota purposes for server-side applications. Can be any
61
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
68
62
  # @param [Google::Apis::RequestOptions] options
69
63
  # Request-specific options
70
64
  #
@@ -77,8 +71,8 @@ module Google
77
71
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
78
72
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
79
73
  # @raise [Google::Apis::AuthorizationError] Authorization is required
80
- def get_bookshelf(user_id, shelf, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
81
- command = make_simple_command(:get, 'users/{userId}/bookshelves/{shelf}', options)
74
+ def get_bookshelf(user_id, shelf, source: nil, fields: nil, quota_user: nil, options: nil, &block)
75
+ command = make_simple_command(:get, 'books/v1/users/{userId}/bookshelves/{shelf}', options)
82
76
  command.response_representation = Google::Apis::BooksV1::Bookshelf::Representation
83
77
  command.response_class = Google::Apis::BooksV1::Bookshelf
84
78
  command.params['userId'] = user_id unless user_id.nil?
@@ -86,7 +80,6 @@ module Google
86
80
  command.query['source'] = source unless source.nil?
87
81
  command.query['fields'] = fields unless fields.nil?
88
82
  command.query['quotaUser'] = quota_user unless quota_user.nil?
89
- command.query['userIp'] = user_ip unless user_ip.nil?
90
83
  execute_or_queue_command(command, &block)
91
84
  end
92
85
 
@@ -98,10 +91,8 @@ module Google
98
91
  # @param [String] fields
99
92
  # Selector specifying which fields to include in a partial response.
100
93
  # @param [String] quota_user
101
- # An opaque string that represents a user for quota purposes. Must not exceed 40
102
- # characters.
103
- # @param [String] user_ip
104
- # Deprecated. Please use quotaUser instead.
94
+ # Available to use for quota purposes for server-side applications. Can be any
95
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
105
96
  # @param [Google::Apis::RequestOptions] options
106
97
  # Request-specific options
107
98
  #
@@ -114,15 +105,14 @@ module Google
114
105
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
115
106
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
116
107
  # @raise [Google::Apis::AuthorizationError] Authorization is required
117
- def list_bookshelves(user_id, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
118
- command = make_simple_command(:get, 'users/{userId}/bookshelves', options)
108
+ def list_bookshelves(user_id, source: nil, fields: nil, quota_user: nil, options: nil, &block)
109
+ command = make_simple_command(:get, 'books/v1/users/{userId}/bookshelves', options)
119
110
  command.response_representation = Google::Apis::BooksV1::Bookshelves::Representation
120
111
  command.response_class = Google::Apis::BooksV1::Bookshelves
121
112
  command.params['userId'] = user_id unless user_id.nil?
122
113
  command.query['source'] = source unless source.nil?
123
114
  command.query['fields'] = fields unless fields.nil?
124
115
  command.query['quotaUser'] = quota_user unless quota_user.nil?
125
- command.query['userIp'] = user_ip unless user_ip.nil?
126
116
  execute_or_queue_command(command, &block)
127
117
  end
128
118
 
@@ -142,10 +132,8 @@ module Google
142
132
  # @param [String] fields
143
133
  # Selector specifying which fields to include in a partial response.
144
134
  # @param [String] quota_user
145
- # An opaque string that represents a user for quota purposes. Must not exceed 40
146
- # characters.
147
- # @param [String] user_ip
148
- # Deprecated. Please use quotaUser instead.
135
+ # Available to use for quota purposes for server-side applications. Can be any
136
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
149
137
  # @param [Google::Apis::RequestOptions] options
150
138
  # Request-specific options
151
139
  #
@@ -158,8 +146,8 @@ module Google
158
146
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
159
147
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
160
148
  # @raise [Google::Apis::AuthorizationError] Authorization is required
161
- def list_bookshelf_volumes(user_id, shelf, max_results: nil, show_preorders: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
162
- command = make_simple_command(:get, 'users/{userId}/bookshelves/{shelf}/volumes', options)
149
+ def list_bookshelf_volumes(user_id, shelf, max_results: nil, show_preorders: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, options: nil, &block)
150
+ command = make_simple_command(:get, 'books/v1/users/{userId}/bookshelves/{shelf}/volumes', options)
163
151
  command.response_representation = Google::Apis::BooksV1::Volumes::Representation
164
152
  command.response_class = Google::Apis::BooksV1::Volumes
165
153
  command.params['userId'] = user_id unless user_id.nil?
@@ -170,11 +158,10 @@ module Google
170
158
  command.query['startIndex'] = start_index unless start_index.nil?
171
159
  command.query['fields'] = fields unless fields.nil?
172
160
  command.query['quotaUser'] = quota_user unless quota_user.nil?
173
- command.query['userIp'] = user_ip unless user_ip.nil?
174
161
  execute_or_queue_command(command, &block)
175
162
  end
176
163
 
177
- #
164
+ # Add a user-upload volume and triggers processing.
178
165
  # @param [String] drive_document_id
179
166
  # A drive document id. The upload_client_token must not be set.
180
167
  # @param [String] mime_type
@@ -182,13 +169,12 @@ module Google
182
169
  # @param [String] name
183
170
  # The document name. It can be set only if the drive_document_id is set.
184
171
  # @param [String] upload_client_token
172
+ # Scotty upload token.
185
173
  # @param [String] fields
186
174
  # Selector specifying which fields to include in a partial response.
187
175
  # @param [String] quota_user
188
- # An opaque string that represents a user for quota purposes. Must not exceed 40
189
- # characters.
190
- # @param [String] user_ip
191
- # Deprecated. Please use quotaUser instead.
176
+ # Available to use for quota purposes for server-side applications. Can be any
177
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
192
178
  # @param [Google::Apis::RequestOptions] options
193
179
  # Request-specific options
194
180
  #
@@ -201,8 +187,8 @@ module Google
201
187
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
202
188
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
203
189
  # @raise [Google::Apis::AuthorizationError] Authorization is required
204
- def add_book(drive_document_id: nil, mime_type: nil, name: nil, upload_client_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
205
- command = make_simple_command(:post, 'cloudloading/addBook', options)
190
+ def add_book(drive_document_id: nil, mime_type: nil, name: nil, upload_client_token: nil, fields: nil, quota_user: nil, options: nil, &block)
191
+ command = make_simple_command(:post, 'books/v1/cloudloading/addBook', options)
206
192
  command.response_representation = Google::Apis::BooksV1::LoadingResource::Representation
207
193
  command.response_class = Google::Apis::BooksV1::LoadingResource
208
194
  command.query['drive_document_id'] = drive_document_id unless drive_document_id.nil?
@@ -211,7 +197,6 @@ module Google
211
197
  command.query['upload_client_token'] = upload_client_token unless upload_client_token.nil?
212
198
  command.query['fields'] = fields unless fields.nil?
213
199
  command.query['quotaUser'] = quota_user unless quota_user.nil?
214
- command.query['userIp'] = user_ip unless user_ip.nil?
215
200
  execute_or_queue_command(command, &block)
216
201
  end
217
202
 
@@ -221,40 +206,37 @@ module Google
221
206
  # @param [String] fields
222
207
  # Selector specifying which fields to include in a partial response.
223
208
  # @param [String] quota_user
224
- # An opaque string that represents a user for quota purposes. Must not exceed 40
225
- # characters.
226
- # @param [String] user_ip
227
- # Deprecated. Please use quotaUser instead.
209
+ # Available to use for quota purposes for server-side applications. Can be any
210
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
228
211
  # @param [Google::Apis::RequestOptions] options
229
212
  # Request-specific options
230
213
  #
231
214
  # @yield [result, err] Result & error if block supplied
232
- # @yieldparam result [NilClass] No result returned for this method
215
+ # @yieldparam result [Google::Apis::BooksV1::Empty] parsed result object
233
216
  # @yieldparam err [StandardError] error object if request failed
234
217
  #
235
- # @return [void]
218
+ # @return [Google::Apis::BooksV1::Empty]
236
219
  #
237
220
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
238
221
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
239
222
  # @raise [Google::Apis::AuthorizationError] Authorization is required
240
- def delete_book(volume_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
241
- command = make_simple_command(:post, 'cloudloading/deleteBook', options)
223
+ def delete_book(volume_id: nil, fields: nil, quota_user: nil, options: nil, &block)
224
+ command = make_simple_command(:post, 'books/v1/cloudloading/deleteBook', options)
225
+ command.response_representation = Google::Apis::BooksV1::Empty::Representation
226
+ command.response_class = Google::Apis::BooksV1::Empty
242
227
  command.query['volumeId'] = volume_id unless volume_id.nil?
243
228
  command.query['fields'] = fields unless fields.nil?
244
229
  command.query['quotaUser'] = quota_user unless quota_user.nil?
245
- command.query['userIp'] = user_ip unless user_ip.nil?
246
230
  execute_or_queue_command(command, &block)
247
231
  end
248
232
 
249
- #
233
+ # Updates a user-upload volume.
250
234
  # @param [Google::Apis::BooksV1::LoadingResource] loading_resource_object
251
235
  # @param [String] fields
252
236
  # Selector specifying which fields to include in a partial response.
253
237
  # @param [String] quota_user
254
- # An opaque string that represents a user for quota purposes. Must not exceed 40
255
- # characters.
256
- # @param [String] user_ip
257
- # Deprecated. Please use quotaUser instead.
238
+ # Available to use for quota purposes for server-side applications. Can be any
239
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
258
240
  # @param [Google::Apis::RequestOptions] options
259
241
  # Request-specific options
260
242
  #
@@ -267,15 +249,14 @@ module Google
267
249
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
268
250
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
269
251
  # @raise [Google::Apis::AuthorizationError] Authorization is required
270
- def update_book(loading_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
271
- command = make_simple_command(:post, 'cloudloading/updateBook', options)
252
+ def update_book(loading_resource_object = nil, fields: nil, quota_user: nil, options: nil, &block)
253
+ command = make_simple_command(:post, 'books/v1/cloudloading/updateBook', options)
272
254
  command.request_representation = Google::Apis::BooksV1::LoadingResource::Representation
273
255
  command.request_object = loading_resource_object
274
256
  command.response_representation = Google::Apis::BooksV1::LoadingResource::Representation
275
257
  command.response_class = Google::Apis::BooksV1::LoadingResource
276
258
  command.query['fields'] = fields unless fields.nil?
277
259
  command.query['quotaUser'] = quota_user unless quota_user.nil?
278
- command.query['userIp'] = user_ip unless user_ip.nil?
279
260
  execute_or_queue_command(command, &block)
280
261
  end
281
262
 
@@ -285,10 +266,8 @@ module Google
285
266
  # @param [String] fields
286
267
  # Selector specifying which fields to include in a partial response.
287
268
  # @param [String] quota_user
288
- # An opaque string that represents a user for quota purposes. Must not exceed 40
289
- # characters.
290
- # @param [String] user_ip
291
- # Deprecated. Please use quotaUser instead.
269
+ # Available to use for quota purposes for server-side applications. Can be any
270
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
292
271
  # @param [Google::Apis::RequestOptions] options
293
272
  # Request-specific options
294
273
  #
@@ -301,14 +280,13 @@ module Google
301
280
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
302
281
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
303
282
  # @raise [Google::Apis::AuthorizationError] Authorization is required
304
- def list_offline_metadata_dictionary(cpksver, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
305
- command = make_simple_command(:get, 'dictionary/listOfflineMetadata', options)
283
+ def list_offline_metadata_dictionary(cpksver: nil, fields: nil, quota_user: nil, options: nil, &block)
284
+ command = make_simple_command(:get, 'books/v1/dictionary/listOfflineMetadata', options)
306
285
  command.response_representation = Google::Apis::BooksV1::Metadata::Representation
307
286
  command.response_class = Google::Apis::BooksV1::Metadata
308
287
  command.query['cpksver'] = cpksver unless cpksver.nil?
309
288
  command.query['fields'] = fields unless fields.nil?
310
289
  command.query['quotaUser'] = quota_user unless quota_user.nil?
311
- command.query['userIp'] = user_ip unless user_ip.nil?
312
290
  execute_or_queue_command(command, &block)
313
291
  end
314
292
 
@@ -318,10 +296,8 @@ module Google
318
296
  # @param [String] fields
319
297
  # Selector specifying which fields to include in a partial response.
320
298
  # @param [String] quota_user
321
- # An opaque string that represents a user for quota purposes. Must not exceed 40
322
- # characters.
323
- # @param [String] user_ip
324
- # Deprecated. Please use quotaUser instead.
299
+ # Available to use for quota purposes for server-side applications. Can be any
300
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
325
301
  # @param [Google::Apis::RequestOptions] options
326
302
  # Request-specific options
327
303
  #
@@ -334,14 +310,13 @@ module Google
334
310
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
335
311
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
336
312
  # @raise [Google::Apis::AuthorizationError] Authorization is required
337
- def get_familysharing_family_info(source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
338
- command = make_simple_command(:get, 'familysharing/getFamilyInfo', options)
313
+ def get_familysharing_family_info(source: nil, fields: nil, quota_user: nil, options: nil, &block)
314
+ command = make_simple_command(:get, 'books/v1/familysharing/getFamilyInfo', options)
339
315
  command.response_representation = Google::Apis::BooksV1::FamilyInfo::Representation
340
316
  command.response_class = Google::Apis::BooksV1::FamilyInfo
341
317
  command.query['source'] = source unless source.nil?
342
318
  command.query['fields'] = fields unless fields.nil?
343
319
  command.query['quotaUser'] = quota_user unless quota_user.nil?
344
- command.query['userIp'] = user_ip unless user_ip.nil?
345
320
  execute_or_queue_command(command, &block)
346
321
  end
347
322
 
@@ -356,35 +331,34 @@ module Google
356
331
  # @param [String] fields
357
332
  # Selector specifying which fields to include in a partial response.
358
333
  # @param [String] quota_user
359
- # An opaque string that represents a user for quota purposes. Must not exceed 40
360
- # characters.
361
- # @param [String] user_ip
362
- # Deprecated. Please use quotaUser instead.
334
+ # Available to use for quota purposes for server-side applications. Can be any
335
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
363
336
  # @param [Google::Apis::RequestOptions] options
364
337
  # Request-specific options
365
338
  #
366
339
  # @yield [result, err] Result & error if block supplied
367
- # @yieldparam result [NilClass] No result returned for this method
340
+ # @yieldparam result [Google::Apis::BooksV1::Empty] parsed result object
368
341
  # @yieldparam err [StandardError] error object if request failed
369
342
  #
370
- # @return [void]
343
+ # @return [Google::Apis::BooksV1::Empty]
371
344
  #
372
345
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
373
346
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
374
347
  # @raise [Google::Apis::AuthorizationError] Authorization is required
375
- def share_familysharing(doc_id: nil, source: nil, volume_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
376
- command = make_simple_command(:post, 'familysharing/share', options)
348
+ def share_familysharing(doc_id: nil, source: nil, volume_id: nil, fields: nil, quota_user: nil, options: nil, &block)
349
+ command = make_simple_command(:post, 'books/v1/familysharing/share', options)
350
+ command.response_representation = Google::Apis::BooksV1::Empty::Representation
351
+ command.response_class = Google::Apis::BooksV1::Empty
377
352
  command.query['docId'] = doc_id unless doc_id.nil?
378
353
  command.query['source'] = source unless source.nil?
379
354
  command.query['volumeId'] = volume_id unless volume_id.nil?
380
355
  command.query['fields'] = fields unless fields.nil?
381
356
  command.query['quotaUser'] = quota_user unless quota_user.nil?
382
- command.query['userIp'] = user_ip unless user_ip.nil?
383
357
  execute_or_queue_command(command, &block)
384
358
  end
385
359
 
386
- # Initiates revoking content that has already been shared with the user's family.
387
- # Empty response indicates success.
360
+ # Initiates revoking content that has already been shared with the user's
361
+ # family. Empty response indicates success.
388
362
  # @param [String] doc_id
389
363
  # The docid to unshare.
390
364
  # @param [String] source
@@ -394,30 +368,29 @@ module Google
394
368
  # @param [String] fields
395
369
  # Selector specifying which fields to include in a partial response.
396
370
  # @param [String] quota_user
397
- # An opaque string that represents a user for quota purposes. Must not exceed 40
398
- # characters.
399
- # @param [String] user_ip
400
- # Deprecated. Please use quotaUser instead.
371
+ # Available to use for quota purposes for server-side applications. Can be any
372
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
401
373
  # @param [Google::Apis::RequestOptions] options
402
374
  # Request-specific options
403
375
  #
404
376
  # @yield [result, err] Result & error if block supplied
405
- # @yieldparam result [NilClass] No result returned for this method
377
+ # @yieldparam result [Google::Apis::BooksV1::Empty] parsed result object
406
378
  # @yieldparam err [StandardError] error object if request failed
407
379
  #
408
- # @return [void]
380
+ # @return [Google::Apis::BooksV1::Empty]
409
381
  #
410
382
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
411
383
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
412
384
  # @raise [Google::Apis::AuthorizationError] Authorization is required
413
- def unshare_familysharing(doc_id: nil, source: nil, volume_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
414
- command = make_simple_command(:post, 'familysharing/unshare', options)
385
+ def unshare_familysharing(doc_id: nil, source: nil, volume_id: nil, fields: nil, quota_user: nil, options: nil, &block)
386
+ command = make_simple_command(:post, 'books/v1/familysharing/unshare', options)
387
+ command.response_representation = Google::Apis::BooksV1::Empty::Representation
388
+ command.response_class = Google::Apis::BooksV1::Empty
415
389
  command.query['docId'] = doc_id unless doc_id.nil?
416
390
  command.query['source'] = source unless source.nil?
417
391
  command.query['volumeId'] = volume_id unless volume_id.nil?
418
392
  command.query['fields'] = fields unless fields.nil?
419
393
  command.query['quotaUser'] = quota_user unless quota_user.nil?
420
- command.query['userIp'] = user_ip unless user_ip.nil?
421
394
  execute_or_queue_command(command, &block)
422
395
  end
423
396
 
@@ -433,10 +406,8 @@ module Google
433
406
  # @param [String] fields
434
407
  # Selector specifying which fields to include in a partial response.
435
408
  # @param [String] quota_user
436
- # An opaque string that represents a user for quota purposes. Must not exceed 40
437
- # characters.
438
- # @param [String] user_ip
439
- # Deprecated. Please use quotaUser instead.
409
+ # Available to use for quota purposes for server-side applications. Can be any
410
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
440
411
  # @param [Google::Apis::RequestOptions] options
441
412
  # Request-specific options
442
413
  #
@@ -449,8 +420,8 @@ module Google
449
420
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
450
421
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
451
422
  # @raise [Google::Apis::AuthorizationError] Authorization is required
452
- def get_layer(volume_id, summary_id, content_version: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
453
- command = make_simple_command(:get, 'volumes/{volumeId}/layersummary/{summaryId}', options)
423
+ def get_layer(volume_id, summary_id, content_version: nil, source: nil, fields: nil, quota_user: nil, options: nil, &block)
424
+ command = make_simple_command(:get, 'books/v1/volumes/{volumeId}/layersummary/{summaryId}', options)
454
425
  command.response_representation = Google::Apis::BooksV1::LayerSummary::Representation
455
426
  command.response_class = Google::Apis::BooksV1::LayerSummary
456
427
  command.params['volumeId'] = volume_id unless volume_id.nil?
@@ -459,7 +430,6 @@ module Google
459
430
  command.query['source'] = source unless source.nil?
460
431
  command.query['fields'] = fields unless fields.nil?
461
432
  command.query['quotaUser'] = quota_user unless quota_user.nil?
462
- command.query['userIp'] = user_ip unless user_ip.nil?
463
433
  execute_or_queue_command(command, &block)
464
434
  end
465
435
 
@@ -477,10 +447,8 @@ module Google
477
447
  # @param [String] fields
478
448
  # Selector specifying which fields to include in a partial response.
479
449
  # @param [String] quota_user
480
- # An opaque string that represents a user for quota purposes. Must not exceed 40
481
- # characters.
482
- # @param [String] user_ip
483
- # Deprecated. Please use quotaUser instead.
450
+ # Available to use for quota purposes for server-side applications. Can be any
451
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
484
452
  # @param [Google::Apis::RequestOptions] options
485
453
  # Request-specific options
486
454
  #
@@ -493,8 +461,8 @@ module Google
493
461
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
494
462
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
495
463
  # @raise [Google::Apis::AuthorizationError] Authorization is required
496
- def list_layers(volume_id, content_version: nil, max_results: nil, page_token: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
497
- command = make_simple_command(:get, 'volumes/{volumeId}/layersummary', options)
464
+ def list_layers(volume_id, content_version: nil, max_results: nil, page_token: nil, source: nil, fields: nil, quota_user: nil, options: nil, &block)
465
+ command = make_simple_command(:get, 'books/v1/volumes/{volumeId}/layersummary', options)
498
466
  command.response_representation = Google::Apis::BooksV1::LayerSummaries::Representation
499
467
  command.response_class = Google::Apis::BooksV1::LayerSummaries
500
468
  command.params['volumeId'] = volume_id unless volume_id.nil?
@@ -504,7 +472,6 @@ module Google
504
472
  command.query['source'] = source unless source.nil?
505
473
  command.query['fields'] = fields unless fields.nil?
506
474
  command.query['quotaUser'] = quota_user unless quota_user.nil?
507
- command.query['userIp'] = user_ip unless user_ip.nil?
508
475
  execute_or_queue_command(command, &block)
509
476
  end
510
477
 
@@ -515,16 +482,16 @@ module Google
515
482
  # The ID for the layer to get the annotations.
516
483
  # @param [String] annotation_data_id
517
484
  # The ID of the annotation data to retrieve.
518
- # @param [String] content_version
519
- # The content version for the volume you are trying to retrieve.
520
485
  # @param [Boolean] allow_web_definitions
521
486
  # For the dictionary layer. Whether or not to allow web definitions.
487
+ # @param [String] content_version
488
+ # The content version for the volume you are trying to retrieve.
522
489
  # @param [Fixnum] h
523
490
  # The requested pixel height for any images. If height is provided width must
524
491
  # also be provided.
525
492
  # @param [String] locale
526
- # The locale information for the data. ISO-639-1 language and ISO-3166-1 country
527
- # code. Ex: 'en_US'.
493
+ # The locale information for the data. ISO-639-1 language and ISO-3166-1
494
+ # country code. Ex: 'en_US'.
528
495
  # @param [Fixnum] scale
529
496
  # The requested scale for the image.
530
497
  # @param [String] source
@@ -535,26 +502,24 @@ module Google
535
502
  # @param [String] fields
536
503
  # Selector specifying which fields to include in a partial response.
537
504
  # @param [String] quota_user
538
- # An opaque string that represents a user for quota purposes. Must not exceed 40
539
- # characters.
540
- # @param [String] user_ip
541
- # Deprecated. Please use quotaUser instead.
505
+ # Available to use for quota purposes for server-side applications. Can be any
506
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
542
507
  # @param [Google::Apis::RequestOptions] options
543
508
  # Request-specific options
544
509
  #
545
510
  # @yield [result, err] Result & error if block supplied
546
- # @yieldparam result [Google::Apis::BooksV1::AnnotationData] parsed result object
511
+ # @yieldparam result [Google::Apis::BooksV1::DictionaryAnnotationdata] parsed result object
547
512
  # @yieldparam err [StandardError] error object if request failed
548
513
  #
549
- # @return [Google::Apis::BooksV1::AnnotationData]
514
+ # @return [Google::Apis::BooksV1::DictionaryAnnotationdata]
550
515
  #
551
516
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
552
517
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
553
518
  # @raise [Google::Apis::AuthorizationError] Authorization is required
554
- def get_layer_annotation_data(volume_id, layer_id, annotation_data_id, content_version, allow_web_definitions: nil, h: nil, locale: nil, scale: nil, source: nil, w: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
555
- command = make_simple_command(:get, 'volumes/{volumeId}/layers/{layerId}/data/{annotationDataId}', options)
556
- command.response_representation = Google::Apis::BooksV1::AnnotationData::Representation
557
- command.response_class = Google::Apis::BooksV1::AnnotationData
519
+ def get_layer_annotation_data(volume_id, layer_id, annotation_data_id, allow_web_definitions: nil, content_version: nil, h: nil, locale: nil, scale: nil, source: nil, w: nil, fields: nil, quota_user: nil, options: nil, &block)
520
+ command = make_simple_command(:get, 'books/v1/volumes/{volumeId}/layers/{layerId}/data/{annotationDataId}', options)
521
+ command.response_representation = Google::Apis::BooksV1::DictionaryAnnotationdata::Representation
522
+ command.response_class = Google::Apis::BooksV1::DictionaryAnnotationdata
558
523
  command.params['volumeId'] = volume_id unless volume_id.nil?
559
524
  command.params['layerId'] = layer_id unless layer_id.nil?
560
525
  command.params['annotationDataId'] = annotation_data_id unless annotation_data_id.nil?
@@ -567,7 +532,6 @@ module Google
567
532
  command.query['w'] = w unless w.nil?
568
533
  command.query['fields'] = fields unless fields.nil?
569
534
  command.query['quotaUser'] = quota_user unless quota_user.nil?
570
- command.query['userIp'] = user_ip unless user_ip.nil?
571
535
  execute_or_queue_command(command, &block)
572
536
  end
573
537
 
@@ -576,17 +540,17 @@ module Google
576
540
  # The volume to retrieve annotation data for.
577
541
  # @param [String] layer_id
578
542
  # The ID for the layer to get the annotation data.
543
+ # @param [Array<String>, String] annotation_data_id
544
+ # The list of Annotation Data Ids to retrieve. Pagination is ignored if this
545
+ # is set.
579
546
  # @param [String] content_version
580
547
  # The content version for the requested volume.
581
- # @param [Array<String>, String] annotation_data_id
582
- # The list of Annotation Data Ids to retrieve. Pagination is ignored if this is
583
- # set.
584
548
  # @param [Fixnum] h
585
549
  # The requested pixel height for any images. If height is provided width must
586
550
  # also be provided.
587
551
  # @param [String] locale
588
- # The locale information for the data. ISO-639-1 language and ISO-3166-1 country
589
- # code. Ex: 'en_US'.
552
+ # The locale information for the data. ISO-639-1 language and ISO-3166-1
553
+ # country code. Ex: 'en_US'.
590
554
  # @param [Fixnum] max_results
591
555
  # Maximum number of results to return
592
556
  # @param [String] page_token
@@ -596,21 +560,19 @@ module Google
596
560
  # @param [String] source
597
561
  # String to identify the originator of this request.
598
562
  # @param [String] updated_max
599
- # RFC 3339 timestamp to restrict to items updated prior to this timestamp (
600
- # exclusive).
563
+ # RFC 3339 timestamp to restrict to items updated prior to this timestamp
564
+ # (exclusive).
601
565
  # @param [String] updated_min
602
- # RFC 3339 timestamp to restrict to items updated since this timestamp (
603
- # inclusive).
566
+ # RFC 3339 timestamp to restrict to items updated since this timestamp
567
+ # (inclusive).
604
568
  # @param [Fixnum] w
605
569
  # The requested pixel width for any images. If width is provided height must
606
570
  # also be provided.
607
571
  # @param [String] fields
608
572
  # Selector specifying which fields to include in a partial response.
609
573
  # @param [String] quota_user
610
- # An opaque string that represents a user for quota purposes. Must not exceed 40
611
- # characters.
612
- # @param [String] user_ip
613
- # Deprecated. Please use quotaUser instead.
574
+ # Available to use for quota purposes for server-side applications. Can be any
575
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
614
576
  # @param [Google::Apis::RequestOptions] options
615
577
  # Request-specific options
616
578
  #
@@ -623,8 +585,8 @@ module Google
623
585
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
624
586
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
625
587
  # @raise [Google::Apis::AuthorizationError] Authorization is required
626
- def list_layer_annotation_data(volume_id, layer_id, content_version, annotation_data_id: nil, h: nil, locale: nil, max_results: nil, page_token: nil, scale: nil, source: nil, updated_max: nil, updated_min: nil, w: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
627
- command = make_simple_command(:get, 'volumes/{volumeId}/layers/{layerId}/data', options)
588
+ def list_layer_annotation_data(volume_id, layer_id, annotation_data_id: nil, content_version: nil, h: nil, locale: nil, max_results: nil, page_token: nil, scale: nil, source: nil, updated_max: nil, updated_min: nil, w: nil, fields: nil, quota_user: nil, options: nil, &block)
589
+ command = make_simple_command(:get, 'books/v1/volumes/{volumeId}/layers/{layerId}/data', options)
628
590
  command.response_representation = Google::Apis::BooksV1::AnnotationsData::Representation
629
591
  command.response_class = Google::Apis::BooksV1::AnnotationsData
630
592
  command.params['volumeId'] = volume_id unless volume_id.nil?
@@ -642,7 +604,6 @@ module Google
642
604
  command.query['w'] = w unless w.nil?
643
605
  command.query['fields'] = fields unless fields.nil?
644
606
  command.query['quotaUser'] = quota_user unless quota_user.nil?
645
- command.query['userIp'] = user_ip unless user_ip.nil?
646
607
  execute_or_queue_command(command, &block)
647
608
  end
648
609
 
@@ -654,17 +615,15 @@ module Google
654
615
  # @param [String] annotation_id
655
616
  # The ID of the volume annotation to retrieve.
656
617
  # @param [String] locale
657
- # The locale information for the data. ISO-639-1 language and ISO-3166-1 country
658
- # code. Ex: 'en_US'.
618
+ # The locale information for the data. ISO-639-1 language and ISO-3166-1
619
+ # country code. Ex: 'en_US'.
659
620
  # @param [String] source
660
621
  # String to identify the originator of this request.
661
622
  # @param [String] fields
662
623
  # Selector specifying which fields to include in a partial response.
663
624
  # @param [String] quota_user
664
- # An opaque string that represents a user for quota purposes. Must not exceed 40
665
- # characters.
666
- # @param [String] user_ip
667
- # Deprecated. Please use quotaUser instead.
625
+ # Available to use for quota purposes for server-side applications. Can be any
626
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
668
627
  # @param [Google::Apis::RequestOptions] options
669
628
  # Request-specific options
670
629
  #
@@ -677,8 +636,8 @@ module Google
677
636
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
678
637
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
679
638
  # @raise [Google::Apis::AuthorizationError] Authorization is required
680
- def get_layer_volume_annotation(volume_id, layer_id, annotation_id, locale: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
681
- command = make_simple_command(:get, 'volumes/{volumeId}/layers/{layerId}/annotations/{annotationId}', options)
639
+ def get_layer_volume_annotation(volume_id, layer_id, annotation_id, locale: nil, source: nil, fields: nil, quota_user: nil, options: nil, &block)
640
+ command = make_simple_command(:get, 'books/v1/volumes/{volumeId}/layers/{layerId}/annotations/{annotationId}', options)
682
641
  command.response_representation = Google::Apis::BooksV1::VolumeAnnotation::Representation
683
642
  command.response_class = Google::Apis::BooksV1::VolumeAnnotation
684
643
  command.params['volumeId'] = volume_id unless volume_id.nil?
@@ -688,7 +647,6 @@ module Google
688
647
  command.query['source'] = source unless source.nil?
689
648
  command.query['fields'] = fields unless fields.nil?
690
649
  command.query['quotaUser'] = quota_user unless quota_user.nil?
691
- command.query['userIp'] = user_ip unless user_ip.nil?
692
650
  execute_or_queue_command(command, &block)
693
651
  end
694
652
 
@@ -704,15 +662,15 @@ module Google
704
662
  # @param [String] end_position
705
663
  # The end position to end retrieving data from.
706
664
  # @param [String] locale
707
- # The locale information for the data. ISO-639-1 language and ISO-3166-1 country
708
- # code. Ex: 'en_US'.
665
+ # The locale information for the data. ISO-639-1 language and ISO-3166-1
666
+ # country code. Ex: 'en_US'.
709
667
  # @param [Fixnum] max_results
710
668
  # Maximum number of results to return
711
669
  # @param [String] page_token
712
670
  # The value of the nextToken from the previous page.
713
671
  # @param [Boolean] show_deleted
714
- # Set to true to return deleted annotations. updatedMin must be in the request
715
- # to use this. Defaults to false.
672
+ # Set to true to return deleted annotations. updatedMin must be in the
673
+ # request to use this. Defaults to false.
716
674
  # @param [String] source
717
675
  # String to identify the originator of this request.
718
676
  # @param [String] start_offset
@@ -720,20 +678,18 @@ module Google
720
678
  # @param [String] start_position
721
679
  # The start position to start retrieving data from.
722
680
  # @param [String] updated_max
723
- # RFC 3339 timestamp to restrict to items updated prior to this timestamp (
724
- # exclusive).
681
+ # RFC 3339 timestamp to restrict to items updated prior to this timestamp
682
+ # (exclusive).
725
683
  # @param [String] updated_min
726
- # RFC 3339 timestamp to restrict to items updated since this timestamp (
727
- # inclusive).
684
+ # RFC 3339 timestamp to restrict to items updated since this timestamp
685
+ # (inclusive).
728
686
  # @param [String] volume_annotations_version
729
687
  # The version of the volume annotations that you are requesting.
730
688
  # @param [String] fields
731
689
  # Selector specifying which fields to include in a partial response.
732
690
  # @param [String] quota_user
733
- # An opaque string that represents a user for quota purposes. Must not exceed 40
734
- # characters.
735
- # @param [String] user_ip
736
- # Deprecated. Please use quotaUser instead.
691
+ # Available to use for quota purposes for server-side applications. Can be any
692
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
737
693
  # @param [Google::Apis::RequestOptions] options
738
694
  # Request-specific options
739
695
  #
@@ -746,8 +702,8 @@ module Google
746
702
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
747
703
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
748
704
  # @raise [Google::Apis::AuthorizationError] Authorization is required
749
- def list_layer_volume_annotations(volume_id, layer_id, content_version, end_offset: nil, end_position: nil, locale: nil, max_results: nil, page_token: nil, show_deleted: nil, source: nil, start_offset: nil, start_position: nil, updated_max: nil, updated_min: nil, volume_annotations_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
750
- command = make_simple_command(:get, 'volumes/{volumeId}/layers/{layerId}', options)
705
+ def list_layer_volume_annotations(volume_id, layer_id, content_version: nil, end_offset: nil, end_position: nil, locale: nil, max_results: nil, page_token: nil, show_deleted: nil, source: nil, start_offset: nil, start_position: nil, updated_max: nil, updated_min: nil, volume_annotations_version: nil, fields: nil, quota_user: nil, options: nil, &block)
706
+ command = make_simple_command(:get, 'books/v1/volumes/{volumeId}/layers/{layerId}', options)
751
707
  command.response_representation = Google::Apis::BooksV1::Volumeannotations::Representation
752
708
  command.response_class = Google::Apis::BooksV1::Volumeannotations
753
709
  command.params['volumeId'] = volume_id unless volume_id.nil?
@@ -767,18 +723,17 @@ module Google
767
723
  command.query['volumeAnnotationsVersion'] = volume_annotations_version unless volume_annotations_version.nil?
768
724
  command.query['fields'] = fields unless fields.nil?
769
725
  command.query['quotaUser'] = quota_user unless quota_user.nil?
770
- command.query['userIp'] = user_ip unless user_ip.nil?
771
726
  execute_or_queue_command(command, &block)
772
727
  end
773
728
 
774
729
  # Gets the current settings for the user.
730
+ # @param [String] country
731
+ # Unused. Added only to workaround TEX mandatory request template requirement
775
732
  # @param [String] fields
776
733
  # Selector specifying which fields to include in a partial response.
777
734
  # @param [String] quota_user
778
- # An opaque string that represents a user for quota purposes. Must not exceed 40
779
- # characters.
780
- # @param [String] user_ip
781
- # Deprecated. Please use quotaUser instead.
735
+ # Available to use for quota purposes for server-side applications. Can be any
736
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
782
737
  # @param [Google::Apis::RequestOptions] options
783
738
  # Request-specific options
784
739
  #
@@ -791,32 +746,30 @@ module Google
791
746
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
792
747
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
793
748
  # @raise [Google::Apis::AuthorizationError] Authorization is required
794
- def get_user_settings(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
795
- command = make_simple_command(:get, 'myconfig/getUserSettings', options)
749
+ def get_user_settings(country: nil, fields: nil, quota_user: nil, options: nil, &block)
750
+ command = make_simple_command(:get, 'books/v1/myconfig/getUserSettings', options)
796
751
  command.response_representation = Google::Apis::BooksV1::UserSettings::Representation
797
752
  command.response_class = Google::Apis::BooksV1::UserSettings
753
+ command.query['country'] = country unless country.nil?
798
754
  command.query['fields'] = fields unless fields.nil?
799
755
  command.query['quotaUser'] = quota_user unless quota_user.nil?
800
- command.query['userIp'] = user_ip unless user_ip.nil?
801
756
  execute_or_queue_command(command, &block)
802
757
  end
803
758
 
804
759
  # Release downloaded content access restriction.
805
- # @param [Array<String>, String] volume_ids
806
- # The volume(s) to release restrictions for.
807
760
  # @param [String] cpksver
808
761
  # The device/version ID from which to release the restriction.
809
762
  # @param [String] locale
810
763
  # ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
811
764
  # @param [String] source
812
765
  # String to identify the originator of this request.
766
+ # @param [Array<String>, String] volume_ids
767
+ # The volume(s) to release restrictions for.
813
768
  # @param [String] fields
814
769
  # Selector specifying which fields to include in a partial response.
815
770
  # @param [String] quota_user
816
- # An opaque string that represents a user for quota purposes. Must not exceed 40
817
- # characters.
818
- # @param [String] user_ip
819
- # Deprecated. Please use quotaUser instead.
771
+ # Available to use for quota purposes for server-side applications. Can be any
772
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
820
773
  # @param [Google::Apis::RequestOptions] options
821
774
  # Request-specific options
822
775
  #
@@ -829,8 +782,8 @@ module Google
829
782
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
830
783
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
831
784
  # @raise [Google::Apis::AuthorizationError] Authorization is required
832
- def release_download_access(volume_ids, cpksver, locale: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
833
- command = make_simple_command(:post, 'myconfig/releaseDownloadAccess', options)
785
+ def release_download_access(cpksver: nil, locale: nil, source: nil, volume_ids: nil, fields: nil, quota_user: nil, options: nil, &block)
786
+ command = make_simple_command(:post, 'books/v1/myconfig/releaseDownloadAccess', options)
834
787
  command.response_representation = Google::Apis::BooksV1::DownloadAccesses::Representation
835
788
  command.response_class = Google::Apis::BooksV1::DownloadAccesses
836
789
  command.query['cpksver'] = cpksver unless cpksver.nil?
@@ -839,46 +792,44 @@ module Google
839
792
  command.query['volumeIds'] = volume_ids unless volume_ids.nil?
840
793
  command.query['fields'] = fields unless fields.nil?
841
794
  command.query['quotaUser'] = quota_user unless quota_user.nil?
842
- command.query['userIp'] = user_ip unless user_ip.nil?
843
795
  execute_or_queue_command(command, &block)
844
796
  end
845
797
 
846
798
  # Request concurrent and download access restrictions.
847
- # @param [String] source
848
- # String to identify the originator of this request.
849
- # @param [String] volume_id
850
- # The volume to request concurrent/download restrictions for.
851
- # @param [String] nonce
852
- # The client nonce value.
853
799
  # @param [String] cpksver
854
800
  # The device/version ID from which to request the restrictions.
855
801
  # @param [String] license_types
856
- # The type of access license to request. If not specified, the default is BOTH.
802
+ # The type of access license to request. If not specified, the default is
803
+ # BOTH.
857
804
  # @param [String] locale
858
805
  # ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
806
+ # @param [String] nonce
807
+ # The client nonce value.
808
+ # @param [String] source
809
+ # String to identify the originator of this request.
810
+ # @param [String] volume_id
811
+ # The volume to request concurrent/download restrictions for.
859
812
  # @param [String] fields
860
813
  # Selector specifying which fields to include in a partial response.
861
814
  # @param [String] quota_user
862
- # An opaque string that represents a user for quota purposes. Must not exceed 40
863
- # characters.
864
- # @param [String] user_ip
865
- # Deprecated. Please use quotaUser instead.
815
+ # Available to use for quota purposes for server-side applications. Can be any
816
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
866
817
  # @param [Google::Apis::RequestOptions] options
867
818
  # Request-specific options
868
819
  #
869
820
  # @yield [result, err] Result & error if block supplied
870
- # @yieldparam result [Google::Apis::BooksV1::RequestAccess] parsed result object
821
+ # @yieldparam result [Google::Apis::BooksV1::RequestAccessData] parsed result object
871
822
  # @yieldparam err [StandardError] error object if request failed
872
823
  #
873
- # @return [Google::Apis::BooksV1::RequestAccess]
824
+ # @return [Google::Apis::BooksV1::RequestAccessData]
874
825
  #
875
826
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
876
827
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
877
828
  # @raise [Google::Apis::AuthorizationError] Authorization is required
878
- def request_access(source, volume_id, nonce, cpksver, license_types: nil, locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
879
- command = make_simple_command(:post, 'myconfig/requestAccess', options)
880
- command.response_representation = Google::Apis::BooksV1::RequestAccess::Representation
881
- command.response_class = Google::Apis::BooksV1::RequestAccess
829
+ def request_access(cpksver: nil, license_types: nil, locale: nil, nonce: nil, source: nil, volume_id: nil, fields: nil, quota_user: nil, options: nil, &block)
830
+ command = make_simple_command(:post, 'books/v1/myconfig/requestAccess', options)
831
+ command.response_representation = Google::Apis::BooksV1::RequestAccessData::Representation
832
+ command.response_class = Google::Apis::BooksV1::RequestAccessData
882
833
  command.query['cpksver'] = cpksver unless cpksver.nil?
883
834
  command.query['licenseTypes'] = license_types unless license_types.nil?
884
835
  command.query['locale'] = locale unless locale.nil?
@@ -887,15 +838,11 @@ module Google
887
838
  command.query['volumeId'] = volume_id unless volume_id.nil?
888
839
  command.query['fields'] = fields unless fields.nil?
889
840
  command.query['quotaUser'] = quota_user unless quota_user.nil?
890
- command.query['userIp'] = user_ip unless user_ip.nil?
891
841
  execute_or_queue_command(command, &block)
892
842
  end
893
843
 
894
- # Request downloaded content access for specified volumes on the My eBooks shelf.
895
- # @param [String] source
896
- # String to identify the originator of this request.
897
- # @param [String] nonce
898
- # The client nonce value.
844
+ # Request downloaded content access for specified volumes on the My eBooks
845
+ # shelf.
899
846
  # @param [String] cpksver
900
847
  # The device/version ID from which to release the restriction.
901
848
  # @param [Array<String>, String] features
@@ -904,17 +851,19 @@ module Google
904
851
  # Set to true to include non-comics series. Defaults to false.
905
852
  # @param [String] locale
906
853
  # ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
854
+ # @param [String] nonce
855
+ # The client nonce value.
907
856
  # @param [Boolean] show_preorders
908
857
  # Set to true to show pre-ordered books. Defaults to false.
858
+ # @param [String] source
859
+ # String to identify the originator of this request.
909
860
  # @param [Array<String>, String] volume_ids
910
861
  # The volume(s) to request download restrictions for.
911
862
  # @param [String] fields
912
863
  # Selector specifying which fields to include in a partial response.
913
864
  # @param [String] quota_user
914
- # An opaque string that represents a user for quota purposes. Must not exceed 40
915
- # characters.
916
- # @param [String] user_ip
917
- # Deprecated. Please use quotaUser instead.
865
+ # Available to use for quota purposes for server-side applications. Can be any
866
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
918
867
  # @param [Google::Apis::RequestOptions] options
919
868
  # Request-specific options
920
869
  #
@@ -927,8 +876,8 @@ module Google
927
876
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
928
877
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
929
878
  # @raise [Google::Apis::AuthorizationError] Authorization is required
930
- def sync_volume_licenses(source, nonce, cpksver, features: nil, include_non_comics_series: nil, locale: nil, show_preorders: nil, volume_ids: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
931
- command = make_simple_command(:post, 'myconfig/syncVolumeLicenses', options)
879
+ def sync_volume_licenses(cpksver: nil, features: nil, include_non_comics_series: nil, locale: nil, nonce: nil, show_preorders: nil, source: nil, volume_ids: nil, fields: nil, quota_user: nil, options: nil, &block)
880
+ command = make_simple_command(:post, 'books/v1/myconfig/syncVolumeLicenses', options)
932
881
  command.response_representation = Google::Apis::BooksV1::Volumes::Representation
933
882
  command.response_class = Google::Apis::BooksV1::Volumes
934
883
  command.query['cpksver'] = cpksver unless cpksver.nil?
@@ -941,21 +890,18 @@ module Google
941
890
  command.query['volumeIds'] = volume_ids unless volume_ids.nil?
942
891
  command.query['fields'] = fields unless fields.nil?
943
892
  command.query['quotaUser'] = quota_user unless quota_user.nil?
944
- command.query['userIp'] = user_ip unless user_ip.nil?
945
893
  execute_or_queue_command(command, &block)
946
894
  end
947
895
 
948
896
  # Sets the settings for the user. If a sub-object is specified, it will
949
- # overwrite the existing sub-object stored in the server. Unspecified sub-
950
- # objects will retain the existing value.
897
+ # overwrite the existing sub-object stored in the server. Unspecified
898
+ # sub-objects will retain the existing value.
951
899
  # @param [Google::Apis::BooksV1::UserSettings] user_settings_object
952
900
  # @param [String] fields
953
901
  # Selector specifying which fields to include in a partial response.
954
902
  # @param [String] quota_user
955
- # An opaque string that represents a user for quota purposes. Must not exceed 40
956
- # characters.
957
- # @param [String] user_ip
958
- # Deprecated. Please use quotaUser instead.
903
+ # Available to use for quota purposes for server-side applications. Can be any
904
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
959
905
  # @param [Google::Apis::RequestOptions] options
960
906
  # Request-specific options
961
907
  #
@@ -968,15 +914,14 @@ module Google
968
914
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
969
915
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
970
916
  # @raise [Google::Apis::AuthorizationError] Authorization is required
971
- def update_user_settings(user_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
972
- command = make_simple_command(:post, 'myconfig/updateUserSettings', options)
917
+ def update_user_settings(user_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block)
918
+ command = make_simple_command(:post, 'books/v1/myconfig/updateUserSettings', options)
973
919
  command.request_representation = Google::Apis::BooksV1::UserSettings::Representation
974
920
  command.request_object = user_settings_object
975
921
  command.response_representation = Google::Apis::BooksV1::UserSettings::Representation
976
922
  command.response_class = Google::Apis::BooksV1::UserSettings
977
923
  command.query['fields'] = fields unless fields.nil?
978
924
  command.query['quotaUser'] = quota_user unless quota_user.nil?
979
- command.query['userIp'] = user_ip unless user_ip.nil?
980
925
  execute_or_queue_command(command, &block)
981
926
  end
982
927
 
@@ -988,29 +933,28 @@ module Google
988
933
  # @param [String] fields
989
934
  # Selector specifying which fields to include in a partial response.
990
935
  # @param [String] quota_user
991
- # An opaque string that represents a user for quota purposes. Must not exceed 40
992
- # characters.
993
- # @param [String] user_ip
994
- # Deprecated. Please use quotaUser instead.
936
+ # Available to use for quota purposes for server-side applications. Can be any
937
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
995
938
  # @param [Google::Apis::RequestOptions] options
996
939
  # Request-specific options
997
940
  #
998
941
  # @yield [result, err] Result & error if block supplied
999
- # @yieldparam result [NilClass] No result returned for this method
942
+ # @yieldparam result [Google::Apis::BooksV1::Empty] parsed result object
1000
943
  # @yieldparam err [StandardError] error object if request failed
1001
944
  #
1002
- # @return [void]
945
+ # @return [Google::Apis::BooksV1::Empty]
1003
946
  #
1004
947
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1005
948
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1006
949
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1007
- def delete_my_library_annotation(annotation_id, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1008
- command = make_simple_command(:delete, 'mylibrary/annotations/{annotationId}', options)
950
+ def delete_my_library_annotation(annotation_id, source: nil, fields: nil, quota_user: nil, options: nil, &block)
951
+ command = make_simple_command(:delete, 'books/v1/mylibrary/annotations/{annotationId}', options)
952
+ command.response_representation = Google::Apis::BooksV1::Empty::Representation
953
+ command.response_class = Google::Apis::BooksV1::Empty
1009
954
  command.params['annotationId'] = annotation_id unless annotation_id.nil?
1010
955
  command.query['source'] = source unless source.nil?
1011
956
  command.query['fields'] = fields unless fields.nil?
1012
957
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1013
- command.query['userIp'] = user_ip unless user_ip.nil?
1014
958
  execute_or_queue_command(command, &block)
1015
959
  end
1016
960
 
@@ -1028,10 +972,8 @@ module Google
1028
972
  # @param [String] fields
1029
973
  # Selector specifying which fields to include in a partial response.
1030
974
  # @param [String] quota_user
1031
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1032
- # characters.
1033
- # @param [String] user_ip
1034
- # Deprecated. Please use quotaUser instead.
975
+ # Available to use for quota purposes for server-side applications. Can be any
976
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1035
977
  # @param [Google::Apis::RequestOptions] options
1036
978
  # Request-specific options
1037
979
  #
@@ -1044,8 +986,8 @@ module Google
1044
986
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1045
987
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1046
988
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1047
- def insert_my_library_annotation(annotation_object = nil, annotation_id: nil, country: nil, show_only_summary_in_response: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1048
- command = make_simple_command(:post, 'mylibrary/annotations', options)
989
+ def insert_my_library_annotation(annotation_object = nil, annotation_id: nil, country: nil, show_only_summary_in_response: nil, source: nil, fields: nil, quota_user: nil, options: nil, &block)
990
+ command = make_simple_command(:post, 'books/v1/mylibrary/annotations', options)
1049
991
  command.request_representation = Google::Apis::BooksV1::Annotation::Representation
1050
992
  command.request_object = annotation_object
1051
993
  command.response_representation = Google::Apis::BooksV1::Annotation::Representation
@@ -1056,7 +998,6 @@ module Google
1056
998
  command.query['source'] = source unless source.nil?
1057
999
  command.query['fields'] = fields unless fields.nil?
1058
1000
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1059
- command.query['userIp'] = user_ip unless user_ip.nil?
1060
1001
  execute_or_queue_command(command, &block)
1061
1002
  end
1062
1003
 
@@ -1072,25 +1013,23 @@ module Google
1072
1013
  # @param [String] page_token
1073
1014
  # The value of the nextToken from the previous page.
1074
1015
  # @param [Boolean] show_deleted
1075
- # Set to true to return deleted annotations. updatedMin must be in the request
1076
- # to use this. Defaults to false.
1016
+ # Set to true to return deleted annotations. updatedMin must be in the
1017
+ # request to use this. Defaults to false.
1077
1018
  # @param [String] source
1078
1019
  # String to identify the originator of this request.
1079
1020
  # @param [String] updated_max
1080
- # RFC 3339 timestamp to restrict to items updated prior to this timestamp (
1081
- # exclusive).
1021
+ # RFC 3339 timestamp to restrict to items updated prior to this timestamp
1022
+ # (exclusive).
1082
1023
  # @param [String] updated_min
1083
- # RFC 3339 timestamp to restrict to items updated since this timestamp (
1084
- # inclusive).
1024
+ # RFC 3339 timestamp to restrict to items updated since this timestamp
1025
+ # (inclusive).
1085
1026
  # @param [String] volume_id
1086
1027
  # The volume to restrict annotations to.
1087
1028
  # @param [String] fields
1088
1029
  # Selector specifying which fields to include in a partial response.
1089
1030
  # @param [String] quota_user
1090
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1091
- # characters.
1092
- # @param [String] user_ip
1093
- # Deprecated. Please use quotaUser instead.
1031
+ # Available to use for quota purposes for server-side applications. Can be any
1032
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1094
1033
  # @param [Google::Apis::RequestOptions] options
1095
1034
  # Request-specific options
1096
1035
  #
@@ -1103,8 +1042,8 @@ module Google
1103
1042
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1104
1043
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1105
1044
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1106
- def list_my_library_annotations(content_version: nil, layer_id: nil, layer_ids: nil, max_results: nil, page_token: nil, show_deleted: nil, source: nil, updated_max: nil, updated_min: nil, volume_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1107
- command = make_simple_command(:get, 'mylibrary/annotations', options)
1045
+ def list_my_library_annotations(content_version: nil, layer_id: nil, layer_ids: nil, max_results: nil, page_token: nil, show_deleted: nil, source: nil, updated_max: nil, updated_min: nil, volume_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1046
+ command = make_simple_command(:get, 'books/v1/mylibrary/annotations', options)
1108
1047
  command.response_representation = Google::Apis::BooksV1::Annotations::Representation
1109
1048
  command.response_class = Google::Apis::BooksV1::Annotations
1110
1049
  command.query['contentVersion'] = content_version unless content_version.nil?
@@ -1119,7 +1058,6 @@ module Google
1119
1058
  command.query['volumeId'] = volume_id unless volume_id.nil?
1120
1059
  command.query['fields'] = fields unless fields.nil?
1121
1060
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1122
- command.query['userIp'] = user_ip unless user_ip.nil?
1123
1061
  execute_or_queue_command(command, &block)
1124
1062
  end
1125
1063
 
@@ -1131,10 +1069,8 @@ module Google
1131
1069
  # @param [String] fields
1132
1070
  # Selector specifying which fields to include in a partial response.
1133
1071
  # @param [String] quota_user
1134
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1135
- # characters.
1136
- # @param [String] user_ip
1137
- # Deprecated. Please use quotaUser instead.
1072
+ # Available to use for quota purposes for server-side applications. Can be any
1073
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1138
1074
  # @param [Google::Apis::RequestOptions] options
1139
1075
  # Request-specific options
1140
1076
  #
@@ -1147,15 +1083,14 @@ module Google
1147
1083
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1148
1084
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1149
1085
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1150
- def summarize_my_library_annotation(layer_ids, volume_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1151
- command = make_simple_command(:post, 'mylibrary/annotations/summary', options)
1086
+ def summarize_my_library_annotation(layer_ids: nil, volume_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1087
+ command = make_simple_command(:post, 'books/v1/mylibrary/annotations/summary', options)
1152
1088
  command.response_representation = Google::Apis::BooksV1::AnnotationsSummary::Representation
1153
1089
  command.response_class = Google::Apis::BooksV1::AnnotationsSummary
1154
1090
  command.query['layerIds'] = layer_ids unless layer_ids.nil?
1155
1091
  command.query['volumeId'] = volume_id unless volume_id.nil?
1156
1092
  command.query['fields'] = fields unless fields.nil?
1157
1093
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1158
- command.query['userIp'] = user_ip unless user_ip.nil?
1159
1094
  execute_or_queue_command(command, &block)
1160
1095
  end
1161
1096
 
@@ -1168,10 +1103,8 @@ module Google
1168
1103
  # @param [String] fields
1169
1104
  # Selector specifying which fields to include in a partial response.
1170
1105
  # @param [String] quota_user
1171
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1172
- # characters.
1173
- # @param [String] user_ip
1174
- # Deprecated. Please use quotaUser instead.
1106
+ # Available to use for quota purposes for server-side applications. Can be any
1107
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1175
1108
  # @param [Google::Apis::RequestOptions] options
1176
1109
  # Request-specific options
1177
1110
  #
@@ -1184,8 +1117,8 @@ module Google
1184
1117
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1185
1118
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1186
1119
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1187
- def update_my_library_annotation(annotation_id, annotation_object = nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1188
- command = make_simple_command(:put, 'mylibrary/annotations/{annotationId}', options)
1120
+ def update_my_library_annotation(annotation_id, annotation_object = nil, source: nil, fields: nil, quota_user: nil, options: nil, &block)
1121
+ command = make_simple_command(:put, 'books/v1/mylibrary/annotations/{annotationId}', options)
1189
1122
  command.request_representation = Google::Apis::BooksV1::Annotation::Representation
1190
1123
  command.request_object = annotation_object
1191
1124
  command.response_representation = Google::Apis::BooksV1::Annotation::Representation
@@ -1194,47 +1127,45 @@ module Google
1194
1127
  command.query['source'] = source unless source.nil?
1195
1128
  command.query['fields'] = fields unless fields.nil?
1196
1129
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1197
- command.query['userIp'] = user_ip unless user_ip.nil?
1198
1130
  execute_or_queue_command(command, &block)
1199
1131
  end
1200
1132
 
1201
1133
  # Adds a volume to a bookshelf.
1202
1134
  # @param [String] shelf
1203
1135
  # ID of bookshelf to which to add a volume.
1204
- # @param [String] volume_id
1205
- # ID of volume to add.
1206
1136
  # @param [String] reason
1207
1137
  # The reason for which the book is added to the library.
1208
1138
  # @param [String] source
1209
1139
  # String to identify the originator of this request.
1140
+ # @param [String] volume_id
1141
+ # ID of volume to add.
1210
1142
  # @param [String] fields
1211
1143
  # Selector specifying which fields to include in a partial response.
1212
1144
  # @param [String] quota_user
1213
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1214
- # characters.
1215
- # @param [String] user_ip
1216
- # Deprecated. Please use quotaUser instead.
1145
+ # Available to use for quota purposes for server-side applications. Can be any
1146
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1217
1147
  # @param [Google::Apis::RequestOptions] options
1218
1148
  # Request-specific options
1219
1149
  #
1220
1150
  # @yield [result, err] Result & error if block supplied
1221
- # @yieldparam result [NilClass] No result returned for this method
1151
+ # @yieldparam result [Google::Apis::BooksV1::Empty] parsed result object
1222
1152
  # @yieldparam err [StandardError] error object if request failed
1223
1153
  #
1224
- # @return [void]
1154
+ # @return [Google::Apis::BooksV1::Empty]
1225
1155
  #
1226
1156
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1227
1157
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1228
1158
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1229
- def add_my_library_volume(shelf, volume_id, reason: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1230
- command = make_simple_command(:post, 'mylibrary/bookshelves/{shelf}/addVolume', options)
1159
+ def add_my_library_volume(shelf, reason: nil, source: nil, volume_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1160
+ command = make_simple_command(:post, 'books/v1/mylibrary/bookshelves/{shelf}/addVolume', options)
1161
+ command.response_representation = Google::Apis::BooksV1::Empty::Representation
1162
+ command.response_class = Google::Apis::BooksV1::Empty
1231
1163
  command.params['shelf'] = shelf unless shelf.nil?
1232
1164
  command.query['reason'] = reason unless reason.nil?
1233
1165
  command.query['source'] = source unless source.nil?
1234
1166
  command.query['volumeId'] = volume_id unless volume_id.nil?
1235
1167
  command.query['fields'] = fields unless fields.nil?
1236
1168
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1237
- command.query['userIp'] = user_ip unless user_ip.nil?
1238
1169
  execute_or_queue_command(command, &block)
1239
1170
  end
1240
1171
 
@@ -1246,29 +1177,28 @@ module Google
1246
1177
  # @param [String] fields
1247
1178
  # Selector specifying which fields to include in a partial response.
1248
1179
  # @param [String] quota_user
1249
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1250
- # characters.
1251
- # @param [String] user_ip
1252
- # Deprecated. Please use quotaUser instead.
1180
+ # Available to use for quota purposes for server-side applications. Can be any
1181
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1253
1182
  # @param [Google::Apis::RequestOptions] options
1254
1183
  # Request-specific options
1255
1184
  #
1256
1185
  # @yield [result, err] Result & error if block supplied
1257
- # @yieldparam result [NilClass] No result returned for this method
1186
+ # @yieldparam result [Google::Apis::BooksV1::Empty] parsed result object
1258
1187
  # @yieldparam err [StandardError] error object if request failed
1259
1188
  #
1260
- # @return [void]
1189
+ # @return [Google::Apis::BooksV1::Empty]
1261
1190
  #
1262
1191
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1263
1192
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1264
1193
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1265
- def clear_my_library_volumes(shelf, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1266
- command = make_simple_command(:post, 'mylibrary/bookshelves/{shelf}/clearVolumes', options)
1194
+ def clear_my_library_volumes(shelf, source: nil, fields: nil, quota_user: nil, options: nil, &block)
1195
+ command = make_simple_command(:post, 'books/v1/mylibrary/bookshelves/{shelf}/clearVolumes', options)
1196
+ command.response_representation = Google::Apis::BooksV1::Empty::Representation
1197
+ command.response_class = Google::Apis::BooksV1::Empty
1267
1198
  command.params['shelf'] = shelf unless shelf.nil?
1268
1199
  command.query['source'] = source unless source.nil?
1269
1200
  command.query['fields'] = fields unless fields.nil?
1270
1201
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1271
- command.query['userIp'] = user_ip unless user_ip.nil?
1272
1202
  execute_or_queue_command(command, &block)
1273
1203
  end
1274
1204
 
@@ -1281,10 +1211,8 @@ module Google
1281
1211
  # @param [String] fields
1282
1212
  # Selector specifying which fields to include in a partial response.
1283
1213
  # @param [String] quota_user
1284
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1285
- # characters.
1286
- # @param [String] user_ip
1287
- # Deprecated. Please use quotaUser instead.
1214
+ # Available to use for quota purposes for server-side applications. Can be any
1215
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1288
1216
  # @param [Google::Apis::RequestOptions] options
1289
1217
  # Request-specific options
1290
1218
  #
@@ -1297,15 +1225,14 @@ module Google
1297
1225
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1298
1226
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1299
1227
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1300
- def get_my_library_bookshelf(shelf, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1301
- command = make_simple_command(:get, 'mylibrary/bookshelves/{shelf}', options)
1228
+ def get_my_library_bookshelf(shelf, source: nil, fields: nil, quota_user: nil, options: nil, &block)
1229
+ command = make_simple_command(:get, 'books/v1/mylibrary/bookshelves/{shelf}', options)
1302
1230
  command.response_representation = Google::Apis::BooksV1::Bookshelf::Representation
1303
1231
  command.response_class = Google::Apis::BooksV1::Bookshelf
1304
1232
  command.params['shelf'] = shelf unless shelf.nil?
1305
1233
  command.query['source'] = source unless source.nil?
1306
1234
  command.query['fields'] = fields unless fields.nil?
1307
1235
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1308
- command.query['userIp'] = user_ip unless user_ip.nil?
1309
1236
  execute_or_queue_command(command, &block)
1310
1237
  end
1311
1238
 
@@ -1315,10 +1242,8 @@ module Google
1315
1242
  # @param [String] fields
1316
1243
  # Selector specifying which fields to include in a partial response.
1317
1244
  # @param [String] quota_user
1318
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1319
- # characters.
1320
- # @param [String] user_ip
1321
- # Deprecated. Please use quotaUser instead.
1245
+ # Available to use for quota purposes for server-side applications. Can be any
1246
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1322
1247
  # @param [Google::Apis::RequestOptions] options
1323
1248
  # Request-specific options
1324
1249
  #
@@ -1331,95 +1256,92 @@ module Google
1331
1256
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1332
1257
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1333
1258
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1334
- def list_my_library_bookshelves(source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1335
- command = make_simple_command(:get, 'mylibrary/bookshelves', options)
1259
+ def list_my_library_bookshelves(source: nil, fields: nil, quota_user: nil, options: nil, &block)
1260
+ command = make_simple_command(:get, 'books/v1/mylibrary/bookshelves', options)
1336
1261
  command.response_representation = Google::Apis::BooksV1::Bookshelves::Representation
1337
1262
  command.response_class = Google::Apis::BooksV1::Bookshelves
1338
1263
  command.query['source'] = source unless source.nil?
1339
1264
  command.query['fields'] = fields unless fields.nil?
1340
1265
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1341
- command.query['userIp'] = user_ip unless user_ip.nil?
1342
1266
  execute_or_queue_command(command, &block)
1343
1267
  end
1344
1268
 
1345
1269
  # Moves a volume within a bookshelf.
1346
1270
  # @param [String] shelf
1347
1271
  # ID of bookshelf with the volume.
1272
+ # @param [String] source
1273
+ # String to identify the originator of this request.
1348
1274
  # @param [String] volume_id
1349
1275
  # ID of volume to move.
1350
1276
  # @param [Fixnum] volume_position
1351
- # Position on shelf to move the item (0 puts the item before the current first
1352
- # item, 1 puts it between the first and the second and so on.)
1353
- # @param [String] source
1354
- # String to identify the originator of this request.
1277
+ # Position on shelf to move the item (0 puts the item before the current
1278
+ # first item, 1 puts it between the first and the second and so on.)
1355
1279
  # @param [String] fields
1356
1280
  # Selector specifying which fields to include in a partial response.
1357
1281
  # @param [String] quota_user
1358
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1359
- # characters.
1360
- # @param [String] user_ip
1361
- # Deprecated. Please use quotaUser instead.
1282
+ # Available to use for quota purposes for server-side applications. Can be any
1283
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1362
1284
  # @param [Google::Apis::RequestOptions] options
1363
1285
  # Request-specific options
1364
1286
  #
1365
1287
  # @yield [result, err] Result & error if block supplied
1366
- # @yieldparam result [NilClass] No result returned for this method
1288
+ # @yieldparam result [Google::Apis::BooksV1::Empty] parsed result object
1367
1289
  # @yieldparam err [StandardError] error object if request failed
1368
1290
  #
1369
- # @return [void]
1291
+ # @return [Google::Apis::BooksV1::Empty]
1370
1292
  #
1371
1293
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1372
1294
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1373
1295
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1374
- def move_my_library_volume(shelf, volume_id, volume_position, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1375
- command = make_simple_command(:post, 'mylibrary/bookshelves/{shelf}/moveVolume', options)
1296
+ def move_my_library_volume(shelf, source: nil, volume_id: nil, volume_position: nil, fields: nil, quota_user: nil, options: nil, &block)
1297
+ command = make_simple_command(:post, 'books/v1/mylibrary/bookshelves/{shelf}/moveVolume', options)
1298
+ command.response_representation = Google::Apis::BooksV1::Empty::Representation
1299
+ command.response_class = Google::Apis::BooksV1::Empty
1376
1300
  command.params['shelf'] = shelf unless shelf.nil?
1377
1301
  command.query['source'] = source unless source.nil?
1378
1302
  command.query['volumeId'] = volume_id unless volume_id.nil?
1379
1303
  command.query['volumePosition'] = volume_position unless volume_position.nil?
1380
1304
  command.query['fields'] = fields unless fields.nil?
1381
1305
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1382
- command.query['userIp'] = user_ip unless user_ip.nil?
1383
1306
  execute_or_queue_command(command, &block)
1384
1307
  end
1385
1308
 
1386
1309
  # Removes a volume from a bookshelf.
1387
1310
  # @param [String] shelf
1388
1311
  # ID of bookshelf from which to remove a volume.
1389
- # @param [String] volume_id
1390
- # ID of volume to remove.
1391
1312
  # @param [String] reason
1392
1313
  # The reason for which the book is removed from the library.
1393
1314
  # @param [String] source
1394
1315
  # String to identify the originator of this request.
1316
+ # @param [String] volume_id
1317
+ # ID of volume to remove.
1395
1318
  # @param [String] fields
1396
1319
  # Selector specifying which fields to include in a partial response.
1397
1320
  # @param [String] quota_user
1398
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1399
- # characters.
1400
- # @param [String] user_ip
1401
- # Deprecated. Please use quotaUser instead.
1321
+ # Available to use for quota purposes for server-side applications. Can be any
1322
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1402
1323
  # @param [Google::Apis::RequestOptions] options
1403
1324
  # Request-specific options
1404
1325
  #
1405
1326
  # @yield [result, err] Result & error if block supplied
1406
- # @yieldparam result [NilClass] No result returned for this method
1327
+ # @yieldparam result [Google::Apis::BooksV1::Empty] parsed result object
1407
1328
  # @yieldparam err [StandardError] error object if request failed
1408
1329
  #
1409
- # @return [void]
1330
+ # @return [Google::Apis::BooksV1::Empty]
1410
1331
  #
1411
1332
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1412
1333
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1413
1334
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1414
- def remove_my_library_volume(shelf, volume_id, reason: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1415
- command = make_simple_command(:post, 'mylibrary/bookshelves/{shelf}/removeVolume', options)
1335
+ def remove_my_library_volume(shelf, reason: nil, source: nil, volume_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1336
+ command = make_simple_command(:post, 'books/v1/mylibrary/bookshelves/{shelf}/removeVolume', options)
1337
+ command.response_representation = Google::Apis::BooksV1::Empty::Representation
1338
+ command.response_class = Google::Apis::BooksV1::Empty
1416
1339
  command.params['shelf'] = shelf unless shelf.nil?
1417
1340
  command.query['reason'] = reason unless reason.nil?
1418
1341
  command.query['source'] = source unless source.nil?
1419
1342
  command.query['volumeId'] = volume_id unless volume_id.nil?
1420
1343
  command.query['fields'] = fields unless fields.nil?
1421
1344
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1422
- command.query['userIp'] = user_ip unless user_ip.nil?
1423
1345
  execute_or_queue_command(command, &block)
1424
1346
  end
1425
1347
 
@@ -1443,10 +1365,8 @@ module Google
1443
1365
  # @param [String] fields
1444
1366
  # Selector specifying which fields to include in a partial response.
1445
1367
  # @param [String] quota_user
1446
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1447
- # characters.
1448
- # @param [String] user_ip
1449
- # Deprecated. Please use quotaUser instead.
1368
+ # Available to use for quota purposes for server-side applications. Can be any
1369
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1450
1370
  # @param [Google::Apis::RequestOptions] options
1451
1371
  # Request-specific options
1452
1372
  #
@@ -1459,8 +1379,8 @@ module Google
1459
1379
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1460
1380
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1461
1381
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1462
- def list_my_library_volumes(shelf, country: nil, max_results: nil, projection: nil, q: nil, show_preorders: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1463
- command = make_simple_command(:get, 'mylibrary/bookshelves/{shelf}/volumes', options)
1382
+ def list_my_library_volumes(shelf, country: nil, max_results: nil, projection: nil, q: nil, show_preorders: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, options: nil, &block)
1383
+ command = make_simple_command(:get, 'books/v1/mylibrary/bookshelves/{shelf}/volumes', options)
1464
1384
  command.response_representation = Google::Apis::BooksV1::Volumes::Representation
1465
1385
  command.response_class = Google::Apis::BooksV1::Volumes
1466
1386
  command.params['shelf'] = shelf unless shelf.nil?
@@ -1473,7 +1393,6 @@ module Google
1473
1393
  command.query['startIndex'] = start_index unless start_index.nil?
1474
1394
  command.query['fields'] = fields unless fields.nil?
1475
1395
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1476
- command.query['userIp'] = user_ip unless user_ip.nil?
1477
1396
  execute_or_queue_command(command, &block)
1478
1397
  end
1479
1398
 
@@ -1487,10 +1406,8 @@ module Google
1487
1406
  # @param [String] fields
1488
1407
  # Selector specifying which fields to include in a partial response.
1489
1408
  # @param [String] quota_user
1490
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1491
- # characters.
1492
- # @param [String] user_ip
1493
- # Deprecated. Please use quotaUser instead.
1409
+ # Available to use for quota purposes for server-side applications. Can be any
1410
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1494
1411
  # @param [Google::Apis::RequestOptions] options
1495
1412
  # Request-specific options
1496
1413
  #
@@ -1503,8 +1420,8 @@ module Google
1503
1420
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1504
1421
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1505
1422
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1506
- def get_my_library_reading_position(volume_id, content_version: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1507
- command = make_simple_command(:get, 'mylibrary/readingpositions/{volumeId}', options)
1423
+ def get_my_library_reading_position(volume_id, content_version: nil, source: nil, fields: nil, quota_user: nil, options: nil, &block)
1424
+ command = make_simple_command(:get, 'books/v1/mylibrary/readingpositions/{volumeId}', options)
1508
1425
  command.response_representation = Google::Apis::BooksV1::ReadingPosition::Representation
1509
1426
  command.response_class = Google::Apis::BooksV1::ReadingPosition
1510
1427
  command.params['volumeId'] = volume_id unless volume_id.nil?
@@ -1512,46 +1429,45 @@ module Google
1512
1429
  command.query['source'] = source unless source.nil?
1513
1430
  command.query['fields'] = fields unless fields.nil?
1514
1431
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1515
- command.query['userIp'] = user_ip unless user_ip.nil?
1516
1432
  execute_or_queue_command(command, &block)
1517
1433
  end
1518
1434
 
1519
1435
  # Sets my reading position information for a volume.
1520
1436
  # @param [String] volume_id
1521
1437
  # ID of volume for which to update the reading position.
1522
- # @param [String] timestamp
1523
- # RFC 3339 UTC format timestamp associated with this reading position.
1524
- # @param [String] position
1525
- # Position string for the new volume reading position.
1526
1438
  # @param [String] action
1527
1439
  # Action that caused this reading position to be set.
1528
1440
  # @param [String] content_version
1529
1441
  # Volume content version for which this reading position applies.
1530
1442
  # @param [String] device_cookie
1531
1443
  # Random persistent device cookie optional on set position.
1444
+ # @param [String] position
1445
+ # Position string for the new volume reading position.
1532
1446
  # @param [String] source
1533
1447
  # String to identify the originator of this request.
1448
+ # @param [String] timestamp
1449
+ # RFC 3339 UTC format timestamp associated with this reading position.
1534
1450
  # @param [String] fields
1535
1451
  # Selector specifying which fields to include in a partial response.
1536
1452
  # @param [String] quota_user
1537
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1538
- # characters.
1539
- # @param [String] user_ip
1540
- # Deprecated. Please use quotaUser instead.
1453
+ # Available to use for quota purposes for server-side applications. Can be any
1454
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1541
1455
  # @param [Google::Apis::RequestOptions] options
1542
1456
  # Request-specific options
1543
1457
  #
1544
1458
  # @yield [result, err] Result & error if block supplied
1545
- # @yieldparam result [NilClass] No result returned for this method
1459
+ # @yieldparam result [Google::Apis::BooksV1::Empty] parsed result object
1546
1460
  # @yieldparam err [StandardError] error object if request failed
1547
1461
  #
1548
- # @return [void]
1462
+ # @return [Google::Apis::BooksV1::Empty]
1549
1463
  #
1550
1464
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1551
1465
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1552
1466
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1553
- def set_my_library_reading_position(volume_id, timestamp, position, action: nil, content_version: nil, device_cookie: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1554
- command = make_simple_command(:post, 'mylibrary/readingpositions/{volumeId}/setPosition', options)
1467
+ def set_my_library_reading_position(volume_id, action: nil, content_version: nil, device_cookie: nil, position: nil, source: nil, timestamp: nil, fields: nil, quota_user: nil, options: nil, &block)
1468
+ command = make_simple_command(:post, 'books/v1/mylibrary/readingpositions/{volumeId}/setPosition', options)
1469
+ command.response_representation = Google::Apis::BooksV1::Empty::Representation
1470
+ command.response_class = Google::Apis::BooksV1::Empty
1555
1471
  command.params['volumeId'] = volume_id unless volume_id.nil?
1556
1472
  command.query['action'] = action unless action.nil?
1557
1473
  command.query['contentVersion'] = content_version unless content_version.nil?
@@ -1561,25 +1477,22 @@ module Google
1561
1477
  command.query['timestamp'] = timestamp unless timestamp.nil?
1562
1478
  command.query['fields'] = fields unless fields.nil?
1563
1479
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1564
- command.query['userIp'] = user_ip unless user_ip.nil?
1565
1480
  execute_or_queue_command(command, &block)
1566
1481
  end
1567
1482
 
1568
1483
  # Returns notification details for a given notification id.
1569
- # @param [String] notification_id
1570
- # String to identify the notification.
1571
1484
  # @param [String] locale
1572
1485
  # ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for
1573
1486
  # generating notification title and body.
1487
+ # @param [String] notification_id
1488
+ # String to identify the notification.
1574
1489
  # @param [String] source
1575
1490
  # String to identify the originator of this request.
1576
1491
  # @param [String] fields
1577
1492
  # Selector specifying which fields to include in a partial response.
1578
1493
  # @param [String] quota_user
1579
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1580
- # characters.
1581
- # @param [String] user_ip
1582
- # Deprecated. Please use quotaUser instead.
1494
+ # Available to use for quota purposes for server-side applications. Can be any
1495
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1583
1496
  # @param [Google::Apis::RequestOptions] options
1584
1497
  # Request-specific options
1585
1498
  #
@@ -1592,8 +1505,8 @@ module Google
1592
1505
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1593
1506
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1594
1507
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1595
- def get_notification(notification_id, locale: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1596
- command = make_simple_command(:get, 'notification/get', options)
1508
+ def get_notification(locale: nil, notification_id: nil, source: nil, fields: nil, quota_user: nil, options: nil, &block)
1509
+ command = make_simple_command(:get, 'books/v1/notification/get', options)
1597
1510
  command.response_representation = Google::Apis::BooksV1::Notification::Representation
1598
1511
  command.response_class = Google::Apis::BooksV1::Notification
1599
1512
  command.query['locale'] = locale unless locale.nil?
@@ -1601,7 +1514,6 @@ module Google
1601
1514
  command.query['source'] = source unless source.nil?
1602
1515
  command.query['fields'] = fields unless fields.nil?
1603
1516
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1604
- command.query['userIp'] = user_ip unless user_ip.nil?
1605
1517
  execute_or_queue_command(command, &block)
1606
1518
  end
1607
1519
 
@@ -1611,10 +1523,8 @@ module Google
1611
1523
  # @param [String] fields
1612
1524
  # Selector specifying which fields to include in a partial response.
1613
1525
  # @param [String] quota_user
1614
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1615
- # characters.
1616
- # @param [String] user_ip
1617
- # Deprecated. Please use quotaUser instead.
1526
+ # Available to use for quota purposes for server-side applications. Can be any
1527
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1618
1528
  # @param [Google::Apis::RequestOptions] options
1619
1529
  # Request-specific options
1620
1530
  #
@@ -1627,14 +1537,13 @@ module Google
1627
1537
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1628
1538
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1629
1539
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1630
- def list_onboarding_categories(locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1631
- command = make_simple_command(:get, 'onboarding/listCategories', options)
1540
+ def list_onboarding_categories(locale: nil, fields: nil, quota_user: nil, options: nil, &block)
1541
+ command = make_simple_command(:get, 'books/v1/onboarding/listCategories', options)
1632
1542
  command.response_representation = Google::Apis::BooksV1::Category::Representation
1633
1543
  command.response_class = Google::Apis::BooksV1::Category
1634
1544
  command.query['locale'] = locale unless locale.nil?
1635
1545
  command.query['fields'] = fields unless fields.nil?
1636
1546
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1637
- command.query['userIp'] = user_ip unless user_ip.nil?
1638
1547
  execute_or_queue_command(command, &block)
1639
1548
  end
1640
1549
 
@@ -1644,8 +1553,8 @@ module Google
1644
1553
  # @param [String] locale
1645
1554
  # ISO-639-1 language and ISO-3166-1 country code. Default is en-US if unset.
1646
1555
  # @param [String] max_allowed_maturity_rating
1647
- # The maximum allowed maturity rating of returned volumes. Books with a higher
1648
- # maturity rating are filtered out.
1556
+ # The maximum allowed maturity rating of returned volumes. Books with a
1557
+ # higher maturity rating are filtered out.
1649
1558
  # @param [Fixnum] page_size
1650
1559
  # Number of maximum results per page to be included in the response.
1651
1560
  # @param [String] page_token
@@ -1653,10 +1562,8 @@ module Google
1653
1562
  # @param [String] fields
1654
1563
  # Selector specifying which fields to include in a partial response.
1655
1564
  # @param [String] quota_user
1656
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1657
- # characters.
1658
- # @param [String] user_ip
1659
- # Deprecated. Please use quotaUser instead.
1565
+ # Available to use for quota purposes for server-side applications. Can be any
1566
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1660
1567
  # @param [Google::Apis::RequestOptions] options
1661
1568
  # Request-specific options
1662
1569
  #
@@ -1669,8 +1576,8 @@ module Google
1669
1576
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1670
1577
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1671
1578
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1672
- def list_onboarding_category_volumes(category_id: nil, locale: nil, max_allowed_maturity_rating: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1673
- command = make_simple_command(:get, 'onboarding/listCategoryVolumes', options)
1579
+ def list_onboarding_category_volumes(category_id: nil, locale: nil, max_allowed_maturity_rating: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1580
+ command = make_simple_command(:get, 'books/v1/onboarding/listCategoryVolumes', options)
1674
1581
  command.response_representation = Google::Apis::BooksV1::Volume2::Representation
1675
1582
  command.response_class = Google::Apis::BooksV1::Volume2
1676
1583
  command.query['categoryId'] = category_id unless category_id.nil?
@@ -1680,7 +1587,6 @@ module Google
1680
1587
  command.query['pageToken'] = page_token unless page_token.nil?
1681
1588
  command.query['fields'] = fields unless fields.nil?
1682
1589
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1683
- command.query['userIp'] = user_ip unless user_ip.nil?
1684
1590
  execute_or_queue_command(command, &block)
1685
1591
  end
1686
1592
 
@@ -1689,17 +1595,15 @@ module Google
1689
1595
  # ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for
1690
1596
  # generating recommendations.
1691
1597
  # @param [String] max_allowed_maturity_rating
1692
- # The maximum allowed maturity rating of returned recommendations. Books with a
1693
- # higher maturity rating are filtered out.
1598
+ # The maximum allowed maturity rating of returned recommendations. Books with
1599
+ # a higher maturity rating are filtered out.
1694
1600
  # @param [String] source
1695
1601
  # String to identify the originator of this request.
1696
1602
  # @param [String] fields
1697
1603
  # Selector specifying which fields to include in a partial response.
1698
1604
  # @param [String] quota_user
1699
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1700
- # characters.
1701
- # @param [String] user_ip
1702
- # Deprecated. Please use quotaUser instead.
1605
+ # Available to use for quota purposes for server-side applications. Can be any
1606
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1703
1607
  # @param [Google::Apis::RequestOptions] options
1704
1608
  # Request-specific options
1705
1609
  #
@@ -1712,8 +1616,8 @@ module Google
1712
1616
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1713
1617
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1714
1618
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1715
- def get_personalizedstream(locale: nil, max_allowed_maturity_rating: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1716
- command = make_simple_command(:get, 'personalizedstream/get', options)
1619
+ def get_personalizedstream(locale: nil, max_allowed_maturity_rating: nil, source: nil, fields: nil, quota_user: nil, options: nil, &block)
1620
+ command = make_simple_command(:get, 'books/v1/personalizedstream/get', options)
1717
1621
  command.response_representation = Google::Apis::BooksV1::Discoveryclusters::Representation
1718
1622
  command.response_class = Google::Apis::BooksV1::Discoveryclusters
1719
1623
  command.query['locale'] = locale unless locale.nil?
@@ -1721,11 +1625,10 @@ module Google
1721
1625
  command.query['source'] = source unless source.nil?
1722
1626
  command.query['fields'] = fields unless fields.nil?
1723
1627
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1724
- command.query['userIp'] = user_ip unless user_ip.nil?
1725
1628
  execute_or_queue_command(command, &block)
1726
1629
  end
1727
1630
 
1728
- #
1631
+ # Accepts the promo offer.
1729
1632
  # @param [String] android_id
1730
1633
  # device android_id
1731
1634
  # @param [String] device
@@ -1744,24 +1647,24 @@ module Google
1744
1647
  # @param [String] fields
1745
1648
  # Selector specifying which fields to include in a partial response.
1746
1649
  # @param [String] quota_user
1747
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1748
- # characters.
1749
- # @param [String] user_ip
1750
- # Deprecated. Please use quotaUser instead.
1650
+ # Available to use for quota purposes for server-side applications. Can be any
1651
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1751
1652
  # @param [Google::Apis::RequestOptions] options
1752
1653
  # Request-specific options
1753
1654
  #
1754
1655
  # @yield [result, err] Result & error if block supplied
1755
- # @yieldparam result [NilClass] No result returned for this method
1656
+ # @yieldparam result [Google::Apis::BooksV1::Empty] parsed result object
1756
1657
  # @yieldparam err [StandardError] error object if request failed
1757
1658
  #
1758
- # @return [void]
1659
+ # @return [Google::Apis::BooksV1::Empty]
1759
1660
  #
1760
1661
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1761
1662
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1762
1663
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1763
- def accept_promo_offer(android_id: nil, device: nil, manufacturer: nil, model: nil, offer_id: nil, product: nil, serial: nil, volume_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1764
- command = make_simple_command(:post, 'promooffer/accept', options)
1664
+ def accept_promo_offer(android_id: nil, device: nil, manufacturer: nil, model: nil, offer_id: nil, product: nil, serial: nil, volume_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1665
+ command = make_simple_command(:post, 'books/v1/promooffer/accept', options)
1666
+ command.response_representation = Google::Apis::BooksV1::Empty::Representation
1667
+ command.response_class = Google::Apis::BooksV1::Empty
1765
1668
  command.query['androidId'] = android_id unless android_id.nil?
1766
1669
  command.query['device'] = device unless device.nil?
1767
1670
  command.query['manufacturer'] = manufacturer unless manufacturer.nil?
@@ -1772,11 +1675,10 @@ module Google
1772
1675
  command.query['volumeId'] = volume_id unless volume_id.nil?
1773
1676
  command.query['fields'] = fields unless fields.nil?
1774
1677
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1775
- command.query['userIp'] = user_ip unless user_ip.nil?
1776
1678
  execute_or_queue_command(command, &block)
1777
1679
  end
1778
1680
 
1779
- #
1681
+ # Marks the promo offer as dismissed.
1780
1682
  # @param [String] android_id
1781
1683
  # device android_id
1782
1684
  # @param [String] device
@@ -1794,24 +1696,24 @@ module Google
1794
1696
  # @param [String] fields
1795
1697
  # Selector specifying which fields to include in a partial response.
1796
1698
  # @param [String] quota_user
1797
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1798
- # characters.
1799
- # @param [String] user_ip
1800
- # Deprecated. Please use quotaUser instead.
1699
+ # Available to use for quota purposes for server-side applications. Can be any
1700
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1801
1701
  # @param [Google::Apis::RequestOptions] options
1802
1702
  # Request-specific options
1803
1703
  #
1804
1704
  # @yield [result, err] Result & error if block supplied
1805
- # @yieldparam result [NilClass] No result returned for this method
1705
+ # @yieldparam result [Google::Apis::BooksV1::Empty] parsed result object
1806
1706
  # @yieldparam err [StandardError] error object if request failed
1807
1707
  #
1808
- # @return [void]
1708
+ # @return [Google::Apis::BooksV1::Empty]
1809
1709
  #
1810
1710
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1811
1711
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1812
1712
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1813
- def dismiss_promo_offer(android_id: nil, device: nil, manufacturer: nil, model: nil, offer_id: nil, product: nil, serial: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1814
- command = make_simple_command(:post, 'promooffer/dismiss', options)
1713
+ def dismiss_promo_offer(android_id: nil, device: nil, manufacturer: nil, model: nil, offer_id: nil, product: nil, serial: nil, fields: nil, quota_user: nil, options: nil, &block)
1714
+ command = make_simple_command(:post, 'books/v1/promooffer/dismiss', options)
1715
+ command.response_representation = Google::Apis::BooksV1::Empty::Representation
1716
+ command.response_class = Google::Apis::BooksV1::Empty
1815
1717
  command.query['androidId'] = android_id unless android_id.nil?
1816
1718
  command.query['device'] = device unless device.nil?
1817
1719
  command.query['manufacturer'] = manufacturer unless manufacturer.nil?
@@ -1821,7 +1723,6 @@ module Google
1821
1723
  command.query['serial'] = serial unless serial.nil?
1822
1724
  command.query['fields'] = fields unless fields.nil?
1823
1725
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1824
- command.query['userIp'] = user_ip unless user_ip.nil?
1825
1726
  execute_or_queue_command(command, &block)
1826
1727
  end
1827
1728
 
@@ -1841,10 +1742,8 @@ module Google
1841
1742
  # @param [String] fields
1842
1743
  # Selector specifying which fields to include in a partial response.
1843
1744
  # @param [String] quota_user
1844
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1845
- # characters.
1846
- # @param [String] user_ip
1847
- # Deprecated. Please use quotaUser instead.
1745
+ # Available to use for quota purposes for server-side applications. Can be any
1746
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1848
1747
  # @param [Google::Apis::RequestOptions] options
1849
1748
  # Request-specific options
1850
1749
  #
@@ -1857,8 +1756,8 @@ module Google
1857
1756
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1858
1757
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1859
1758
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1860
- def get_promo_offer(android_id: nil, device: nil, manufacturer: nil, model: nil, product: nil, serial: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1861
- command = make_simple_command(:get, 'promooffer/get', options)
1759
+ def get_promo_offer(android_id: nil, device: nil, manufacturer: nil, model: nil, product: nil, serial: nil, fields: nil, quota_user: nil, options: nil, &block)
1760
+ command = make_simple_command(:get, 'books/v1/promooffer/get', options)
1862
1761
  command.response_representation = Google::Apis::BooksV1::Offers::Representation
1863
1762
  command.response_class = Google::Apis::BooksV1::Offers
1864
1763
  command.query['androidId'] = android_id unless android_id.nil?
@@ -1869,7 +1768,6 @@ module Google
1869
1768
  command.query['serial'] = serial unless serial.nil?
1870
1769
  command.query['fields'] = fields unless fields.nil?
1871
1770
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1872
- command.query['userIp'] = user_ip unless user_ip.nil?
1873
1771
  execute_or_queue_command(command, &block)
1874
1772
  end
1875
1773
 
@@ -1879,10 +1777,8 @@ module Google
1879
1777
  # @param [String] fields
1880
1778
  # Selector specifying which fields to include in a partial response.
1881
1779
  # @param [String] quota_user
1882
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1883
- # characters.
1884
- # @param [String] user_ip
1885
- # Deprecated. Please use quotaUser instead.
1780
+ # Available to use for quota purposes for server-side applications. Can be any
1781
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1886
1782
  # @param [Google::Apis::RequestOptions] options
1887
1783
  # Request-specific options
1888
1784
  #
@@ -1895,31 +1791,28 @@ module Google
1895
1791
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1896
1792
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1897
1793
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1898
- def get_series(series_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1899
- command = make_simple_command(:get, 'series/get', options)
1794
+ def get_series(series_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1795
+ command = make_simple_command(:get, 'books/v1/series/get', options)
1900
1796
  command.response_representation = Google::Apis::BooksV1::Series::Representation
1901
1797
  command.response_class = Google::Apis::BooksV1::Series
1902
1798
  command.query['series_id'] = series_id unless series_id.nil?
1903
1799
  command.query['fields'] = fields unless fields.nil?
1904
1800
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1905
- command.query['userIp'] = user_ip unless user_ip.nil?
1906
1801
  execute_or_queue_command(command, &block)
1907
1802
  end
1908
1803
 
1909
1804
  # Returns Series membership data given the series id.
1910
- # @param [String] series_id
1911
- # String that identifies the series
1912
1805
  # @param [Fixnum] page_size
1913
1806
  # Number of maximum results per page to be included in the response.
1914
1807
  # @param [String] page_token
1915
1808
  # The value of the nextToken from the previous page.
1809
+ # @param [String] series_id
1810
+ # String that identifies the series
1916
1811
  # @param [String] fields
1917
1812
  # Selector specifying which fields to include in a partial response.
1918
1813
  # @param [String] quota_user
1919
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1920
- # characters.
1921
- # @param [String] user_ip
1922
- # Deprecated. Please use quotaUser instead.
1814
+ # Available to use for quota purposes for server-side applications. Can be any
1815
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1923
1816
  # @param [Google::Apis::RequestOptions] options
1924
1817
  # Request-specific options
1925
1818
  #
@@ -1932,8 +1825,8 @@ module Google
1932
1825
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1933
1826
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1934
1827
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1935
- def get_series_membership(series_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1936
- command = make_simple_command(:get, 'series/membership/get', options)
1828
+ def get_series_membership(page_size: nil, page_token: nil, series_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1829
+ command = make_simple_command(:get, 'books/v1/series/membership/get', options)
1937
1830
  command.response_representation = Google::Apis::BooksV1::SeriesMembership::Representation
1938
1831
  command.response_class = Google::Apis::BooksV1::SeriesMembership
1939
1832
  command.query['page_size'] = page_size unless page_size.nil?
@@ -1941,7 +1834,6 @@ module Google
1941
1834
  command.query['series_id'] = series_id unless series_id.nil?
1942
1835
  command.query['fields'] = fields unless fields.nil?
1943
1836
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1944
- command.query['userIp'] = user_ip unless user_ip.nil?
1945
1837
  execute_or_queue_command(command, &block)
1946
1838
  end
1947
1839
 
@@ -1957,15 +1849,13 @@ module Google
1957
1849
  # @param [String] projection
1958
1850
  # Restrict information returned to a set of selected fields.
1959
1851
  # @param [String] source
1960
- # String to identify the originator of this request.
1852
+ # string to identify the originator of this request.
1961
1853
  # @param [Boolean] user_library_consistent_read
1962
1854
  # @param [String] fields
1963
1855
  # Selector specifying which fields to include in a partial response.
1964
1856
  # @param [String] quota_user
1965
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1966
- # characters.
1967
- # @param [String] user_ip
1968
- # Deprecated. Please use quotaUser instead.
1857
+ # Available to use for quota purposes for server-side applications. Can be any
1858
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1969
1859
  # @param [Google::Apis::RequestOptions] options
1970
1860
  # Request-specific options
1971
1861
  #
@@ -1978,8 +1868,8 @@ module Google
1978
1868
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1979
1869
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1980
1870
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1981
- def get_volume(volume_id, country: nil, include_non_comics_series: nil, partner: nil, projection: nil, source: nil, user_library_consistent_read: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1982
- command = make_simple_command(:get, 'volumes/{volumeId}', options)
1871
+ def get_volume(volume_id, country: nil, include_non_comics_series: nil, partner: nil, projection: nil, source: nil, user_library_consistent_read: nil, fields: nil, quota_user: nil, options: nil, &block)
1872
+ command = make_simple_command(:get, 'books/v1/volumes/{volumeId}', options)
1983
1873
  command.response_representation = Google::Apis::BooksV1::Volume::Representation
1984
1874
  command.response_class = Google::Apis::BooksV1::Volume
1985
1875
  command.params['volumeId'] = volume_id unless volume_id.nil?
@@ -1991,13 +1881,10 @@ module Google
1991
1881
  command.query['user_library_consistent_read'] = user_library_consistent_read unless user_library_consistent_read.nil?
1992
1882
  command.query['fields'] = fields unless fields.nil?
1993
1883
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1994
- command.query['userIp'] = user_ip unless user_ip.nil?
1995
1884
  execute_or_queue_command(command, &block)
1996
1885
  end
1997
1886
 
1998
1887
  # Performs a book search.
1999
- # @param [String] q
2000
- # Full-text search query string.
2001
1888
  # @param [String] download
2002
1889
  # Restrict to volumes by download availability.
2003
1890
  # @param [String] filter
@@ -2007,8 +1894,8 @@ module Google
2007
1894
  # @param [String] library_restrict
2008
1895
  # Restrict search to this user's library.
2009
1896
  # @param [String] max_allowed_maturity_rating
2010
- # The maximum allowed maturity rating of returned recommendations. Books with a
2011
- # higher maturity rating are filtered out.
1897
+ # The maximum allowed maturity rating of returned recommendations. Books with
1898
+ # a higher maturity rating are filtered out.
2012
1899
  # @param [Fixnum] max_results
2013
1900
  # Maximum number of results to return.
2014
1901
  # @param [String] order_by
@@ -2019,6 +1906,8 @@ module Google
2019
1906
  # Restrict to books or magazines.
2020
1907
  # @param [String] projection
2021
1908
  # Restrict information returned to a set of selected fields.
1909
+ # @param [String] q
1910
+ # Full-text search query string.
2022
1911
  # @param [Boolean] show_preorders
2023
1912
  # Set to true to show books available for preorder. Defaults to false.
2024
1913
  # @param [String] source
@@ -2028,10 +1917,8 @@ module Google
2028
1917
  # @param [String] fields
2029
1918
  # Selector specifying which fields to include in a partial response.
2030
1919
  # @param [String] quota_user
2031
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2032
- # characters.
2033
- # @param [String] user_ip
2034
- # Deprecated. Please use quotaUser instead.
1920
+ # Available to use for quota purposes for server-side applications. Can be any
1921
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2035
1922
  # @param [Google::Apis::RequestOptions] options
2036
1923
  # Request-specific options
2037
1924
  #
@@ -2044,8 +1931,8 @@ module Google
2044
1931
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2045
1932
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2046
1933
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2047
- def list_volumes(q, download: nil, filter: nil, lang_restrict: nil, library_restrict: nil, max_allowed_maturity_rating: nil, max_results: nil, order_by: nil, partner: nil, print_type: nil, projection: nil, show_preorders: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2048
- command = make_simple_command(:get, 'volumes', options)
1934
+ def list_volumes(download: nil, filter: nil, lang_restrict: nil, library_restrict: nil, max_allowed_maturity_rating: nil, max_results: nil, order_by: nil, partner: nil, print_type: nil, projection: nil, q: nil, show_preorders: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, options: nil, &block)
1935
+ command = make_simple_command(:get, 'books/v1/volumes', options)
2049
1936
  command.response_representation = Google::Apis::BooksV1::Volumes::Representation
2050
1937
  command.response_class = Google::Apis::BooksV1::Volumes
2051
1938
  command.query['download'] = download unless download.nil?
@@ -2064,7 +1951,6 @@ module Google
2064
1951
  command.query['startIndex'] = start_index unless start_index.nil?
2065
1952
  command.query['fields'] = fields unless fields.nil?
2066
1953
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2067
- command.query['userIp'] = user_ip unless user_ip.nil?
2068
1954
  execute_or_queue_command(command, &block)
2069
1955
  end
2070
1956
 
@@ -2077,17 +1963,15 @@ module Google
2077
1963
  # ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for
2078
1964
  # generating recommendations.
2079
1965
  # @param [String] max_allowed_maturity_rating
2080
- # The maximum allowed maturity rating of returned recommendations. Books with a
2081
- # higher maturity rating are filtered out.
1966
+ # The maximum allowed maturity rating of returned recommendations. Books with
1967
+ # a higher maturity rating are filtered out.
2082
1968
  # @param [String] source
2083
1969
  # String to identify the originator of this request.
2084
1970
  # @param [String] fields
2085
1971
  # Selector specifying which fields to include in a partial response.
2086
1972
  # @param [String] quota_user
2087
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2088
- # characters.
2089
- # @param [String] user_ip
2090
- # Deprecated. Please use quotaUser instead.
1973
+ # Available to use for quota purposes for server-side applications. Can be any
1974
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2091
1975
  # @param [Google::Apis::RequestOptions] options
2092
1976
  # Request-specific options
2093
1977
  #
@@ -2100,8 +1984,8 @@ module Google
2100
1984
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2101
1985
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2102
1986
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2103
- def list_associated_volumes(volume_id, association: nil, locale: nil, max_allowed_maturity_rating: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2104
- command = make_simple_command(:get, 'volumes/{volumeId}/associated', options)
1987
+ def list_associated_volumes(volume_id, association: nil, locale: nil, max_allowed_maturity_rating: nil, source: nil, fields: nil, quota_user: nil, options: nil, &block)
1988
+ command = make_simple_command(:get, 'books/v1/volumes/{volumeId}/associated', options)
2105
1989
  command.response_representation = Google::Apis::BooksV1::Volumes::Representation
2106
1990
  command.response_class = Google::Apis::BooksV1::Volumes
2107
1991
  command.params['volumeId'] = volume_id unless volume_id.nil?
@@ -2111,7 +1995,6 @@ module Google
2111
1995
  command.query['source'] = source unless source.nil?
2112
1996
  command.query['fields'] = fields unless fields.nil?
2113
1997
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2114
- command.query['userIp'] = user_ip unless user_ip.nil?
2115
1998
  execute_or_queue_command(command, &block)
2116
1999
  end
2117
2000
 
@@ -2126,8 +2009,8 @@ module Google
2126
2009
  # @param [Fixnum] max_results
2127
2010
  # Maximum number of results to return.
2128
2011
  # @param [Array<String>, String] processing_state
2129
- # The processing state of the user uploaded volumes to be returned. Applicable
2130
- # only if the UPLOADED is specified in the acquireMethod.
2012
+ # The processing state of the user uploaded volumes to be returned.
2013
+ # Applicable only if the UPLOADED is specified in the acquireMethod.
2131
2014
  # @param [String] source
2132
2015
  # String to identify the originator of this request.
2133
2016
  # @param [Fixnum] start_index
@@ -2135,10 +2018,8 @@ module Google
2135
2018
  # @param [String] fields
2136
2019
  # Selector specifying which fields to include in a partial response.
2137
2020
  # @param [String] quota_user
2138
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2139
- # characters.
2140
- # @param [String] user_ip
2141
- # Deprecated. Please use quotaUser instead.
2021
+ # Available to use for quota purposes for server-side applications. Can be any
2022
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2142
2023
  # @param [Google::Apis::RequestOptions] options
2143
2024
  # Request-specific options
2144
2025
  #
@@ -2151,8 +2032,8 @@ module Google
2151
2032
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2152
2033
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2153
2034
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2154
- def list_my_books(acquire_method: nil, country: nil, locale: nil, max_results: nil, processing_state: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2155
- command = make_simple_command(:get, 'volumes/mybooks', options)
2035
+ def list_my_books(acquire_method: nil, country: nil, locale: nil, max_results: nil, processing_state: nil, source: nil, start_index: nil, fields: nil, quota_user: nil, options: nil, &block)
2036
+ command = make_simple_command(:get, 'books/v1/volumes/mybooks', options)
2156
2037
  command.response_representation = Google::Apis::BooksV1::Volumes::Representation
2157
2038
  command.response_class = Google::Apis::BooksV1::Volumes
2158
2039
  command.query['acquireMethod'] = acquire_method unless acquire_method.nil?
@@ -2164,7 +2045,6 @@ module Google
2164
2045
  command.query['startIndex'] = start_index unless start_index.nil?
2165
2046
  command.query['fields'] = fields unless fields.nil?
2166
2047
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2167
- command.query['userIp'] = user_ip unless user_ip.nil?
2168
2048
  execute_or_queue_command(command, &block)
2169
2049
  end
2170
2050
 
@@ -2173,17 +2053,15 @@ module Google
2173
2053
  # ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for
2174
2054
  # generating recommendations.
2175
2055
  # @param [String] max_allowed_maturity_rating
2176
- # The maximum allowed maturity rating of returned recommendations. Books with a
2177
- # higher maturity rating are filtered out.
2056
+ # The maximum allowed maturity rating of returned recommendations. Books with
2057
+ # a higher maturity rating are filtered out.
2178
2058
  # @param [String] source
2179
2059
  # String to identify the originator of this request.
2180
2060
  # @param [String] fields
2181
2061
  # Selector specifying which fields to include in a partial response.
2182
2062
  # @param [String] quota_user
2183
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2184
- # characters.
2185
- # @param [String] user_ip
2186
- # Deprecated. Please use quotaUser instead.
2063
+ # Available to use for quota purposes for server-side applications. Can be any
2064
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2187
2065
  # @param [Google::Apis::RequestOptions] options
2188
2066
  # Request-specific options
2189
2067
  #
@@ -2196,8 +2074,8 @@ module Google
2196
2074
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2197
2075
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2198
2076
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2199
- def list_recommended_volumes(locale: nil, max_allowed_maturity_rating: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2200
- command = make_simple_command(:get, 'volumes/recommended', options)
2077
+ def list_recommended_volumes(locale: nil, max_allowed_maturity_rating: nil, source: nil, fields: nil, quota_user: nil, options: nil, &block)
2078
+ command = make_simple_command(:get, 'books/v1/volumes/recommended', options)
2201
2079
  command.response_representation = Google::Apis::BooksV1::Volumes::Representation
2202
2080
  command.response_class = Google::Apis::BooksV1::Volumes
2203
2081
  command.query['locale'] = locale unless locale.nil?
@@ -2205,27 +2083,24 @@ module Google
2205
2083
  command.query['source'] = source unless source.nil?
2206
2084
  command.query['fields'] = fields unless fields.nil?
2207
2085
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2208
- command.query['userIp'] = user_ip unless user_ip.nil?
2209
2086
  execute_or_queue_command(command, &block)
2210
2087
  end
2211
2088
 
2212
2089
  # Rate a recommended book for the current user.
2213
- # @param [String] rating
2214
- # Rating to be given to the volume.
2215
- # @param [String] volume_id
2216
- # ID of the source volume.
2217
2090
  # @param [String] locale
2218
2091
  # ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for
2219
2092
  # generating recommendations.
2093
+ # @param [String] rating
2094
+ # Rating to be given to the volume.
2220
2095
  # @param [String] source
2221
2096
  # String to identify the originator of this request.
2097
+ # @param [String] volume_id
2098
+ # ID of the source volume.
2222
2099
  # @param [String] fields
2223
2100
  # Selector specifying which fields to include in a partial response.
2224
2101
  # @param [String] quota_user
2225
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2226
- # characters.
2227
- # @param [String] user_ip
2228
- # Deprecated. Please use quotaUser instead.
2102
+ # Available to use for quota purposes for server-side applications. Can be any
2103
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2229
2104
  # @param [Google::Apis::RequestOptions] options
2230
2105
  # Request-specific options
2231
2106
  #
@@ -2238,8 +2113,8 @@ module Google
2238
2113
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2239
2114
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2240
2115
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2241
- def rate_recommended_volume(rating, volume_id, locale: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2242
- command = make_simple_command(:post, 'volumes/recommended/rate', options)
2116
+ def rate_recommended_volume(locale: nil, rating: nil, source: nil, volume_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2117
+ command = make_simple_command(:post, 'books/v1/volumes/recommended/rate', options)
2243
2118
  command.response_representation = Google::Apis::BooksV1::RateRecommendedVolumeResponse::Representation
2244
2119
  command.response_class = Google::Apis::BooksV1::RateRecommendedVolumeResponse
2245
2120
  command.query['locale'] = locale unless locale.nil?
@@ -2248,7 +2123,6 @@ module Google
2248
2123
  command.query['volumeId'] = volume_id unless volume_id.nil?
2249
2124
  command.query['fields'] = fields unless fields.nil?
2250
2125
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2251
- command.query['userIp'] = user_ip unless user_ip.nil?
2252
2126
  execute_or_queue_command(command, &block)
2253
2127
  end
2254
2128
 
@@ -2270,10 +2144,8 @@ module Google
2270
2144
  # @param [String] fields
2271
2145
  # Selector specifying which fields to include in a partial response.
2272
2146
  # @param [String] quota_user
2273
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2274
- # characters.
2275
- # @param [String] user_ip
2276
- # Deprecated. Please use quotaUser instead.
2147
+ # Available to use for quota purposes for server-side applications. Can be any
2148
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2277
2149
  # @param [Google::Apis::RequestOptions] options
2278
2150
  # Request-specific options
2279
2151
  #
@@ -2286,8 +2158,8 @@ module Google
2286
2158
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2287
2159
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2288
2160
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2289
- def list_user_uploaded_volumes(locale: nil, max_results: nil, processing_state: nil, source: nil, start_index: nil, volume_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2290
- command = make_simple_command(:get, 'volumes/useruploaded', options)
2161
+ def list_user_uploaded_volumes(locale: nil, max_results: nil, processing_state: nil, source: nil, start_index: nil, volume_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2162
+ command = make_simple_command(:get, 'books/v1/volumes/useruploaded', options)
2291
2163
  command.response_representation = Google::Apis::BooksV1::Volumes::Representation
2292
2164
  command.response_class = Google::Apis::BooksV1::Volumes
2293
2165
  command.query['locale'] = locale unless locale.nil?
@@ -2298,7 +2170,6 @@ module Google
2298
2170
  command.query['volumeId'] = volume_id unless volume_id.nil?
2299
2171
  command.query['fields'] = fields unless fields.nil?
2300
2172
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2301
- command.query['userIp'] = user_ip unless user_ip.nil?
2302
2173
  execute_or_queue_command(command, &block)
2303
2174
  end
2304
2175
 
@@ -2307,7 +2178,6 @@ module Google
2307
2178
  def apply_command_defaults(command)
2308
2179
  command.query['key'] = key unless key.nil?
2309
2180
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2310
- command.query['userIp'] = user_ip unless user_ip.nil?
2311
2181
  end
2312
2182
  end
2313
2183
  end