operations.proto 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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.dataproc.v1;
  16. import "google/api/annotations.proto";
  17. import "google/longrunning/operations.proto";
  18. import "google/protobuf/empty.proto";
  19. import "google/protobuf/timestamp.proto";
  20. option java_multiple_files = true;
  21. option java_outer_classname = "OperationsProto";
  22. option java_package = "com.google.cloud.dataproc.v1";
  23. // The status of the operation.
  24. message ClusterOperationStatus {
  25. // The operation state.
  26. enum State {
  27. // Unused.
  28. UNKNOWN = 0;
  29. // The operation has been created.
  30. PENDING = 1;
  31. // The operation is running.
  32. RUNNING = 2;
  33. // The operation is done; either cancelled or completed.
  34. DONE = 3;
  35. }
  36. // [Output-only] A message containing the operation state.
  37. State state = 1;
  38. // [Output-only] A message containing the detailed operation state.
  39. string inner_state = 2;
  40. // [Output-only]A message containing any operation metadata details.
  41. string details = 3;
  42. // [Output-only] The time this state was entered.
  43. google.protobuf.Timestamp state_start_time = 4;
  44. }
  45. // Metadata describing the operation.
  46. message ClusterOperationMetadata {
  47. // [Output-only] Name of the cluster for the operation.
  48. string cluster_name = 7;
  49. // [Output-only] Cluster UUID for the operation.
  50. string cluster_uuid = 8;
  51. // [Output-only] Current operation status.
  52. ClusterOperationStatus status = 9;
  53. // [Output-only] The previous operation status.
  54. repeated ClusterOperationStatus status_history = 10;
  55. // [Output-only] The operation type.
  56. string operation_type = 11;
  57. // [Output-only] Short description of operation.
  58. string description = 12;
  59. }