@@ -22,6 +22,7 @@ import "google/api/field_behavior.proto";
2222import "google/api/resource.proto" ;
2323import "google/cloud/eventarc/v1/channel.proto" ;
2424import "google/cloud/eventarc/v1/channel_connection.proto" ;
25+ import "google/cloud/eventarc/v1/discovery.proto" ;
2526import "google/cloud/eventarc/v1/trigger.proto" ;
2627import "google/longrunning/operations.proto" ;
2728import "google/protobuf/field_mask.proto" ;
@@ -149,6 +150,22 @@ service Eventarc {
149150 };
150151 }
151152
153+ // Get a single Provider.
154+ rpc GetProvider (GetProviderRequest ) returns (Provider ) {
155+ option (google.api.http ) = {
156+ get : "/v1/{name=projects/*/locations/*/providers/*}"
157+ };
158+ option (google.api.method_signature ) = "name" ;
159+ }
160+
161+ // List providers.
162+ rpc ListProviders (ListProvidersRequest ) returns (ListProvidersResponse ) {
163+ option (google.api.http ) = {
164+ get : "/v1/{parent=projects/*/locations/*}/providers"
165+ };
166+ option (google.api.method_signature ) = "parent" ;
167+ }
168+
152169 // Get a single ChannelConnection.
153170 rpc GetChannelConnection (GetChannelConnectionRequest ) returns (ChannelConnection ) {
154171 option (google.api.http ) = {
@@ -409,6 +426,60 @@ message DeleteChannelRequest {
409426 bool validate_only = 2 [(google.api.field_behavior ) = REQUIRED ];
410427}
411428
429+ // The request message for the GetProvider method.
430+ message GetProviderRequest {
431+ // Required. The name of the provider to get.
432+ string name = 1 [
433+ (google.api.field_behavior ) = REQUIRED ,
434+ (google.api.resource_reference ) = {
435+ type : "eventarc.googleapis.com/Provider"
436+ }
437+ ];
438+ }
439+
440+ // The request message for the ListProviders method.
441+ message ListProvidersRequest {
442+ // Required. The parent of the provider to get.
443+ string parent = 1 [
444+ (google.api.field_behavior ) = REQUIRED ,
445+ (google.api.resource_reference ) = {
446+ child_type : "eventarc.googleapis.com/Provider"
447+ }
448+ ];
449+
450+ // The maximum number of providers to return on each page.
451+ int32 page_size = 2 ;
452+
453+ // The page token; provide the value from the `next_page_token` field in a
454+ // previous `ListProviders` call to retrieve the subsequent page.
455+ //
456+ // When paginating, all other parameters provided to `ListProviders` must
457+ // match the call that provided the page token.
458+ string page_token = 3 ;
459+
460+ // The sorting order of the resources returned. Value should be a
461+ // comma-separated list of fields. The default sorting oder is ascending. To
462+ // specify descending order for a field, append a `desc` suffix; for example:
463+ // `name desc, _id`.
464+ string order_by = 4 ;
465+
466+ // The filter field that the list request will filter on.
467+ string filter = 5 ;
468+ }
469+
470+ // The response message for the `ListProviders` method.
471+ message ListProvidersResponse {
472+ // The requested providers, up to the number specified in `page_size`.
473+ repeated Provider providers = 1 ;
474+
475+ // A page token that can be sent to ListProviders to request the next page.
476+ // If this is empty, then there are no more pages.
477+ string next_page_token = 2 ;
478+
479+ // Unreachable resources, if any.
480+ repeated string unreachable = 3 ;
481+ }
482+
412483// The request message for the GetChannelConnection method.
413484message GetChannelConnectionRequest {
414485 // Required. The name of the channel connection to get.
0 commit comments