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.
- checksums.yaml +4 -4
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +82 -3
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +33 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +38 -0
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +80 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +23 -0
- data/generated/google/apis/admin_directory_v1/service.rb +39 -0
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +11 -5
- data/generated/google/apis/analytics_v3/representations.rb +1 -0
- data/generated/google/apis/analytics_v3/service.rb +17 -18
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +80 -2
- data/generated/google/apis/androidenterprise_v1/representations.rb +30 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +55 -6
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/service.rb +36 -0
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +2 -2
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +2 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +7 -0
- data/generated/google/apis/classroom_v1/representations.rb +1 -0
- data/generated/google/apis/classroom_v1/service.rb +25 -15
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +56 -8
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +535 -298
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +141 -36
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +250 -45
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +99 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +44 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +24 -33
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +44 -29
- data/generated/google/apis/compute_beta/representations.rb +1 -0
- data/generated/google/apis/compute_beta/service.rb +123 -25
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +43 -20
- data/generated/google/apis/compute_v1/representations.rb +3 -0
- data/generated/google/apis/compute_v1/service.rb +608 -67
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +38 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +4009 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +1718 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +515 -0
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +9 -0
- data/generated/google/apis/drive_v2/representations.rb +1 -0
- data/generated/google/apis/drive_v2/service.rb +8 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +7 -0
- data/generated/google/apis/drive_v3/representations.rb +1 -0
- data/generated/google/apis/drive_v3/service.rb +8 -1
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +2 -2
- data/generated/google/apis/iam_v1/classes.rb +181 -206
- data/generated/google/apis/iam_v1/representations.rb +36 -45
- data/generated/google/apis/iam_v1/service.rb +101 -67
- data/generated/google/apis/identitytoolkit_v3.rb +4 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +11 -27
- data/generated/google/apis/identitytoolkit_v3/representations.rb +2 -16
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +4 -2
- data/generated/google/apis/language_v1beta1/service.rb +2 -4
- data/generated/google/apis/logging_v2beta1.rb +6 -6
- data/generated/google/apis/logging_v2beta1/classes.rb +742 -732
- data/generated/google/apis/logging_v2beta1/representations.rb +134 -147
- data/generated/google/apis/logging_v2beta1/service.rb +276 -209
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +20 -13
- data/generated/google/apis/monitoring_v3/service.rb +1 -1
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +10 -9
- data/generated/google/apis/pubsub_v1/service.rb +128 -27
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +2 -0
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +20 -30
- data/generated/google/apis/speech_v1beta1/representations.rb +6 -7
- data/generated/google/apis/speech_v1beta1/service.rb +68 -65
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +6 -0
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +3 -3
- data/generated/google/apis/storage_v1/representations.rb +2 -1
- data/generated/google/apis/storage_v1/service.rb +5 -2
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- 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 = '
|
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 = '
|
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'
|
@@ -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
|
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
|
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
|
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
|
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
|
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
|
168
|
+
class DownloadRequest
|
169
169
|
# @private
|
170
170
|
class Representation < Google::Apis::Core::JsonRepresentation
|
171
|
-
|
172
|
-
|
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
|
178
|
+
class DownloadResponse
|
177
179
|
# @private
|
178
180
|
class Representation < Google::Apis::Core::JsonRepresentation
|
179
|
-
property :
|
180
|
-
|
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
|
188
|
+
class FilterPair
|
186
189
|
# @private
|
187
190
|
class Representation < Google::Apis::Core::JsonRepresentation
|
188
|
-
property :
|
189
|
-
|
190
|
-
|
191
|
+
property :type, as: 'type'
|
192
|
+
property :value, as: 'value'
|
191
193
|
end
|
192
194
|
end
|
193
195
|
|
194
|
-
class
|
196
|
+
class ListQueriesResponse
|
195
197
|
# @private
|
196
198
|
class Representation < Google::Apis::Core::JsonRepresentation
|
197
|
-
property :
|
198
|
-
|
199
|
-
|
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
|
205
|
+
class ListReportsResponse
|
206
206
|
# @private
|
207
207
|
class Representation < Google::Apis::Core::JsonRepresentation
|
208
|
-
property :
|
209
|
-
|
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
|
-
#
|
332
|
-
# @param [Google::Apis::DoubleclickbidmanagerV1::
|
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 [
|
346
|
+
# @yieldparam result [Google::Apis::DoubleclickbidmanagerV1::DownloadResponse] parsed result object
|
347
347
|
# @yieldparam err [StandardError] error object if request failed
|
348
348
|
#
|
349
|
-
# @return [
|
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
|
355
|
-
command = make_simple_command(:post, '
|
356
|
-
command.request_representation = Google::Apis::DoubleclickbidmanagerV1::
|
357
|
-
command.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 = '
|
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'
|
@@ -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?
|
@@ -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
|