Built motion from commit 6a09e18b.|2.6.11
[motion2.git] / legacy-libs / google-proto-files / google / devtools / clouderrorreporting / v1beta1 / error_group_service.proto
1 // Copyright 2016 Google Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 //     http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 syntax = "proto3";
16
17 package google.devtools.clouderrorreporting.v1beta1;
18
19 import "google/api/annotations.proto";
20 import "google/devtools/clouderrorreporting/v1beta1/common.proto";
21
22 option csharp_namespace = "Google.Cloud.ErrorReporting.V1Beta1";
23 option go_package = "google.golang.org/genproto/googleapis/devtools/clouderrorreporting/v1beta1;clouderrorreporting";
24 option java_multiple_files = true;
25 option java_outer_classname = "ErrorGroupServiceProto";
26 option java_package = "com.google.devtools.clouderrorreporting.v1beta1";
27 option php_namespace = "Google\\Cloud\\ErrorReporting\\V1beta1";
28
29 // Service for retrieving and updating individual error groups.
30 service ErrorGroupService {
31   // Get the specified group.
32   rpc GetGroup(GetGroupRequest) returns (ErrorGroup) {
33     option (google.api.http) = {
34       get: "/v1beta1/{group_name=projects/*/groups/*}"
35     };
36   }
37
38   // Replace the data for the specified group.
39   // Fails if the group does not exist.
40   rpc UpdateGroup(UpdateGroupRequest) returns (ErrorGroup) {
41     option (google.api.http) = {
42       put: "/v1beta1/{group.name=projects/*/groups/*}"
43       body: "group"
44     };
45   }
46 }
47
48 // A request to return an individual group.
49 message GetGroupRequest {
50   // [Required] The group resource name. Written as
51   // <code>projects/<var>projectID</var>/groups/<var>group_name</var></code>.
52   // Call
53   // <a href="/error-reporting/reference/rest/v1beta1/projects.groupStats/list">
54   // <code>groupStats.list</code></a> to return a list of groups belonging to
55   // this project.
56   //
57   // Example: <code>projects/my-project-123/groups/my-group</code>
58   string group_name = 1;
59 }
60
61 // A request to replace the existing data for the given group.
62 message UpdateGroupRequest {
63   // [Required] The group which replaces the resource on the server.
64   ErrorGroup group = 1;
65 }