google-api-client 0.9.15 → 0.9.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
  6. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +82 -3
  8. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +33 -0
  9. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +38 -0
  10. data/generated/google/apis/admin_directory_v1.rb +1 -1
  11. data/generated/google/apis/admin_directory_v1/classes.rb +80 -0
  12. data/generated/google/apis/admin_directory_v1/representations.rb +23 -0
  13. data/generated/google/apis/admin_directory_v1/service.rb +39 -0
  14. data/generated/google/apis/adsense_v1_4.rb +1 -1
  15. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  16. data/generated/google/apis/analytics_v3.rb +1 -1
  17. data/generated/google/apis/analytics_v3/classes.rb +11 -5
  18. data/generated/google/apis/analytics_v3/representations.rb +1 -0
  19. data/generated/google/apis/analytics_v3/service.rb +17 -18
  20. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  21. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  22. data/generated/google/apis/androidenterprise_v1/classes.rb +80 -2
  23. data/generated/google/apis/androidenterprise_v1/representations.rb +30 -0
  24. data/generated/google/apis/androidenterprise_v1/service.rb +55 -6
  25. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  26. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  27. data/generated/google/apis/appengine_v1beta5/classes.rb +1 -1
  28. data/generated/google/apis/appengine_v1beta5/service.rb +36 -0
  29. data/generated/google/apis/appsactivity_v1.rb +1 -1
  30. data/generated/google/apis/bigquery_v2.rb +1 -1
  31. data/generated/google/apis/bigquery_v2/classes.rb +2 -2
  32. data/generated/google/apis/books_v1.rb +1 -1
  33. data/generated/google/apis/books_v1/classes.rb +2 -1
  34. data/generated/google/apis/calendar_v3.rb +1 -1
  35. data/generated/google/apis/classroom_v1.rb +1 -1
  36. data/generated/google/apis/classroom_v1/classes.rb +7 -0
  37. data/generated/google/apis/classroom_v1/representations.rb +1 -0
  38. data/generated/google/apis/classroom_v1/service.rb +25 -15
  39. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  40. data/generated/google/apis/cloudbuild_v1/classes.rb +56 -8
  41. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  42. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +535 -298
  43. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +141 -36
  44. data/generated/google/apis/cloudresourcemanager_v1/service.rb +250 -45
  45. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  46. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +99 -4
  47. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +44 -0
  48. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +24 -33
  49. data/generated/google/apis/compute_beta.rb +1 -1
  50. data/generated/google/apis/compute_beta/classes.rb +44 -29
  51. data/generated/google/apis/compute_beta/representations.rb +1 -0
  52. data/generated/google/apis/compute_beta/service.rb +123 -25
  53. data/generated/google/apis/compute_v1.rb +1 -1
  54. data/generated/google/apis/compute_v1/classes.rb +43 -20
  55. data/generated/google/apis/compute_v1/representations.rb +3 -0
  56. data/generated/google/apis/compute_v1/service.rb +608 -67
  57. data/generated/google/apis/content_v2.rb +1 -1
  58. data/generated/google/apis/dataflow_v1b3.rb +38 -0
  59. data/generated/google/apis/dataflow_v1b3/classes.rb +4009 -0
  60. data/generated/google/apis/dataflow_v1b3/representations.rb +1718 -0
  61. data/generated/google/apis/dataflow_v1b3/service.rb +515 -0
  62. data/generated/google/apis/datastore_v1.rb +1 -1
  63. data/generated/google/apis/dns_v1.rb +1 -1
  64. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  65. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
  66. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
  67. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
  68. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  69. data/generated/google/apis/drive_v2.rb +1 -1
  70. data/generated/google/apis/drive_v2/classes.rb +9 -0
  71. data/generated/google/apis/drive_v2/representations.rb +1 -0
  72. data/generated/google/apis/drive_v2/service.rb +8 -1
  73. data/generated/google/apis/drive_v3.rb +1 -1
  74. data/generated/google/apis/drive_v3/classes.rb +7 -0
  75. data/generated/google/apis/drive_v3/representations.rb +1 -0
  76. data/generated/google/apis/drive_v3/service.rb +8 -1
  77. data/generated/google/apis/genomics_v1.rb +1 -1
  78. data/generated/google/apis/iam_v1.rb +2 -2
  79. data/generated/google/apis/iam_v1/classes.rb +181 -206
  80. data/generated/google/apis/iam_v1/representations.rb +36 -45
  81. data/generated/google/apis/iam_v1/service.rb +101 -67
  82. data/generated/google/apis/identitytoolkit_v3.rb +4 -1
  83. data/generated/google/apis/identitytoolkit_v3/classes.rb +11 -27
  84. data/generated/google/apis/identitytoolkit_v3/representations.rb +2 -16
  85. data/generated/google/apis/language_v1beta1.rb +1 -1
  86. data/generated/google/apis/language_v1beta1/classes.rb +4 -2
  87. data/generated/google/apis/language_v1beta1/service.rb +2 -4
  88. data/generated/google/apis/logging_v2beta1.rb +6 -6
  89. data/generated/google/apis/logging_v2beta1/classes.rb +742 -732
  90. data/generated/google/apis/logging_v2beta1/representations.rb +134 -147
  91. data/generated/google/apis/logging_v2beta1/service.rb +276 -209
  92. data/generated/google/apis/monitoring_v3.rb +1 -1
  93. data/generated/google/apis/monitoring_v3/classes.rb +20 -13
  94. data/generated/google/apis/monitoring_v3/service.rb +1 -1
  95. data/generated/google/apis/oauth2_v2.rb +1 -1
  96. data/generated/google/apis/plus_domains_v1.rb +1 -1
  97. data/generated/google/apis/plus_v1.rb +1 -1
  98. data/generated/google/apis/pubsub_v1.rb +1 -1
  99. data/generated/google/apis/pubsub_v1/classes.rb +10 -9
  100. data/generated/google/apis/pubsub_v1/service.rb +128 -27
  101. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
  102. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
  103. data/generated/google/apis/sheets_v4.rb +1 -1
  104. data/generated/google/apis/sheets_v4/classes.rb +2 -0
  105. data/generated/google/apis/speech_v1beta1.rb +1 -1
  106. data/generated/google/apis/speech_v1beta1/classes.rb +20 -30
  107. data/generated/google/apis/speech_v1beta1/representations.rb +6 -7
  108. data/generated/google/apis/speech_v1beta1/service.rb +68 -65
  109. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  110. data/generated/google/apis/sqladmin_v1beta4/classes.rb +6 -0
  111. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  112. data/generated/google/apis/storage_v1.rb +1 -1
  113. data/generated/google/apis/storage_v1/classes.rb +3 -3
  114. data/generated/google/apis/storage_v1/representations.rb +2 -1
  115. data/generated/google/apis/storage_v1/service.rb +5 -2
  116. data/generated/google/apis/vision_v1.rb +1 -1
  117. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  118. data/lib/google/apis/version.rb +1 -1
  119. metadata +10 -2
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/datastore/
27
27
  module DatastoreV1
