1- // Copyright 2022 Google LLC
1+ // Copyright 2023 Google LLC
22//
33// Licensed under the Apache License, Version 2.0 (the "License");
44// you may not use this file except in compliance with the License.
@@ -52,6 +52,7 @@ service DashboardsService {
5252 post : "/v1/{parent=projects/*}/dashboards"
5353 body : "dashboard"
5454 };
55+ option (google.api.method_signature ) = "parent,dashboard" ;
5556 }
5657
5758 // Lists the existing dashboards.
@@ -63,6 +64,7 @@ service DashboardsService {
6364 option (google.api.http ) = {
6465 get : "/v1/{parent=projects/*}/dashboards"
6566 };
67+ option (google.api.method_signature ) = "parent" ;
6668 }
6769
6870 // Fetches a specific dashboard.
@@ -74,6 +76,7 @@ service DashboardsService {
7476 option (google.api.http ) = {
7577 get : "/v1/{name=projects/*/dashboards/*}"
7678 };
79+ option (google.api.method_signature ) = "name" ;
7780 }
7881
7982 // Deletes an existing custom dashboard.
@@ -85,6 +88,7 @@ service DashboardsService {
8588 option (google.api.http ) = {
8689 delete : "/v1/{name=projects/*/dashboards/*}"
8790 };
91+ option (google.api.method_signature ) = "name" ;
8892 }
8993
9094 // Replaces an existing custom dashboard with a new definition.
@@ -107,7 +111,12 @@ message CreateDashboardRequest {
107111 // projects/[PROJECT_ID_OR_NUMBER]
108112 //
109113 // The `[PROJECT_ID_OR_NUMBER]` must match the dashboard resource name.
110- string parent = 1 [(google.api.field_behavior ) = REQUIRED ];
114+ string parent = 1 [
115+ (google.api.field_behavior ) = REQUIRED ,
116+ (google.api.resource_reference ) = {
117+ type : "cloudresourcemanager.googleapis.com/Project"
118+ }
119+ ];
111120
112121 // Required. The initial dashboard specification.
113122 Dashboard dashboard = 2 [(google.api.field_behavior ) = REQUIRED ];
@@ -133,10 +142,11 @@ message ListDashboardsRequest {
133142 // If unspecified, a default of 1000 is used.
134143 int32 page_size = 2 ;
135144
136- // If this field is not empty then it must contain the `nextPageToken` value
137- // returned by a previous call to this method. Using this field causes the
138- // method to return additional results from the previous method call.
139- string page_token = 3 ;
145+ // Optional. If this field is not empty then it must contain the
146+ // `nextPageToken` value returned by a previous call to this method. Using
147+ // this field causes the method to return additional results from the previous
148+ // method call.
149+ string page_token = 3 [(google.api.field_behavior ) = OPTIONAL ];
140150}
141151
142152// The `ListDashboards` request.
0 commit comments