| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- // Copyright 2016 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 java_multiple_files = true;
- option java_outer_classname = "ProjectServiceProto";
- option java_package = "com.google.cloud.ml.api.v1beta1";
- // Allows retrieving project related information.
- service ProjectManagementService {
- // Get the service config associated with a given project.
- rpc GetConfig(GetConfigRequest) returns (GetConfigResponse) {
- option (google.api.http) = { get: "/v1beta1/{name=projects/*}:getConfig" };
- }
- }
- // Service configuration request associated with a given project.
- message GetConfigRequest {
- // Required. The project name.
- // Authorization: requires `Viewer` role on the specified project.
- string name = 1;
- }
- // Returns service configuration associated with a given project.
- message GetConfigResponse {
- // The service account Cloud ML uses to access resources in the project.
- string service_account = 1;
- // Project number associated with 'service_account'.
- int64 service_account_project = 2;
- }
|