discovery.proto 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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.eventarc.v1;
  16. import "google/api/field_behavior.proto";
  17. import "google/api/resource.proto";
  18. option go_package = "google.golang.org/genproto/googleapis/cloud/eventarc/v1;eventarc";
  19. option java_multiple_files = true;
  20. option java_outer_classname = "DiscoveryProto";
  21. option java_package = "com.google.cloud.eventarc.v1";
  22. // A representation of the Provider resource.
  23. message Provider {
  24. option (google.api.resource) = {
  25. type: "eventarc.googleapis.com/Provider"
  26. pattern: "projects/{project}/locations/{location}/providers/{provider}"
  27. plural: "providers"
  28. singular: "provider"
  29. };
  30. // Output only. In `projects/{project}/locations/{location}/providers/{provider_id}`
  31. // format.
  32. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  33. // Output only. Human friendly name for the Provider. For example "Cloud Storage".
  34. string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  35. // Output only. Event types for this provider.
  36. repeated EventType event_types = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  37. }
  38. // A representation of the event type resource.
  39. message EventType {
  40. // Output only. The full name of the event type (for example,
  41. // "google.cloud.storage.object.v1.finalized"). In the form of
  42. // {provider-specific-prefix}.{resource}.{version}.{verb}. Types MUST be
  43. // versioned and event schemas are guaranteed to remain backward compatible
  44. // within one version. Note that event type versions and API versions do not
  45. // need to match.
  46. string type = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  47. // Output only. Human friendly description of what the event type is about.
  48. // For example "Bucket created in Cloud Storage".
  49. string description = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  50. // Output only. Filtering attributes for the event type.
  51. repeated FilteringAttribute filtering_attributes = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  52. // Output only. URI for the event schema.
  53. // For example
  54. // "https://github.com/googleapis/google-cloudevents/blob/master/proto/google/events/cloud/storage/v1/events.proto"
  55. string event_schema_uri = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  56. }
  57. // A representation of the FilteringAttribute resource.
  58. // Filtering attributes are per event type.
  59. message FilteringAttribute {
  60. // Output only. Attribute used for filtering the event type.
  61. string attribute = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  62. // Output only. Description of the purpose of the attribute.
  63. string description = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  64. // Output only. If true, the triggers for this provider should always specify a filter
  65. // on these attributes. Trigger creation will fail otherwise.
  66. bool required = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  67. // Output only. If true, the attribute accepts matching expressions in the Eventarc
  68. // PathPattern format.
  69. bool path_pattern_supported = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  70. }