operation.proto 2.5 KB

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