operations.proto 2.4 KB

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