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 15syntax = "proto3"; 16 17package google.apps.drive.activity.v2; 18 19import "google/api/annotations.proto"; 20import "google/api/client.proto"; 21import "google/apps/drive/activity/v2/query_drive_activity_request.proto"; 22import "google/apps/drive/activity/v2/query_drive_activity_response.proto"; 23 24option csharp_namespace = "Google.Apps.Drive.Activity.V2"; 25option go_package = "google.golang.org/genproto/googleapis/apps/drive/activity/v2;activity"; 26option java_multiple_files = true; 27option java_outer_classname = "DriveActivityServiceProto"; 28option java_package = "com.google.apps.drive.activity.v2"; 29option objc_class_prefix = "GADA"; 30option php_namespace = "Google\\Apps\\Drive\\Activity\\V2"; 31 32// Service for querying activity on Drive items. Activity is user 33// or system action on Drive items that happened in the past. A Drive item can 34// be a file or folder, or a Team Drive. 35service DriveActivityService { 36 option (google.api.default_host) = "driveactivity.googleapis.com"; 37 option (google.api.oauth_scopes) = 38 "https://www.googleapis.com/auth/drive.activity," 39 "https://www.googleapis.com/auth/drive.activity.readonly"; 40 41 // Query past activity in Google Drive. 42 rpc QueryDriveActivity(QueryDriveActivityRequest) 43 returns (QueryDriveActivityResponse) { 44 option (google.api.http) = { 45 post: "/v2/activity:query" 46 body: "*" 47 }; 48 } 49} 50