123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290 |
- syntax = "proto3";
- package google.monitoring.v3;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/api/monitored_resource.proto";
- import "google/api/resource.proto";
- import "google/monitoring/v3/common.proto";
- import "google/monitoring/v3/group.proto";
- import "google/protobuf/empty.proto";
- option csharp_namespace = "Google.Cloud.Monitoring.V3";
- option go_package = "google.golang.org/genproto/googleapis/monitoring/v3;monitoring";
- option java_multiple_files = true;
- option java_outer_classname = "GroupServiceProto";
- option java_package = "com.google.monitoring.v3";
- option php_namespace = "Google\\Cloud\\Monitoring\\V3";
- option ruby_package = "Google::Cloud::Monitoring::V3";
- service GroupService {
- option (google.api.default_host) = "monitoring.googleapis.com";
- option (google.api.oauth_scopes) =
- "https://www.googleapis.com/auth/cloud-platform,"
- "https://www.googleapis.com/auth/monitoring,"
- "https://www.googleapis.com/auth/monitoring.read";
-
- rpc ListGroups(ListGroupsRequest) returns (ListGroupsResponse) {
- option (google.api.http) = {
- get: "/v3/{name=projects/*}/groups"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc GetGroup(GetGroupRequest) returns (Group) {
- option (google.api.http) = {
- get: "/v3/{name=projects/*/groups/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc CreateGroup(CreateGroupRequest) returns (Group) {
- option (google.api.http) = {
- post: "/v3/{name=projects/*}/groups"
- body: "group"
- };
- option (google.api.method_signature) = "name,group";
- }
-
-
- rpc UpdateGroup(UpdateGroupRequest) returns (Group) {
- option (google.api.http) = {
- put: "/v3/{group.name=projects/*/groups/*}"
- body: "group"
- };
- option (google.api.method_signature) = "group";
- }
-
- rpc DeleteGroup(DeleteGroupRequest) returns (google.protobuf.Empty) {
- option (google.api.http) = {
- delete: "/v3/{name=projects/*/groups/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc ListGroupMembers(ListGroupMembersRequest) returns (ListGroupMembersResponse) {
- option (google.api.http) = {
- get: "/v3/{name=projects/*/groups/*}/members"
- };
- option (google.api.method_signature) = "name";
- }
- }
- message ListGroupsRequest {
-
-
-
-
- string name = 7 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "monitoring.googleapis.com/Group"
- }
- ];
-
-
-
- oneof filter {
-
-
-
-
-
-
- string children_of_group = 2 [(google.api.resource_reference) = {
- type: "monitoring.googleapis.com/Group"
- }];
-
-
-
-
-
-
-
-
- string ancestors_of_group = 3 [(google.api.resource_reference) = {
- type: "monitoring.googleapis.com/Group"
- }];
-
-
-
-
-
-
-
- string descendants_of_group = 4 [(google.api.resource_reference) = {
- type: "monitoring.googleapis.com/Group"
- }];
- }
-
- int32 page_size = 5;
-
-
-
- string page_token = 6;
- }
- message ListGroupsResponse {
-
- repeated Group group = 1;
-
-
-
- string next_page_token = 2;
- }
- message GetGroupRequest {
-
-
-
- string name = 3 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "monitoring.googleapis.com/Group"
- }
- ];
- }
- message CreateGroupRequest {
-
-
-
-
- string name = 4 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "monitoring.googleapis.com/Group"
- }
- ];
-
-
- Group group = 2 [(google.api.field_behavior) = REQUIRED];
-
- bool validate_only = 3;
- }
- message UpdateGroupRequest {
-
-
- Group group = 2 [(google.api.field_behavior) = REQUIRED];
-
- bool validate_only = 3;
- }
- message DeleteGroupRequest {
-
-
-
- string name = 3 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "monitoring.googleapis.com/Group"
- }
- ];
-
-
-
- bool recursive = 4;
- }
- message ListGroupMembersRequest {
-
-
-
- string name = 7 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "monitoring.googleapis.com/Group"
- }
- ];
-
- int32 page_size = 3;
-
-
-
- string page_token = 4;
-
-
-
-
-
-
-
-
- string filter = 5;
-
-
-
-
- TimeInterval interval = 6;
- }
- message ListGroupMembersResponse {
-
- repeated google.api.MonitoredResource members = 1;
-
-
-
- string next_page_token = 2;
-
- int32 total_size = 3;
- }
|