drive_activity_service.proto 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // Copyright 2022 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.apps.drive.activity.v2;
  16. import "google/api/annotations.proto";
  17. import "google/api/client.proto";
  18. import "google/apps/drive/activity/v2/query_drive_activity_request.proto";
  19. import "google/apps/drive/activity/v2/query_drive_activity_response.proto";
  20. option csharp_namespace = "Google.Apps.Drive.Activity.V2";
  21. option go_package = "google.golang.org/genproto/googleapis/apps/drive/activity/v2;activity";
  22. option java_multiple_files = true;
  23. option java_outer_classname = "DriveActivityServiceProto";
  24. option java_package = "com.google.apps.drive.activity.v2";
  25. option objc_class_prefix = "GADA";
  26. option php_namespace = "Google\\Apps\\Drive\\Activity\\V2";
  27. // Service for querying activity on Drive items. Activity is user
  28. // or system action on Drive items that happened in the past. A Drive item can
  29. // be a file or folder, or a Team Drive.
  30. service DriveActivityService {
  31. option (google.api.default_host) = "driveactivity.googleapis.com";
  32. option (google.api.oauth_scopes) =
  33. "https://www.googleapis.com/auth/drive.activity,"
  34. "https://www.googleapis.com/auth/drive.activity.readonly";
  35. // Query past activity in Google Drive.
  36. rpc QueryDriveActivity(QueryDriveActivityRequest) returns (QueryDriveActivityResponse) {
  37. option (google.api.http) = {
  38. post: "/v2/activity:query"
  39. body: "*"
  40. };
  41. }
  42. }