28
28
  VERSION = 'V1'
29
- REVISION = '20160823'
29
+ REVISION = '20161004'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/cloud-dns
26
26
  module DnsV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160825'
28
+ REVISION = '20161005'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/bid-manager/
26
26
  module DoubleclickbidmanagerV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160608'
28
+ REVISION = '20161010'
29
29
  end
30
30
  end
31
31
  end
@@ -81,6 +81,85 @@ module Google
81
81
  end
82
82
  end
83
83
 
84
+ # Request to fetch stored insertion orders, line items, TrueView ad groups and
85
+ # ads.
86
+ class DownloadRequest
87
+ include Google::Apis::Core::Hashable
88
+
89
+ # File types that will be returned.
90
+ # Corresponds to the JSON property `fileTypes`
91
+ # @return [Array<String>]
92
+ attr_accessor :file_types
93
+
94
+ # The IDs of the specified filter type. This is used to filter entities to fetch.
95
+ # At least one ID must be specified. Only one ID is allowed for the
96
+ # ADVERTISER_ID filter type. For INSERTION_ORDER_ID or LINE_ITEM_ID filter types
97
+ # all IDs must be from the same Advertiser.
98
+ # Corresponds to the JSON property `filterIds`
99
+ # @return [Array<String>]
100
+ attr_accessor :filter_ids
101
+
102
+ # Filter type used to filter line items to fetch.
103
+ # Corresponds to the JSON property `filterType`
104
+ # @return [String]
105
+ attr_accessor :filter_type
106
+
107
+ # SDF Version (column names, types, order) in which the entities will be
108
+ # returned. Default to 3.
109
+ # Corresponds to the JSON property `version`
110
+ # @return [String]
111
+ attr_accessor :version
112
+
113
+ def initialize(**args)
114
+ update!(**args)
115
+ end
116
+
117
+ # Update properties of this object
118
+ def update!(**args)
119
+ @file_types = args[:file_types] if args.key?(:file_types)
120
+ @filter_ids = args[:filter_ids] if args.key?(:filter_ids)
121
+ @filter_type = args[:filter_type] if args.key?(:filter_type)
122
+ @version = args[:version] if args.key?(:version)
123
+ end
124
+ end
125
+
126
+ # Download response.
127
+ class DownloadResponse
128
+ include Google::Apis::Core::Hashable
129
+
130
+ # Retrieved ad groups in SDF format.
131
+ # Corresponds to the JSON property `adGroups`
132
+ # @return [String]
133
+ attr_accessor :ad_groups
134
+
135
+ # Retrieved ads in SDF format.
136
+ # Corresponds to the JSON property `ads`
137
+ # @return [String]
138
+ attr_accessor :ads
139
+
140
+ # Retrieved insertion orders in SDF format.
141
+ # Corresponds to the JSON property `insertionOrders`
142
+ # @return [String]
143
+ attr_accessor :insertion_orders
144
+
145
+ # Retrieved line items in SDF format.
146
+ # Corresponds to the JSON property `lineItems`
147
+ # @return [String]
148
+ attr_accessor :line_items
149
+
150
+ def initialize(**args)
151
+ update!(**args)
152
+ end
153
+
154
+ # Update properties of this object
155
+ def update!(**args)
156
+ @ad_groups = args[:ad_groups] if args.key?(:ad_groups)
157
+ @ads = args[:ads] if args.key?(:ads)
158
+ @insertion_orders = args[:insertion_orders] if args.key?(:insertion_orders)
159
+ @line_items = args[:line_items] if args.key?(:line_items)
160
+ end
161
+ end
162
+
84
163
  # Filter used to match traffic data in your report.
