google-api-client 0.9 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/Gemfile +5 -0
  4. data/README.md +1 -1
  5. data/api_names.yaml +1 -1
  6. data/api_names_out.yaml +14 -8
  7. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  8. data/generated/google/apis/androidpublisher_v2/classes.rb +1 -1
  9. data/generated/google/apis/androidpublisher_v2/representations.rb +2 -2
  10. data/generated/google/apis/androidpublisher_v2/service.rb +4 -4
  11. data/generated/google/apis/appstate_v1.rb +1 -1
  12. data/generated/google/apis/bigquery_v2.rb +1 -1
  13. data/generated/google/apis/books_v1.rb +1 -1
  14. data/generated/google/apis/books_v1/classes.rb +50 -0
  15. data/generated/google/apis/books_v1/representations.rb +8 -0
  16. data/generated/google/apis/books_v1/service.rb +16 -4
  17. data/generated/google/apis/calendar_v3.rb +1 -1
  18. data/generated/google/apis/compute_beta.rb +1 -1
  19. data/generated/google/apis/compute_beta/classes.rb +141 -93
  20. data/generated/google/apis/compute_beta/representations.rb +1 -0
  21. data/generated/google/apis/compute_beta/service.rb +65 -58
  22. data/generated/google/apis/compute_v1.rb +1 -1
  23. data/generated/google/apis/compute_v1/classes.rb +83 -55
  24. data/generated/google/apis/compute_v1/service.rb +59 -52
  25. data/generated/google/apis/content_v2.rb +1 -1
  26. data/generated/google/apis/content_v2/classes.rb +1 -1
  27. data/generated/google/apis/drive_v2.rb +1 -1
  28. data/generated/google/apis/drive_v3.rb +1 -1
  29. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  30. data/generated/google/apis/games_management_v1management.rb +1 -1
  31. data/generated/google/apis/games_v1.rb +1 -1
  32. data/generated/google/apis/genomics_v1.rb +1 -1
  33. data/generated/google/apis/plus_domains_v1.rb +1 -1
  34. data/generated/google/apis/plus_v1.rb +1 -1
  35. data/generated/google/apis/youtube_v3.rb +1 -1
  36. data/generated/google/apis/youtube_v3/classes.rb +9 -61
  37. data/generated/google/apis/youtube_v3/representations.rb +1 -26
  38. data/lib/google/apis/core/upload.rb +1 -0
  39. data/lib/google/apis/version.rb +1 -1
  40. data/samples/{Gemfile → cli/Gemfile} +1 -1
  41. data/samples/{README.md → cli/README.md} +0 -0
  42. data/samples/{google-api-samples → cli/google-api-samples} +0 -0
  43. data/samples/{lib → cli/lib}/base_cli.rb +0 -0
  44. data/samples/{lib → cli/lib}/samples/analytics.rb +0 -0
  45. data/samples/{lib → cli/lib}/samples/calendar.rb +0 -0
  46. data/samples/{lib → cli/lib}/samples/drive.rb +0 -0
  47. data/samples/{lib → cli/lib}/samples/gmail.rb +0 -0
  48. data/samples/{lib → cli/lib}/samples/pubsub.rb +0 -0
  49. data/samples/{lib → cli/lib}/samples/translate.rb +0 -0
  50. data/samples/{lib → cli/lib}/samples/you_tube.rb +0 -0
  51. data/samples/web/Gemfile +7 -0
  52. data/samples/web/README.md +44 -0
  53. data/samples/web/app.rb +120 -0
  54. data/samples/web/views/calendar.erb +34 -0
  55. data/samples/web/views/drive.erb +33 -0
  56. data/samples/web/views/home.erb +35 -0
  57. data/samples/web/views/layout.erb +40 -0
  58. data/spec/google/api_client/client_secrets_spec.rb +300 -1
  59. metadata +20 -13
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 25d66ac8bb8cb858640f330178dac074a0557c83
4
- data.tar.gz: 2d390abd07f9f816f15cdce0a6d32093ff73f3b6
3
+ metadata.gz: fb50f0aae12fda2afc3b35c11ff3b967834fb86f
4
+ data.tar.gz: 51957dd9c97ad19896dd15d63643cfd4a6caf2de
5
5
  SHA512:
