From 84a8e95910f069dd03a19b0fc634f95bb0beac95 Mon Sep 17 00:00:00 2001 From: Jakob Buchgraber Date: Tue, 30 May 2017 15:49:37 +0200 Subject: Introduce third_party/googleapis Add `https://github.com/googleapis/googleapis` as a third_party dependency at commit `001f6702ac4cd72194a5120ff978fcfa740783d6`. These protos are required for the upcoming open sourcing of the BES protocol code. Additionally, add (java_)proto_library() rules for the protobufs required by the BES protocol. Change-Id: Ie78a9941a62f2085a58ad859c91161885e6f390d --- .../google/cloud/ml/v1beta1/project_service.proto | 59 ++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 third_party/googleapis/google/cloud/ml/v1beta1/project_service.proto (limited to 'third_party/googleapis/google/cloud/ml/v1beta1/project_service.proto') diff --git a/third_party/googleapis/google/cloud/ml/v1beta1/project_service.proto b/third_party/googleapis/google/cloud/ml/v1beta1/project_service.proto new file mode 100644 index 0000000000..1f8b2d5e0a --- /dev/null +++ b/third_party/googleapis/google/cloud/ml/v1beta1/project_service.proto @@ -0,0 +1,59 @@ +// Copyright 2017 Google Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.ml.v1beta1; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/ml/v1beta1;ml"; +option java_multiple_files = true; +option java_outer_classname = "ProjectServiceProto"; +option java_package = "com.google.cloud.ml.api.v1beta1"; + +// Copyright 2016 Google Inc. All Rights Reserved. +// +// Proto file for the Google Cloud Machine Learning Engine. +// Describes the project management service. + + + +// Allows retrieving project related information. +service ProjectManagementService { + // Get the service account information associated with your project. You need + // this information in order to grant the service account persmissions for + // the Google Cloud Storage location where you put your model training code + // for training the model with Google Cloud Machine Learning. + rpc GetConfig(GetConfigRequest) returns (GetConfigResponse) { + option (google.api.http) = { get: "/v1beta1/{name=projects/*}:getConfig" }; + } +} + +// Requests service account information associated with a project. +message GetConfigRequest { + // Required. The project name. + // + // Authorization: requires `Viewer` role on the specified project. + string name = 1; +} + +// Returns service account information associated with a project. +message GetConfigResponse { + // The service account Cloud ML uses to access resources in the project. + string service_account = 1; + + // The project number for `service_account`. + int64 service_account_project = 2; +} -- cgit v1.2.3