85
164
  class FilterPair
86
165
  include Google::Apis::Core::Hashable
@@ -158,92 +237,6 @@ module Google
158
237
  end
159
238
  end
160
239
 
161
- # Publisher comment from Rubicon.
162
- class Note
163
- include Google::Apis::Core::Hashable
164
-
165
- # Note id.
166
- # Corresponds to the JSON property `id`
167
- # @return [String]
168
- attr_accessor :id
169
-
170
- # Message from publisher.
171
- # Corresponds to the JSON property `message`
172
- # @return [String]
173
- attr_accessor :message
174
-
175
- # Equals "publisher" for notification from Rubicon.
176
- # Corresponds to the JSON property `source`
177
- # @return [String]
178
- attr_accessor :source
179
-
180
- # Time when the note was added, e.g. "2015-12-16T17:25:35.000-08:00".
181
- # Corresponds to the JSON property `timestamp`
182
- # @return [String]
183
- attr_accessor :timestamp
184
-
185
- # Publisher user name.
186
- # Corresponds to the JSON property `username`
187
- # @return [String]
188
- attr_accessor :username
189
-
190
- def initialize(**args)
191
- update!(**args)
192
- end
193
-
194
- # Update properties of this object
195
- def update!(**args)
196
- @id = args[:id] if args.key?(:id)
197
- @message = args[:message] if args.key?(:message)
198
- @source = args[:source] if args.key?(:source)
199
- @timestamp = args[:timestamp] if args.key?(:timestamp)
200
- @username = args[:username] if args.key?(:username)
201
- end
202
- end
203
-
204
- # NotifyProposalChange request.
205
- class NotifyProposalChangeRequest
206
- include Google::Apis::Core::Hashable
207
-
208
- # Action taken by publisher. One of: Accept, Decline, Append
209
- # Corresponds to the JSON property `action`
210
- # @return [String]
211
- attr_accessor :action
212
-
213
- # URL to access proposal detail.
214
- # Corresponds to the JSON property `href`
215
- # @return [String]
216
- attr_accessor :href
217
-
218
- # Below are contents of notification from Rubicon. Proposal id.
219
- # Corresponds to the JSON property `id`
220
- # @return [String]
221
- attr_accessor :id
222
-
223
- # Notes from publisher
224
- # Corresponds to the JSON property `notes`
225
- # @return [Array<Google::Apis::DoubleclickbidmanagerV1::Note>]
226
- attr_accessor :notes
227
-
228
- # Deal token, available when proposal is accepted by publisher.
229
- # Corresponds to the JSON property `token`
230
- # @return [String]
231
- attr_accessor :token
232
-
233
- def initialize(**args)
234
- update!(**args)
235
- end
236
-
237
- # Update properties of this object
238
- def update!(**args)
239
- @action = args[:action] if args.key?(:action)
240
- @href = args[:href] if args.key?(:href)
241
- @id = args[:id] if args.key?(:id)
242
- @notes = args[:notes] if args.key?(:notes)
243
- @token = args[:token] if args.key?(:token)
244
- end
245
- end
246
-
247
240
  # Parameters of a query or report.