6
- metadata.gz: 9f99549ac0f0d0f55b9072f7d75f5c8fec3e010b573d3752e867e4130eb0a40f7cf8c5a9a2d28d6b8571421ee4a405aa902b31878d8bb09c7eec846566eff87a
7
- data.tar.gz: 870eb46ddef10fae48cb27c1446937087d58864fe0c77c1b3aec7cc043467353b7c46d5af072d00a653d708ea6300eb82f61630b099bfcf3e25f430ad3588b82
6
+ metadata.gz: 4d5a678c367e1ecae79f4b1070762756e8097e4d61c6915299f61a5a6c25005e7c78201f05758ae96efde08e2ddbc84b01c96e02b8704459b09d411278d179ce
7
+ data.tar.gz: 1b0b35e1faddca62fbcccb1368805732ac0e0149f2e1f3ffa600484547e62d9c80f05d325a22cfbb4954219bdbd1ccfd7963714a2ed8c4871bef2b69c5cec3cf
@@ -1,3 +1,7 @@
1
+ # 0.9.1
2
+ * Add missing require for 'tempfile'
3
+ * Update generated APIs
4
+
1
5
  # 0.9
2
6
  * Force the use of alt=json for the groups settings API
3
7
  * Small tweaks to some calendar API and licensing API method names
data/Gemfile CHANGED
@@ -16,6 +16,11 @@ group :development do
16
16
  gem 'launchy', '~> 2.4'
17
17
  gem 'dotenv', '~> 2.0'
18
18
  gem 'fakefs', '~> 0.6', require: "fakefs/safe"
19
+ gem 'google-id-token', '~> 1.3'
20
+ gem 'os', '~> 0.9'
21
+ gem 'rmail', '~> 1.1'
22
+ gem 'sinatra', '~> 1.4'
23
+ gem 'redis', '~> 3.2'
19
24
  end
20
25
 
21
26
  platforms :jruby do
data/README.md CHANGED
@@ -201,7 +201,7 @@ require 'google/apis/translate_v2'
201
201
 
202
202
  translate = Google::Apis::TranslateV2::TranslateService.new
203
203
  translate.key = 'YOUR_API_KEY_HERE'
204
- result = translate.list_translations(source: 'en', target: 'es', q: 'Hello world!')
204
+ result = translate.list_translations('Hello world!', 'es', source: 'en')
205
205
  puts result.translations.first.translated_text
