1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
// This file was generated by code-gen. DO NOT EDIT MANUALLY!
///The metadata for a file. Some resource methods (such as `files.update`) require a `fileId`. Use the `files.list` method to retrieve the ID for a file.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize)]
pub struct File {
#[serde(rename = "appProperties")]
/**A collection of arbitrary key-value pairs which are private to the requesting app.
Entries with null values are cleared in update and copy requests. These properties can only be retrieved using an authenticated request. An authenticated request uses an access token obtained with a OAuth 2 client ID. You cannot use an API key to retrieve private properties.*/
pub app_properties: file_app_properties_additional::AppProperties,
#[serde(rename = "capabilities")]
///Output only. Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
pub capabilities: file_capabilities_additional::Capabilities,
#[serde(rename = "contentHints")]
///Additional information about the content of the file. These fields are never populated in responses.
pub content_hints: file_content_hints_additional::ContentHints,
#[serde(rename = "contentRestrictions")]
///Restrictions for accessing the content of the file. Only populated if such a restriction exists.
pub content_restrictions: ::alloc::vec::Vec<
crate::discovery::schemas::content_restriction::ContentRestriction,
>,
#[serde(rename = "copyRequiresWriterPermission")]
///Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
pub copy_requires_writer_permission: ::core::primitive::bool,
#[serde(rename = "createdTime")]
///The time at which the file was created (RFC 3339 date-time).
pub created_time: ::alloc::string::String,
#[serde(rename = "description")]
///A short description of the file.
pub description: ::alloc::string::String,
#[serde(rename = "downloadRestrictions")]
pub download_restrictions: ::alloc::boxed::Box<
crate::discovery::schemas::download_restrictions_metadata::DownloadRestrictionsMetadata,
>,
#[serde(rename = "driveId")]
///Output only. ID of the shared drive the file resides in. Only populated for items in shared drives.
pub drive_id: ::alloc::string::String,
#[serde(rename = "explicitlyTrashed")]
///Output only. Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
pub explicitly_trashed: ::core::primitive::bool,
#[serde(rename = "exportLinks")]
///Output only. Links for exporting Docs Editors files to specific formats.
pub export_links: file_export_links_additional::ExportLinks,
#[serde(rename = "fileExtension")]
///Output only. The final component of `fullFileExtension`. This is only available for files with binary content in Google Drive.
pub file_extension: ::alloc::string::String,
#[serde(rename = "folderColorRgb")]
///The color for a folder or a shortcut to a folder as an RGB hex string. The supported colors are published in the `folderColorPalette` field of the About resource. If an unsupported color is specified, the closest color in the palette is used instead.
pub folder_color_rgb: ::alloc::string::String,
#[serde(rename = "fullFileExtension")]
///Output only. The full file extension extracted from the `name` field. May contain multiple concatenated extensions, such as "tar.gz". This is only available for files with binary content in Google Drive. This is automatically updated when the `name` field changes, however it is not cleared if the new name does not contain a valid extension.
pub full_file_extension: ::alloc::string::String,
#[serde(rename = "hasAugmentedPermissions")]
///Output only. Whether there are permissions directly on this file. This field is only populated for items in shared drives.
pub has_augmented_permissions: ::core::primitive::bool,
#[serde(rename = "hasThumbnail")]
///Output only. Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
pub has_thumbnail: ::core::primitive::bool,
#[serde(rename = "headRevisionId")]
///Output only. The ID of the file's head revision. This is currently only available for files with binary content in Google Drive.
pub head_revision_id: ::alloc::string::String,
#[serde(rename = "iconLink")]
///Output only. A static, unauthenticated link to the file's icon.
pub icon_link: ::alloc::string::String,
#[serde(rename = "id")]
///The ID of the file.
pub id: ::alloc::string::String,
#[serde(rename = "imageMediaMetadata")]
///Output only. Additional metadata about image media, if available.
pub image_media_metadata: file_image_media_metadata_additional::ImageMediaMetadata,
#[serde(rename = "inheritedPermissionsDisabled")]
///Whether this file has inherited permissions disabled. Inherited permissions are enabled by default.
pub inherited_permissions_disabled: ::core::primitive::bool,
#[serde(rename = "isAppAuthorized")]
///Output only. Whether the file was created or opened by the requesting app.
pub is_app_authorized: ::core::primitive::bool,
#[serde(rename = "kind")]
///Output only. Identifies what kind of resource this is. Value: the fixed string `"drive#file"`.
pub kind: ::alloc::string::String,
#[serde(rename = "labelInfo")]
///Output only. An overview of the labels on the file.
pub label_info: file_label_info_additional::LabelInfo,
#[serde(rename = "lastModifyingUser")]
pub last_modifying_user: ::alloc::boxed::Box<crate::discovery::schemas::user::User>,
#[serde(rename = "linkShareMetadata")]
///Contains details about the link URLs that clients are using to refer to this item.
pub link_share_metadata: file_link_share_metadata_additional::LinkShareMetadata,
#[serde(rename = "md5Checksum")]
///Output only. The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.
pub md5_checksum: ::alloc::string::String,
#[serde(rename = "mimeType")]
///The MIME type of the file. Google Drive attempts to automatically detect an appropriate value from uploaded content, if no value is provided. The value cannot be changed unless a new revision is uploaded. If a file is created with a Google Doc MIME type, the uploaded content is imported, if possible. The supported import formats are published in the About resource.
pub mime_type: ::alloc::string::String,
#[serde(rename = "modifiedByMe")]
///Output only. Whether the file has been modified by this user.
pub modified_by_me: ::core::primitive::bool,
#[serde(rename = "modifiedByMeTime")]
///The last time the file was modified by the user (RFC 3339 date-time).
pub modified_by_me_time: ::alloc::string::String,
#[serde(rename = "modifiedTime")]
///he last time the file was modified by anyone (RFC 3339 date-time). Note that setting modifiedTime will also update modifiedByMeTime for the user.
pub modified_time: ::alloc::string::String,
#[serde(rename = "name")]
///The name of the file. This is not necessarily unique within a folder. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and Application Data folder the name is constant.
pub name: ::alloc::string::String,
#[serde(rename = "originalFilename")]
///The original filename of the uploaded content if available, or else the original value of the `name` field. This is only available for files with binary content in Google Drive.
pub original_filename: ::alloc::string::String,
#[serde(rename = "ownedByMe")]
///Output only. Whether the user owns the file. Not populated for items in shared drives.
pub owned_by_me: ::core::primitive::bool,
#[serde(rename = "owners")]
///Output only. The owner of this file. Only certain legacy files may have more than one owner. This field isn't populated for items in shared drives.
pub owners: ::alloc::vec::Vec<crate::discovery::schemas::user::User>,
#[serde(rename = "parents")]
///The ID of the parent folder containing the file. A file can only have one parent folder; specifying multiple parents isn't supported. If not specified as part of a create request, the file is placed directly in the user's My Drive folder. If not specified as part of a copy request, the file inherits any discoverable parent of the source file. Update requests must use the `addParents` and `removeParents` parameters to modify the parents list.
pub parents: ::alloc::vec::Vec<::alloc::string::String>,
#[serde(rename = "permissionIds")]
///Output only. List of permission IDs for users with access to this file.
pub permission_ids: ::alloc::vec::Vec<::alloc::string::String>,
#[serde(rename = "permissions")]
///Output only. The full list of permissions for the file. This is only available if the requesting user can share the file. Not populated for items in shared drives.
pub permissions: ::alloc::vec::Vec<
crate::discovery::schemas::permission::Permission,
>,
#[serde(rename = "properties")]
/**A collection of arbitrary key-value pairs which are visible to all apps.
Entries with null values are cleared in update and copy requests.*/
pub properties: file_properties_additional::Properties,
#[serde(rename = "quotaBytesUsed")]
///Output only. The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with `keepForever` enabled.
pub quota_bytes_used: ::alloc::string::String,
#[serde(rename = "resourceKey")]
///Output only. A key needed to access the item via a shared link.
pub resource_key: ::alloc::string::String,
#[serde(rename = "sha1Checksum")]
///Output only. The SHA1 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
pub sha1_checksum: ::alloc::string::String,
#[serde(rename = "sha256Checksum")]
///Output only. The SHA256 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
pub sha256_checksum: ::alloc::string::String,
#[serde(rename = "shared")]
///Output only. Whether the file has been shared. Not populated for items in shared drives.
pub shared: ::core::primitive::bool,
#[serde(rename = "sharedWithMeTime")]
///The time at which the file was shared with the user, if applicable (RFC 3339 date-time).
pub shared_with_me_time: ::alloc::string::String,
#[serde(rename = "sharingUser")]
pub sharing_user: ::alloc::boxed::Box<crate::discovery::schemas::user::User>,
#[serde(rename = "shortcutDetails")]
///Shortcut file details. Only populated for shortcut files, which have the mimeType field set to `application/vnd.google-apps.shortcut`. Can only be set on `files.create` requests.
pub shortcut_details: file_shortcut_details_additional::ShortcutDetails,
#[serde(rename = "size")]
///Output only. Size in bytes of blobs and first party editor files. Won't be populated for files that have no size, like shortcuts and folders.
pub size: ::alloc::string::String,
#[serde(rename = "spaces")]
///Output only. The list of spaces which contain the file. The currently supported values are 'drive', 'appDataFolder' and 'photos'.
pub spaces: ::alloc::vec::Vec<::alloc::string::String>,
#[serde(rename = "starred")]
///Whether the user has starred the file.
pub starred: ::core::primitive::bool,
#[serde(rename = "teamDriveId")]
///Deprecated: Output only. Use `driveId` instead.
pub team_drive_id: ::alloc::string::String,
#[serde(rename = "thumbnailLink")]
///Output only. A short-lived link to the file's thumbnail, if available. Typically lasts on the order of hours. Not intended for direct usage on web applications due to \[Cross-Origin Resource Sharing (CORS)\](<https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS)> policies, consider using a proxy server. Only populated when the requesting app can access the file's content. If the file isn't shared publicly, the URL returned in `Files.thumbnailLink` must be fetched using a credentialed request.
pub thumbnail_link: ::alloc::string::String,
#[serde(rename = "thumbnailVersion")]
///Output only. The thumbnail version for use in thumbnail cache invalidation.
pub thumbnail_version: ::alloc::string::String,
#[serde(rename = "trashed")]
///Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file, and other users cannot see files in the owner's trash.
pub trashed: ::core::primitive::bool,
#[serde(rename = "trashedTime")]
///The time that the item was trashed (RFC 3339 date-time). Only populated for items in shared drives.
pub trashed_time: ::alloc::string::String,
#[serde(rename = "trashingUser")]
pub trashing_user: ::alloc::boxed::Box<crate::discovery::schemas::user::User>,
#[serde(rename = "version")]
///Output only. A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the user.
pub version: ::alloc::string::String,
#[serde(rename = "videoMediaMetadata")]
///Output only. Additional metadata about video media. This may not be available immediately upon upload.
pub video_media_metadata: file_video_media_metadata_additional::VideoMediaMetadata,
#[serde(rename = "viewedByMe")]
///Output only. Whether the file has been viewed by this user.
pub viewed_by_me: ::core::primitive::bool,
#[serde(rename = "viewedByMeTime")]
///The last time the file was viewed by the user (RFC 3339 date-time).
pub viewed_by_me_time: ::alloc::string::String,
#[serde(rename = "viewersCanCopyContent")]
///Deprecated: Use `copyRequiresWriterPermission` instead.
pub viewers_can_copy_content: ::core::primitive::bool,
#[serde(rename = "webContentLink")]
///Output only. A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive.
pub web_content_link: ::alloc::string::String,
#[serde(rename = "webViewLink")]
///Output only. A link for opening the file in a relevant Google editor or viewer in a browser.
pub web_view_link: ::alloc::string::String,
#[serde(rename = "writersCanShare")]
///Whether users with only `writer` permission can modify the file's permissions. Not populated for items in shared drives.
pub writers_can_share: ::core::primitive::bool,
}
///The metadata for a file. Some resource methods (such as `files.update`) require a `fileId`. Use the `files.list` method to retrieve the ID for a file.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize, Default)]
pub struct FilePartial {
#[serde(rename = "appProperties")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
/**A collection of arbitrary key-value pairs which are private to the requesting app.
Entries with null values are cleared in update and copy requests. These properties can only be retrieved using an authenticated request. An authenticated request uses an access token obtained with a OAuth 2 client ID. You cannot use an API key to retrieve private properties.*/
pub app_properties: ::core::option::Option<
file_app_properties_additional::AppPropertiesPartial,
>,
#[serde(rename = "capabilities")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
pub capabilities: ::core::option::Option<
file_capabilities_additional::CapabilitiesPartial,
>,
#[serde(rename = "contentHints")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Additional information about the content of the file. These fields are never populated in responses.
pub content_hints: ::core::option::Option<
file_content_hints_additional::ContentHintsPartial,
>,
#[serde(rename = "contentRestrictions")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Restrictions for accessing the content of the file. Only populated if such a restriction exists.
pub content_restrictions: ::core::option::Option<
::alloc::vec::Vec<
crate::discovery::schemas::content_restriction::ContentRestrictionPartial,
>,
>,
#[serde(rename = "copyRequiresWriterPermission")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
pub copy_requires_writer_permission: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "createdTime")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///The time at which the file was created (RFC 3339 date-time).
pub created_time: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "description")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///A short description of the file.
pub description: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "downloadRestrictions")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
pub download_restrictions: ::core::option::Option<
::alloc::boxed::Box<
crate::discovery::schemas::download_restrictions_metadata::DownloadRestrictionsMetadataPartial,
>,
>,
#[serde(rename = "driveId")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. ID of the shared drive the file resides in. Only populated for items in shared drives.
pub drive_id: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "explicitlyTrashed")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
pub explicitly_trashed: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "exportLinks")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Links for exporting Docs Editors files to specific formats.
pub export_links: ::core::option::Option<
file_export_links_additional::ExportLinksPartial,
>,
#[serde(rename = "fileExtension")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The final component of `fullFileExtension`. This is only available for files with binary content in Google Drive.
pub file_extension: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "folderColorRgb")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///The color for a folder or a shortcut to a folder as an RGB hex string. The supported colors are published in the `folderColorPalette` field of the About resource. If an unsupported color is specified, the closest color in the palette is used instead.
pub folder_color_rgb: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "fullFileExtension")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The full file extension extracted from the `name` field. May contain multiple concatenated extensions, such as "tar.gz". This is only available for files with binary content in Google Drive. This is automatically updated when the `name` field changes, however it is not cleared if the new name does not contain a valid extension.
pub full_file_extension: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "hasAugmentedPermissions")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether there are permissions directly on this file. This field is only populated for items in shared drives.
pub has_augmented_permissions: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "hasThumbnail")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
pub has_thumbnail: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "headRevisionId")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The ID of the file's head revision. This is currently only available for files with binary content in Google Drive.
pub head_revision_id: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "iconLink")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. A static, unauthenticated link to the file's icon.
pub icon_link: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "id")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///The ID of the file.
pub id: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "imageMediaMetadata")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Additional metadata about image media, if available.
pub image_media_metadata: ::core::option::Option<
file_image_media_metadata_additional::ImageMediaMetadataPartial,
>,
#[serde(rename = "inheritedPermissionsDisabled")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Whether this file has inherited permissions disabled. Inherited permissions are enabled by default.
pub inherited_permissions_disabled: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "isAppAuthorized")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the file was created or opened by the requesting app.
pub is_app_authorized: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "kind")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Identifies what kind of resource this is. Value: the fixed string `"drive#file"`.
pub kind: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "labelInfo")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. An overview of the labels on the file.
pub label_info: ::core::option::Option<file_label_info_additional::LabelInfoPartial>,
#[serde(rename = "lastModifyingUser")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
pub last_modifying_user: ::core::option::Option<
::alloc::boxed::Box<crate::discovery::schemas::user::UserPartial>,
>,
#[serde(rename = "linkShareMetadata")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Contains details about the link URLs that clients are using to refer to this item.
pub link_share_metadata: ::core::option::Option<
file_link_share_metadata_additional::LinkShareMetadataPartial,
>,
#[serde(rename = "md5Checksum")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.
pub md5_checksum: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "mimeType")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///The MIME type of the file. Google Drive attempts to automatically detect an appropriate value from uploaded content, if no value is provided. The value cannot be changed unless a new revision is uploaded. If a file is created with a Google Doc MIME type, the uploaded content is imported, if possible. The supported import formats are published in the About resource.
pub mime_type: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "modifiedByMe")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the file has been modified by this user.
pub modified_by_me: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "modifiedByMeTime")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///The last time the file was modified by the user (RFC 3339 date-time).
pub modified_by_me_time: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "modifiedTime")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///he last time the file was modified by anyone (RFC 3339 date-time). Note that setting modifiedTime will also update modifiedByMeTime for the user.
pub modified_time: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///The name of the file. This is not necessarily unique within a folder. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and Application Data folder the name is constant.
pub name: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "originalFilename")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///The original filename of the uploaded content if available, or else the original value of the `name` field. This is only available for files with binary content in Google Drive.
pub original_filename: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "ownedByMe")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the user owns the file. Not populated for items in shared drives.
pub owned_by_me: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "owners")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The owner of this file. Only certain legacy files may have more than one owner. This field isn't populated for items in shared drives.
pub owners: ::core::option::Option<
::alloc::vec::Vec<crate::discovery::schemas::user::UserPartial>,
>,
#[serde(rename = "parents")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///The ID of the parent folder containing the file. A file can only have one parent folder; specifying multiple parents isn't supported. If not specified as part of a create request, the file is placed directly in the user's My Drive folder. If not specified as part of a copy request, the file inherits any discoverable parent of the source file. Update requests must use the `addParents` and `removeParents` parameters to modify the parents list.
pub parents: ::core::option::Option<::alloc::vec::Vec<::alloc::string::String>>,
#[serde(rename = "permissionIds")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. List of permission IDs for users with access to this file.
pub permission_ids: ::core::option::Option<
::alloc::vec::Vec<::alloc::string::String>,
>,
#[serde(rename = "permissions")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The full list of permissions for the file. This is only available if the requesting user can share the file. Not populated for items in shared drives.
pub permissions: ::core::option::Option<
::alloc::vec::Vec<crate::discovery::schemas::permission::PermissionPartial>,
>,
#[serde(rename = "properties")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
/**A collection of arbitrary key-value pairs which are visible to all apps.
Entries with null values are cleared in update and copy requests.*/
pub properties: ::core::option::Option<
file_properties_additional::PropertiesPartial,
>,
#[serde(rename = "quotaBytesUsed")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with `keepForever` enabled.
pub quota_bytes_used: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "resourceKey")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. A key needed to access the item via a shared link.
pub resource_key: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "sha1Checksum")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The SHA1 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
pub sha1_checksum: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "sha256Checksum")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The SHA256 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
pub sha256_checksum: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "shared")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the file has been shared. Not populated for items in shared drives.
pub shared: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "sharedWithMeTime")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///The time at which the file was shared with the user, if applicable (RFC 3339 date-time).
pub shared_with_me_time: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "sharingUser")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
pub sharing_user: ::core::option::Option<
::alloc::boxed::Box<crate::discovery::schemas::user::UserPartial>,
>,
#[serde(rename = "shortcutDetails")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Shortcut file details. Only populated for shortcut files, which have the mimeType field set to `application/vnd.google-apps.shortcut`. Can only be set on `files.create` requests.
pub shortcut_details: ::core::option::Option<
file_shortcut_details_additional::ShortcutDetailsPartial,
>,
#[serde(rename = "size")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Size in bytes of blobs and first party editor files. Won't be populated for files that have no size, like shortcuts and folders.
pub size: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "spaces")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The list of spaces which contain the file. The currently supported values are 'drive', 'appDataFolder' and 'photos'.
pub spaces: ::core::option::Option<::alloc::vec::Vec<::alloc::string::String>>,
#[serde(rename = "starred")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Whether the user has starred the file.
pub starred: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "teamDriveId")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Deprecated: Output only. Use `driveId` instead.
pub team_drive_id: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "thumbnailLink")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. A short-lived link to the file's thumbnail, if available. Typically lasts on the order of hours. Not intended for direct usage on web applications due to \[Cross-Origin Resource Sharing (CORS)\](<https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS)> policies, consider using a proxy server. Only populated when the requesting app can access the file's content. If the file isn't shared publicly, the URL returned in `Files.thumbnailLink` must be fetched using a credentialed request.
pub thumbnail_link: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "thumbnailVersion")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The thumbnail version for use in thumbnail cache invalidation.
pub thumbnail_version: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "trashed")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file, and other users cannot see files in the owner's trash.
pub trashed: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "trashedTime")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///The time that the item was trashed (RFC 3339 date-time). Only populated for items in shared drives.
pub trashed_time: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "trashingUser")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
pub trashing_user: ::core::option::Option<
::alloc::boxed::Box<crate::discovery::schemas::user::UserPartial>,
>,
#[serde(rename = "version")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the user.
pub version: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "videoMediaMetadata")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Additional metadata about video media. This may not be available immediately upon upload.
pub video_media_metadata: ::core::option::Option<
file_video_media_metadata_additional::VideoMediaMetadataPartial,
>,
#[serde(rename = "viewedByMe")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the file has been viewed by this user.
pub viewed_by_me: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "viewedByMeTime")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///The last time the file was viewed by the user (RFC 3339 date-time).
pub viewed_by_me_time: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "viewersCanCopyContent")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Deprecated: Use `copyRequiresWriterPermission` instead.
pub viewers_can_copy_content: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "webContentLink")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive.
pub web_content_link: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "webViewLink")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. A link for opening the file in a relevant Google editor or viewer in a browser.
pub web_view_link: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "writersCanShare")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Whether users with only `writer` permission can modify the file's permissions. Not populated for items in shared drives.
pub writers_can_share: ::core::option::Option<::core::primitive::bool>,
}
pub mod file_app_properties_additional {
use super::*;
/**A collection of arbitrary key-value pairs which are private to the requesting app.
Entries with null values are cleared in update and copy requests. These properties can only be retrieved using an authenticated request. An authenticated request uses an access token obtained with a OAuth 2 client ID. You cannot use an API key to retrieve private properties.*/
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize)]
pub struct AppProperties {}
/**A collection of arbitrary key-value pairs which are private to the requesting app.
Entries with null values are cleared in update and copy requests. These properties can only be retrieved using an authenticated request. An authenticated request uses an access token obtained with a OAuth 2 client ID. You cannot use an API key to retrieve private properties.*/
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize, Default)]
pub struct AppPropertiesPartial {}
}
pub mod file_capabilities_additional {
use super::*;
///Output only. Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize)]
pub struct Capabilities {
#[serde(rename = "canAcceptOwnership")]
///Output only. Whether the current user is the pending owner of the file. Not populated for shared drive files.
pub can_accept_ownership: ::core::primitive::bool,
#[serde(rename = "canAddChildren")]
///Output only. Whether the current user can add children to this folder. This is always false when the item is not a folder.
pub can_add_children: ::core::primitive::bool,
#[serde(rename = "canAddFolderFromAnotherDrive")]
///Output only. Whether the current user can add a folder from another drive (different shared drive or My Drive) to this folder. This is false when the item is not a folder. Only populated for items in shared drives.
pub can_add_folder_from_another_drive: ::core::primitive::bool,
#[serde(rename = "canAddMyDriveParent")]
///Output only. Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files.
pub can_add_my_drive_parent: ::core::primitive::bool,
#[serde(rename = "canChangeCopyRequiresWriterPermission")]
///Output only. Whether the current user can change the `copyRequiresWriterPermission` restriction of this file.
pub can_change_copy_requires_writer_permission: ::core::primitive::bool,
#[serde(rename = "canChangeItemDownloadRestriction")]
///Output only. Whether the current user can change the owner or organizer-applied download restrictions of the file.
pub can_change_item_download_restriction: ::core::primitive::bool,
#[serde(rename = "canChangeSecurityUpdateEnabled")]
///Output only. Whether the current user can change the securityUpdateEnabled field on link share metadata.
pub can_change_security_update_enabled: ::core::primitive::bool,
#[serde(rename = "canChangeViewersCanCopyContent")]
///Deprecated: Output only.
pub can_change_viewers_can_copy_content: ::core::primitive::bool,
#[serde(rename = "canComment")]
///Output only. Whether the current user can comment on this file.
pub can_comment: ::core::primitive::bool,
#[serde(rename = "canCopy")]
///Output only. Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
pub can_copy: ::core::primitive::bool,
#[serde(rename = "canDelete")]
///Output only. Whether the current user can delete this file.
pub can_delete: ::core::primitive::bool,
#[serde(rename = "canDeleteChildren")]
///Output only. Whether the current user can delete children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.
pub can_delete_children: ::core::primitive::bool,
#[serde(rename = "canDisableInheritedPermissions")]
///Whether a user can disable inherited permissions.
pub can_disable_inherited_permissions: ::core::primitive::bool,
#[serde(rename = "canDownload")]
///Output only. Whether the current user can download this file.
pub can_download: ::core::primitive::bool,
#[serde(rename = "canEdit")]
///Output only. Whether the current user can edit this file. Other factors may limit the type of changes a user can make to a file. For example, see `canChangeCopyRequiresWriterPermission` or `canModifyContent`.
pub can_edit: ::core::primitive::bool,
#[serde(rename = "canEnableInheritedPermissions")]
///Whether a user can re-enable inherited permissions.
pub can_enable_inherited_permissions: ::core::primitive::bool,
#[serde(rename = "canListChildren")]
///Output only. Whether the current user can list the children of this folder. This is always false when the item is not a folder.
pub can_list_children: ::core::primitive::bool,
#[serde(rename = "canModifyContent")]
///Output only. Whether the current user can modify the content of this file.
pub can_modify_content: ::core::primitive::bool,
#[serde(rename = "canModifyContentRestriction")]
///Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `canModifyOwnerContentRestriction` or `canRemoveContentRestriction`.
pub can_modify_content_restriction: ::core::primitive::bool,
#[serde(rename = "canModifyEditorContentRestriction")]
///Output only. Whether the current user can add or modify content restrictions on the file which are editor restricted.
pub can_modify_editor_content_restriction: ::core::primitive::bool,
#[serde(rename = "canModifyLabels")]
///Output only. Whether the current user can modify the labels on the file.
pub can_modify_labels: ::core::primitive::bool,
#[serde(rename = "canModifyOwnerContentRestriction")]
///Output only. Whether the current user can add or modify content restrictions which are owner restricted.
pub can_modify_owner_content_restriction: ::core::primitive::bool,
#[serde(rename = "canMoveChildrenOutOfDrive")]
///Output only. Whether the current user can move children of this folder outside of the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.
pub can_move_children_out_of_drive: ::core::primitive::bool,
#[serde(rename = "canMoveChildrenOutOfTeamDrive")]
///Deprecated: Output only. Use `canMoveChildrenOutOfDrive` instead.
pub can_move_children_out_of_team_drive: ::core::primitive::bool,
#[serde(rename = "canMoveChildrenWithinDrive")]
///Output only. Whether the current user can move children of this folder within this drive. This is false when the item is not a folder. Note that a request to move the child may still fail depending on the current user's access to the child and to the destination folder.
pub can_move_children_within_drive: ::core::primitive::bool,
#[serde(rename = "canMoveChildrenWithinTeamDrive")]
///Deprecated: Output only. Use `canMoveChildrenWithinDrive` instead.
pub can_move_children_within_team_drive: ::core::primitive::bool,
#[serde(rename = "canMoveItemIntoTeamDrive")]
///Deprecated: Output only. Use `canMoveItemOutOfDrive` instead.
pub can_move_item_into_team_drive: ::core::primitive::bool,
#[serde(rename = "canMoveItemOutOfDrive")]
///Output only. Whether the current user can move this item outside of this drive by changing its parent. Note that a request to change the parent of the item may still fail depending on the new parent that is being added.
pub can_move_item_out_of_drive: ::core::primitive::bool,
#[serde(rename = "canMoveItemOutOfTeamDrive")]
///Deprecated: Output only. Use `canMoveItemOutOfDrive` instead.
pub can_move_item_out_of_team_drive: ::core::primitive::bool,
#[serde(rename = "canMoveItemWithinDrive")]
///Output only. Whether the current user can move this item within this drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added and the parent that is being removed.
pub can_move_item_within_drive: ::core::primitive::bool,
#[serde(rename = "canMoveItemWithinTeamDrive")]
///Deprecated: Output only. Use `canMoveItemWithinDrive` instead.
pub can_move_item_within_team_drive: ::core::primitive::bool,
#[serde(rename = "canMoveTeamDriveItem")]
///Deprecated: Output only. Use `canMoveItemWithinDrive` or `canMoveItemOutOfDrive` instead.
pub can_move_team_drive_item: ::core::primitive::bool,
#[serde(rename = "canReadDrive")]
///Output only. Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
pub can_read_drive: ::core::primitive::bool,
#[serde(rename = "canReadLabels")]
///Output only. Whether the current user can read the labels on the file.
pub can_read_labels: ::core::primitive::bool,
#[serde(rename = "canReadRevisions")]
///Output only. Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
pub can_read_revisions: ::core::primitive::bool,
#[serde(rename = "canReadTeamDrive")]
///Deprecated: Output only. Use `canReadDrive` instead.
pub can_read_team_drive: ::core::primitive::bool,
#[serde(rename = "canRemoveChildren")]
///Output only. Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use `canDeleteChildren` or `canTrashChildren` instead.
pub can_remove_children: ::core::primitive::bool,
#[serde(rename = "canRemoveContentRestriction")]
///Output only. Whether there is a content restriction on the file that can be removed by the current user.
pub can_remove_content_restriction: ::core::primitive::bool,
#[serde(rename = "canRemoveMyDriveParent")]
///Output only. Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files.
pub can_remove_my_drive_parent: ::core::primitive::bool,
#[serde(rename = "canRename")]
///Output only. Whether the current user can rename this file.
pub can_rename: ::core::primitive::bool,
#[serde(rename = "canShare")]
///Output only. Whether the current user can modify the sharing settings for this file.
pub can_share: ::core::primitive::bool,
#[serde(rename = "canTrash")]
///Output only. Whether the current user can move this file to trash.
pub can_trash: ::core::primitive::bool,
#[serde(rename = "canTrashChildren")]
///Output only. Whether the current user can trash children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.
pub can_trash_children: ::core::primitive::bool,
#[serde(rename = "canUntrash")]
///Output only. Whether the current user can restore this file from trash.
pub can_untrash: ::core::primitive::bool,
}
///Output only. Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize, Default)]
pub struct CapabilitiesPartial {
#[serde(rename = "canAcceptOwnership")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the current user is the pending owner of the file. Not populated for shared drive files.
pub can_accept_ownership: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "canAddChildren")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the current user can add children to this folder. This is always false when the item is not a folder.
pub can_add_children: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "canAddFolderFromAnotherDrive")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the current user can add a folder from another drive (different shared drive or My Drive) to this folder. This is false when the item is not a folder. Only populated for items in shared drives.
pub can_add_folder_from_another_drive: ::core::option::Option<
::core::primitive::bool,
>,
#[serde(rename = "canAddMyDriveParent")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files.
pub can_add_my_drive_parent: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "canChangeCopyRequiresWriterPermission")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the current user can change the `copyRequiresWriterPermission` restriction of this file.
pub can_change_copy_requires_writer_permission: ::core::option::Option<
::core::primitive::bool,
>,
#[serde(rename = "canChangeItemDownloadRestriction")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the current user can change the owner or organizer-applied download restrictions of the file.
pub can_change_item_download_restriction: ::core::option::Option<
::core::primitive::bool,
>,
#[serde(rename = "canChangeSecurityUpdateEnabled")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the current user can change the securityUpdateEnabled field on link share metadata.
pub can_change_security_update_enabled: ::core::option::Option<
::core::primitive::bool,
>,
#[serde(rename = "canChangeViewersCanCopyContent")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Deprecated: Output only.
pub can_change_viewers_can_copy_content: ::core::option::Option<
::core::primitive::bool,
>,
#[serde(rename = "canComment")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the current user can comment on this file.
pub can_comment: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "canCopy")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
pub can_copy: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "canDelete")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the current user can delete this file.
pub can_delete: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "canDeleteChildren")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the current user can delete children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.
pub can_delete_children: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "canDisableInheritedPermissions")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Whether a user can disable inherited permissions.
pub can_disable_inherited_permissions: ::core::option::Option<
::core::primitive::bool,
>,
#[serde(rename = "canDownload")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the current user can download this file.
pub can_download: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "canEdit")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the current user can edit this file. Other factors may limit the type of changes a user can make to a file. For example, see `canChangeCopyRequiresWriterPermission` or `canModifyContent`.
pub can_edit: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "canEnableInheritedPermissions")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Whether a user can re-enable inherited permissions.
pub can_enable_inherited_permissions: ::core::option::Option<
::core::primitive::bool,
>,
#[serde(rename = "canListChildren")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the current user can list the children of this folder. This is always false when the item is not a folder.
pub can_list_children: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "canModifyContent")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the current user can modify the content of this file.
pub can_modify_content: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "canModifyContentRestriction")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `canModifyOwnerContentRestriction` or `canRemoveContentRestriction`.
pub can_modify_content_restriction: ::core::option::Option<
::core::primitive::bool,
>,
#[serde(rename = "canModifyEditorContentRestriction")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the current user can add or modify content restrictions on the file which are editor restricted.
pub can_modify_editor_content_restriction: ::core::option::Option<
::core::primitive::bool,
>,
#[serde(rename = "canModifyLabels")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the current user can modify the labels on the file.
pub can_modify_labels: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "canModifyOwnerContentRestriction")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the current user can add or modify content restrictions which are owner restricted.
pub can_modify_owner_content_restriction: ::core::option::Option<
::core::primitive::bool,
>,
#[serde(rename = "canMoveChildrenOutOfDrive")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the current user can move children of this folder outside of the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.
pub can_move_children_out_of_drive: ::core::option::Option<
::core::primitive::bool,
>,
#[serde(rename = "canMoveChildrenOutOfTeamDrive")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Deprecated: Output only. Use `canMoveChildrenOutOfDrive` instead.
pub can_move_children_out_of_team_drive: ::core::option::Option<
::core::primitive::bool,
>,
#[serde(rename = "canMoveChildrenWithinDrive")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the current user can move children of this folder within this drive. This is false when the item is not a folder. Note that a request to move the child may still fail depending on the current user's access to the child and to the destination folder.
pub can_move_children_within_drive: ::core::option::Option<
::core::primitive::bool,
>,
#[serde(rename = "canMoveChildrenWithinTeamDrive")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Deprecated: Output only. Use `canMoveChildrenWithinDrive` instead.
pub can_move_children_within_team_drive: ::core::option::Option<
::core::primitive::bool,
>,
#[serde(rename = "canMoveItemIntoTeamDrive")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Deprecated: Output only. Use `canMoveItemOutOfDrive` instead.
pub can_move_item_into_team_drive: ::core::option::Option<
::core::primitive::bool,
>,
#[serde(rename = "canMoveItemOutOfDrive")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the current user can move this item outside of this drive by changing its parent. Note that a request to change the parent of the item may still fail depending on the new parent that is being added.
pub can_move_item_out_of_drive: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "canMoveItemOutOfTeamDrive")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Deprecated: Output only. Use `canMoveItemOutOfDrive` instead.
pub can_move_item_out_of_team_drive: ::core::option::Option<
::core::primitive::bool,
>,
#[serde(rename = "canMoveItemWithinDrive")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the current user can move this item within this drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added and the parent that is being removed.
pub can_move_item_within_drive: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "canMoveItemWithinTeamDrive")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Deprecated: Output only. Use `canMoveItemWithinDrive` instead.
pub can_move_item_within_team_drive: ::core::option::Option<
::core::primitive::bool,
>,
#[serde(rename = "canMoveTeamDriveItem")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Deprecated: Output only. Use `canMoveItemWithinDrive` or `canMoveItemOutOfDrive` instead.
pub can_move_team_drive_item: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "canReadDrive")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
pub can_read_drive: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "canReadLabels")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the current user can read the labels on the file.
pub can_read_labels: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "canReadRevisions")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
pub can_read_revisions: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "canReadTeamDrive")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Deprecated: Output only. Use `canReadDrive` instead.
pub can_read_team_drive: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "canRemoveChildren")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use `canDeleteChildren` or `canTrashChildren` instead.
pub can_remove_children: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "canRemoveContentRestriction")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether there is a content restriction on the file that can be removed by the current user.
pub can_remove_content_restriction: ::core::option::Option<
::core::primitive::bool,
>,
#[serde(rename = "canRemoveMyDriveParent")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files.
pub can_remove_my_drive_parent: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "canRename")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the current user can rename this file.
pub can_rename: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "canShare")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the current user can modify the sharing settings for this file.
pub can_share: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "canTrash")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the current user can move this file to trash.
pub can_trash: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "canTrashChildren")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the current user can trash children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.
pub can_trash_children: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "canUntrash")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the current user can restore this file from trash.
pub can_untrash: ::core::option::Option<::core::primitive::bool>,
}
}
pub mod file_content_hints_additional {
use super::*;
///Additional information about the content of the file. These fields are never populated in responses.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize)]
pub struct ContentHints {
#[serde(rename = "indexableText")]
///Text to be indexed for the file to improve fullText queries. This is limited to 128KB in length and may contain HTML elements.
pub indexable_text: ::alloc::string::String,
#[serde(rename = "thumbnail")]
///A thumbnail for the file. This will only be used if Google Drive cannot generate a standard thumbnail.
pub thumbnail: content_hints_thumbnail_additional::Thumbnail,
}
///Additional information about the content of the file. These fields are never populated in responses.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize, Default)]
pub struct ContentHintsPartial {
#[serde(rename = "indexableText")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Text to be indexed for the file to improve fullText queries. This is limited to 128KB in length and may contain HTML elements.
pub indexable_text: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "thumbnail")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///A thumbnail for the file. This will only be used if Google Drive cannot generate a standard thumbnail.
pub thumbnail: ::core::option::Option<
content_hints_thumbnail_additional::ThumbnailPartial,
>,
}
pub mod content_hints_thumbnail_additional {
use super::*;
///A thumbnail for the file. This will only be used if Google Drive cannot generate a standard thumbnail.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize)]
pub struct Thumbnail {
#[serde(rename = "image")]
///The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5).
pub image: ::alloc::string::String,
#[serde(rename = "mimeType")]
///The MIME type of the thumbnail.
pub mime_type: ::alloc::string::String,
}
///A thumbnail for the file. This will only be used if Google Drive cannot generate a standard thumbnail.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize, Default)]
pub struct ThumbnailPartial {
#[serde(rename = "image")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5).
pub image: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "mimeType")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///The MIME type of the thumbnail.
pub mime_type: ::core::option::Option<::alloc::string::String>,
}
}
}
pub mod file_export_links_additional {
use super::*;
///Output only. Links for exporting Docs Editors files to specific formats.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize)]
pub struct ExportLinks {}
///Output only. Links for exporting Docs Editors files to specific formats.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize, Default)]
pub struct ExportLinksPartial {}
}
pub mod file_image_media_metadata_additional {
use super::*;
///Output only. Additional metadata about image media, if available.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize)]
pub struct ImageMediaMetadata {
#[serde(rename = "aperture")]
///Output only. The aperture used to create the photo (f-number).
pub aperture: ::core::primitive::f32,
#[serde(rename = "cameraMake")]
///Output only. The make of the camera used to create the photo.
pub camera_make: ::alloc::string::String,
#[serde(rename = "cameraModel")]
///Output only. The model of the camera used to create the photo.
pub camera_model: ::alloc::string::String,
#[serde(rename = "colorSpace")]
///Output only. The color space of the photo.
pub color_space: ::alloc::string::String,
#[serde(rename = "exposureBias")]
///Output only. The exposure bias of the photo (APEX value).
pub exposure_bias: ::core::primitive::f32,
#[serde(rename = "exposureMode")]
///Output only. The exposure mode used to create the photo.
pub exposure_mode: ::alloc::string::String,
#[serde(rename = "exposureTime")]
///Output only. The length of the exposure, in seconds.
pub exposure_time: ::core::primitive::f32,
#[serde(rename = "flashUsed")]
///Output only. Whether a flash was used to create the photo.
pub flash_used: ::core::primitive::bool,
#[serde(rename = "focalLength")]
///Output only. The focal length used to create the photo, in millimeters.
pub focal_length: ::core::primitive::f32,
#[serde(rename = "height")]
///Output only. The height of the image in pixels.
pub height: ::core::primitive::i32,
#[serde(rename = "isoSpeed")]
///Output only. The ISO speed used to create the photo.
pub iso_speed: ::core::primitive::i32,
#[serde(rename = "lens")]
///Output only. The lens used to create the photo.
pub lens: ::alloc::string::String,
#[serde(rename = "location")]
///Output only. Geographic location information stored in the image.
pub location: image_media_metadata_location_additional::Location,
#[serde(rename = "maxApertureValue")]
///Output only. The smallest f-number of the lens at the focal length used to create the photo (APEX value).
pub max_aperture_value: ::core::primitive::f32,
#[serde(rename = "meteringMode")]
///Output only. The metering mode used to create the photo.
pub metering_mode: ::alloc::string::String,
#[serde(rename = "rotation")]
///Output only. The number of clockwise 90 degree rotations applied from the image's original orientation.
pub rotation: ::core::primitive::i32,
#[serde(rename = "sensor")]
///Output only. The type of sensor used to create the photo.
pub sensor: ::alloc::string::String,
#[serde(rename = "subjectDistance")]
///Output only. The distance to the subject of the photo, in meters.
pub subject_distance: ::core::primitive::i32,
#[serde(rename = "time")]
///Output only. The date and time the photo was taken (EXIF DateTime).
pub time: ::alloc::string::String,
#[serde(rename = "whiteBalance")]
///Output only. The white balance mode used to create the photo.
pub white_balance: ::alloc::string::String,
#[serde(rename = "width")]
///Output only. The width of the image in pixels.
pub width: ::core::primitive::i32,
}
///Output only. Additional metadata about image media, if available.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize, Default)]
pub struct ImageMediaMetadataPartial {
#[serde(rename = "aperture")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The aperture used to create the photo (f-number).
pub aperture: ::core::option::Option<::core::primitive::f32>,
#[serde(rename = "cameraMake")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The make of the camera used to create the photo.
pub camera_make: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "cameraModel")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The model of the camera used to create the photo.
pub camera_model: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "colorSpace")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The color space of the photo.
pub color_space: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "exposureBias")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The exposure bias of the photo (APEX value).
pub exposure_bias: ::core::option::Option<::core::primitive::f32>,
#[serde(rename = "exposureMode")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The exposure mode used to create the photo.
pub exposure_mode: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "exposureTime")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The length of the exposure, in seconds.
pub exposure_time: ::core::option::Option<::core::primitive::f32>,
#[serde(rename = "flashUsed")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether a flash was used to create the photo.
pub flash_used: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "focalLength")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The focal length used to create the photo, in millimeters.
pub focal_length: ::core::option::Option<::core::primitive::f32>,
#[serde(rename = "height")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The height of the image in pixels.
pub height: ::core::option::Option<::core::primitive::i32>,
#[serde(rename = "isoSpeed")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The ISO speed used to create the photo.
pub iso_speed: ::core::option::Option<::core::primitive::i32>,
#[serde(rename = "lens")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The lens used to create the photo.
pub lens: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "location")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Geographic location information stored in the image.
pub location: ::core::option::Option<
image_media_metadata_location_additional::LocationPartial,
>,
#[serde(rename = "maxApertureValue")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The smallest f-number of the lens at the focal length used to create the photo (APEX value).
pub max_aperture_value: ::core::option::Option<::core::primitive::f32>,
#[serde(rename = "meteringMode")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The metering mode used to create the photo.
pub metering_mode: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "rotation")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The number of clockwise 90 degree rotations applied from the image's original orientation.
pub rotation: ::core::option::Option<::core::primitive::i32>,
#[serde(rename = "sensor")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The type of sensor used to create the photo.
pub sensor: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "subjectDistance")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The distance to the subject of the photo, in meters.
pub subject_distance: ::core::option::Option<::core::primitive::i32>,
#[serde(rename = "time")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The date and time the photo was taken (EXIF DateTime).
pub time: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "whiteBalance")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The white balance mode used to create the photo.
pub white_balance: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "width")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The width of the image in pixels.
pub width: ::core::option::Option<::core::primitive::i32>,
}
pub mod image_media_metadata_location_additional {
use super::*;
///Output only. Geographic location information stored in the image.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize)]
pub struct Location {
#[serde(rename = "altitude")]
///Output only. The altitude stored in the image.
pub altitude: ::core::primitive::f64,
#[serde(rename = "latitude")]
///Output only. The latitude stored in the image.
pub latitude: ::core::primitive::f64,
#[serde(rename = "longitude")]
///Output only. The longitude stored in the image.
pub longitude: ::core::primitive::f64,
}
///Output only. Geographic location information stored in the image.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize, Default)]
pub struct LocationPartial {
#[serde(rename = "altitude")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The altitude stored in the image.
pub altitude: ::core::option::Option<::core::primitive::f64>,
#[serde(rename = "latitude")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The latitude stored in the image.
pub latitude: ::core::option::Option<::core::primitive::f64>,
#[serde(rename = "longitude")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The longitude stored in the image.
pub longitude: ::core::option::Option<::core::primitive::f64>,
}
}
}
pub mod file_label_info_additional {
use super::*;
///Output only. An overview of the labels on the file.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize)]
pub struct LabelInfo {
#[serde(rename = "labels")]
///Output only. The set of labels on the file as requested by the label IDs in the `includeLabels` parameter. By default, no labels are returned.
pub labels: ::alloc::vec::Vec<crate::discovery::schemas::label::Label>,
}
///Output only. An overview of the labels on the file.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize, Default)]
pub struct LabelInfoPartial {
#[serde(rename = "labels")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The set of labels on the file as requested by the label IDs in the `includeLabels` parameter. By default, no labels are returned.
pub labels: ::core::option::Option<
::alloc::vec::Vec<crate::discovery::schemas::label::LabelPartial>,
>,
}
}
pub mod file_link_share_metadata_additional {
use super::*;
///Contains details about the link URLs that clients are using to refer to this item.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize)]
pub struct LinkShareMetadata {
#[serde(rename = "securityUpdateEligible")]
///Output only. Whether the file is eligible for security update.
pub security_update_eligible: ::core::primitive::bool,
#[serde(rename = "securityUpdateEnabled")]
///Output only. Whether the security update is enabled for this file.
pub security_update_enabled: ::core::primitive::bool,
}
///Contains details about the link URLs that clients are using to refer to this item.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize, Default)]
pub struct LinkShareMetadataPartial {
#[serde(rename = "securityUpdateEligible")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the file is eligible for security update.
pub security_update_eligible: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "securityUpdateEnabled")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the security update is enabled for this file.
pub security_update_enabled: ::core::option::Option<::core::primitive::bool>,
}
}
pub mod file_properties_additional {
use super::*;
/**A collection of arbitrary key-value pairs which are visible to all apps.
Entries with null values are cleared in update and copy requests.*/
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize)]
pub struct Properties {}
/**A collection of arbitrary key-value pairs which are visible to all apps.
Entries with null values are cleared in update and copy requests.*/
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize, Default)]
pub struct PropertiesPartial {}
}
pub mod file_shortcut_details_additional {
use super::*;
///Shortcut file details. Only populated for shortcut files, which have the mimeType field set to `application/vnd.google-apps.shortcut`. Can only be set on `files.create` requests.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize)]
pub struct ShortcutDetails {
#[serde(rename = "targetId")]
///The ID of the file that this shortcut points to. Can only be set on `files.create` requests.
pub target_id: ::alloc::string::String,
#[serde(rename = "targetMimeType")]
///Output only. The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created.
pub target_mime_type: ::alloc::string::String,
#[serde(rename = "targetResourceKey")]
///Output only. The ResourceKey for the target file.
pub target_resource_key: ::alloc::string::String,
}
///Shortcut file details. Only populated for shortcut files, which have the mimeType field set to `application/vnd.google-apps.shortcut`. Can only be set on `files.create` requests.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize, Default)]
pub struct ShortcutDetailsPartial {
#[serde(rename = "targetId")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///The ID of the file that this shortcut points to. Can only be set on `files.create` requests.
pub target_id: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "targetMimeType")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created.
pub target_mime_type: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "targetResourceKey")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The ResourceKey for the target file.
pub target_resource_key: ::core::option::Option<::alloc::string::String>,
}
}
pub mod file_video_media_metadata_additional {
use super::*;
///Output only. Additional metadata about video media. This may not be available immediately upon upload.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize)]
pub struct VideoMediaMetadata {
#[serde(rename = "durationMillis")]
///Output only. The duration of the video in milliseconds.
pub duration_millis: ::alloc::string::String,
#[serde(rename = "height")]
///Output only. The height of the video in pixels.
pub height: ::core::primitive::i32,
#[serde(rename = "width")]
///Output only. The width of the video in pixels.
pub width: ::core::primitive::i32,
}
///Output only. Additional metadata about video media. This may not be available immediately upon upload.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize, Default)]
pub struct VideoMediaMetadataPartial {
#[serde(rename = "durationMillis")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The duration of the video in milliseconds.
pub duration_millis: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "height")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The height of the video in pixels.
pub height: ::core::option::Option<::core::primitive::i32>,
#[serde(rename = "width")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The width of the video in pixels.
pub width: ::core::option::Option<::core::primitive::i32>,
}
}