google-apis-drive_v2 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +202 -0
- data/OVERVIEW.md +96 -0
- data/lib/google-apis-drive_v2.rb +15 -0
- data/lib/google/apis/drive_v2.rb +61 -0
- data/lib/google/apis/drive_v2/classes.rb +4137 -0
- data/lib/google/apis/drive_v2/gem_version.rb +28 -0
- data/lib/google/apis/drive_v2/representations.rb +1290 -0
- data/lib/google/apis/drive_v2/service.rb +3409 -0
- metadata +76 -0
@@ -0,0 +1,28 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
module Google
|
16
|
+
module Apis
|
17
|
+
module DriveV2
|
18
|
+
# Version of the google-apis-drive_v2 gem
|
19
|
+
GEM_VERSION = "0.1.0"
|
20
|
+
|
21
|
+
# Version of the code generator used to generate this client
|
22
|
+
GENERATOR_VERSION = "0.1.1"
|
23
|
+
|
24
|
+
# Revision of the discovery document this client was generated from
|
25
|
+
REVISION = "20201130"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,1290 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module DriveV2
|
24
|
+
|
25
|
+
class About
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
class AdditionalRoleInfo
|
29
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
30
|
+
|
31
|
+
class RoleSet
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
include Google::Apis::Core::JsonObjectSupport
|
38
|
+
end
|
39
|
+
|
40
|
+
class DriveTheme
|
41
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
42
|
+
|
43
|
+
include Google::Apis::Core::JsonObjectSupport
|
44
|
+
end
|
45
|
+
|
46
|
+
class ExportFormat
|
47
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
48
|
+
|
49
|
+
include Google::Apis::Core::JsonObjectSupport
|
50
|
+
end
|
51
|
+
|
52
|
+
class Feature
|
53
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
54
|
+
|
55
|
+
include Google::Apis::Core::JsonObjectSupport
|
56
|
+
end
|
57
|
+
|
58
|
+
class ImportFormat
|
59
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
60
|
+
|
61
|
+
include Google::Apis::Core::JsonObjectSupport
|
62
|
+
end
|
63
|
+
|
64
|
+
class MaxUploadSize
|
65
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
66
|
+
|
67
|
+
include Google::Apis::Core::JsonObjectSupport
|
68
|
+
end
|
69
|
+
|
70
|
+
class QuotaBytesByService
|
71
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
72
|
+
|
73
|
+
include Google::Apis::Core::JsonObjectSupport
|
74
|
+
end
|
75
|
+
|
76
|
+
class TeamDriveTheme
|
77
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
78
|
+
|
79
|
+
include Google::Apis::Core::JsonObjectSupport
|
80
|
+
end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class App
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
class Icon
|
89
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
90
|
+
|
91
|
+
include Google::Apis::Core::JsonObjectSupport
|
92
|
+
end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class AppList
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
103
|
+
class Change
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
109
|
+
class ChangeList
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
115
|
+
class Channel
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
121
|
+
class ChildList
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
127
|
+
class ChildReference
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
133
|
+
class Comment
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
class Context
|
137
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
138
|
+
|
139
|
+
include Google::Apis::Core::JsonObjectSupport
|
140
|
+
end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
145
|
+
class CommentList
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
151
|
+
class CommentReply
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
+
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
155
|
+
end
|
156
|
+
|
157
|
+
class CommentReplyList
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
|
+
|
160
|
+
include Google::Apis::Core::JsonObjectSupport
|
161
|
+
end
|
162
|
+
|
163
|
+
class ContentRestriction
|
164
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
|
+
|
166
|
+
include Google::Apis::Core::JsonObjectSupport
|
167
|
+
end
|
168
|
+
|
169
|
+
class Drive
|
170
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
|
+
|
172
|
+
class BackgroundImageFile
|
173
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
174
|
+
|
175
|
+
include Google::Apis::Core::JsonObjectSupport
|
176
|
+
end
|
177
|
+
|
178
|
+
class Capabilities
|
179
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
180
|
+
|
181
|
+
include Google::Apis::Core::JsonObjectSupport
|
182
|
+
end
|
183
|
+
|
184
|
+
class Restrictions
|
185
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
186
|
+
|
187
|
+
include Google::Apis::Core::JsonObjectSupport
|
188
|
+
end
|
189
|
+
|
190
|
+
include Google::Apis::Core::JsonObjectSupport
|
191
|
+
end
|
192
|
+
|
193
|
+
class DriveList
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
|
+
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
197
|
+
end
|
198
|
+
|
199
|
+
class File
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
|
+
|
202
|
+
class Capabilities
|
203
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
204
|
+
|
205
|
+
include Google::Apis::Core::JsonObjectSupport
|
206
|
+
end
|
207
|
+
|
208
|
+
class ImageMediaMetadata
|
209
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
210
|
+
|
211
|
+
class Location
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
|
+
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
215
|
+
end
|
216
|
+
|
217
|
+
include Google::Apis::Core::JsonObjectSupport
|
218
|
+
end
|
219
|
+
|
220
|
+
class IndexableText
|
221
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
222
|
+
|
223
|
+
include Google::Apis::Core::JsonObjectSupport
|
224
|
+
end
|
225
|
+
|
226
|
+
class Labels
|
227
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
228
|
+
|
229
|
+
include Google::Apis::Core::JsonObjectSupport
|
230
|
+
end
|
231
|
+
|
232
|
+
class ShortcutDetails
|
233
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
234
|
+
|
235
|
+
include Google::Apis::Core::JsonObjectSupport
|
236
|
+
end
|
237
|
+
|
238
|
+
class Thumbnail
|
239
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
240
|
+
|
241
|
+
include Google::Apis::Core::JsonObjectSupport
|
242
|
+
end
|
243
|
+
|
244
|
+
class VideoMediaMetadata
|
245
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
246
|
+
|
247
|
+
include Google::Apis::Core::JsonObjectSupport
|
248
|
+
end
|
249
|
+
|
250
|
+
include Google::Apis::Core::JsonObjectSupport
|
251
|
+
end
|
252
|
+
|
253
|
+
class FileList
|
254
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
255
|
+
|
256
|
+
include Google::Apis::Core::JsonObjectSupport
|
257
|
+
end
|
258
|
+
|
259
|
+
class GeneratedIds
|
260
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
261
|
+
|
262
|
+
include Google::Apis::Core::JsonObjectSupport
|
263
|
+
end
|
264
|
+
|
265
|
+
class ParentList
|
266
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
267
|
+
|
268
|
+
include Google::Apis::Core::JsonObjectSupport
|
269
|
+
end
|
270
|
+
|
271
|
+
class ParentReference
|
272
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
273
|
+
|
274
|
+
include Google::Apis::Core::JsonObjectSupport
|
275
|
+
end
|
276
|
+
|
277
|
+
class Permission
|
278
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
279
|
+
|
280
|
+
class PermissionDetail
|
281
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
282
|
+
|
283
|
+
include Google::Apis::Core::JsonObjectSupport
|
284
|
+
end
|
285
|
+
|
286
|
+
class TeamDrivePermissionDetail
|
287
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
288
|
+
|
289
|
+
include Google::Apis::Core::JsonObjectSupport
|
290
|
+
end
|
291
|
+
|
292
|
+
include Google::Apis::Core::JsonObjectSupport
|
293
|
+
end
|
294
|
+
|
295
|
+
class PermissionId
|
296
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
297
|
+
|
298
|
+
include Google::Apis::Core::JsonObjectSupport
|
299
|
+
end
|
300
|
+
|
301
|
+
class PermissionList
|
302
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
303
|
+
|
304
|
+
include Google::Apis::Core::JsonObjectSupport
|
305
|
+
end
|
306
|
+
|
307
|
+
class Property
|
308
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
309
|
+
|
310
|
+
include Google::Apis::Core::JsonObjectSupport
|
311
|
+
end
|
312
|
+
|
313
|
+
class PropertyList
|
314
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
315
|
+
|
316
|
+
include Google::Apis::Core::JsonObjectSupport
|
317
|
+
end
|
318
|
+
|
319
|
+
class Revision
|
320
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
321
|
+
|
322
|
+
include Google::Apis::Core::JsonObjectSupport
|
323
|
+
end
|
324
|
+
|
325
|
+
class RevisionList
|
326
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
327
|
+
|
328
|
+
include Google::Apis::Core::JsonObjectSupport
|
329
|
+
end
|
330
|
+
|
331
|
+
class StartPageToken
|
332
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
333
|
+
|
334
|
+
include Google::Apis::Core::JsonObjectSupport
|
335
|
+
end
|
336
|
+
|
337
|
+
class TeamDrive
|
338
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
339
|
+
|
340
|
+
class BackgroundImageFile
|
341
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
342
|
+
|
343
|
+
include Google::Apis::Core::JsonObjectSupport
|
344
|
+
end
|
345
|
+
|
346
|
+
class Capabilities
|
347
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
348
|
+
|
349
|
+
include Google::Apis::Core::JsonObjectSupport
|
350
|
+
end
|
351
|
+
|
352
|
+
class Restrictions
|
353
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
354
|
+
|
355
|
+
include Google::Apis::Core::JsonObjectSupport
|
356
|
+
end
|
357
|
+
|
358
|
+
include Google::Apis::Core::JsonObjectSupport
|
359
|
+
end
|
360
|
+
|
361
|
+
class TeamDriveList
|
362
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
363
|
+
|
364
|
+
include Google::Apis::Core::JsonObjectSupport
|
365
|
+
end
|
366
|
+
|
367
|
+
class User
|
368
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
369
|
+
|
370
|
+
class Picture
|
371
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
372
|
+
|
373
|
+
include Google::Apis::Core::JsonObjectSupport
|
374
|
+
end
|
375
|
+
|
376
|
+
include Google::Apis::Core::JsonObjectSupport
|
377
|
+
end
|
378
|
+
|
379
|
+
class About
|
380
|
+
# @private
|
381
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
382
|
+
collection :additional_role_info, as: 'additionalRoleInfo', class: Google::Apis::DriveV2::About::AdditionalRoleInfo, decorator: Google::Apis::DriveV2::About::AdditionalRoleInfo::Representation
|
383
|
+
|
384
|
+
property :can_create_drives, as: 'canCreateDrives'
|
385
|
+
property :can_create_team_drives, as: 'canCreateTeamDrives'
|
386
|
+
property :domain_sharing_policy, as: 'domainSharingPolicy'
|
387
|
+
collection :drive_themes, as: 'driveThemes', class: Google::Apis::DriveV2::About::DriveTheme, decorator: Google::Apis::DriveV2::About::DriveTheme::Representation
|
388
|
+
|
389
|
+
property :etag, as: 'etag'
|
390
|
+
collection :export_formats, as: 'exportFormats', class: Google::Apis::DriveV2::About::ExportFormat, decorator: Google::Apis::DriveV2::About::ExportFormat::Representation
|
391
|
+
|
392
|
+
collection :features, as: 'features', class: Google::Apis::DriveV2::About::Feature, decorator: Google::Apis::DriveV2::About::Feature::Representation
|
393
|
+
|
394
|
+
collection :folder_color_palette, as: 'folderColorPalette'
|
395
|
+
collection :import_formats, as: 'importFormats', class: Google::Apis::DriveV2::About::ImportFormat, decorator: Google::Apis::DriveV2::About::ImportFormat::Representation
|
396
|
+
|
397
|
+
property :is_current_app_installed, as: 'isCurrentAppInstalled'
|
398
|
+
property :kind, as: 'kind'
|
399
|
+
property :language_code, as: 'languageCode'
|
400
|
+
property :largest_change_id, :numeric_string => true, as: 'largestChangeId'
|
401
|
+
collection :max_upload_sizes, as: 'maxUploadSizes', class: Google::Apis::DriveV2::About::MaxUploadSize, decorator: Google::Apis::DriveV2::About::MaxUploadSize::Representation
|
402
|
+
|
403
|
+
property :name, as: 'name'
|
404
|
+
property :permission_id, as: 'permissionId'
|
405
|
+
collection :quota_bytes_by_service, as: 'quotaBytesByService', class: Google::Apis::DriveV2::About::QuotaBytesByService, decorator: Google::Apis::DriveV2::About::QuotaBytesByService::Representation
|
406
|
+
|
407
|
+
property :quota_bytes_total, :numeric_string => true, as: 'quotaBytesTotal'
|
408
|
+
property :quota_bytes_used, :numeric_string => true, as: 'quotaBytesUsed'
|
409
|
+
property :quota_bytes_used_aggregate, :numeric_string => true, as: 'quotaBytesUsedAggregate'
|
410
|
+
property :quota_bytes_used_in_trash, :numeric_string => true, as: 'quotaBytesUsedInTrash'
|
411
|
+
property :quota_type, as: 'quotaType'
|
412
|
+
property :remaining_change_ids, :numeric_string => true, as: 'remainingChangeIds'
|
413
|
+
property :root_folder_id, as: 'rootFolderId'
|
414
|
+
property :self_link, as: 'selfLink'
|
415
|
+
collection :team_drive_themes, as: 'teamDriveThemes', class: Google::Apis::DriveV2::About::TeamDriveTheme, decorator: Google::Apis::DriveV2::About::TeamDriveTheme::Representation
|
416
|
+
|
417
|
+
property :user, as: 'user', class: Google::Apis::DriveV2::User, decorator: Google::Apis::DriveV2::User::Representation
|
418
|
+
|
419
|
+
end
|
420
|
+
|
421
|
+
class AdditionalRoleInfo
|
422
|
+
# @private
|
423
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
424
|
+
collection :role_sets, as: 'roleSets', class: Google::Apis::DriveV2::About::AdditionalRoleInfo::RoleSet, decorator: Google::Apis::DriveV2::About::AdditionalRoleInfo::RoleSet::Representation
|
425
|
+
|
426
|
+
property :type, as: 'type'
|
427
|
+
end
|
428
|
+
|
429
|
+
class RoleSet
|
430
|
+
# @private
|
431
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
432
|
+
collection :additional_roles, as: 'additionalRoles'
|
433
|
+
property :primary_role, as: 'primaryRole'
|
434
|
+
end
|
435
|
+
end
|
436
|
+
end
|
437
|
+
|
438
|
+
class DriveTheme
|
439
|
+
# @private
|
440
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
441
|
+
property :background_image_link, as: 'backgroundImageLink'
|
442
|
+
property :color_rgb, as: 'colorRgb'
|
443
|
+
property :id, as: 'id'
|
444
|
+
end
|
445
|
+
end
|
446
|
+
|
447
|
+
class ExportFormat
|
448
|
+
# @private
|
449
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
450
|
+
property :source, as: 'source'
|
451
|
+
collection :targets, as: 'targets'
|
452
|
+
end
|
453
|
+
end
|
454
|
+
|
455
|
+
class Feature
|
456
|
+
# @private
|
457
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
458
|
+
property :feature_name, as: 'featureName'
|
459
|
+
property :feature_rate, as: 'featureRate'
|
460
|
+
end
|
461
|
+
end
|
462
|
+
|
463
|
+
class ImportFormat
|
464
|
+
# @private
|
465
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
466
|
+
property :source, as: 'source'
|
467
|
+
collection :targets, as: 'targets'
|
468
|
+
end
|
469
|
+
end
|
470
|
+
|
471
|
+
class MaxUploadSize
|
472
|
+
# @private
|
473
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
474
|
+
property :size, :numeric_string => true, as: 'size'
|
475
|
+
property :type, as: 'type'
|
476
|
+
end
|
477
|
+
end
|
478
|
+
|
479
|
+
class QuotaBytesByService
|
480
|
+
# @private
|
481
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
482
|
+
property :bytes_used, :numeric_string => true, as: 'bytesUsed'
|
483
|
+
property :service_name, as: 'serviceName'
|
484
|
+
end
|
485
|
+
end
|
486
|
+
|
487
|
+
class TeamDriveTheme
|
488
|
+
# @private
|
489
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
490
|
+
property :background_image_link, as: 'backgroundImageLink'
|
491
|
+
property :color_rgb, as: 'colorRgb'
|
492
|
+
property :id, as: 'id'
|
493
|
+
end
|
494
|
+
end
|
495
|
+
end
|
496
|
+
|
497
|
+
class App
|
498
|
+
# @private
|
499
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
500
|
+
property :authorized, as: 'authorized'
|
501
|
+
property :create_in_folder_template, as: 'createInFolderTemplate'
|
502
|
+
property :create_url, as: 'createUrl'
|
503
|
+
property :has_drive_wide_scope, as: 'hasDriveWideScope'
|
504
|
+
collection :icons, as: 'icons', class: Google::Apis::DriveV2::App::Icon, decorator: Google::Apis::DriveV2::App::Icon::Representation
|
505
|
+
|
506
|
+
property :id, as: 'id'
|
507
|
+
property :installed, as: 'installed'
|
508
|
+
property :kind, as: 'kind'
|
509
|
+
property :long_description, as: 'longDescription'
|
510
|
+
property :name, as: 'name'
|
511
|
+
property :object_type, as: 'objectType'
|
512
|
+
property :open_url_template, as: 'openUrlTemplate'
|
513
|
+
collection :primary_file_extensions, as: 'primaryFileExtensions'
|
514
|
+
collection :primary_mime_types, as: 'primaryMimeTypes'
|
515
|
+
property :product_id, as: 'productId'
|
516
|
+
property :product_url, as: 'productUrl'
|
517
|
+
collection :secondary_file_extensions, as: 'secondaryFileExtensions'
|
518
|
+
collection :secondary_mime_types, as: 'secondaryMimeTypes'
|
519
|
+
property :short_description, as: 'shortDescription'
|
520
|
+
property :supports_create, as: 'supportsCreate'
|
521
|
+
property :supports_import, as: 'supportsImport'
|
522
|
+
property :supports_multi_open, as: 'supportsMultiOpen'
|
523
|
+
property :supports_offline_create, as: 'supportsOfflineCreate'
|
524
|
+
property :use_by_default, as: 'useByDefault'
|
525
|
+
end
|
526
|
+
|
527
|
+
class Icon
|
528
|
+
# @private
|
529
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
530
|
+
property :category, as: 'category'
|
531
|
+
property :icon_url, as: 'iconUrl'
|
532
|
+
property :size, as: 'size'
|
533
|
+
end
|
534
|
+
end
|
535
|
+
end
|
536
|
+
|
537
|
+
class AppList
|
538
|
+
# @private
|
539
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
540
|
+
collection :default_app_ids, as: 'defaultAppIds'
|
541
|
+
property :etag, as: 'etag'
|
542
|
+
collection :items, as: 'items', class: Google::Apis::DriveV2::App, decorator: Google::Apis::DriveV2::App::Representation
|
543
|
+
|
544
|
+
property :kind, as: 'kind'
|
545
|
+
property :self_link, as: 'selfLink'
|
546
|
+
end
|
547
|
+
end
|
548
|
+
|
549
|
+
class Change
|
550
|
+
# @private
|
551
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
552
|
+
property :change_type, as: 'changeType'
|
553
|
+
property :deleted, as: 'deleted'
|
554
|
+
property :drive, as: 'drive', class: Google::Apis::DriveV2::Drive, decorator: Google::Apis::DriveV2::Drive::Representation
|
555
|
+
|
556
|
+
property :drive_id, as: 'driveId'
|
557
|
+
property :file, as: 'file', class: Google::Apis::DriveV2::File, decorator: Google::Apis::DriveV2::File::Representation
|
558
|
+
|
559
|
+
property :file_id, as: 'fileId'
|
560
|
+
property :id, :numeric_string => true, as: 'id'
|
561
|
+
property :kind, as: 'kind'
|
562
|
+
property :modification_date, as: 'modificationDate', type: DateTime
|
563
|
+
|
564
|
+
property :self_link, as: 'selfLink'
|
565
|
+
property :team_drive, as: 'teamDrive', class: Google::Apis::DriveV2::TeamDrive, decorator: Google::Apis::DriveV2::TeamDrive::Representation
|
566
|
+
|
567
|
+
property :team_drive_id, as: 'teamDriveId'
|
568
|
+
property :type, as: 'type'
|
569
|
+
end
|
570
|
+
end
|
571
|
+
|
572
|
+
class ChangeList
|
573
|
+
# @private
|
574
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
575
|
+
property :etag, as: 'etag'
|
576
|
+
collection :items, as: 'items', class: Google::Apis::DriveV2::Change, decorator: Google::Apis::DriveV2::Change::Representation
|
577
|
+
|
578
|
+
property :kind, as: 'kind'
|
579
|
+
property :largest_change_id, :numeric_string => true, as: 'largestChangeId'
|
580
|
+
property :new_start_page_token, as: 'newStartPageToken'
|
581
|
+
property :next_link, as: 'nextLink'
|
582
|
+
property :next_page_token, as: 'nextPageToken'
|
583
|
+
property :self_link, as: 'selfLink'
|
584
|
+
end
|
585
|
+
end
|
586
|
+
|
587
|
+
class Channel
|
588
|
+
# @private
|
589
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
590
|
+
property :address, as: 'address'
|
591
|
+
property :expiration, :numeric_string => true, as: 'expiration'
|
592
|
+
property :id, as: 'id'
|
593
|
+
property :kind, as: 'kind'
|
594
|
+
hash :params, as: 'params'
|
595
|
+
property :payload, as: 'payload'
|
596
|
+
property :resource_id, as: 'resourceId'
|
597
|
+
property :resource_uri, as: 'resourceUri'
|
598
|
+
property :token, as: 'token'
|
599
|
+
property :type, as: 'type'
|
600
|
+
end
|
601
|
+
end
|
602
|
+
|
603
|
+
class ChildList
|
604
|
+
# @private
|
605
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
606
|
+
property :etag, as: 'etag'
|
607
|
+
collection :items, as: 'items', class: Google::Apis::DriveV2::ChildReference, decorator: Google::Apis::DriveV2::ChildReference::Representation
|
608
|
+
|
609
|
+
property :kind, as: 'kind'
|
610
|
+
property :next_link, as: 'nextLink'
|
611
|
+
property :next_page_token, as: 'nextPageToken'
|
612
|
+
property :self_link, as: 'selfLink'
|
613
|
+
end
|
614
|
+
end
|
615
|
+
|
616
|
+
class ChildReference
|
617
|
+
# @private
|
618
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
619
|
+
property :child_link, as: 'childLink'
|
620
|
+
property :id, as: 'id'
|
621
|
+
property :kind, as: 'kind'
|
622
|
+
property :self_link, as: 'selfLink'
|
623
|
+
end
|
624
|
+
end
|
625
|
+
|
626
|
+
class Comment
|
627
|
+
# @private
|
628
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
629
|
+
property :anchor, as: 'anchor'
|
630
|
+
property :author, as: 'author', class: Google::Apis::DriveV2::User, decorator: Google::Apis::DriveV2::User::Representation
|
631
|
+
|
632
|
+
property :comment_id, as: 'commentId'
|
633
|
+
property :content, as: 'content'
|
634
|
+
property :context, as: 'context', class: Google::Apis::DriveV2::Comment::Context, decorator: Google::Apis::DriveV2::Comment::Context::Representation
|
635
|
+
|
636
|
+
property :created_date, as: 'createdDate', type: DateTime
|
637
|
+
|
638
|
+
property :deleted, as: 'deleted'
|
639
|
+
property :file_id, as: 'fileId'
|
640
|
+
property :file_title, as: 'fileTitle'
|
641
|
+
property :html_content, as: 'htmlContent'
|
642
|
+
property :kind, as: 'kind'
|
643
|
+
property :modified_date, as: 'modifiedDate', type: DateTime
|
644
|
+
|
645
|
+
collection :replies, as: 'replies', class: Google::Apis::DriveV2::CommentReply, decorator: Google::Apis::DriveV2::CommentReply::Representation
|
646
|
+
|
647
|
+
property :self_link, as: 'selfLink'
|
648
|
+
property :status, as: 'status'
|
649
|
+
end
|
650
|
+
|
651
|
+
class Context
|
652
|
+
# @private
|
653
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
654
|
+
property :type, as: 'type'
|
655
|
+
property :value, as: 'value'
|
656
|
+
end
|
657
|
+
end
|
658
|
+
end
|
659
|
+
|
660
|
+
class CommentList
|
661
|
+
# @private
|
662
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
663
|
+
collection :items, as: 'items', class: Google::Apis::DriveV2::Comment, decorator: Google::Apis::DriveV2::Comment::Representation
|
664
|
+
|
665
|
+
property :kind, as: 'kind'
|
666
|
+
property :next_link, as: 'nextLink'
|
667
|
+
property :next_page_token, as: 'nextPageToken'
|
668
|
+
property :self_link, as: 'selfLink'
|
669
|
+
end
|
670
|
+
end
|
671
|
+
|
672
|
+
class CommentReply
|
673
|
+
# @private
|
674
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
675
|
+
property :author, as: 'author', class: Google::Apis::DriveV2::User, decorator: Google::Apis::DriveV2::User::Representation
|
676
|
+
|
677
|
+
property :content, as: 'content'
|
678
|
+
property :created_date, as: 'createdDate', type: DateTime
|
679
|
+
|
680
|
+
property :deleted, as: 'deleted'
|
681
|
+
property :html_content, as: 'htmlContent'
|
682
|
+
property :kind, as: 'kind'
|
683
|
+
property :modified_date, as: 'modifiedDate', type: DateTime
|
684
|
+
|
685
|
+
property :reply_id, as: 'replyId'
|
686
|
+
property :verb, as: 'verb'
|
687
|
+
end
|
688
|
+
end
|
689
|
+
|
690
|
+
class CommentReplyList
|
691
|
+
# @private
|
692
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
693
|
+
collection :items, as: 'items', class: Google::Apis::DriveV2::CommentReply, decorator: Google::Apis::DriveV2::CommentReply::Representation
|
694
|
+
|
695
|
+
property :kind, as: 'kind'
|
696
|
+
property :next_link, as: 'nextLink'
|
697
|
+
property :next_page_token, as: 'nextPageToken'
|
698
|
+
property :self_link, as: 'selfLink'
|
699
|
+
end
|
700
|
+
end
|
701
|
+
|
702
|
+
class ContentRestriction
|
703
|
+
# @private
|
704
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
705
|
+
property :read_only, as: 'readOnly'
|
706
|
+
property :reason, as: 'reason'
|
707
|
+
property :restricting_user, as: 'restrictingUser', class: Google::Apis::DriveV2::User, decorator: Google::Apis::DriveV2::User::Representation
|
708
|
+
|
709
|
+
property :restriction_date, as: 'restrictionDate', type: DateTime
|
710
|
+
|
711
|
+
property :type, as: 'type'
|
712
|
+
end
|
713
|
+
end
|
714
|
+
|
715
|
+
class Drive
|
716
|
+
# @private
|
717
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
718
|
+
property :background_image_file, as: 'backgroundImageFile', class: Google::Apis::DriveV2::Drive::BackgroundImageFile, decorator: Google::Apis::DriveV2::Drive::BackgroundImageFile::Representation
|
719
|
+
|
720
|
+
property :background_image_link, as: 'backgroundImageLink'
|
721
|
+
property :capabilities, as: 'capabilities', class: Google::Apis::DriveV2::Drive::Capabilities, decorator: Google::Apis::DriveV2::Drive::Capabilities::Representation
|
722
|
+
|
723
|
+
property :color_rgb, as: 'colorRgb'
|
724
|
+
property :created_date, as: 'createdDate', type: DateTime
|
725
|
+
|
726
|
+
property :hidden, as: 'hidden'
|
727
|
+
property :id, as: 'id'
|
728
|
+
property :kind, as: 'kind'
|
729
|
+
property :name, as: 'name'
|
730
|
+
property :restrictions, as: 'restrictions', class: Google::Apis::DriveV2::Drive::Restrictions, decorator: Google::Apis::DriveV2::Drive::Restrictions::Representation
|
731
|
+
|
732
|
+
property :theme_id, as: 'themeId'
|
733
|
+
end
|
734
|
+
|
735
|
+
class BackgroundImageFile
|
736
|
+
# @private
|
737
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
738
|
+
property :id, as: 'id'
|
739
|
+
property :width, as: 'width'
|
740
|
+
property :x_coordinate, as: 'xCoordinate'
|
741
|
+
property :y_coordinate, as: 'yCoordinate'
|
742
|
+
end
|
743
|
+
end
|
744
|
+
|
745
|
+
class Capabilities
|
746
|
+
# @private
|
747
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
748
|
+
property :can_add_children, as: 'canAddChildren'
|
749
|
+
property :can_change_copy_requires_writer_permission_restriction, as: 'canChangeCopyRequiresWriterPermissionRestriction'
|
750
|
+
property :can_change_domain_users_only_restriction, as: 'canChangeDomainUsersOnlyRestriction'
|
751
|
+
property :can_change_drive_background, as: 'canChangeDriveBackground'
|
752
|
+
property :can_change_drive_members_only_restriction, as: 'canChangeDriveMembersOnlyRestriction'
|
753
|
+
property :can_comment, as: 'canComment'
|
754
|
+
property :can_copy, as: 'canCopy'
|
755
|
+
property :can_delete_children, as: 'canDeleteChildren'
|
756
|
+
property :can_delete_drive, as: 'canDeleteDrive'
|
757
|
+
property :can_download, as: 'canDownload'
|
758
|
+
property :can_edit, as: 'canEdit'
|
759
|
+
property :can_list_children, as: 'canListChildren'
|
760
|
+
property :can_manage_members, as: 'canManageMembers'
|
761
|
+
property :can_read_revisions, as: 'canReadRevisions'
|
762
|
+
property :can_rename, as: 'canRename'
|
763
|
+
property :can_rename_drive, as: 'canRenameDrive'
|
764
|
+
property :can_share, as: 'canShare'
|
765
|
+
property :can_trash_children, as: 'canTrashChildren'
|
766
|
+
end
|
767
|
+
end
|
768
|
+
|
769
|
+
class Restrictions
|
770
|
+
# @private
|
771
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
772
|
+
property :admin_managed_restrictions, as: 'adminManagedRestrictions'
|
773
|
+
property :copy_requires_writer_permission, as: 'copyRequiresWriterPermission'
|
774
|
+
property :domain_users_only, as: 'domainUsersOnly'
|
775
|
+
property :drive_members_only, as: 'driveMembersOnly'
|
776
|
+
end
|
777
|
+
end
|
778
|
+
end
|
779
|
+
|
780
|
+
class DriveList
|
781
|
+
# @private
|
782
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
783
|
+
collection :items, as: 'items', class: Google::Apis::DriveV2::Drive, decorator: Google::Apis::DriveV2::Drive::Representation
|
784
|
+
|
785
|
+
property :kind, as: 'kind'
|
786
|
+
property :next_page_token, as: 'nextPageToken'
|
787
|
+
end
|
788
|
+
end
|
789
|
+
|
790
|
+
class File
|
791
|
+
# @private
|
792
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
793
|
+
property :alternate_link, as: 'alternateLink'
|
794
|
+
property :app_data_contents, as: 'appDataContents'
|
795
|
+
property :can_comment, as: 'canComment'
|
796
|
+
property :can_read_revisions, as: 'canReadRevisions'
|
797
|
+
property :capabilities, as: 'capabilities', class: Google::Apis::DriveV2::File::Capabilities, decorator: Google::Apis::DriveV2::File::Capabilities::Representation
|
798
|
+
|
799
|
+
collection :content_restrictions, as: 'contentRestrictions', class: Google::Apis::DriveV2::ContentRestriction, decorator: Google::Apis::DriveV2::ContentRestriction::Representation
|
800
|
+
|
801
|
+
property :copy_requires_writer_permission, as: 'copyRequiresWriterPermission'
|
802
|
+
property :copyable, as: 'copyable'
|
803
|
+
property :created_date, as: 'createdDate', type: DateTime
|
804
|
+
|
805
|
+
property :default_open_with_link, as: 'defaultOpenWithLink'
|
806
|
+
property :description, as: 'description'
|
807
|
+
property :download_url, as: 'downloadUrl'
|
808
|
+
property :drive_id, as: 'driveId'
|
809
|
+
property :editable, as: 'editable'
|
810
|
+
property :embed_link, as: 'embedLink'
|
811
|
+
property :etag, as: 'etag'
|
812
|
+
property :explicitly_trashed, as: 'explicitlyTrashed'
|
813
|
+
hash :export_links, as: 'exportLinks'
|
814
|
+
property :file_extension, as: 'fileExtension'
|
815
|
+
property :file_size, :numeric_string => true, as: 'fileSize'
|
816
|
+
property :folder_color_rgb, as: 'folderColorRgb'
|
817
|
+
property :full_file_extension, as: 'fullFileExtension'
|
818
|
+
property :has_augmented_permissions, as: 'hasAugmentedPermissions'
|
819
|
+
property :has_thumbnail, as: 'hasThumbnail'
|
820
|
+
property :head_revision_id, as: 'headRevisionId'
|
821
|
+
property :icon_link, as: 'iconLink'
|
822
|
+
property :id, as: 'id'
|
823
|
+
property :image_media_metadata, as: 'imageMediaMetadata', class: Google::Apis::DriveV2::File::ImageMediaMetadata, decorator: Google::Apis::DriveV2::File::ImageMediaMetadata::Representation
|
824
|
+
|
825
|
+
property :indexable_text, as: 'indexableText', class: Google::Apis::DriveV2::File::IndexableText, decorator: Google::Apis::DriveV2::File::IndexableText::Representation
|
826
|
+
|
827
|
+
property :is_app_authorized, as: 'isAppAuthorized'
|
828
|
+
property :kind, as: 'kind'
|
829
|
+
property :labels, as: 'labels', class: Google::Apis::DriveV2::File::Labels, decorator: Google::Apis::DriveV2::File::Labels::Representation
|
830
|
+
|
831
|
+
property :last_modifying_user, as: 'lastModifyingUser', class: Google::Apis::DriveV2::User, decorator: Google::Apis::DriveV2::User::Representation
|
832
|
+
|
833
|
+
property :last_modifying_user_name, as: 'lastModifyingUserName'
|
834
|
+
property :last_viewed_by_me_date, as: 'lastViewedByMeDate', type: DateTime
|
835
|
+
|
836
|
+
property :marked_viewed_by_me_date, as: 'markedViewedByMeDate', type: DateTime
|
837
|
+
|
838
|
+
property :md5_checksum, as: 'md5Checksum'
|
839
|
+
property :mime_type, as: 'mimeType'
|
840
|
+
property :modified_by_me_date, as: 'modifiedByMeDate', type: DateTime
|
841
|
+
|
842
|
+
property :modified_date, as: 'modifiedDate', type: DateTime
|
843
|
+
|
844
|
+
hash :open_with_links, as: 'openWithLinks'
|
845
|
+
property :original_filename, as: 'originalFilename'
|
846
|
+
property :owned_by_me, as: 'ownedByMe'
|
847
|
+
collection :owner_names, as: 'ownerNames'
|
848
|
+
collection :owners, as: 'owners', class: Google::Apis::DriveV2::User, decorator: Google::Apis::DriveV2::User::Representation
|
849
|
+
|
850
|
+
collection :parents, as: 'parents', class: Google::Apis::DriveV2::ParentReference, decorator: Google::Apis::DriveV2::ParentReference::Representation
|
851
|
+
|
852
|
+
collection :permission_ids, as: 'permissionIds'
|
853
|
+
collection :permissions, as: 'permissions', class: Google::Apis::DriveV2::Permission, decorator: Google::Apis::DriveV2::Permission::Representation
|
854
|
+
|
855
|
+
collection :properties, as: 'properties', class: Google::Apis::DriveV2::Property, decorator: Google::Apis::DriveV2::Property::Representation
|
856
|
+
|
857
|
+
property :quota_bytes_used, :numeric_string => true, as: 'quotaBytesUsed'
|
858
|
+
property :self_link, as: 'selfLink'
|
859
|
+
property :shareable, as: 'shareable'
|
860
|
+
property :shared, as: 'shared'
|
861
|
+
property :shared_with_me_date, as: 'sharedWithMeDate', type: DateTime
|
862
|
+
|
863
|
+
property :sharing_user, as: 'sharingUser', class: Google::Apis::DriveV2::User, decorator: Google::Apis::DriveV2::User::Representation
|
864
|
+
|
865
|
+
property :shortcut_details, as: 'shortcutDetails', class: Google::Apis::DriveV2::File::ShortcutDetails, decorator: Google::Apis::DriveV2::File::ShortcutDetails::Representation
|
866
|
+
|
867
|
+
collection :spaces, as: 'spaces'
|
868
|
+
property :team_drive_id, as: 'teamDriveId'
|
869
|
+
property :thumbnail, as: 'thumbnail', class: Google::Apis::DriveV2::File::Thumbnail, decorator: Google::Apis::DriveV2::File::Thumbnail::Representation
|
870
|
+
|
871
|
+
property :thumbnail_link, as: 'thumbnailLink'
|
872
|
+
property :thumbnail_version, :numeric_string => true, as: 'thumbnailVersion'
|
873
|
+
property :title, as: 'title'
|
874
|
+
property :trashed_date, as: 'trashedDate', type: DateTime
|
875
|
+
|
876
|
+
property :trashing_user, as: 'trashingUser', class: Google::Apis::DriveV2::User, decorator: Google::Apis::DriveV2::User::Representation
|
877
|
+
|
878
|
+
property :user_permission, as: 'userPermission', class: Google::Apis::DriveV2::Permission, decorator: Google::Apis::DriveV2::Permission::Representation
|
879
|
+
|
880
|
+
property :version, :numeric_string => true, as: 'version'
|
881
|
+
property :video_media_metadata, as: 'videoMediaMetadata', class: Google::Apis::DriveV2::File::VideoMediaMetadata, decorator: Google::Apis::DriveV2::File::VideoMediaMetadata::Representation
|
882
|
+
|
883
|
+
property :web_content_link, as: 'webContentLink'
|
884
|
+
property :web_view_link, as: 'webViewLink'
|
885
|
+
property :writers_can_share, as: 'writersCanShare'
|
886
|
+
end
|
887
|
+
|
888
|
+
class Capabilities
|
889
|
+
# @private
|
890
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
891
|
+
property :can_add_children, as: 'canAddChildren'
|
892
|
+
property :can_add_folder_from_another_drive, as: 'canAddFolderFromAnotherDrive'
|
893
|
+
property :can_add_my_drive_parent, as: 'canAddMyDriveParent'
|
894
|
+
property :can_change_copy_requires_writer_permission, as: 'canChangeCopyRequiresWriterPermission'
|
895
|
+
property :can_change_restricted_download, as: 'canChangeRestrictedDownload'
|
896
|
+
property :can_comment, as: 'canComment'
|
897
|
+
property :can_copy, as: 'canCopy'
|
898
|
+
property :can_delete, as: 'canDelete'
|
899
|
+
property :can_delete_children, as: 'canDeleteChildren'
|
900
|
+
property :can_download, as: 'canDownload'
|
901
|
+
property :can_edit, as: 'canEdit'
|
902
|
+
property :can_list_children, as: 'canListChildren'
|
903
|
+
property :can_modify_content, as: 'canModifyContent'
|
904
|
+
property :can_modify_content_restriction, as: 'canModifyContentRestriction'
|
905
|
+
property :can_move_children_out_of_drive, as: 'canMoveChildrenOutOfDrive'
|
906
|
+
property :can_move_children_out_of_team_drive, as: 'canMoveChildrenOutOfTeamDrive'
|
907
|
+
property :can_move_children_within_drive, as: 'canMoveChildrenWithinDrive'
|
908
|
+
property :can_move_children_within_team_drive, as: 'canMoveChildrenWithinTeamDrive'
|
909
|
+
property :can_move_item_into_team_drive, as: 'canMoveItemIntoTeamDrive'
|
910
|
+
property :can_move_item_out_of_drive, as: 'canMoveItemOutOfDrive'
|
911
|
+
property :can_move_item_out_of_team_drive, as: 'canMoveItemOutOfTeamDrive'
|
912
|
+
property :can_move_item_within_drive, as: 'canMoveItemWithinDrive'
|
913
|
+
property :can_move_item_within_team_drive, as: 'canMoveItemWithinTeamDrive'
|
914
|
+
property :can_move_team_drive_item, as: 'canMoveTeamDriveItem'
|
915
|
+
property :can_read_drive, as: 'canReadDrive'
|
916
|
+
property :can_read_revisions, as: 'canReadRevisions'
|
917
|
+
property :can_read_team_drive, as: 'canReadTeamDrive'
|
918
|
+
property :can_remove_children, as: 'canRemoveChildren'
|
919
|
+
property :can_remove_my_drive_parent, as: 'canRemoveMyDriveParent'
|
920
|
+
property :can_rename, as: 'canRename'
|
921
|
+
property :can_share, as: 'canShare'
|
922
|
+
property :can_trash, as: 'canTrash'
|
923
|
+
property :can_trash_children, as: 'canTrashChildren'
|
924
|
+
property :can_untrash, as: 'canUntrash'
|
925
|
+
end
|
926
|
+
end
|
927
|
+
|
928
|
+
class ImageMediaMetadata
|
929
|
+
# @private
|
930
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
931
|
+
property :aperture, as: 'aperture'
|
932
|
+
property :camera_make, as: 'cameraMake'
|
933
|
+
property :camera_model, as: 'cameraModel'
|
934
|
+
property :color_space, as: 'colorSpace'
|
935
|
+
property :date, as: 'date'
|
936
|
+
property :exposure_bias, as: 'exposureBias'
|
937
|
+
property :exposure_mode, as: 'exposureMode'
|
938
|
+
property :exposure_time, as: 'exposureTime'
|
939
|
+
property :flash_used, as: 'flashUsed'
|
940
|
+
property :focal_length, as: 'focalLength'
|
941
|
+
property :height, as: 'height'
|
942
|
+
property :iso_speed, as: 'isoSpeed'
|
943
|
+
property :lens, as: 'lens'
|
944
|
+
property :location, as: 'location', class: Google::Apis::DriveV2::File::ImageMediaMetadata::Location, decorator: Google::Apis::DriveV2::File::ImageMediaMetadata::Location::Representation
|
945
|
+
|
946
|
+
property :max_aperture_value, as: 'maxApertureValue'
|
947
|
+
property :metering_mode, as: 'meteringMode'
|
948
|
+
property :rotation, as: 'rotation'
|
949
|
+
property :sensor, as: 'sensor'
|
950
|
+
property :subject_distance, as: 'subjectDistance'
|
951
|
+
property :white_balance, as: 'whiteBalance'
|
952
|
+
property :width, as: 'width'
|
953
|
+
end
|
954
|
+
|
955
|
+
class Location
|
956
|
+
# @private
|
957
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
958
|
+
property :altitude, as: 'altitude'
|
959
|
+
property :latitude, as: 'latitude'
|
960
|
+
property :longitude, as: 'longitude'
|
961
|
+
end
|
962
|
+
end
|
963
|
+
end
|
964
|
+
|
965
|
+
class IndexableText
|
966
|
+
# @private
|
967
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
968
|
+
property :text, as: 'text'
|
969
|
+
end
|
970
|
+
end
|
971
|
+
|
972
|
+
class Labels
|
973
|
+
# @private
|
974
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
975
|
+
property :hidden, as: 'hidden'
|
976
|
+
property :modified, as: 'modified'
|
977
|
+
property :restricted, as: 'restricted'
|
978
|
+
property :starred, as: 'starred'
|
979
|
+
property :trashed, as: 'trashed'
|
980
|
+
property :viewed, as: 'viewed'
|
981
|
+
end
|
982
|
+
end
|
983
|
+
|
984
|
+
class ShortcutDetails
|
985
|
+
# @private
|
986
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
987
|
+
property :target_id, as: 'targetId'
|
988
|
+
property :target_mime_type, as: 'targetMimeType'
|
989
|
+
end
|
990
|
+
end
|
991
|
+
|
992
|
+
class Thumbnail
|
993
|
+
# @private
|
994
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
995
|
+
property :image, :base64 => true, as: 'image'
|
996
|
+
property :mime_type, as: 'mimeType'
|
997
|
+
end
|
998
|
+
end
|
999
|
+
|
1000
|
+
class VideoMediaMetadata
|
1001
|
+
# @private
|
1002
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1003
|
+
property :duration_millis, :numeric_string => true, as: 'durationMillis'
|
1004
|
+
property :height, as: 'height'
|
1005
|
+
property :width, as: 'width'
|
1006
|
+
end
|
1007
|
+
end
|
1008
|
+
end
|
1009
|
+
|
1010
|
+
class FileList
|
1011
|
+
# @private
|
1012
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1013
|
+
property :etag, as: 'etag'
|
1014
|
+
property :incomplete_search, as: 'incompleteSearch'
|
1015
|
+
collection :items, as: 'items', class: Google::Apis::DriveV2::File, decorator: Google::Apis::DriveV2::File::Representation
|
1016
|
+
|
1017
|
+
property :kind, as: 'kind'
|
1018
|
+
property :next_link, as: 'nextLink'
|
1019
|
+
property :next_page_token, as: 'nextPageToken'
|
1020
|
+
property :self_link, as: 'selfLink'
|
1021
|
+
end
|
1022
|
+
end
|
1023
|
+
|
1024
|
+
class GeneratedIds
|
1025
|
+
# @private
|
1026
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1027
|
+
collection :ids, as: 'ids'
|
1028
|
+
property :kind, as: 'kind'
|
1029
|
+
property :space, as: 'space'
|
1030
|
+
end
|
1031
|
+
end
|
1032
|
+
|
1033
|
+
class ParentList
|
1034
|
+
# @private
|
1035
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1036
|
+
property :etag, as: 'etag'
|
1037
|
+
collection :items, as: 'items', class: Google::Apis::DriveV2::ParentReference, decorator: Google::Apis::DriveV2::ParentReference::Representation
|
1038
|
+
|
1039
|
+
property :kind, as: 'kind'
|
1040
|
+
property :self_link, as: 'selfLink'
|
1041
|
+
end
|
1042
|
+
end
|
1043
|
+
|
1044
|
+
class ParentReference
|
1045
|
+
# @private
|
1046
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1047
|
+
property :id, as: 'id'
|
1048
|
+
property :is_root, as: 'isRoot'
|
1049
|
+
property :kind, as: 'kind'
|
1050
|
+
property :parent_link, as: 'parentLink'
|
1051
|
+
property :self_link, as: 'selfLink'
|
1052
|
+
end
|
1053
|
+
end
|
1054
|
+
|
1055
|
+
class Permission
|
1056
|
+
# @private
|
1057
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1058
|
+
collection :additional_roles, as: 'additionalRoles'
|
1059
|
+
property :auth_key, as: 'authKey'
|
1060
|
+
property :deleted, as: 'deleted'
|
1061
|
+
property :domain, as: 'domain'
|
1062
|
+
property :email_address, as: 'emailAddress'
|
1063
|
+
property :etag, as: 'etag'
|
1064
|
+
property :expiration_date, as: 'expirationDate', type: DateTime
|
1065
|
+
|
1066
|
+
property :id, as: 'id'
|
1067
|
+
property :kind, as: 'kind'
|
1068
|
+
property :name, as: 'name'
|
1069
|
+
collection :permission_details, as: 'permissionDetails', class: Google::Apis::DriveV2::Permission::PermissionDetail, decorator: Google::Apis::DriveV2::Permission::PermissionDetail::Representation
|
1070
|
+
|
1071
|
+
property :photo_link, as: 'photoLink'
|
1072
|
+
property :role, as: 'role'
|
1073
|
+
property :self_link, as: 'selfLink'
|
1074
|
+
collection :team_drive_permission_details, as: 'teamDrivePermissionDetails', class: Google::Apis::DriveV2::Permission::TeamDrivePermissionDetail, decorator: Google::Apis::DriveV2::Permission::TeamDrivePermissionDetail::Representation
|
1075
|
+
|
1076
|
+
property :type, as: 'type'
|
1077
|
+
property :value, as: 'value'
|
1078
|
+
property :view, as: 'view'
|
1079
|
+
property :with_link, as: 'withLink'
|
1080
|
+
end
|
1081
|
+
|
1082
|
+
class PermissionDetail
|
1083
|
+
# @private
|
1084
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1085
|
+
collection :additional_roles, as: 'additionalRoles'
|
1086
|
+
property :inherited, as: 'inherited'
|
1087
|
+
property :inherited_from, as: 'inheritedFrom'
|
1088
|
+
property :permission_type, as: 'permissionType'
|
1089
|
+
property :role, as: 'role'
|
1090
|
+
end
|
1091
|
+
end
|
1092
|
+
|
1093
|
+
class TeamDrivePermissionDetail
|
1094
|
+
# @private
|
1095
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1096
|
+
collection :additional_roles, as: 'additionalRoles'
|
1097
|
+
property :inherited, as: 'inherited'
|
1098
|
+
property :inherited_from, as: 'inheritedFrom'
|
1099
|
+
property :role, as: 'role'
|
1100
|
+
property :team_drive_permission_type, as: 'teamDrivePermissionType'
|
1101
|
+
end
|
1102
|
+
end
|
1103
|
+
end
|
1104
|
+
|
1105
|
+
class PermissionId
|
1106
|
+
# @private
|
1107
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1108
|
+
property :id, as: 'id'
|
1109
|
+
property :kind, as: 'kind'
|
1110
|
+
end
|
1111
|
+
end
|
1112
|
+
|
1113
|
+
class PermissionList
|
1114
|
+
# @private
|
1115
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1116
|
+
property :etag, as: 'etag'
|
1117
|
+
collection :items, as: 'items', class: Google::Apis::DriveV2::Permission, decorator: Google::Apis::DriveV2::Permission::Representation
|
1118
|
+
|
1119
|
+
property :kind, as: 'kind'
|
1120
|
+
property :next_page_token, as: 'nextPageToken'
|
1121
|
+
property :self_link, as: 'selfLink'
|
1122
|
+
end
|
1123
|
+
end
|
1124
|
+
|
1125
|
+
class Property
|
1126
|
+
# @private
|
1127
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1128
|
+
property :etag, as: 'etag'
|
1129
|
+
property :key, as: 'key'
|
1130
|
+
property :kind, as: 'kind'
|
1131
|
+
property :self_link, as: 'selfLink'
|
1132
|
+
property :value, as: 'value'
|
1133
|
+
property :visibility, as: 'visibility'
|
1134
|
+
end
|
1135
|
+
end
|
1136
|
+
|
1137
|
+
class PropertyList
|
1138
|
+
# @private
|
1139
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1140
|
+
property :etag, as: 'etag'
|
1141
|
+
collection :items, as: 'items', class: Google::Apis::DriveV2::Property, decorator: Google::Apis::DriveV2::Property::Representation
|
1142
|
+
|
1143
|
+
property :kind, as: 'kind'
|
1144
|
+
property :self_link, as: 'selfLink'
|
1145
|
+
end
|
1146
|
+
end
|
1147
|
+
|
1148
|
+
class Revision
|
1149
|
+
# @private
|
1150
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1151
|
+
property :download_url, as: 'downloadUrl'
|
1152
|
+
property :etag, as: 'etag'
|
1153
|
+
hash :export_links, as: 'exportLinks'
|
1154
|
+
property :file_size, :numeric_string => true, as: 'fileSize'
|
1155
|
+
property :id, as: 'id'
|
1156
|
+
property :kind, as: 'kind'
|
1157
|
+
property :last_modifying_user, as: 'lastModifyingUser', class: Google::Apis::DriveV2::User, decorator: Google::Apis::DriveV2::User::Representation
|
1158
|
+
|
1159
|
+
property :last_modifying_user_name, as: 'lastModifyingUserName'
|
1160
|
+
property :md5_checksum, as: 'md5Checksum'
|
1161
|
+
property :mime_type, as: 'mimeType'
|
1162
|
+
property :modified_date, as: 'modifiedDate', type: DateTime
|
1163
|
+
|
1164
|
+
property :original_filename, as: 'originalFilename'
|
1165
|
+
property :pinned, as: 'pinned'
|
1166
|
+
property :publish_auto, as: 'publishAuto'
|
1167
|
+
property :published, as: 'published'
|
1168
|
+
property :published_link, as: 'publishedLink'
|
1169
|
+
property :published_outside_domain, as: 'publishedOutsideDomain'
|
1170
|
+
property :self_link, as: 'selfLink'
|
1171
|
+
end
|
1172
|
+
end
|
1173
|
+
|
1174
|
+
class RevisionList
|
1175
|
+
# @private
|
1176
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1177
|
+
property :etag, as: 'etag'
|
1178
|
+
collection :items, as: 'items', class: Google::Apis::DriveV2::Revision, decorator: Google::Apis::DriveV2::Revision::Representation
|
1179
|
+
|
1180
|
+
property :kind, as: 'kind'
|
1181
|
+
property :next_page_token, as: 'nextPageToken'
|
1182
|
+
property :self_link, as: 'selfLink'
|
1183
|
+
end
|
1184
|
+
end
|
1185
|
+
|
1186
|
+
class StartPageToken
|
1187
|
+
# @private
|
1188
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1189
|
+
property :kind, as: 'kind'
|
1190
|
+
property :start_page_token, as: 'startPageToken'
|
1191
|
+
end
|
1192
|
+
end
|
1193
|
+
|
1194
|
+
class TeamDrive
|
1195
|
+
# @private
|
1196
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1197
|
+
property :background_image_file, as: 'backgroundImageFile', class: Google::Apis::DriveV2::TeamDrive::BackgroundImageFile, decorator: Google::Apis::DriveV2::TeamDrive::BackgroundImageFile::Representation
|
1198
|
+
|
1199
|
+
property :background_image_link, as: 'backgroundImageLink'
|
1200
|
+
property :capabilities, as: 'capabilities', class: Google::Apis::DriveV2::TeamDrive::Capabilities, decorator: Google::Apis::DriveV2::TeamDrive::Capabilities::Representation
|
1201
|
+
|
1202
|
+
property :color_rgb, as: 'colorRgb'
|
1203
|
+
property :created_date, as: 'createdDate', type: DateTime
|
1204
|
+
|
1205
|
+
property :id, as: 'id'
|
1206
|
+
property :kind, as: 'kind'
|
1207
|
+
property :name, as: 'name'
|
1208
|
+
property :restrictions, as: 'restrictions', class: Google::Apis::DriveV2::TeamDrive::Restrictions, decorator: Google::Apis::DriveV2::TeamDrive::Restrictions::Representation
|
1209
|
+
|
1210
|
+
property :theme_id, as: 'themeId'
|
1211
|
+
end
|
1212
|
+
|
1213
|
+
class BackgroundImageFile
|
1214
|
+
# @private
|
1215
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1216
|
+
property :id, as: 'id'
|
1217
|
+
property :width, as: 'width'
|
1218
|
+
property :x_coordinate, as: 'xCoordinate'
|
1219
|
+
property :y_coordinate, as: 'yCoordinate'
|
1220
|
+
end
|
1221
|
+
end
|
1222
|
+
|
1223
|
+
class Capabilities
|
1224
|
+
# @private
|
1225
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1226
|
+
property :can_add_children, as: 'canAddChildren'
|
1227
|
+
property :can_change_copy_requires_writer_permission_restriction, as: 'canChangeCopyRequiresWriterPermissionRestriction'
|
1228
|
+
property :can_change_domain_users_only_restriction, as: 'canChangeDomainUsersOnlyRestriction'
|
1229
|
+
property :can_change_team_drive_background, as: 'canChangeTeamDriveBackground'
|
1230
|
+
property :can_change_team_members_only_restriction, as: 'canChangeTeamMembersOnlyRestriction'
|
1231
|
+
property :can_comment, as: 'canComment'
|
1232
|
+
property :can_copy, as: 'canCopy'
|
1233
|
+
property :can_delete_children, as: 'canDeleteChildren'
|
1234
|
+
property :can_delete_team_drive, as: 'canDeleteTeamDrive'
|
1235
|
+
property :can_download, as: 'canDownload'
|
1236
|
+
property :can_edit, as: 'canEdit'
|
1237
|
+
property :can_list_children, as: 'canListChildren'
|
1238
|
+
property :can_manage_members, as: 'canManageMembers'
|
1239
|
+
property :can_read_revisions, as: 'canReadRevisions'
|
1240
|
+
property :can_remove_children, as: 'canRemoveChildren'
|
1241
|
+
property :can_rename, as: 'canRename'
|
1242
|
+
property :can_rename_team_drive, as: 'canRenameTeamDrive'
|
1243
|
+
property :can_share, as: 'canShare'
|
1244
|
+
property :can_trash_children, as: 'canTrashChildren'
|
1245
|
+
end
|
1246
|
+
end
|
1247
|
+
|
1248
|
+
class Restrictions
|
1249
|
+
# @private
|
1250
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1251
|
+
property :admin_managed_restrictions, as: 'adminManagedRestrictions'
|
1252
|
+
property :copy_requires_writer_permission, as: 'copyRequiresWriterPermission'
|
1253
|
+
property :domain_users_only, as: 'domainUsersOnly'
|
1254
|
+
property :team_members_only, as: 'teamMembersOnly'
|
1255
|
+
end
|
1256
|
+
end
|
1257
|
+
end
|
1258
|
+
|
1259
|
+
class TeamDriveList
|
1260
|
+
# @private
|
1261
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1262
|
+
collection :items, as: 'items', class: Google::Apis::DriveV2::TeamDrive, decorator: Google::Apis::DriveV2::TeamDrive::Representation
|
1263
|
+
|
1264
|
+
property :kind, as: 'kind'
|
1265
|
+
property :next_page_token, as: 'nextPageToken'
|
1266
|
+
end
|
1267
|
+
end
|
1268
|
+
|
1269
|
+
class User
|
1270
|
+
# @private
|
1271
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1272
|
+
property :display_name, as: 'displayName'
|
1273
|
+
property :email_address, as: 'emailAddress'
|
1274
|
+
property :is_authenticated_user, as: 'isAuthenticatedUser'
|
1275
|
+
property :kind, as: 'kind'
|
1276
|
+
property :permission_id, as: 'permissionId'
|
1277
|
+
property :picture, as: 'picture', class: Google::Apis::DriveV2::User::Picture, decorator: Google::Apis::DriveV2::User::Picture::Representation
|
1278
|
+
|
1279
|
+
end
|
1280
|
+
|
1281
|
+
class Picture
|
1282
|
+
# @private
|
1283
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1284
|
+
property :url, as: 'url'
|
1285
|
+
end
|
1286
|
+
end
|
1287
|
+
end
|
1288
|
+
end
|
1289
|
+
end
|
1290
|
+
end
|