248
241
  class Parameters
249
242
  include Google::Apis::Core::Hashable
@@ -34,31 +34,31 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
- class FilterPair
37
+ class DownloadRequest
38
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
39
 
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
- class ListQueriesResponse
43
+ class DownloadResponse
44
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
45
 
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
- class ListReportsResponse
49
+ class FilterPair
50
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
51
 
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
- class Note
55
+ class ListQueriesResponse
56
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
57
 
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
- class NotifyProposalChangeRequest
61
+ class ListReportsResponse
62
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
63
 
64
64
  include Google::Apis::Core::JsonObjectSupport
@@ -165,52 +165,49 @@ module Google
165
165
  end
166
166
  end
167
167
 
168
- class FilterPair
168
+ class DownloadRequest
169
169
  # @private
170
170
  class Representation < Google::Apis::Core::JsonRepresentation
171
- property :type, as: 'type'
172
- property :value, as: 'value'
171
+ collection :file_types, as: 'fileTypes'
172
+ collection :filter_ids, as: 'filterIds'
173
+ property :filter_type, as: 'filterType'
174
+ property :version, as: 'version'
173
175
  end
174
176
  end
175
177
 
176
- class ListQueriesResponse
178
+ class DownloadResponse
177
179
  # @private
178
180
  class Representation < Google::Apis::Core::JsonRepresentation
179
- property :kind, as: 'kind'
180
- collection :queries, as: 'queries', class: Google::Apis::DoubleclickbidmanagerV1::Query, decorator: Google::Apis::DoubleclickbidmanagerV1::Query::Representation
181
-
181
+ property :ad_groups, as: 'adGroups'
182
+ property :ads, as: 'ads'
183
+ property :insertion_orders, as: 'insertionOrders'
184
+ property :line_items, as: 'lineItems'
182
185
  end
183
186
  end
184
187
 
185
- class ListReportsResponse
188
+ class FilterPair
186
189
  # @private
187
190
  class Representation < Google::Apis::Core::JsonRepresentation
188
- property :kind, as: 'kind'
189
- collection :reports, as: 'reports', class: Google::Apis::DoubleclickbidmanagerV1::Report, decorator: Google::Apis::DoubleclickbidmanagerV1::Report::Representation
190
-
191
+ property :type, as: 'type'
192
+ property :value, as: 'value'
191
193
  end
192
194
  end
193
195
 
194
- class Note
196
+ class ListQueriesResponse
195
197
  # @private
196
198
  class Representation < Google::Apis::Core::JsonRepresentation
