operation.proto 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. // Copyright 2022 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.appengine.v1;
  16. import "google/protobuf/timestamp.proto";
  17. option csharp_namespace = "Google.Cloud.AppEngine.V1";
  18. option go_package = "google.golang.org/genproto/googleapis/appengine/v1;appengine";
  19. option java_multiple_files = true;
  20. option java_outer_classname = "OperationProto";
  21. option java_package = "com.google.appengine.v1";
  22. option php_namespace = "Google\\Cloud\\AppEngine\\V1";
  23. option ruby_package = "Google::Cloud::AppEngine::V1";
  24. // Metadata for the given [google.longrunning.Operation][google.longrunning.Operation].
  25. message OperationMetadataV1 {
  26. // API method that initiated this operation. Example:
  27. // `google.appengine.v1.Versions.CreateVersion`.
  28. //
  29. // @OutputOnly
  30. string method = 1;
  31. // Time that this operation was created.
  32. //
  33. // @OutputOnly
  34. google.protobuf.Timestamp insert_time = 2;
  35. // Time that this operation completed.
  36. //
  37. // @OutputOnly
  38. google.protobuf.Timestamp end_time = 3;
  39. // User who requested this operation.
  40. //
  41. // @OutputOnly
  42. string user = 4;
  43. // Name of the resource that this operation is acting on. Example:
  44. // `apps/myapp/services/default`.
  45. //
  46. // @OutputOnly
  47. string target = 5;
  48. // Ephemeral message that may change every time the operation is polled.
  49. // @OutputOnly
  50. string ephemeral_message = 6;
  51. // Durable messages that persist on every operation poll.
  52. // @OutputOnly
  53. repeated string warning = 7;
  54. // Metadata specific to the type of operation in progress.
  55. // @OutputOnly
  56. oneof method_metadata {
  57. CreateVersionMetadataV1 create_version_metadata = 8;
  58. }
  59. }
  60. // Metadata for the given [google.longrunning.Operation][google.longrunning.Operation] during a
  61. // [google.appengine.v1.CreateVersionRequest][google.appengine.v1.CreateVersionRequest].
  62. message CreateVersionMetadataV1 {
  63. // The Cloud Build ID if one was created as part of the version create.
  64. // @OutputOnly
  65. string cloud_build_id = 1;
  66. }