@@ -35,7 +35,8 @@ option java_package = "com.google.cloud.notebooks.v1beta1";
3535// API v1beta1 service for Cloud AI Platform Notebooks.
3636service NotebookService {
3737 option (google.api.default_host ) = "notebooks.googleapis.com" ;
38- option (google.api.oauth_scopes ) = "https://www.googleapis.com/auth/cloud-platform" ;
38+ option (google.api.oauth_scopes ) =
39+ "https://www.googleapis.com/auth/cloud-platform" ;
3940
4041 // Lists instances in a given project and location.
4142 rpc ListInstances (ListInstancesRequest ) returns (ListInstancesResponse ) {
@@ -52,7 +53,8 @@ service NotebookService {
5253 }
5354
5455 // Creates a new Instance in a given project and location.
55- rpc CreateInstance (CreateInstanceRequest ) returns (google.longrunning.Operation ) {
56+ rpc CreateInstance (CreateInstanceRequest )
57+ returns (google.longrunning.Operation ) {
5658 option (google.api.http ) = {
5759 post : "/v1beta1/{parent=projects/*/locations/*}/instances"
5860 body : "instance"
@@ -67,7 +69,8 @@ service NotebookService {
6769 // Legacy instances are instances created with the legacy Compute Engine
6870 // calls. They are not manageable by the Notebooks API out of the box. This
6971 // call makes these instances manageable by the Notebooks API.
70- rpc RegisterInstance (RegisterInstanceRequest ) returns (google.longrunning.Operation ) {
72+ rpc RegisterInstance (RegisterInstanceRequest )
73+ returns (google.longrunning.Operation ) {
7174 option (google.api.http ) = {
7275 post : "/v1beta1/{parent=projects/*/locations/*}/instances:register"
7376 body : "*"
@@ -79,7 +82,8 @@ service NotebookService {
7982 }
8083
8184 // Updates the guest accelerators of a single Instance.
82- rpc SetInstanceAccelerator (SetInstanceAcceleratorRequest ) returns (google.longrunning.Operation ) {
85+ rpc SetInstanceAccelerator (SetInstanceAcceleratorRequest )
86+ returns (google.longrunning.Operation ) {
8387 option (google.api.http ) = {
8488 patch : "/v1beta1/{name=projects/*/locations/*/instances/*}:setAccelerator"
8589 body : "*"
@@ -91,7 +95,8 @@ service NotebookService {
9195 }
9296
9397 // Updates the machine type of a single Instance.
94- rpc SetInstanceMachineType (SetInstanceMachineTypeRequest ) returns (google.longrunning.Operation ) {
98+ rpc SetInstanceMachineType (SetInstanceMachineTypeRequest )
99+ returns (google.longrunning.Operation ) {
95100 option (google.api.http ) = {
96101 patch : "/v1beta1/{name=projects/*/locations/*/instances/*}:setMachineType"
97102 body : "*"
@@ -103,7 +108,8 @@ service NotebookService {
103108 }
104109
105110 // Updates the labels of an Instance.
106- rpc SetInstanceLabels (SetInstanceLabelsRequest ) returns (google.longrunning.Operation ) {
111+ rpc SetInstanceLabels (SetInstanceLabelsRequest )
112+ returns (google.longrunning.Operation ) {
107113 option (google.api.http ) = {
108114 patch : "/v1beta1/{name=projects/*/locations/*/instances/*}:setLabels"
109115 body : "*"
@@ -115,7 +121,8 @@ service NotebookService {
115121 }
116122
117123 // Deletes a single Instance.
118- rpc DeleteInstance (DeleteInstanceRequest ) returns (google.longrunning.Operation ) {
124+ rpc DeleteInstance (DeleteInstanceRequest )
125+ returns (google.longrunning.Operation ) {
119126 option (google.api.http ) = {
120127 delete : "/v1beta1/{name=projects/*/locations/*/instances/*}"
121128 };
@@ -126,7 +133,8 @@ service NotebookService {
126133 }
127134
128135 // Starts a notebook instance.
129- rpc StartInstance (StartInstanceRequest ) returns (google.longrunning.Operation ) {
136+ rpc StartInstance (StartInstanceRequest )
137+ returns (google.longrunning.Operation ) {
130138 option (google.api.http ) = {
131139 post : "/v1beta1/{name=projects/*/locations/*/instances/*}:start"
132140 body : "*"
@@ -150,7 +158,8 @@ service NotebookService {
150158 }
151159
152160 // Resets a notebook instance.
153- rpc ResetInstance (ResetInstanceRequest ) returns (google.longrunning.Operation ) {
161+ rpc ResetInstance (ResetInstanceRequest )
162+ returns (google.longrunning.Operation ) {
154163 option (google.api.http ) = {
155164 post : "/v1beta1/{name=projects/*/locations/*/instances/*}:reset"
156165 body : "*"
@@ -165,7 +174,8 @@ service NotebookService {
165174 // report their latest instance information to the Notebooks
166175 // API server. The server will merge the reported information to
167176 // the instance metadata store. Do not use this method directly.
168- rpc ReportInstanceInfo (ReportInstanceInfoRequest ) returns (google.longrunning.Operation ) {
177+ rpc ReportInstanceInfo (ReportInstanceInfoRequest )
178+ returns (google.longrunning.Operation ) {
169179 option (google.api.http ) = {
170180 post : "/v1beta1/{name=projects/*/locations/*/instances/*}:report"
171181 body : "*"
@@ -177,14 +187,16 @@ service NotebookService {
177187 }
178188
179189 // Check if a notebook instance is upgradable.
180- rpc IsInstanceUpgradeable (IsInstanceUpgradeableRequest ) returns (IsInstanceUpgradeableResponse ) {
190+ rpc IsInstanceUpgradeable (IsInstanceUpgradeableRequest )
191+ returns (IsInstanceUpgradeableResponse ) {
181192 option (google.api.http ) = {
182193 get : "/v1beta1/{notebook_instance=projects/*/locations/*/instances/*}:isUpgradeable"
183194 };
184195 }
185196
186197 // Upgrades a notebook instance to the latest version.
187- rpc UpgradeInstance (UpgradeInstanceRequest ) returns (google.longrunning.Operation ) {
198+ rpc UpgradeInstance (UpgradeInstanceRequest )
199+ returns (google.longrunning.Operation ) {
188200 option (google.api.http ) = {
189201 post : "/v1beta1/{name=projects/*/locations/*/instances/*}:upgrade"
190202 body : "*"
@@ -197,7 +209,8 @@ service NotebookService {
197209
198210 // Allows notebook instances to
199211 // call this endpoint to upgrade themselves. Do not use this method directly.
200- rpc UpgradeInstanceInternal (UpgradeInstanceInternalRequest ) returns (google.longrunning.Operation ) {
212+ rpc UpgradeInstanceInternal (UpgradeInstanceInternalRequest )
213+ returns (google.longrunning.Operation ) {
201214 option (google.api.http ) = {
202215 post : "/v1beta1/{name=projects/*/locations/*/instances/*}:upgradeInternal"
203216 body : "*"
@@ -209,7 +222,8 @@ service NotebookService {
209222 }
210223
211224 // Lists environments in a project.
212- rpc ListEnvironments (ListEnvironmentsRequest ) returns (ListEnvironmentsResponse ) {
225+ rpc ListEnvironments (ListEnvironmentsRequest )
226+ returns (ListEnvironmentsResponse ) {
213227 option (google.api.http ) = {
214228 get : "/v1beta1/{parent=projects/*/locations/*}/environments"
215229 };
@@ -223,7 +237,8 @@ service NotebookService {
223237 }
224238
225239 // Creates a new Environment.
226- rpc CreateEnvironment (CreateEnvironmentRequest ) returns (google.longrunning.Operation ) {
240+ rpc CreateEnvironment (CreateEnvironmentRequest )
241+ returns (google.longrunning.Operation ) {
227242 option (google.api.http ) = {
228243 post : "/v1beta1/{parent=projects/*/locations/*}/environments"
229244 body : "environment"
@@ -235,7 +250,8 @@ service NotebookService {
235250 }
236251
237252 // Deletes a single Environment.
238- rpc DeleteEnvironment (DeleteEnvironmentRequest ) returns (google.longrunning.Operation ) {
253+ rpc DeleteEnvironment (DeleteEnvironmentRequest )
254+ returns (google.longrunning.Operation ) {
239255 option (google.api.http ) = {
240256 delete : "/v1beta1/{name=projects/*/locations/*/environments/*}"
241257 };
@@ -266,7 +282,8 @@ message OperationMetadata {
266282 // Identifies whether the user has requested cancellation
267283 // of the operation. Operations that have successfully been cancelled
268284 // have [Operation.error][] value with a
269- // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
285+ // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
286+ // `Code.CANCELLED`.
270287 bool requested_cancellation = 6 ;
271288
272289 // API version used to start the operation.
@@ -347,10 +364,10 @@ message SetInstanceAcceleratorRequest {
347364 // Required. Type of this accelerator.
348365 Instance.AcceleratorType type = 2 [(google.api.field_behavior ) = REQUIRED ];
349366
350- // Required. Count of cores of this accelerator. Note that not all combinations
351- // of `type` and `core_count` are valid. Check [GPUs on
352- // Compute Engine](https://cloud.google.com/compute/docs/gpus/#gpus-list) to
353- // find a valid combination. TPUs are not supported.
367+ // Required. Count of cores of this accelerator. Note that not all
368+ // combinations of `type` and `core_count` are valid. Check [GPUs on Compute
369+ // Engine](https://cloud.google.com/compute/docs/gpus/#gpus-list) to find a
370+ // valid combination. TPUs are not supported.
354371 int64 core_count = 3 [(google.api.field_behavior ) = REQUIRED ];
355372}
356373
@@ -495,10 +512,10 @@ message CreateEnvironmentRequest {
495512 // Required. Format: `projects/{project_id}/locations/{location}`
496513 string parent = 1 [(google.api.field_behavior ) = REQUIRED ];
497514
498- // Required. User-defined unique ID of this environment. The `environment_id` must
499- // be 1 to 63 characters long and contain only lowercase letters,
500- // numeric characters, and dashes. The first character must be a lowercase
501- // letter and the last character cannot be a dash.
515+ // Required. User-defined unique ID of this environment. The `environment_id`
516+ // must be 1 to 63 characters long and contain only lowercase letters, numeric
517+ // characters, and dashes. The first character must be a lowercase letter and
518+ // the last character cannot be a dash.
502519 string environment_id = 2 [(google.api.field_behavior ) = REQUIRED ];
503520
504521 // Required. The environment to be created.
0 commit comments