197
- property :id, as: 'id'
198
- property :message, as: 'message'
199
- property :source, as: 'source'
200
- property :timestamp, as: 'timestamp'
201
- property :username, as: 'username'
199
+ property :kind, as: 'kind'
200
+ collection :queries, as: 'queries', class: Google::Apis::DoubleclickbidmanagerV1::Query, decorator: Google::Apis::DoubleclickbidmanagerV1::Query::Representation
201
+
202
202
  end
203
203
  end
204
204
 
205
- class NotifyProposalChangeRequest
205
+ class ListReportsResponse
206
206
  # @private
207
207
  class Representation < Google::Apis::Core::JsonRepresentation
208
- property :action, as: 'action'
209
- property :href, as: 'href'
210
- property :id, as: 'id'
211
- collection :notes, as: 'notes', class: Google::Apis::DoubleclickbidmanagerV1::Note, decorator: Google::Apis::DoubleclickbidmanagerV1::Note::Representation
208
+ property :kind, as: 'kind'
209
+ collection :reports, as: 'reports', class: Google::Apis::DoubleclickbidmanagerV1::Report, decorator: Google::Apis::DoubleclickbidmanagerV1::Report::Representation
212
210
 
213
- property :token, as: 'token'
214
211
  end
215
212
  end
216
213
 
@@ -328,8 +328,8 @@ module Google
328
328
  execute_or_queue_command(command, &block)
329
329
  end
330
330
 
331
- # Update proposal upon actions of Rubicon publisher.
332
- # @param [Google::Apis::DoubleclickbidmanagerV1::NotifyProposalChangeRequest] notify_proposal_change_request_object
331
+ # Retrieves entities in SDF format.
332
+ # @param [Google::Apis::DoubleclickbidmanagerV1::DownloadRequest] download_request_object
333
333
  # @param [String] fields
334
334
  # Selector specifying which fields to include in a partial response.
335
335
  # @param [String] quota_user
@@ -343,18 +343,20 @@ module Google
343
343
  # Request-specific options
344
344
  #
345
345
  # @yield [result, err] Result & error if block supplied
346
- # @yieldparam result [NilClass] No result returned for this method
346
+ # @yieldparam result [Google::Apis::DoubleclickbidmanagerV1::DownloadResponse] parsed result object
347
347
  # @yieldparam err [StandardError] error object if request failed
348
348
  #
349
- # @return [void]
349
+ # @return [Google::Apis::DoubleclickbidmanagerV1::DownloadResponse]
350
350
  #
351
351
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
352
352
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
353
353
  # @raise [Google::Apis::AuthorizationError] Authorization is required
