operations.proto 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. // Copyright 2021 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. option go_package = "google.golang.org/genproto/googleapis/cloud/dataproc/v1;dataproc";
  19. option java_multiple_files = true;
  20. option java_outer_classname = "OperationsProto";
  21. option java_package = "com.google.cloud.dataproc.v1";
  22. // Metadata describing the Batch operation.
  23. message BatchOperationMetadata {
  24. // Operation type for Batch resources
  25. enum BatchOperationType {
  26. // Batch operation type is unknown.
  27. BATCH_OPERATION_TYPE_UNSPECIFIED = 0;
  28. // Batch operation type.
  29. BATCH = 1;
  30. }
  31. // Name of the batch for the operation.
  32. string batch = 1;
  33. // Batch UUID for the operation.
  34. string batch_uuid = 2;
  35. // The time when the operation was created.
  36. google.protobuf.Timestamp create_time = 3;
  37. // The time when the operation finished.
  38. google.protobuf.Timestamp done_time = 4;
  39. // The operation type.
  40. BatchOperationType operation_type = 6;
  41. // Short description of the operation.
  42. string description = 7;
  43. // Labels associated with the operation.
  44. map<string, string> labels = 8;
  45. // Warnings encountered during operation execution.
  46. repeated string warnings = 9;
  47. }
  48. // The status of the operation.
  49. message ClusterOperationStatus {
  50. // The operation state.
  51. enum State {
  52. // Unused.
  53. UNKNOWN = 0;
  54. // The operation has been created.
  55. PENDING = 1;
  56. // The operation is running.
  57. RUNNING = 2;
  58. // The operation is done; either cancelled or completed.
  59. DONE = 3;
  60. }
  61. // Output only. A message containing the operation state.
  62. State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  63. // Output only. A message containing the detailed operation state.
  64. string inner_state = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  65. // Output only. A message containing any operation metadata details.
  66. string details = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  67. // Output only. The time this state was entered.
  68. google.protobuf.Timestamp state_start_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  69. }
  70. // Metadata describing the operation.
  71. message ClusterOperationMetadata {
  72. // Output only. Name of the cluster for the operation.
  73. string cluster_name = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
  74. // Output only. Cluster UUID for the operation.
  75. string cluster_uuid = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
  76. // Output only. Current operation status.
  77. ClusterOperationStatus status = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
  78. // Output only. The previous operation status.
  79. repeated ClusterOperationStatus status_history = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
  80. // Output only. The operation type.
  81. string operation_type = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
  82. // Output only. Short description of operation.
  83. string description = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
  84. // Output only. Labels associated with the operation
  85. map<string, string> labels = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
  86. // Output only. Errors encountered during operation execution.
  87. repeated string warnings = 14 [(google.api.field_behavior) = OUTPUT_ONLY];
  88. }