project_service.proto 2.1 KB

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