1 // Copyright 2017 Google Inc.
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
7 // http://www.apache.org/licenses/LICENSE-2.0
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.
17 package google.cloud.ml.v1;
19 import "google/api/annotations.proto";
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";
26 // Copyright 2017 Google Inc. All Rights Reserved.
28 // Proto file for the Google Cloud Machine Learning Engine.
29 // Describes the project management service.
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"
44 // Requests service account information associated with a project.
45 message GetConfigRequest {
46 // Required. The project name.
48 // Authorization: requires `Viewer` role on the specified project.
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;
57 // The project number for `service_account`.
58 int64 service_account_project = 2;