123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185 |
- syntax = "proto3";
- package google.monitoring.dashboard.v1;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/monitoring/dashboard/v1/dashboard.proto";
- import "google/protobuf/empty.proto";
- option csharp_namespace = "Google.Cloud.Monitoring.Dashboard.V1";
- option go_package = "google.golang.org/genproto/googleapis/monitoring/dashboard/v1;dashboard";
- option java_multiple_files = true;
- option java_outer_classname = "DashboardsServiceProto";
- option java_package = "com.google.monitoring.dashboard.v1";
- option php_namespace = "Google\\Cloud\\Monitoring\\Dashboard\\V1";
- option ruby_package = "Google::Cloud::Monitoring::Dashboard::V1";
- service DashboardsService {
- 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,"
- "https://www.googleapis.com/auth/monitoring.write";
-
-
- rpc CreateDashboard(CreateDashboardRequest) returns (Dashboard) {
- option (google.api.http) = {
- post: "/v1/{parent=projects/*}/dashboards"
- body: "dashboard"
- };
- }
-
-
-
-
-
- rpc ListDashboards(ListDashboardsRequest) returns (ListDashboardsResponse) {
- option (google.api.http) = {
- get: "/v1/{parent=projects/*}/dashboards"
- };
- }
-
-
-
-
-
- rpc GetDashboard(GetDashboardRequest) returns (Dashboard) {
- option (google.api.http) = {
- get: "/v1/{name=projects/*/dashboards/*}"
- };
- }
-
-
-
-
-
- rpc DeleteDashboard(DeleteDashboardRequest) returns (google.protobuf.Empty) {
- option (google.api.http) = {
- delete: "/v1/{name=projects/*/dashboards/*}"
- };
- }
-
-
-
-
-
- rpc UpdateDashboard(UpdateDashboardRequest) returns (Dashboard) {
- option (google.api.http) = {
- patch: "/v1/{dashboard.name=projects/*/dashboards/*}"
- body: "dashboard"
- };
- }
- }
- message CreateDashboardRequest {
-
-
-
-
-
- string parent = 1 [(google.api.field_behavior) = REQUIRED];
-
- Dashboard dashboard = 2 [(google.api.field_behavior) = REQUIRED];
-
-
- bool validate_only = 3;
- }
- message ListDashboardsRequest {
-
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "cloudresourcemanager.googleapis.com/Project"
- }
- ];
-
-
- int32 page_size = 2;
-
-
-
- string page_token = 3;
- }
- message ListDashboardsResponse {
-
- repeated Dashboard dashboards = 1;
-
-
-
- string next_page_token = 2;
- }
- message GetDashboardRequest {
-
-
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "monitoring.googleapis.com/Dashboard"
- }
- ];
- }
- message DeleteDashboardRequest {
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "monitoring.googleapis.com/Dashboard"
- }
- ];
- }
- message UpdateDashboardRequest {
-
- Dashboard dashboard = 1 [(google.api.field_behavior) = REQUIRED];
-
-
- bool validate_only = 3;
- }
|