Built motion from commit 6a09e18b.|2.6.11
[motion2.git] / legacy-libs / google-proto-files / google / cloud / ml / v1 / project_service.proto
1 // Copyright 2017 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.cloud.ml.v1;
18
19 import "google/api/annotations.proto";
20
21 option go_package = "google.golang.org/genproto/googleapis/cloud/ml/v1;ml";
22 option java_multiple_files = true;
23 option java_outer_classname = "ProjectServiceProto";
24 option java_package = "com.google.cloud.ml.api.v1";
25
26 // Copyright 2017 Google Inc. All Rights Reserved.
27 //
28 // Proto file for the Google Cloud Machine Learning Engine.
29 // Describes the project management service.
30
31 // Allows retrieving project related information.
32 service ProjectManagementService {
33   // Get the service account information associated with your project. You need
34   // this information in order to grant the service account persmissions for
35   // the Google Cloud Storage location where you put your model training code
36   // for training the model with Google Cloud Machine Learning.
37   rpc GetConfig(GetConfigRequest) returns (GetConfigResponse) {
38     option (google.api.http) = {
39       get: "/v1/{name=projects/*}:getConfig"
40     };
41   }
42 }
43
44 // Requests service account information associated with a project.
45 message GetConfigRequest {
46   // Required. The project name.
47   //
48   // Authorization: requires `Viewer` role on the specified project.
49   string name = 1;
50 }
51
52 // Returns service account information associated with a project.
53 message GetConfigResponse {
54   // The service account Cloud ML uses to access resources in the project.
55   string service_account = 1;
56
57   // The project number for `service_account`.
58   int64 service_account_project = 2;
59 }