operations.proto 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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.cloud.functions.v1;
  16. import "google/protobuf/any.proto";
  17. import "google/protobuf/timestamp.proto";
  18. option go_package = "google.golang.org/genproto/googleapis/cloud/functions/v1;functions";
  19. option java_multiple_files = true;
  20. option java_outer_classname = "FunctionsOperationsProto";
  21. option java_package = "com.google.cloud.functions.v1";
  22. // A type of an operation.
  23. enum OperationType {
  24. // Unknown operation type.
  25. OPERATION_UNSPECIFIED = 0;
  26. // Triggered by CreateFunction call
  27. CREATE_FUNCTION = 1;
  28. // Triggered by UpdateFunction call
  29. UPDATE_FUNCTION = 2;
  30. // Triggered by DeleteFunction call.
  31. DELETE_FUNCTION = 3;
  32. }
  33. // Metadata describing an [Operation][google.longrunning.Operation]
  34. message OperationMetadataV1 {
  35. // Target of the operation - for example
  36. // `projects/project-1/locations/region-1/functions/function-1`
  37. string target = 1;
  38. // Type of operation.
  39. OperationType type = 2;
  40. // The original request that started the operation.
  41. google.protobuf.Any request = 3;
  42. // Version id of the function created or updated by an API call.
  43. // This field is only populated for Create and Update operations.
  44. int64 version_id = 4;
  45. // The last update timestamp of the operation.
  46. google.protobuf.Timestamp update_time = 5;
  47. // The Cloud Build ID of the function created or updated by an API call.
  48. // This field is only populated for Create and Update operations.
  49. string build_id = 6;
  50. // An identifier for Firebase function sources. Disclaimer: This field is only
  51. // supported for Firebase function deployments.
  52. string source_token = 7;
  53. // The Cloud Build Name of the function deployment.
  54. // This field is only populated for Create and Update operations.
  55. // `projects/<project-number>/locations/<region>/builds/<build-id>`.
  56. string build_name = 8;
  57. }