project_service.proto 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // Copyright 2016 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. syntax = "proto3";
  15. package google.cloud.ml.v1beta1;
  16. import "google/api/annotations.proto";
  17. option java_multiple_files = true;
  18. option java_outer_classname = "ProjectServiceProto";
  19. option java_package = "com.google.cloud.ml.api.v1beta1";
  20. // Allows retrieving project related information.
  21. service ProjectManagementService {
  22. // Get the service config associated with a given project.
  23. rpc GetConfig(GetConfigRequest) returns (GetConfigResponse) {
  24. option (google.api.http) = { get: "/v1beta1/{name=projects/*}:getConfig" };
  25. }
  26. }
  27. // Service configuration request associated with a given project.
  28. message GetConfigRequest {
  29. // Required. The project name.
  30. // Authorization: requires `Viewer` role on the specified project.
  31. string name = 1;
  32. }
  33. // Returns service configuration associated with a given project.
  34. message GetConfigResponse {
  35. // The service account Cloud ML uses to access resources in the project.
  36. string service_account = 1;
  37. // Project number associated with 'service_account'.
  38. int64 service_account_project = 2;
  39. }