206
206
  ```
207
207
 
@@ -198,7 +198,7 @@
198
198
  "/androidpublisher:v2/ApksListResponse": list_apks_response
199
199
  "/androidpublisher:v2/EntitlementsListResponse": list_entitlements_response
200
200
  "/androidpublisher:v2/ExpansionFilesUploadResponse": upload_expansion_files_response
201
- "/androidpublisher:v2/ImagesDeleteAllResponse": images_delete_all_response
201
+ "/androidpublisher:v2/ImagesDeleteAllResponse": delete_all_images_response
202
202
  "/androidpublisher:v2/ImagesListResponse": list_images_response
203
203
  "/androidpublisher:v2/ImagesUploadResponse": upload_images_response
204
204
  "/androidpublisher:v2/InappproductsBatchRequest": in_app_products_batch_request
@@ -198,7 +198,7 @@
198
198
  "/androidpublisher:v2/ApksListResponse": list_apks_response
199
199
  "/androidpublisher:v2/EntitlementsListResponse": list_entitlements_response
200
200
  "/androidpublisher:v2/ExpansionFilesUploadResponse": upload_expansion_files_response
201
- "/androidpublisher:v2/ImagesDeleteAllResponse": images_delete_all_response
201
+ "/androidpublisher:v2/ImagesDeleteAllResponse": delete_all_images_response
202
202
  "/androidpublisher:v2/ImagesListResponse": list_images_response
203
203
  "/androidpublisher:v2/ImagesUploadResponse": upload_images_response
204
204
  "/androidpublisher:v2/InappproductsBatchRequest": in_app_products_batch_request
@@ -2215,6 +2215,7 @@
2215
2215
  "/compute:beta/InstanceGroup/network": network
2216
2216
  "/compute:beta/InstanceGroup/selfLink": self_link
2217
2217
  "/compute:beta/InstanceGroup/size": size
2218
+ "/compute:beta/InstanceGroup/subnetwork": subnetwork
2218
2219
  "/compute:beta/InstanceGroup/zone": zone
2219
2220
  "/compute:beta/InstanceGroupAggregatedList": instance_group_aggregated_list
2220
2221
  "/compute:beta/InstanceGroupAggregatedList/id": id
@@ -7549,6 +7550,7 @@
7549
7550
  "/books:v1/books.myconfig.requestAccess/volumeId": volume_id
7550
7551
  "/books:v1/books.myconfig.syncVolumeLicenses/cpksver": cpksver
7551
7552
  "/books:v1/books.myconfig.syncVolumeLicenses/features": features
7553
+ "/books:v1/books.myconfig.syncVolumeLicenses/includeNonComicsSeries": include_non_comics_series
7552
7554
  "/books:v1/books.myconfig.syncVolumeLicenses/locale": locale
7553
7555
  "/books:v1/books.myconfig.syncVolumeLicenses/nonce": nonce
7554
7556
  "/books:v1/books.myconfig.syncVolumeLicenses/showPreorders": show_preorders
@@ -7612,6 +7614,7 @@
7612
7614
  "/books:v1/books.notification.get/locale": locale
7613
7615
  "/books:v1/books.notification.get/notification_id": notification_id
7614
7616
  "/books:v1/books.notification.get/source": source
7617
+ "/books:v1/books.notification.get/targetIds": target_ids
7615
7618
  "/books:v1/books.onboarding.listCategories/locale": locale
7616
7619
  "/books:v1/books.onboarding.listCategoryVolumes/categoryId": category_id
7617
7620
  "/books:v1/books.onboarding.listCategoryVolumes/locale": locale
@@ -7622,6 +7625,7 @@
7622
7625
  "/books:v1/books.personalizedstream.get/locale": locale
7623
7626
  "/books:v1/books.personalizedstream.get/maxAllowedMaturityRating": max_allowed_maturity_rating
7624
7627
  "/books:v1/books.personalizedstream.get/source": source
7628
+ "/books:v1/books.personalizedstream.get/targetIds": target_ids
7625
7629
  "/books:v1/books.promooffer.accept/androidId": android_id
7626
7630
  "/books:v1/books.promooffer.accept/device": device
7627
7631
  "/books:v1/books.promooffer.accept/manufacturer": manufacturer
@@ -7651,6 +7655,7 @@
7651
7655
  "/books:v1/books.series.membership.get/series_id": series_id
7652
7656
  "/books:v1/books.volumes.get": get_volume
7653
7657
  "/books:v1/books.volumes.get/country": country
7658
+ "/books:v1/books.volumes.get/includeNonComicsSeries": include_non_comics_series
7654
7659
  "/books:v1/books.volumes.get/partner": partner
7655
7660
  "/books:v1/books.volumes.get/projection": projection
7656
7661
  "/books:v1/books.volumes.get/source": source
@@ -7940,9 +7945,11 @@
7940
7945
  "/books:v1/Metadata/kind": kind
7941
7946
  "/books:v1/Notification": notification
7942
7947
  "/books:v1/Notification/body": body
7948
+ "/books:v1/Notification/dont_show_notification": dont_show_notification
7943
7949
  "/books:v1/Notification/iconUrl": icon_url
7944
7950
  "/books:v1/Notification/kind": kind
7945
7951
  "/books:v1/Notification/notification_type": notification_type
7952
+ "/books:v1/Notification/pcampaign_id": pcampaign_id
7946
7953
  "/books:v1/Notification/show_notification_settings_action": show_notification_settings_action
7947
7954
  "/books:v1/Notification/targetUrl": target_url
7948
7955
  "/books:v1/Notification/title": title
@@ -7995,6 +8002,7 @@
7995
8002
  "/books:v1/Series/series/series/bannerImageUrl": banner_image_url
7996
8003
  "/books:v1/Series/series/series/imageUrl": image_url
7997
8004
  "/books:v1/Series/series/series/seriesId": series_id
8005
+ "/books:v1/Series/series/series/seriesType": series_type
7998
8006
  "/books:v1/Series/series/series/title": title
7999
8007
  "/books:v1/Seriesmembership/kind": kind
8000
8008
  "/books:v1/Seriesmembership/member": member
@@ -8067,6 +8075,7 @@
8067
8075
  "/books:v1/Volume/searchInfo/textSnippet": text_snippet
8068
8076
  "/books:v1/Volume/selfLink": self_link
8069
8077
  "/books:v1/Volume/userInfo": user_info
8078
+ "/books:v1/Volume/userInfo/acquiredTime": acquired_time
8070
8079
  "/books:v1/Volume/userInfo/acquisitionType": acquisition_type
8071
8080
  "/books:v1/Volume/userInfo/copy": copy
8072
8081
  "/books:v1/Volume/userInfo/copy/allowedCharacterCount": allowed_character_count
@@ -8074,6 +8083,9 @@
8074
8083
  "/books:v1/Volume/userInfo/copy/remainingCharacterCount": remaining_character_count
8075
8084
  "/books:v1/Volume/userInfo/copy/updated": updated
8076
8085
  "/books:v1/Volume/userInfo/entitlementType": entitlement_type
8086
+ "/books:v1/Volume/userInfo/isFamilySharedFromUser": is_family_shared_from_user
8087
+ "/books:v1/Volume/userInfo/isFamilySharedToUser": is_family_shared_to_user
8088
+ "/books:v1/Volume/userInfo/isFamilySharingAllowed": is_family_sharing_allowed
8077
8089
  "/books:v1/Volume/userInfo/isInMyBooks": is_in_my_books
8078
8090
  "/books:v1/Volume/userInfo/isPreordered": is_preordered
8079
8091
  "/books:v1/Volume/userInfo/isPurchased": is_purchased
@@ -25189,6 +25201,7 @@
25189
25201
  "/youtube:v3/ContentRating/djctqRating": djctq_rating
25190
25202
  "/youtube:v3/ContentRating/djctqRatingReasons": djctq_rating_reasons
25191
25203
  "/youtube:v3/ContentRating/djctqRatingReasons/djctq_rating_reason": djctq_rating_reason
25204
+ "/youtube:v3/ContentRating/ecbmctRating": ecbmct_rating
25192
25205
  "/youtube:v3/ContentRating/eefilmRating": eefilm_rating
25193
25206
  "/youtube:v3/ContentRating/egfilmRating": egfilm_rating
25194
25207
  "/youtube:v3/ContentRating/eirinRating": eirin_rating
@@ -25729,7 +25742,6 @@
25729
25742
  "/youtube:v3/Video": video
25730
25743
  "/youtube:v3/Video/ageGating": age_gating
25731
25744
  "/youtube:v3/Video/contentDetails": content_details
25732
- "/youtube:v3/Video/conversionPings": conversion_pings
25733
25745
  "/youtube:v3/Video/etag": etag
25734
25746
  "/youtube:v3/Video/fileDetails": file_details
25735
25747
  "/youtube:v3/Video/id": id
@@ -25808,12 +25820,6 @@
25808
25820
  "/youtube:v3/VideoContentDetailsRegionRestriction/allowed/allowed": allowed
25809
25821
  "/youtube:v3/VideoContentDetailsRegionRestriction/blocked": blocked
25810
25822
  "/youtube:v3/VideoContentDetailsRegionRestriction/blocked/blocked": blocked
25811
- "/youtube:v3/VideoConversionPing": video_conversion_ping
25812
- "/youtube:v3/VideoConversionPing/context": context
25813
- "/youtube:v3/VideoConversionPing/conversionUrl": conversion_url
25814
- "/youtube:v3/VideoConversionPings": video_conversion_pings
25815
- "/youtube:v3/VideoConversionPings/pings": pings
25816
- "/youtube:v3/VideoConversionPings/pings/ping": ping
25817
25823
  "/youtube:v3/VideoFileDetails": video_file_details
25818
25824
  "/youtube:v3/VideoFileDetails/audioStreams": audio_streams
25819
25825
  "/youtube:v3/VideoFileDetails/audioStreams/audio_stream": audio_stream
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/ad-exchange/buyer-rest
27
27
  module AdexchangebuyerV1_3
28
28
  VERSION = 'V1_3'
29
- REVISION = '20151209'
29
+ REVISION = '20160118'
30
30
 
31
31
  # Manage your Ad Exchange buyer account configuration
32
32
  AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
@@ -534,7 +534,7 @@ module Google
534
534
  end
535
535
 
536
536
  #
537
- class ImagesDeleteAllResponse
537
+ class DeleteAllImagesResponse
538
538
  include Google::Apis::Core::Hashable
539
539
 
540
540
  #
@@ -86,7 +86,7 @@ module Google
86
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
87
  end
88
88
 
89
- class ImagesDeleteAllResponse
89
+ class DeleteAllImagesResponse
90
90
  class Representation < Google::Apis::Core::JsonRepresentation; end
91
91
  end
92
92
 
@@ -359,7 +359,7 @@ module Google
359
359
  end
360
360
  end
361
361
 
362
- class ImagesDeleteAllResponse
362
+ class DeleteAllImagesResponse
363
363
  # @private
364
364
  class Representation < Google::Apis::Core::JsonRepresentation
365
365
  collection :deleted, as: 'deleted', class: Google::Apis::AndroidpublisherV2::Image, decorator: Google::Apis::AndroidpublisherV2::Image::Representation
@@ -1054,18 +1054,18 @@ module Google
1054
1054
  # Request-specific options
1055
1055
  #
1056
1056
  # @yield [result, err] Result & error if block supplied
1057
- # @yieldparam result [Google::Apis::AndroidpublisherV2::ImagesDeleteAllResponse] parsed result object
1057
+ # @yieldparam result [Google::Apis::AndroidpublisherV2::DeleteAllImagesResponse] parsed result object
1058
1058
  # @yieldparam err [StandardError] error object if request failed
1059
1059
  #
1060
- # @return [Google::Apis::AndroidpublisherV2::ImagesDeleteAllResponse]
1060
+ # @return [Google::Apis::AndroidpublisherV2::DeleteAllImagesResponse]
1061
1061
  #
1062
1062
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1063
1063
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1064
1064
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1065
1065
  def delete_all_images(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1066
1066
  command = make_simple_command(:delete, '{packageName}/edits/{editId}/listings/{language}/{imageType}', options)
1067
- command.response_representation = Google::Apis::AndroidpublisherV2::ImagesDeleteAllResponse::Representation
1068
- command.response_class = Google::Apis::AndroidpublisherV2::ImagesDeleteAllResponse
1067
+ command.response_representation = Google::Apis::AndroidpublisherV2::DeleteAllImagesResponse::Representation
1068
+ command.response_class = Google::Apis::AndroidpublisherV2::DeleteAllImagesResponse
1069
1069
  command.params['packageName'] = package_name unless package_name.nil?
1070
1070
  command.params['editId'] = edit_id unless edit_id.nil?
1071
1071
  command.params['language'] = language unless language.nil?
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/games/services/web/api/states
26
26
  module AppstateV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160107'
28
+ REVISION = '20160111'
29
29
 
30
30
  # View and manage your data for this application
31
31
  AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/bigquery/
26
26
  module BigqueryV2
27
27
  VERSION = 'V2'
28
- REVISION = '20160104'
28
+ REVISION = '20160119'
29
29
 
30
30
  # View and manage your data in Google BigQuery
31
31
  AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/books/docs/v1/getting_started
26
26
  module BooksV1
27
27
  VERSION = 'V1'
28
- REVISION = '20151106'
28
+ REVISION = '20151218'
29
29
 
30
30
  # Manage your books
31
31
  AUTH_BOOKS = 'https://www.googleapis.com/auth/books'
@@ -1995,6 +1995,12 @@ module Google
1995
1995
  # @return [String]
1996
1996
  attr_accessor :body
1997
1997
 
1998
+ #
1999
+ # Corresponds to the JSON property `dont_show_notification`
2000
+ # @return [Boolean]
2001
+ attr_accessor :dont_show_notification
2002
+ alias_method :dont_show_notification?, :dont_show_notification
2003
+
1998
2004
  #
1999
2005
  # Corresponds to the JSON property `iconUrl`
2000
2006
  # @return [String]
@@ -2010,6 +2016,11 @@ module Google
2010
2016
  # @return [String]
2011
2017
  attr_accessor :notification_type
2012
2018
 
2019
+ #
2020
+ # Corresponds to the JSON property `pcampaign_id`
2021
+ # @return [String]
2022
+ attr_accessor :pcampaign_id
2023
+
2013
2024
  #
2014
2025
  # Corresponds to the JSON property `show_notification_settings_action`
2015
2026
  # @return [Boolean]
@@ -2033,9 +2044,11 @@ module Google
2033
2044
  # Update properties of this object
2034
2045
  def update!(**args)
2035
2046
  @body = args[:body] unless args[:body].nil?
2047
+ @dont_show_notification = args[:dont_show_notification] unless args[:dont_show_notification].nil?
2036
2048
  @icon_url = args[:icon_url] unless args[:icon_url].nil?
2037
2049
  @kind = args[:kind] unless args[:kind].nil?
2038
2050
  @notification_type = args[:notification_type] unless args[:notification_type].nil?
2051
+ @pcampaign_id = args[:pcampaign_id] unless args[:pcampaign_id].nil?
2039
2052
  @show_notification_settings_action = args[:show_notification_settings_action] unless args[:show_notification_settings_action].nil?
2040
2053
  @target_url = args[:target_url] unless args[:target_url].nil?
2041
2054
  @title = args[:title] unless args[:title].nil?
@@ -2410,6 +2423,11 @@ module Google
2410
2423
  # @return [String]
2411
2424
  attr_accessor :series_id
2412
2425
 
2426
+ #
2427
+ # Corresponds to the JSON property `seriesType`
2428
+ # @return [String]
2429
+ attr_accessor :series_type
2430
+
2413
2431
  #
2414
2432
  # Corresponds to the JSON property `title`
2415
2433
  # @return [String]
@@ -2424,6 +2442,7 @@ module Google
2424
2442
  @banner_image_url = args[:banner_image_url] unless args[:banner_image_url].nil?
2425
2443
  @image_url = args[:image_url] unless args[:image_url].nil?
2426
2444
  @series_id = args[:series_id] unless args[:series_id].nil?
2445
+ @series_type = args[:series_type] unless args[:series_type].nil?
2427
2446
  @title = args[:title] unless args[:title].nil?
2428
2447
  end
2429
2448
  end
@@ -3144,6 +3163,13 @@ module Google
3144
3163
  class UserInfo
3145
3164
  include Google::Apis::Core::Hashable
3146
3165
 
3166
+ # Timestamp when this volume was acquired by the user. (RFC 3339 UTC date-time
3167
+ # format) Acquiring includes purchase, user upload, receiving family sharing,
3168
+ # etc.
3169
+ # Corresponds to the JSON property `acquiredTime`
3170
+ # @return [DateTime]
3171
+ attr_accessor :acquired_time
3172
+
3147
3173
  # How this volume was acquired.
3148
3174
  # Corresponds to the JSON property `acquisitionType`
3149
3175
  # @return [Fixnum]
@@ -3159,6 +3185,26 @@ module Google
3159
3185
  # @return [Fixnum]
3160
3186
  attr_accessor :entitlement_type
3161
3187
 
3188
+ # Whether or not the user shared this volume with the family.
3189
+ # Corresponds to the JSON property `isFamilySharedFromUser`
3190
+ # @return [Boolean]
3191
+ attr_accessor :is_family_shared_from_user
3192
+ alias_method :is_family_shared_from_user?, :is_family_shared_from_user
3193
+
3194
+ # Whether or not the user received this volume through family sharing.
3195
+ # Corresponds to the JSON property `isFamilySharedToUser`
3196
+ # @return [Boolean]
3197
+ attr_accessor :is_family_shared_to_user
3198
+ alias_method :is_family_shared_to_user?, :is_family_shared_to_user
3199
+
3200
+ # Whether or not this volume can be shared with the family by the user. This
3201
+ # includes sharing eligibility of both the volume and the user. If the value is
3202
+ # true, the user can initiate a family sharing action.
3203
+ # Corresponds to the JSON property `isFamilySharingAllowed`
3204
+ # @return [Boolean]
3205
+ attr_accessor :is_family_sharing_allowed
3206
+ alias_method :is_family_sharing_allowed?, :is_family_sharing_allowed
3207
+
3162
3208
  # Whether or not this volume is currently in "my books."
3163
3209
  # Corresponds to the JSON property `isInMyBooks`
3164
3210
  # @return [Boolean]
@@ -3224,9 +3270,13 @@ module Google
3224
3270
 
3225
3271
  # Update properties of this object
3226
3272
  def update!(**args)
3273
+ @acquired_time = args[:acquired_time] unless args[:acquired_time].nil?
3227
3274
  @acquisition_type = args[:acquisition_type] unless args[:acquisition_type].nil?
3228
3275
  @copy = args[:copy] unless args[:copy].nil?
3229
3276
  @entitlement_type = args[:entitlement_type] unless args[:entitlement_type].nil?
3277
+ @is_family_shared_from_user = args[:is_family_shared_from_user] unless args[:is_family_shared_from_user].nil?
3278
+ @is_family_shared_to_user = args[:is_family_shared_to_user] unless args[:is_family_shared_to_user].nil?
3279
+ @is_family_sharing_allowed = args[:is_family_sharing_allowed] unless args[:is_family_sharing_allowed].nil?
3230
3280
  @is_in_my_books = args[:is_in_my_books] unless args[:is_in_my_books].nil?
3231
3281
  @is_preordered = args[:is_preordered] unless args[:is_preordered].nil?
3232
3282
  @is_purchased = args[:is_purchased] unless args[:is_purchased].nil?
@@ -992,9 +992,11 @@ module Google
992
992
  # @private
993
993
  class Representation < Google::Apis::Core::JsonRepresentation
994
994
  property :body, as: 'body'
995
+ property :dont_show_notification, as: 'dont_show_notification'
995
996
  property :icon_url, as: 'iconUrl'
996
997
  property :kind, as: 'kind'
997
998
  property :notification_type, as: 'notification_type'
999
+ property :pcampaign_id, as: 'pcampaign_id'
998
1000
  property :show_notification_settings_action, as: 'show_notification_settings_action'
999
1001
  property :target_url, as: 'targetUrl'
1000
1002
  property :title, as: 'title'
@@ -1106,6 +1108,7 @@ module Google
1106
1108
  property :banner_image_url, as: 'bannerImageUrl'
1107
1109
  property :image_url, as: 'imageUrl'
1108
1110
  property :series_id, as: 'seriesId'
1111
+ property :series_type, as: 'seriesType'
1109
1112
  property :title, as: 'title'
1110
1113
  end
1111
1114
  end
@@ -1323,10 +1326,15 @@ module Google
1323
1326
  class UserInfo
1324
1327
  # @private
1325
1328
  class Representation < Google::Apis::Core::JsonRepresentation
1329
+ property :acquired_time, as: 'acquiredTime', type: DateTime
1330
+
1326
1331
  property :acquisition_type, as: 'acquisitionType'
1327
1332
  property :copy, as: 'copy', class: Google::Apis::BooksV1::Volume::UserInfo::Copy, decorator: Google::Apis::BooksV1::Volume::UserInfo::Copy::Representation
1328
1333
 
1329
1334
  property :entitlement_type, as: 'entitlementType'
1335
+ property :is_family_shared_from_user, as: 'isFamilySharedFromUser'
1336
+ property :is_family_shared_to_user, as: 'isFamilySharedToUser'
1337
+ property :is_family_sharing_allowed, as: 'isFamilySharingAllowed'
1330
1338
  property :is_in_my_books, as: 'isInMyBooks'
1331
1339
  property :is_preordered, as: 'isPreordered'
1332
1340
  property :is_purchased, as: 'isPurchased'
@@ -824,6 +824,8 @@ module Google
824
824
  # The device/version ID from which to release the restriction.
825
825
  # @param [Array<String>, String] features
826
826
  # List of features supported by the client, i.e., 'RENTALS'
827
+ # @param [Boolean] include_non_comics_series
828
+ # Set to true to include non-comics series. Defaults to false.
827
829
  # @param [String] locale
828
830
  # ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
829
831
  # @param [Boolean] show_preorders
@@ -851,12 +853,13 @@ module Google
851
853
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
852
854
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
853
855
  # @raise [Google::Apis::AuthorizationError] Authorization is required
854
- def sync_volume_licenses(source, nonce, cpksver, features: nil, locale: nil, show_preorders: nil, volume_ids: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
856
+ 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)
855
857
  command = make_simple_command(:post, 'myconfig/syncVolumeLicenses', options)
856
858
  command.response_representation = Google::Apis::BooksV1::Volumes::Representation
857
859
  command.response_class = Google::Apis::BooksV1::Volumes
858
860
  command.query['cpksver'] = cpksver unless cpksver.nil?
859
861
  command.query['features'] = features unless features.nil?
862
+ command.query['includeNonComicsSeries'] = include_non_comics_series unless include_non_comics_series.nil?
860
863
  command.query['locale'] = locale unless locale.nil?
861
864
  command.query['nonce'] = nonce unless nonce.nil?
862
865
  command.query['showPreorders'] = show_preorders unless show_preorders.nil?
@@ -1523,6 +1526,8 @@ module Google
1523
1526
  # generating notification title and body.
1524
1527
  # @param [String] source
1525
1528
  # String to identify the originator of this request.
1529
+ # @param [Array<String>, String] target_ids
1530
+ # List of target ids used for experiments or user segments
1526
1531
  # @param [String] fields
1527
1532
  # Selector specifying which fields to include in a partial response.
1528
1533
  # @param [String] quota_user
@@ -1544,13 +1549,14 @@ module Google
1544
1549
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1545
1550
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1546
1551
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1547
- def get_notification(notification_id, locale: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1552
+ def get_notification(notification_id, locale: nil, source: nil, target_ids: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1548
1553
  command = make_simple_command(:get, 'notification/get', options)
1549
1554
  command.response_representation = Google::Apis::BooksV1::Notification::Representation
1550
1555
  command.response_class = Google::Apis::BooksV1::Notification
1551
1556
  command.query['locale'] = locale unless locale.nil?
1552
1557
  command.query['notification_id'] = notification_id unless notification_id.nil?
1553
1558
  command.query['source'] = source unless source.nil?
1559
+ command.query['targetIds'] = target_ids unless target_ids.nil?
1554
1560
  command.query['fields'] = fields unless fields.nil?
1555
1561
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1556
1562
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1649,6 +1655,8 @@ module Google
1649
1655
  # higher maturity rating are filtered out.
1650
1656
  # @param [String] source
1651
1657
  # String to identify the originator of this request.
1658
+ # @param [Array<String>, String] target_ids
1659
+ # List of target ids used for experiments or user segments
1652
1660
  # @param [String] fields
1653
1661
  # Selector specifying which fields to include in a partial response.
1654
1662
  # @param [String] quota_user
@@ -1670,13 +1678,14 @@ module Google
1670
1678
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1671
1679
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1672
1680
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1673
- def get_personalizedstream(locale: nil, max_allowed_maturity_rating: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1681
+ def get_personalizedstream(locale: nil, max_allowed_maturity_rating: nil, source: nil, target_ids: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1674
1682
  command = make_simple_command(:get, 'personalizedstream/get', options)
1675
1683
  command.response_representation = Google::Apis::BooksV1::Discoveryclusters::Representation
1676
1684
  command.response_class = Google::Apis::BooksV1::Discoveryclusters
1677
1685
  command.query['locale'] = locale unless locale.nil?
1678
1686
  command.query['maxAllowedMaturityRating'] = max_allowed_maturity_rating unless max_allowed_maturity_rating.nil?
1679
1687
  command.query['source'] = source unless source.nil?
1688
+ command.query['targetIds'] = target_ids unless target_ids.nil?
1680
1689
  command.query['fields'] = fields unless fields.nil?
1681
1690
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1682
1691
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1918,6 +1927,8 @@ module Google
1918
1927
  # ID of volume to retrieve.
1919
1928
  # @param [String] country
1920
1929
  # ISO-3166-1 code to override the IP-based location.
1930
+ # @param [Boolean] include_non_comics_series
1931
+ # Set to true to include non-comics series. Defaults to false.
1921
1932
  # @param [String] partner
1922
1933
  # Brand results for partner ID.
1923
1934
  # @param [String] projection
@@ -1946,12 +1957,13 @@ module Google
1946
1957
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1947
1958
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1948
1959
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1949
- def get_volume(volume_id, country: nil, partner: nil, projection: nil, source: nil, user_library_consistent_read: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1960
+ 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)
1950
1961
  command = make_simple_command(:get, 'volumes/{volumeId}', options)
1951
1962
  command.response_representation = Google::Apis::BooksV1::Volume::Representation
1952
1963
  command.response_class = Google::Apis::BooksV1::Volume
1953
1964
  command.params['volumeId'] = volume_id unless volume_id.nil?
1954
1965
  command.query['country'] = country unless country.nil?
1966
+ command.query['includeNonComicsSeries'] = include_non_comics_series unless include_non_comics_series.nil?
1955
1967
  command.query['partner'] = partner unless partner.nil?
1956
1968
  command.query['projection'] = projection unless projection.nil?
1957
1969
  command.query['source'] = source unless source.nil?