354
- def notifyproposalchange_rubicon(notify_proposal_change_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
355
- command = make_simple_command(:post, 'rubicon/notifyproposalchange', options)
356
- command.request_representation = Google::Apis::DoubleclickbidmanagerV1::NotifyProposalChangeRequest::Representation
357
- command.request_object = notify_proposal_change_request_object
354
+ def download_sdf(download_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
355
+ command = make_simple_command(:post, 'sdf/download', options)
356
+ command.request_representation = Google::Apis::DoubleclickbidmanagerV1::DownloadRequest::Representation
357
+ command.request_object = download_request_object
358
+ command.response_representation = Google::Apis::DoubleclickbidmanagerV1::DownloadResponse::Representation
359
+ command.response_class = Google::Apis::DoubleclickbidmanagerV1::DownloadResponse
358
360
  command.query['fields'] = fields unless fields.nil?
359
361
  command.query['quotaUser'] = quota_user unless quota_user.nil?
360
362
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/doubleclick-search/
27
27
  module DoubleclicksearchV2
28
28
  VERSION = 'V2'
29
- REVISION = '20160907'
29
+ REVISION = '20161005'
30
30
 
31
31
  # View and manage your advertising data in DoubleClick Search
32
32
  AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/drive/
27
27
  module DriveV2
28
28
  VERSION = 'V2'
29
- REVISION = '20160913'
29
+ REVISION = '20161006'
30
30
 
31
31
  # View and manage the files in your Google Drive
32
32
  AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
@@ -2491,6 +2491,14 @@ module Google
2491
2491
  # @return [String]
2492
2492
  attr_accessor :kind
2493
2493
 
2494
+ # The page token for the next page of revisions. This field will be absent if
2495
+ # the end of the revisions list has been reached. If the token is rejected for
2496
+ # any reason, it should be discarded and pagination should be restarted from the
2497
+ # first page of results.
2498
+ # Corresponds to the JSON property `nextPageToken`
2499
+ # @return [String]
2500
+ attr_accessor :next_page_token
2501
+
2494
2502
  # A link back to this list.
2495
2503
  # Corresponds to the JSON property `selfLink`
2496
2504
  # @return [String]
@@ -2505,6 +2513,7 @@ module Google
2505
2513
  @etag = args[:etag] if args.key?(:etag)
2506
2514
  @items = args[:items] if args.key?(:items)
2507
2515
  @kind = args[:kind] if args.key?(:kind)
2516
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2508
2517
  @self_link = args[:self_link] if args.key?(:self_link)
2509
2518
  end
2510
2519
  end
@@ -853,6 +853,7 @@ module Google
853
853
  collection :items, as: 'items', class: Google::Apis::DriveV2::Revision, decorator: Google::Apis::DriveV2::Revision::Representation
854
854
 
855
855
  property :kind, as: 'kind'
856
+ property :next_page_token, as: 'nextPageToken'
856
857
  property :self_link, as: 'selfLink'
857
858
  end
858
859
  end
@@ -2620,6 +2620,11 @@ module Google
2620
2620
  # Lists a file's revisions.
2621
2621
  # @param [String] file_id
2622
2622
  # The ID of the file.
2623
+ # @param [Fixnum] max_results
2624
+ # Maximum number of revisions to return.
2625
+ # @param [String] page_token
2626
+ # Page token for revisions. To get the next page of results, set this parameter
2627
+ # to the value of "nextPageToken" from the previous response.
2623
2628
  # @param [String] fields
2624
2629
  # Selector specifying which fields to include in a partial response.
2625
2630
  # @param [String] quota_user
@@ -2641,11 +2646,13 @@ module Google
2641
2646
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2642
2647
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2643
2648
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2644
- def list_revisions(file_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2649
+ def list_revisions(file_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2645
2650
  command = make_simple_command(:get, 'files/{fileId}/revisions', options)
2646
2651
  command.response_representation = Google::Apis::DriveV2::RevisionList::Representation
2647
2652
  command.response_class = Google::Apis::DriveV2::RevisionList
2648
2653
  command.params['fileId'] = file_id unless file_id.nil?
2654
+ command.query['maxResults'] = max_results unless max_results.nil?
2655
+ command.query['pageToken'] = page_token unless page_token.nil?
2649
2656
  command.query['fields'] = fields unless fields.nil?
2650
2657
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2651
2658
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/drive/
27
27
  module DriveV3
28
28
  VERSION = 'V3'
29
- REVISION = '20160913'
29
+ REVISION = '20161006'
30
30
 
31
31
  # View and manage the files in your Google Drive
32
32
  AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
@@ -1471,6 +1471,12 @@ module Google
1471
1471
  # @return [String]
1472
1472
  attr_accessor :kind
1473
1473
 
1474
+ # The page token for the next page of revisions. This will be absent if the end
1475
+ # of the revisions list has been reached.
1476
+ # Corresponds to the JSON property `nextPageToken`
1477
+ # @return [String]
1478
+ attr_accessor :next_page_token
1479
+
1474
1480
  # The full list of revisions.
1475
1481
  # Corresponds to the JSON property `revisions`
1476
1482
  # @return [Array<Google::Apis::DriveV3::Revision>]
@@ -1483,6 +1489,7 @@ module Google
1483
1489
  # Update properties of this object
1484
1490
  def update!(**args)
1485
1491
  @kind = args[:kind] if args.key?(:kind)
1492
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1486
1493
  @revisions = args[:revisions] if args.key?(:revisions)
1487
1494
  end
1488
1495
  end