operations.proto 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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.channel.v1;
  16. import "google/api/annotations.proto";
  17. option go_package = "google.golang.org/genproto/googleapis/cloud/channel/v1;channel";
  18. option java_multiple_files = true;
  19. option java_outer_classname = "OperationsProto";
  20. option java_package = "com.google.cloud.channel.v1";
  21. // Provides contextual information about a [google.longrunning.Operation][google.longrunning.Operation].
  22. message OperationMetadata {
  23. // RPCs that return a Long Running Operation.
  24. enum OperationType {
  25. // Default value. This state doesn't show unless an error occurs.
  26. OPERATION_TYPE_UNSPECIFIED = 0;
  27. // Long Running Operation was triggered by CreateEntitlement.
  28. CREATE_ENTITLEMENT = 1;
  29. // Long Running Operation was triggered by ChangeRenewalSettings.
  30. CHANGE_RENEWAL_SETTINGS = 3;
  31. // Long Running Operation was triggered by StartPaidService.
  32. START_PAID_SERVICE = 5;
  33. // Long Running Operation was triggered by ActivateEntitlement.
  34. ACTIVATE_ENTITLEMENT = 7;
  35. // Long Running Operation was triggered by SuspendEntitlement.
  36. SUSPEND_ENTITLEMENT = 8;
  37. // Long Running Operation was triggered by CancelEntitlement.
  38. CANCEL_ENTITLEMENT = 9;
  39. // Long Running Operation was triggered by TransferEntitlements.
  40. TRANSFER_ENTITLEMENTS = 10;
  41. // Long Running Operation was triggered by TransferEntitlementsToGoogle.
  42. TRANSFER_ENTITLEMENTS_TO_GOOGLE = 11;
  43. // Long Running Operation was triggered by ChangeOffer.
  44. CHANGE_OFFER = 14;
  45. // Long Running Operation was triggered by ChangeParameters.
  46. CHANGE_PARAMETERS = 15;
  47. // Long Running Operation was triggered by ProvisionCloudIdentity.
  48. PROVISION_CLOUD_IDENTITY = 16;
  49. }
  50. // The RPC that initiated this Long Running Operation.
  51. OperationType operation_type = 1;
  52. }