operations.proto 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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.v1;
  16. import "google/api/field_behavior.proto";
  17. import "google/protobuf/timestamp.proto";
  18. import "google/api/annotations.proto";
  19. option go_package = "google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataproc";
  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 [(google.api.field_behavior) = OUTPUT_ONLY];
  38. // Output only. A message containing the detailed operation state.
  39. string inner_state = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  40. // Output only. A message containing any operation metadata details.
  41. string details = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  42. // Output only. The time this state was entered.
  43. google.protobuf.Timestamp state_start_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  44. }
  45. // Metadata describing the operation.
  46. message ClusterOperationMetadata {
  47. // Output only. Name of the cluster for the operation.
  48. string cluster_name = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
  49. // Output only. Cluster UUID for the operation.
  50. string cluster_uuid = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
  51. // Output only. Current operation status.
  52. ClusterOperationStatus status = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
  53. // Output only. The previous operation status.
  54. repeated ClusterOperationStatus status_history = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
  55. // Output only. The operation type.
  56. string operation_type = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
  57. // Output only. Short description of operation.
  58. string description = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
  59. // Output only. Labels associated with the operation
  60. map<string, string> labels = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
  61. // Output only. Errors encountered during operation execution.
  62. repeated string warnings = 14 [(google.api.field_behavior) = OUTPUT_ONLY];
  63. }