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
|
<html><body>
<style>
body, h1, h2, h3, div, span, p, pre, a {
margin: 0;
padding: 0;
border: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
body {
font-size: 13px;
padding: 1em;
}
h1 {
font-size: 26px;
margin-bottom: 1em;
}
h2 {
font-size: 24px;
margin-bottom: 1em;
}
h3 {
font-size: 20px;
margin-bottom: 1em;
margin-top: 1em;
}
pre, code {
line-height: 1.5;
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}
pre {
margin-top: 0.5em;
}
h1, h2, h3, p {
font-family: Arial, sans serif;
}
h1, h2, h3 {
border-bottom: solid #CCC 1px;
}
.toc_element {
margin-top: 0.5em;
}
.firstline {
margin-left: 2 em;
}
.method {
margin-top: 1em;
border: solid 1px #CCC;
padding: 1em;
background: #EEE;
}
.details {
font-weight: bold;
font-size: 14px;
}
</style>
<h1><a href="driveactivity_v2.html">Drive Activity API</a> . <a href="driveactivity_v2.activity.html">activity</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
<code><a href="#query">query(body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Query past activity in Google Drive.</p>
<p class="toc_element">
<code><a href="#query_next">query_next()</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="close">close()</code>
<pre>Close httplib2 connections.</pre>
</div>
<div class="method">
<code class="details" id="query">query(body=None, x__xgafv=None)</code>
<pre>Query past activity in Google Drive.
Args:
body: object, The request body.
The object takes the form of:
{ # The request message for querying Drive activity.
"ancestorName": "A String", # Return activities for this Drive folder, plus all children and descendants. The format is `items/ITEM_ID`.
"consolidationStrategy": { # How the individual activities are consolidated. If a set of activities is related they can be consolidated into one combined activity, such as one actor performing the same action on multiple targets, or multiple actors performing the same action on a single target. The strategy defines the rules for which activities are related. # Details on how to consolidate related actions that make up the activity. If not set, then related actions aren't consolidated.
"legacy": { # A strategy that consolidates activities using the grouping rules from the legacy V1 Activity API. Similar actions occurring within a window of time can be grouped across multiple targets (such as moving a set of files at once) or multiple actors (such as several users editing the same item). Grouping rules for this strategy are specific to each type of action. # The individual activities are consolidated using the legacy strategy.
},
"none": { # A strategy that does no consolidation of individual activities. # The individual activities are not consolidated.
},
},
"filter": "A String", # The filtering for items returned from this query request. The format of the filter string is a sequence of expressions, joined by an optional "AND", where each expression is of the form "field operator value". Supported fields: - `time`: Uses numerical operators on date values either in terms of milliseconds since Jan 1, 1970 or in RFC 3339 format. Examples: - `time > 1452409200000 AND time <= 1492812924310` - `time >= "2016-01-10T01:02:03-05:00"` - `detail.action_detail_case`: Uses the "has" operator (:) and either a singular value or a list of allowed action types enclosed in parentheses, separated by a space. To exclude a result from the response, prepend a hyphen (`-`) to the beginning of the filter string. Examples: - `detail.action_detail_case:RENAME` - `detail.action_detail_case:(CREATE RESTORE)` - `-detail.action_detail_case:MOVE`
"itemName": "A String", # Return activities for this Drive item. The format is `items/ITEM_ID`.
"pageSize": 42, # The minimum number of activities desired in the response; the server attempts to return at least this quantity. The server may also return fewer activities if it has a partial response ready before the request times out. If not set, a default value is used.
"pageToken": "A String", # The token identifies which page of results to return. Set this to the next_page_token value returned from a previous query to obtain the following page of results. If not set, the first page of results is returned.
}
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Response message for querying Drive activity.
"activities": [ # List of activity requested.
{ # A single Drive activity comprising one or more Actions by one or more Actors on one or more Targets. Some Action groupings occur spontaneously, such as moving an item into a shared folder triggering a permission change. Other groupings of related Actions, such as multiple Actors editing one item or moving multiple files into a new folder, are controlled by the selection of a ConsolidationStrategy in the QueryDriveActivityRequest.
"actions": [ # Details on all actions in this activity.
{ # Information about the action.
"actor": { # The actor of a Drive activity. # The actor responsible for this action (or empty if all actors are responsible).
"administrator": { # Empty message representing an administrator. # An administrator.
},
"anonymous": { # Empty message representing an anonymous user or indicating the authenticated user should be anonymized. # An anonymous user.
},
"impersonation": { # Information about an impersonation, where an admin acts on behalf of an end user. Information about the acting admin is not currently available. # An account acting on behalf of another.
"impersonatedUser": { # Information about an end user. # The impersonated user.
"deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
},
"knownUser": { # A known user. # A known user.
"isCurrentUser": True or False, # True if this is the user making the request.
"personName": "A String", # The identifier for this user that can be used with the People API to get more information. The format is `people/ACCOUNT_ID`. See https://developers.google.com/people/.
},
"unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
},
},
},
"system": { # Event triggered by system operations instead of end users. # A non-user actor (i.e. system triggered).
"type": "A String", # The type of the system event that may triggered activity.
},
"user": { # Information about an end user. # An end user.
"deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
},
"knownUser": { # A known user. # A known user.
"isCurrentUser": True or False, # True if this is the user making the request.
"personName": "A String", # The identifier for this user that can be used with the People API to get more information. The format is `people/ACCOUNT_ID`. See https://developers.google.com/people/.
},
"unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
},
},
},
"detail": { # Data describing the type and additional information of an action. # The type and detailed information about the action.
"appliedLabelChange": { # Label changes that were made on the Target. # Label was changed.
"changes": [ # Changes that were made to the Label on the Target.
{ # A change made to a Label on the Target.
"fieldChanges": [ # Field Changes. Only present if `types` contains `LABEL_FIELD_VALUE_CHANGED`.
{ # Change to a Field value.
"displayName": "A String", # The human-readable display name for this field.
"fieldId": "A String", # The ID of this field. Field IDs are unique within a Label.
"newValue": { # Contains a value of a Field. # The value that is now set on the field. If not present, the field was cleared. At least one of {old_value|new_value} is always set.
"date": { # Wrapper for Date Field value. # Date Field value.
"value": "A String", # Date value.
},
"integer": { # Wrapper for Integer Field value. # Integer Field value.
"value": "A String", # Integer value.
},
"selection": { # Wrapper for Selection Field value as combined value/display_name pair for selected choice. # Selection Field value.
"displayName": "A String", # Selection value as human-readable display string.
"value": "A String", # Selection value as Field Choice ID.
},
"selectionList": { # Wrapper for SelectionList Field value. # Selection List Field value.
"values": [ # Selection values.
{ # Wrapper for Selection Field value as combined value/display_name pair for selected choice.
"displayName": "A String", # Selection value as human-readable display string.
"value": "A String", # Selection value as Field Choice ID.
},
],
},
"text": { # Wrapper for Text Field value. # Text Field value.
"value": "A String", # Value of Text Field.
},
"textList": { # Wrapper for Text List Field value. # Text List Field value.
"values": [ # Text values.
{ # Wrapper for Text Field value.
"value": "A String", # Value of Text Field.
},
],
},
"user": { # Wrapper for User Field value. # User Field value.
"value": "A String", # User value as email.
},
"userList": { # Wrapper for UserList Field value. # User List Field value.
"values": [ # User values.
{ # Wrapper for User Field value.
"value": "A String", # User value as email.
},
],
},
},
"oldValue": { # Contains a value of a Field. # The value that was previously set on the field. If not present, the field was newly set. At least one of {old_value|new_value} is always set.
"date": { # Wrapper for Date Field value. # Date Field value.
"value": "A String", # Date value.
},
"integer": { # Wrapper for Integer Field value. # Integer Field value.
"value": "A String", # Integer value.
},
"selection": { # Wrapper for Selection Field value as combined value/display_name pair for selected choice. # Selection Field value.
"displayName": "A String", # Selection value as human-readable display string.
"value": "A String", # Selection value as Field Choice ID.
},
"selectionList": { # Wrapper for SelectionList Field value. # Selection List Field value.
"values": [ # Selection values.
{ # Wrapper for Selection Field value as combined value/display_name pair for selected choice.
"displayName": "A String", # Selection value as human-readable display string.
"value": "A String", # Selection value as Field Choice ID.
},
],
},
"text": { # Wrapper for Text Field value. # Text Field value.
"value": "A String", # Value of Text Field.
},
"textList": { # Wrapper for Text List Field value. # Text List Field value.
"values": [ # Text values.
{ # Wrapper for Text Field value.
"value": "A String", # Value of Text Field.
},
],
},
"user": { # Wrapper for User Field value. # User Field value.
"value": "A String", # User value as email.
},
"userList": { # Wrapper for UserList Field value. # User List Field value.
"values": [ # User values.
{ # Wrapper for User Field value.
"value": "A String", # User value as email.
},
],
},
},
},
],
"label": "A String", # The Label name representing the Label that changed. This name always contains the revision of the Label that was used when this Action occurred. The format is `labels/id@revision`.
"title": "A String", # The human-readable title of the label that changed.
"types": [ # The types of changes made to the Label on the Target.
"A String",
],
},
],
},
"comment": { # A change about comments on an object. # A change about comments was made.
"assignment": { # A comment with an assignment. # A change on an assignment.
"assignedUser": { # Information about an end user. # The user to whom the comment was assigned.
"deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
},
"knownUser": { # A known user. # A known user.
"isCurrentUser": True or False, # True if this is the user making the request.
"personName": "A String", # The identifier for this user that can be used with the People API to get more information. The format is `people/ACCOUNT_ID`. See https://developers.google.com/people/.
},
"unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
},
},
"subtype": "A String", # The sub-type of this event.
},
"mentionedUsers": [ # Users who are mentioned in this comment.
{ # Information about an end user.
"deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
},
"knownUser": { # A known user. # A known user.
"isCurrentUser": True or False, # True if this is the user making the request.
"personName": "A String", # The identifier for this user that can be used with the People API to get more information. The format is `people/ACCOUNT_ID`. See https://developers.google.com/people/.
},
"unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
},
},
],
"post": { # A regular posted comment. # A change on a regular posted comment.
"subtype": "A String", # The sub-type of this event.
},
"suggestion": { # A suggestion. # A change on a suggestion.
"subtype": "A String", # The sub-type of this event.
},
},
"create": { # An object was created. # An object was created.
"copy": { # An object was created by copying an existing object. # If present, indicates the object was created by copying an existing Drive object.
"originalObject": { # A lightweight reference to the target of activity. # The original object.
"drive": { # A lightweight reference to a shared drive. # The target is a shared drive.
"name": "A String", # The resource name of the shared drive. The format is `COLLECTION_ID/DRIVE_ID`. Clients should not assume a specific collection ID for this resource name.
"title": "A String", # The title of the shared drive.
},
"driveItem": { # A lightweight reference to a Drive item, such as a file or folder. # The target is a Drive item.
"driveFile": { # A Drive item which is a file. # The Drive item is a file.
},
"driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of folder.
"type": "A String", # The type of Drive folder.
},
"file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
},
"folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
"type": "A String", # This field is deprecated; please see `DriveFolder.type` instead.
},
"name": "A String", # The target Drive item. The format is `items/ITEM_ID`.
"title": "A String", # The title of the Drive item.
},
"teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
"name": "A String", # This field is deprecated; please see `DriveReference.name` instead.
"title": "A String", # This field is deprecated; please see `DriveReference.title` instead.
},
},
},
"new": { # An object was created from scratch. # If present, indicates the object was newly created (e.g. as a blank document), not derived from a Drive object or external object.
},
"upload": { # An object was uploaded into Drive. # If present, indicates the object originated externally and was uploaded to Drive.
},
},
"delete": { # An object was deleted. # An object was deleted.
"type": "A String", # The type of delete action taken.
},
"dlpChange": { # A change in the object's data leak prevention status. # A change happened in data leak prevention status.
"type": "A String", # The type of Data Leak Prevention (DLP) change.
},
"edit": { # An empty message indicating an object was edited. # An object was edited.
},
"move": { # An object was moved. # An object was moved.
"addedParents": [ # The added parent object(s).
{ # A lightweight reference to the target of activity.
"drive": { # A lightweight reference to a shared drive. # The target is a shared drive.
"name": "A String", # The resource name of the shared drive. The format is `COLLECTION_ID/DRIVE_ID`. Clients should not assume a specific collection ID for this resource name.
"title": "A String", # The title of the shared drive.
},
"driveItem": { # A lightweight reference to a Drive item, such as a file or folder. # The target is a Drive item.
"driveFile": { # A Drive item which is a file. # The Drive item is a file.
},
"driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of folder.
"type": "A String", # The type of Drive folder.
},
"file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
},
"folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
"type": "A String", # This field is deprecated; please see `DriveFolder.type` instead.
},
"name": "A String", # The target Drive item. The format is `items/ITEM_ID`.
"title": "A String", # The title of the Drive item.
},
"teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
"name": "A String", # This field is deprecated; please see `DriveReference.name` instead.
"title": "A String", # This field is deprecated; please see `DriveReference.title` instead.
},
},
],
"removedParents": [ # The removed parent object(s).
{ # A lightweight reference to the target of activity.
"drive": { # A lightweight reference to a shared drive. # The target is a shared drive.
"name": "A String", # The resource name of the shared drive. The format is `COLLECTION_ID/DRIVE_ID`. Clients should not assume a specific collection ID for this resource name.
"title": "A String", # The title of the shared drive.
},
"driveItem": { # A lightweight reference to a Drive item, such as a file or folder. # The target is a Drive item.
"driveFile": { # A Drive item which is a file. # The Drive item is a file.
},
"driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of folder.
"type": "A String", # The type of Drive folder.
},
"file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
},
"folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
"type": "A String", # This field is deprecated; please see `DriveFolder.type` instead.
},
"name": "A String", # The target Drive item. The format is `items/ITEM_ID`.
"title": "A String", # The title of the Drive item.
},
"teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
"name": "A String", # This field is deprecated; please see `DriveReference.name` instead.
"title": "A String", # This field is deprecated; please see `DriveReference.title` instead.
},
},
],
},
"permissionChange": { # A change of the permission setting on an item. # The permission on an object was changed.
"addedPermissions": [ # The set of permissions added by this change.
{ # The permission setting of an object.
"allowDiscovery": True or False, # If true, the item can be discovered (e.g. in the user's "Shared with me" collection) without needing a link to the item.
"anyone": { # Represents any user (including a logged out user). # If set, this permission applies to anyone, even logged out users.
},
"domain": { # Information about a domain. # The domain to whom this permission applies.
"legacyId": "A String", # An opaque string used to identify this domain.
"name": "A String", # The name of the domain, e.g. `google.com`.
},
"group": { # Information about a group. # The group to whom this permission applies.
"email": "A String", # The email address of the group.
"title": "A String", # The title of the group.
},
"role": "A String", # Indicates the [Google Drive permissions role](https://developers.google.com/workspace/drive/web/manage-sharing#roles). The role determines a user's ability to read, write, and comment on items.
"user": { # Information about an end user. # The user to whom this permission applies.
"deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
},
"knownUser": { # A known user. # A known user.
"isCurrentUser": True or False, # True if this is the user making the request.
"personName": "A String", # The identifier for this user that can be used with the People API to get more information. The format is `people/ACCOUNT_ID`. See https://developers.google.com/people/.
},
"unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
},
},
},
],
"removedPermissions": [ # The set of permissions removed by this change.
{ # The permission setting of an object.
"allowDiscovery": True or False, # If true, the item can be discovered (e.g. in the user's "Shared with me" collection) without needing a link to the item.
"anyone": { # Represents any user (including a logged out user). # If set, this permission applies to anyone, even logged out users.
},
"domain": { # Information about a domain. # The domain to whom this permission applies.
"legacyId": "A String", # An opaque string used to identify this domain.
"name": "A String", # The name of the domain, e.g. `google.com`.
},
"group": { # Information about a group. # The group to whom this permission applies.
"email": "A String", # The email address of the group.
"title": "A String", # The title of the group.
},
"role": "A String", # Indicates the [Google Drive permissions role](https://developers.google.com/workspace/drive/web/manage-sharing#roles). The role determines a user's ability to read, write, and comment on items.
"user": { # Information about an end user. # The user to whom this permission applies.
"deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
},
"knownUser": { # A known user. # A known user.
"isCurrentUser": True or False, # True if this is the user making the request.
"personName": "A String", # The identifier for this user that can be used with the People API to get more information. The format is `people/ACCOUNT_ID`. See https://developers.google.com/people/.
},
"unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
},
},
},
],
},
"reference": { # Activity in applications other than Drive. # An object was referenced in an application outside of Drive/Docs.
"type": "A String", # The reference type corresponding to this event.
},
"rename": { # An object was renamed. # An object was renamed.
"newTitle": "A String", # The new title of the drive object.
"oldTitle": "A String", # The previous title of the drive object.
},
"restore": { # A deleted object was restored. # A deleted object was restored.
"type": "A String", # The type of restore action taken.
},
"settingsChange": { # Information about settings changes. # Settings were changed.
"restrictionChanges": [ # The set of changes made to restrictions.
{ # Information about restriction policy changes to a feature.
"feature": "A String", # The feature which had a change in restriction policy.
"newRestriction": "A String", # The restriction in place after the change.
},
],
},
},
"target": { # Information about the target of activity. For more information on how activity history is shared with users, see [Activity history visibility](https://developers.google.com/workspace/drive/activity/v2#activityhistory). # The target this action affects (or empty if affecting all targets). This represents the state of the target immediately after this action occurred.
"drive": { # Information about a shared drive. # The target is a shared drive.
"name": "A String", # The resource name of the shared drive. The format is `COLLECTION_ID/DRIVE_ID`. Clients should not assume a specific collection ID for this resource name.
"root": { # A Drive item, such as a file or folder. # The root of this shared drive.
"driveFile": { # A Drive item which is a file. # The Drive item is a file.
},
"driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of folder.
"type": "A String", # The type of Drive folder.
},
"file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
},
"folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
"type": "A String", # This field is deprecated; please see `DriveFolder.type` instead.
},
"mimeType": "A String", # The MIME type of the Drive item. See https://developers.google.com/workspace/drive/v3/web/mime-types.
"name": "A String", # The target Drive item. The format is `items/ITEM_ID`.
"owner": { # Information about the owner of a Drive item. # Information about the owner of this Drive item.
"domain": { # Information about a domain. # The domain of the Drive item owner.
"legacyId": "A String", # An opaque string used to identify this domain.
"name": "A String", # The name of the domain, e.g. `google.com`.
},
"drive": { # A lightweight reference to a shared drive. # The drive that owns the item.
"name": "A String", # The resource name of the shared drive. The format is `COLLECTION_ID/DRIVE_ID`. Clients should not assume a specific collection ID for this resource name.
"title": "A String", # The title of the shared drive.
},
"teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
"name": "A String", # This field is deprecated; please see `DriveReference.name` instead.
"title": "A String", # This field is deprecated; please see `DriveReference.title` instead.
},
"user": { # Information about an end user. # The user that owns the Drive item.
"deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
},
"knownUser": { # A known user. # A known user.
"isCurrentUser": True or False, # True if this is the user making the request.
"personName": "A String", # The identifier for this user that can be used with the People API to get more information. The format is `people/ACCOUNT_ID`. See https://developers.google.com/people/.
},
"unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
},
},
},
"title": "A String", # The title of the Drive item.
},
"title": "A String", # The title of the shared drive.
},
"driveItem": { # A Drive item, such as a file or folder. # The target is a Drive item.
"driveFile": { # A Drive item which is a file. # The Drive item is a file.
},
"driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of folder.
"type": "A String", # The type of Drive folder.
},
"file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
},
"folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
"type": "A String", # This field is deprecated; please see `DriveFolder.type` instead.
},
"mimeType": "A String", # The MIME type of the Drive item. See https://developers.google.com/workspace/drive/v3/web/mime-types.
"name": "A String", # The target Drive item. The format is `items/ITEM_ID`.
"owner": { # Information about the owner of a Drive item. # Information about the owner of this Drive item.
"domain": { # Information about a domain. # The domain of the Drive item owner.
"legacyId": "A String", # An opaque string used to identify this domain.
"name": "A String", # The name of the domain, e.g. `google.com`.
},
"drive": { # A lightweight reference to a shared drive. # The drive that owns the item.
"name": "A String", # The resource name of the shared drive. The format is `COLLECTION_ID/DRIVE_ID`. Clients should not assume a specific collection ID for this resource name.
"title": "A String", # The title of the shared drive.
},
"teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
"name": "A String", # This field is deprecated; please see `DriveReference.name` instead.
"title": "A String", # This field is deprecated; please see `DriveReference.title` instead.
},
"user": { # Information about an end user. # The user that owns the Drive item.
"deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
},
"knownUser": { # A known user. # A known user.
"isCurrentUser": True or False, # True if this is the user making the request.
"personName": "A String", # The identifier for this user that can be used with the People API to get more information. The format is `people/ACCOUNT_ID`. See https://developers.google.com/people/.
},
"unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
},
},
},
"title": "A String", # The title of the Drive item.
},
"fileComment": { # A comment on a file. # The target is a comment on a Drive file.
"legacyCommentId": "A String", # The comment in the discussion thread. This identifier is an opaque string compatible with the Drive API; see https://developers.google.com/workspace/drive/v3/reference/comments/get
"legacyDiscussionId": "A String", # The discussion thread to which the comment was added. This identifier is an opaque string compatible with the Drive API and references the first comment in a discussion; see https://developers.google.com/workspace/drive/v3/reference/comments/get
"linkToDiscussion": "A String", # The link to the discussion thread containing this comment, for example, `https://docs.google.com/DOCUMENT_ID/edit?disco=THREAD_ID`.
"parent": { # A Drive item, such as a file or folder. # The Drive item containing this comment.
"driveFile": { # A Drive item which is a file. # The Drive item is a file.
},
"driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of folder.
"type": "A String", # The type of Drive folder.
},
"file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
},
"folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
"type": "A String", # This field is deprecated; please see `DriveFolder.type` instead.
},
"mimeType": "A String", # The MIME type of the Drive item. See https://developers.google.com/workspace/drive/v3/web/mime-types.
"name": "A String", # The target Drive item. The format is `items/ITEM_ID`.
"owner": { # Information about the owner of a Drive item. # Information about the owner of this Drive item.
"domain": { # Information about a domain. # The domain of the Drive item owner.
"legacyId": "A String", # An opaque string used to identify this domain.
"name": "A String", # The name of the domain, e.g. `google.com`.
},
"drive": { # A lightweight reference to a shared drive. # The drive that owns the item.
"name": "A String", # The resource name of the shared drive. The format is `COLLECTION_ID/DRIVE_ID`. Clients should not assume a specific collection ID for this resource name.
"title": "A String", # The title of the shared drive.
},
"teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
"name": "A String", # This field is deprecated; please see `DriveReference.name` instead.
"title": "A String", # This field is deprecated; please see `DriveReference.title` instead.
},
"user": { # Information about an end user. # The user that owns the Drive item.
"deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
},
"knownUser": { # A known user. # A known user.
"isCurrentUser": True or False, # True if this is the user making the request.
"personName": "A String", # The identifier for this user that can be used with the People API to get more information. The format is `people/ACCOUNT_ID`. See https://developers.google.com/people/.
},
"unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
},
},
},
"title": "A String", # The title of the Drive item.
},
},
"teamDrive": { # This item is deprecated; please see `Drive` instead. # This field is deprecated; please use the `drive` field instead.
"name": "A String", # This field is deprecated; please see `Drive.name` instead.
"root": { # A Drive item, such as a file or folder. # This field is deprecated; please see `Drive.root` instead.
"driveFile": { # A Drive item which is a file. # The Drive item is a file.
},
"driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of folder.
"type": "A String", # The type of Drive folder.
},
"file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
},
"folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
"type": "A String", # This field is deprecated; please see `DriveFolder.type` instead.
},
"mimeType": "A String", # The MIME type of the Drive item. See https://developers.google.com/workspace/drive/v3/web/mime-types.
"name": "A String", # The target Drive item. The format is `items/ITEM_ID`.
"owner": { # Information about the owner of a Drive item. # Information about the owner of this Drive item.
"domain": { # Information about a domain. # The domain of the Drive item owner.
"legacyId": "A String", # An opaque string used to identify this domain.
"name": "A String", # The name of the domain, e.g. `google.com`.
},
"drive": { # A lightweight reference to a shared drive. # The drive that owns the item.
"name": "A String", # The resource name of the shared drive. The format is `COLLECTION_ID/DRIVE_ID`. Clients should not assume a specific collection ID for this resource name.
"title": "A String", # The title of the shared drive.
},
"teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
"name": "A String", # This field is deprecated; please see `DriveReference.name` instead.
"title": "A String", # This field is deprecated; please see `DriveReference.title` instead.
},
"user": { # Information about an end user. # The user that owns the Drive item.
"deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
},
"knownUser": { # A known user. # A known user.
"isCurrentUser": True or False, # True if this is the user making the request.
"personName": "A String", # The identifier for this user that can be used with the People API to get more information. The format is `people/ACCOUNT_ID`. See https://developers.google.com/people/.
},
"unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
},
},
},
"title": "A String", # The title of the Drive item.
},
"title": "A String", # This field is deprecated; please see `Drive.title` instead.
},
},
"timeRange": { # Information about time ranges. # The action occurred over this time range.
"endTime": "A String", # The end of the time range.
"startTime": "A String", # The start of the time range.
},
"timestamp": "A String", # The action occurred at this specific time.
},
],
"actors": [ # All actor(s) responsible for the activity.
{ # The actor of a Drive activity.
"administrator": { # Empty message representing an administrator. # An administrator.
},
"anonymous": { # Empty message representing an anonymous user or indicating the authenticated user should be anonymized. # An anonymous user.
},
"impersonation": { # Information about an impersonation, where an admin acts on behalf of an end user. Information about the acting admin is not currently available. # An account acting on behalf of another.
"impersonatedUser": { # Information about an end user. # The impersonated user.
"deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
},
"knownUser": { # A known user. # A known user.
"isCurrentUser": True or False, # True if this is the user making the request.
"personName": "A String", # The identifier for this user that can be used with the People API to get more information. The format is `people/ACCOUNT_ID`. See https://developers.google.com/people/.
},
"unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
},
},
},
"system": { # Event triggered by system operations instead of end users. # A non-user actor (i.e. system triggered).
"type": "A String", # The type of the system event that may triggered activity.
},
"user": { # Information about an end user. # An end user.
"deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
},
"knownUser": { # A known user. # A known user.
"isCurrentUser": True or False, # True if this is the user making the request.
"personName": "A String", # The identifier for this user that can be used with the People API to get more information. The format is `people/ACCOUNT_ID`. See https://developers.google.com/people/.
},
"unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
},
},
},
],
"primaryActionDetail": { # Data describing the type and additional information of an action. # Key information about the primary action for this activity. This is either representative, or the most important, of all actions in the activity, according to the ConsolidationStrategy in the request.
"appliedLabelChange": { # Label changes that were made on the Target. # Label was changed.
"changes": [ # Changes that were made to the Label on the Target.
{ # A change made to a Label on the Target.
"fieldChanges": [ # Field Changes. Only present if `types` contains `LABEL_FIELD_VALUE_CHANGED`.
{ # Change to a Field value.
"displayName": "A String", # The human-readable display name for this field.
"fieldId": "A String", # The ID of this field. Field IDs are unique within a Label.
"newValue": { # Contains a value of a Field. # The value that is now set on the field. If not present, the field was cleared. At least one of {old_value|new_value} is always set.
"date": { # Wrapper for Date Field value. # Date Field value.
"value": "A String", # Date value.
},
"integer": { # Wrapper for Integer Field value. # Integer Field value.
"value": "A String", # Integer value.
},
"selection": { # Wrapper for Selection Field value as combined value/display_name pair for selected choice. # Selection Field value.
"displayName": "A String", # Selection value as human-readable display string.
"value": "A String", # Selection value as Field Choice ID.
},
"selectionList": { # Wrapper for SelectionList Field value. # Selection List Field value.
"values": [ # Selection values.
{ # Wrapper for Selection Field value as combined value/display_name pair for selected choice.
"displayName": "A String", # Selection value as human-readable display string.
"value": "A String", # Selection value as Field Choice ID.
},
],
},
"text": { # Wrapper for Text Field value. # Text Field value.
"value": "A String", # Value of Text Field.
},
"textList": { # Wrapper for Text List Field value. # Text List Field value.
"values": [ # Text values.
{ # Wrapper for Text Field value.
"value": "A String", # Value of Text Field.
},
],
},
"user": { # Wrapper for User Field value. # User Field value.
"value": "A String", # User value as email.
},
"userList": { # Wrapper for UserList Field value. # User List Field value.
"values": [ # User values.
{ # Wrapper for User Field value.
"value": "A String", # User value as email.
},
],
},
},
"oldValue": { # Contains a value of a Field. # The value that was previously set on the field. If not present, the field was newly set. At least one of {old_value|new_value} is always set.
"date": { # Wrapper for Date Field value. # Date Field value.
"value": "A String", # Date value.
},
"integer": { # Wrapper for Integer Field value. # Integer Field value.
"value": "A String", # Integer value.
},
"selection": { # Wrapper for Selection Field value as combined value/display_name pair for selected choice. # Selection Field value.
"displayName": "A String", # Selection value as human-readable display string.
"value": "A String", # Selection value as Field Choice ID.
},
"selectionList": { # Wrapper for SelectionList Field value. # Selection List Field value.
"values": [ # Selection values.
{ # Wrapper for Selection Field value as combined value/display_name pair for selected choice.
"displayName": "A String", # Selection value as human-readable display string.
"value": "A String", # Selection value as Field Choice ID.
},
],
},
"text": { # Wrapper for Text Field value. # Text Field value.
"value": "A String", # Value of Text Field.
},
"textList": { # Wrapper for Text List Field value. # Text List Field value.
"values": [ # Text values.
{ # Wrapper for Text Field value.
"value": "A String", # Value of Text Field.
},
],
},
"user": { # Wrapper for User Field value. # User Field value.
"value": "A String", # User value as email.
},
"userList": { # Wrapper for UserList Field value. # User List Field value.
"values": [ # User values.
{ # Wrapper for User Field value.
"value": "A String", # User value as email.
},
],
},
},
},
],
"label": "A String", # The Label name representing the Label that changed. This name always contains the revision of the Label that was used when this Action occurred. The format is `labels/id@revision`.
"title": "A String", # The human-readable title of the label that changed.
"types": [ # The types of changes made to the Label on the Target.
"A String",
],
},
],
},
"comment": { # A change about comments on an object. # A change about comments was made.
"assignment": { # A comment with an assignment. # A change on an assignment.
"assignedUser": { # Information about an end user. # The user to whom the comment was assigned.
"deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
},
"knownUser": { # A known user. # A known user.
"isCurrentUser": True or False, # True if this is the user making the request.
"personName": "A String", # The identifier for this user that can be used with the People API to get more information. The format is `people/ACCOUNT_ID`. See https://developers.google.com/people/.
},
"unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
},
},
"subtype": "A String", # The sub-type of this event.
},
"mentionedUsers": [ # Users who are mentioned in this comment.
{ # Information about an end user.
"deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
},
"knownUser": { # A known user. # A known user.
"isCurrentUser": True or False, # True if this is the user making the request.
"personName": "A String", # The identifier for this user that can be used with the People API to get more information. The format is `people/ACCOUNT_ID`. See https://developers.google.com/people/.
},
"unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
},
},
],
"post": { # A regular posted comment. # A change on a regular posted comment.
"subtype": "A String", # The sub-type of this event.
},
"suggestion": { # A suggestion. # A change on a suggestion.
"subtype": "A String", # The sub-type of this event.
},
},
"create": { # An object was created. # An object was created.
"copy": { # An object was created by copying an existing object. # If present, indicates the object was created by copying an existing Drive object.
"originalObject": { # A lightweight reference to the target of activity. # The original object.
"drive": { # A lightweight reference to a shared drive. # The target is a shared drive.
"name": "A String", # The resource name of the shared drive. The format is `COLLECTION_ID/DRIVE_ID`. Clients should not assume a specific collection ID for this resource name.
"title": "A String", # The title of the shared drive.
},
"driveItem": { # A lightweight reference to a Drive item, such as a file or folder. # The target is a Drive item.
"driveFile": { # A Drive item which is a file. # The Drive item is a file.
},
"driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of folder.
"type": "A String", # The type of Drive folder.
},
"file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
},
"folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
"type": "A String", # This field is deprecated; please see `DriveFolder.type` instead.
},
"name": "A String", # The target Drive item. The format is `items/ITEM_ID`.
"title": "A String", # The title of the Drive item.
},
"teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
"name": "A String", # This field is deprecated; please see `DriveReference.name` instead.
"title": "A String", # This field is deprecated; please see `DriveReference.title` instead.
},
},
},
"new": { # An object was created from scratch. # If present, indicates the object was newly created (e.g. as a blank document), not derived from a Drive object or external object.
},
"upload": { # An object was uploaded into Drive. # If present, indicates the object originated externally and was uploaded to Drive.
},
},
"delete": { # An object was deleted. # An object was deleted.
"type": "A String", # The type of delete action taken.
},
"dlpChange": { # A change in the object's data leak prevention status. # A change happened in data leak prevention status.
"type": "A String", # The type of Data Leak Prevention (DLP) change.
},
"edit": { # An empty message indicating an object was edited. # An object was edited.
},
"move": { # An object was moved. # An object was moved.
"addedParents": [ # The added parent object(s).
{ # A lightweight reference to the target of activity.
"drive": { # A lightweight reference to a shared drive. # The target is a shared drive.
"name": "A String", # The resource name of the shared drive. The format is `COLLECTION_ID/DRIVE_ID`. Clients should not assume a specific collection ID for this resource name.
"title": "A String", # The title of the shared drive.
},
"driveItem": { # A lightweight reference to a Drive item, such as a file or folder. # The target is a Drive item.
"driveFile": { # A Drive item which is a file. # The Drive item is a file.
},
"driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of folder.
"type": "A String", # The type of Drive folder.
},
"file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
},
"folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
"type": "A String", # This field is deprecated; please see `DriveFolder.type` instead.
},
"name": "A String", # The target Drive item. The format is `items/ITEM_ID`.
"title": "A String", # The title of the Drive item.
},
"teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
"name": "A String", # This field is deprecated; please see `DriveReference.name` instead.
"title": "A String", # This field is deprecated; please see `DriveReference.title` instead.
},
},
],
"removedParents": [ # The removed parent object(s).
{ # A lightweight reference to the target of activity.
"drive": { # A lightweight reference to a shared drive. # The target is a shared drive.
"name": "A String", # The resource name of the shared drive. The format is `COLLECTION_ID/DRIVE_ID`. Clients should not assume a specific collection ID for this resource name.
"title": "A String", # The title of the shared drive.
},
"driveItem": { # A lightweight reference to a Drive item, such as a file or folder. # The target is a Drive item.
"driveFile": { # A Drive item which is a file. # The Drive item is a file.
},
"driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of folder.
"type": "A String", # The type of Drive folder.
},
"file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
},
"folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
"type": "A String", # This field is deprecated; please see `DriveFolder.type` instead.
},
"name": "A String", # The target Drive item. The format is `items/ITEM_ID`.
"title": "A String", # The title of the Drive item.
},
"teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
"name": "A String", # This field is deprecated; please see `DriveReference.name` instead.
"title": "A String", # This field is deprecated; please see `DriveReference.title` instead.
},
},
],
},
"permissionChange": { # A change of the permission setting on an item. # The permission on an object was changed.
"addedPermissions": [ # The set of permissions added by this change.
{ # The permission setting of an object.
"allowDiscovery": True or False, # If true, the item can be discovered (e.g. in the user's "Shared with me" collection) without needing a link to the item.
"anyone": { # Represents any user (including a logged out user). # If set, this permission applies to anyone, even logged out users.
},
"domain": { # Information about a domain. # The domain to whom this permission applies.
"legacyId": "A String", # An opaque string used to identify this domain.
"name": "A String", # The name of the domain, e.g. `google.com`.
},
"group": { # Information about a group. # The group to whom this permission applies.
"email": "A String", # The email address of the group.
"title": "A String", # The title of the group.
},
"role": "A String", # Indicates the [Google Drive permissions role](https://developers.google.com/workspace/drive/web/manage-sharing#roles). The role determines a user's ability to read, write, and comment on items.
"user": { # Information about an end user. # The user to whom this permission applies.
"deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
},
"knownUser": { # A known user. # A known user.
"isCurrentUser": True or False, # True if this is the user making the request.
"personName": "A String", # The identifier for this user that can be used with the People API to get more information. The format is `people/ACCOUNT_ID`. See https://developers.google.com/people/.
},
"unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
},
},
},
],
"removedPermissions": [ # The set of permissions removed by this change.
{ # The permission setting of an object.
"allowDiscovery": True or False, # If true, the item can be discovered (e.g. in the user's "Shared with me" collection) without needing a link to the item.
"anyone": { # Represents any user (including a logged out user). # If set, this permission applies to anyone, even logged out users.
},
"domain": { # Information about a domain. # The domain to whom this permission applies.
"legacyId": "A String", # An opaque string used to identify this domain.
"name": "A String", # The name of the domain, e.g. `google.com`.
},
"group": { # Information about a group. # The group to whom this permission applies.
"email": "A String", # The email address of the group.
"title": "A String", # The title of the group.
},
"role": "A String", # Indicates the [Google Drive permissions role](https://developers.google.com/workspace/drive/web/manage-sharing#roles). The role determines a user's ability to read, write, and comment on items.
"user": { # Information about an end user. # The user to whom this permission applies.
"deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
},
"knownUser": { # A known user. # A known user.
"isCurrentUser": True or False, # True if this is the user making the request.
"personName": "A String", # The identifier for this user that can be used with the People API to get more information. The format is `people/ACCOUNT_ID`. See https://developers.google.com/people/.
},
"unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
},
},
},
],
},
"reference": { # Activity in applications other than Drive. # An object was referenced in an application outside of Drive/Docs.
"type": "A String", # The reference type corresponding to this event.
},
"rename": { # An object was renamed. # An object was renamed.
"newTitle": "A String", # The new title of the drive object.
"oldTitle": "A String", # The previous title of the drive object.
},
"restore": { # A deleted object was restored. # A deleted object was restored.
"type": "A String", # The type of restore action taken.
},
"settingsChange": { # Information about settings changes. # Settings were changed.
"restrictionChanges": [ # The set of changes made to restrictions.
{ # Information about restriction policy changes to a feature.
"feature": "A String", # The feature which had a change in restriction policy.
"newRestriction": "A String", # The restriction in place after the change.
},
],
},
},
"targets": [ # All Google Drive objects this activity is about (e.g. file, folder, drive). This represents the state of the target immediately after the actions occurred.
{ # Information about the target of activity. For more information on how activity history is shared with users, see [Activity history visibility](https://developers.google.com/workspace/drive/activity/v2#activityhistory).
"drive": { # Information about a shared drive. # The target is a shared drive.
"name": "A String", # The resource name of the shared drive. The format is `COLLECTION_ID/DRIVE_ID`. Clients should not assume a specific collection ID for this resource name.
"root": { # A Drive item, such as a file or folder. # The root of this shared drive.
"driveFile": { # A Drive item which is a file. # The Drive item is a file.
},
"driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of folder.
"type": "A String", # The type of Drive folder.
},
"file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
},
"folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
"type": "A String", # This field is deprecated; please see `DriveFolder.type` instead.
},
"mimeType": "A String", # The MIME type of the Drive item. See https://developers.google.com/workspace/drive/v3/web/mime-types.
"name": "A String", # The target Drive item. The format is `items/ITEM_ID`.
"owner": { # Information about the owner of a Drive item. # Information about the owner of this Drive item.
"domain": { # Information about a domain. # The domain of the Drive item owner.
"legacyId": "A String", # An opaque string used to identify this domain.
"name": "A String", # The name of the domain, e.g. `google.com`.
},
"drive": { # A lightweight reference to a shared drive. # The drive that owns the item.
"name": "A String", # The resource name of the shared drive. The format is `COLLECTION_ID/DRIVE_ID`. Clients should not assume a specific collection ID for this resource name.
"title": "A String", # The title of the shared drive.
},
"teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
"name": "A String", # This field is deprecated; please see `DriveReference.name` instead.
"title": "A String", # This field is deprecated; please see `DriveReference.title` instead.
},
"user": { # Information about an end user. # The user that owns the Drive item.
"deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
},
"knownUser": { # A known user. # A known user.
"isCurrentUser": True or False, # True if this is the user making the request.
"personName": "A String", # The identifier for this user that can be used with the People API to get more information. The format is `people/ACCOUNT_ID`. See https://developers.google.com/people/.
},
"unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
},
},
},
"title": "A String", # The title of the Drive item.
},
"title": "A String", # The title of the shared drive.
},
"driveItem": { # A Drive item, such as a file or folder. # The target is a Drive item.
"driveFile": { # A Drive item which is a file. # The Drive item is a file.
},
"driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of folder.
"type": "A String", # The type of Drive folder.
},
"file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
},
"folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
"type": "A String", # This field is deprecated; please see `DriveFolder.type` instead.
},
"mimeType": "A String", # The MIME type of the Drive item. See https://developers.google.com/workspace/drive/v3/web/mime-types.
"name": "A String", # The target Drive item. The format is `items/ITEM_ID`.
"owner": { # Information about the owner of a Drive item. # Information about the owner of this Drive item.
"domain": { # Information about a domain. # The domain of the Drive item owner.
"legacyId": "A String", # An opaque string used to identify this domain.
"name": "A String", # The name of the domain, e.g. `google.com`.
},
"drive": { # A lightweight reference to a shared drive. # The drive that owns the item.
"name": "A String", # The resource name of the shared drive. The format is `COLLECTION_ID/DRIVE_ID`. Clients should not assume a specific collection ID for this resource name.
"title": "A String", # The title of the shared drive.
},
"teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
"name": "A String", # This field is deprecated; please see `DriveReference.name` instead.
"title": "A String", # This field is deprecated; please see `DriveReference.title` instead.
},
"user": { # Information about an end user. # The user that owns the Drive item.
"deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
},
"knownUser": { # A known user. # A known user.
"isCurrentUser": True or False, # True if this is the user making the request.
"personName": "A String", # The identifier for this user that can be used with the People API to get more information. The format is `people/ACCOUNT_ID`. See https://developers.google.com/people/.
},
"unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
},
},
},
"title": "A String", # The title of the Drive item.
},
"fileComment": { # A comment on a file. # The target is a comment on a Drive file.
"legacyCommentId": "A String", # The comment in the discussion thread. This identifier is an opaque string compatible with the Drive API; see https://developers.google.com/workspace/drive/v3/reference/comments/get
"legacyDiscussionId": "A String", # The discussion thread to which the comment was added. This identifier is an opaque string compatible with the Drive API and references the first comment in a discussion; see https://developers.google.com/workspace/drive/v3/reference/comments/get
"linkToDiscussion": "A String", # The link to the discussion thread containing this comment, for example, `https://docs.google.com/DOCUMENT_ID/edit?disco=THREAD_ID`.
"parent": { # A Drive item, such as a file or folder. # The Drive item containing this comment.
"driveFile": { # A Drive item which is a file. # The Drive item is a file.
},
"driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of folder.
"type": "A String", # The type of Drive folder.
},
"file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
},
"folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
"type": "A String", # This field is deprecated; please see `DriveFolder.type` instead.
},
"mimeType": "A String", # The MIME type of the Drive item. See https://developers.google.com/workspace/drive/v3/web/mime-types.
"name": "A String", # The target Drive item. The format is `items/ITEM_ID`.
"owner": { # Information about the owner of a Drive item. # Information about the owner of this Drive item.
"domain": { # Information about a domain. # The domain of the Drive item owner.
"legacyId": "A String", # An opaque string used to identify this domain.
"name": "A String", # The name of the domain, e.g. `google.com`.
},
"drive": { # A lightweight reference to a shared drive. # The drive that owns the item.
"name": "A String", # The resource name of the shared drive. The format is `COLLECTION_ID/DRIVE_ID`. Clients should not assume a specific collection ID for this resource name.
"title": "A String", # The title of the shared drive.
},
"teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
"name": "A String", # This field is deprecated; please see `DriveReference.name` instead.
"title": "A String", # This field is deprecated; please see `DriveReference.title` instead.
},
"user": { # Information about an end user. # The user that owns the Drive item.
"deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
},
"knownUser": { # A known user. # A known user.
"isCurrentUser": True or False, # True if this is the user making the request.
"personName": "A String", # The identifier for this user that can be used with the People API to get more information. The format is `people/ACCOUNT_ID`. See https://developers.google.com/people/.
},
"unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
},
},
},
"title": "A String", # The title of the Drive item.
},
},
"teamDrive": { # This item is deprecated; please see `Drive` instead. # This field is deprecated; please use the `drive` field instead.
"name": "A String", # This field is deprecated; please see `Drive.name` instead.
"root": { # A Drive item, such as a file or folder. # This field is deprecated; please see `Drive.root` instead.
"driveFile": { # A Drive item which is a file. # The Drive item is a file.
},
"driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of folder.
"type": "A String", # The type of Drive folder.
},
"file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
},
"folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
"type": "A String", # This field is deprecated; please see `DriveFolder.type` instead.
},
"mimeType": "A String", # The MIME type of the Drive item. See https://developers.google.com/workspace/drive/v3/web/mime-types.
"name": "A String", # The target Drive item. The format is `items/ITEM_ID`.
"owner": { # Information about the owner of a Drive item. # Information about the owner of this Drive item.
"domain": { # Information about a domain. # The domain of the Drive item owner.
"legacyId": "A String", # An opaque string used to identify this domain.
"name": "A String", # The name of the domain, e.g. `google.com`.
},
"drive": { # A lightweight reference to a shared drive. # The drive that owns the item.
"name": "A String", # The resource name of the shared drive. The format is `COLLECTION_ID/DRIVE_ID`. Clients should not assume a specific collection ID for this resource name.
"title": "A String", # The title of the shared drive.
},
"teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
"name": "A String", # This field is deprecated; please see `DriveReference.name` instead.
"title": "A String", # This field is deprecated; please see `DriveReference.title` instead.
},
"user": { # Information about an end user. # The user that owns the Drive item.
"deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
},
"knownUser": { # A known user. # A known user.
"isCurrentUser": True or False, # True if this is the user making the request.
"personName": "A String", # The identifier for this user that can be used with the People API to get more information. The format is `people/ACCOUNT_ID`. See https://developers.google.com/people/.
},
"unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
},
},
},
"title": "A String", # The title of the Drive item.
},
"title": "A String", # This field is deprecated; please see `Drive.title` instead.
},
},
],
"timeRange": { # Information about time ranges. # The activity occurred over this time range.
"endTime": "A String", # The end of the time range.
"startTime": "A String", # The start of the time range.
},
"timestamp": "A String", # The activity occurred at this specific time.
},
],
"nextPageToken": "A String", # Token to retrieve the next page of results, or empty if there are no more results in the list.
}</pre>
</div>
<div class="method">
<code class="details" id="query_next">query_next()</code>
<pre>Retrieves the next page of results.
Args:
previous_request: The request for the previous page. (required)
previous_response: The response from the request for the previous page. (required)
Returns:
A request object that you can call 'execute()' on to request the next
page. Returns None if there are no more items in the collection.
</pre>
</div>
</body></html>
|