blob: 7ef3ac4e4223278f6dccf1b2d84b7f31585c2f55 [file] [log] [blame]
{
"clientLibrary": {
"name": "cloud.google.com/go/eventarc/publishing/apiv1",
"version": "1.13.6",
"language": "GO",
"apis": [
{
"id": "google.cloud.eventarc.publishing.v1",
"version": "v1"
}
]
},
"snippets": [
{
"regionTag": "eventarcpublishing_v1_generated_Publisher_PublishChannelConnectionEvents_sync",
"title": "eventarcpublishing PublishChannelConnectionEvents Sample",
"description": "PublishChannelConnectionEvents publish events to a ChannelConnection in a partner's project.",
"file": "PublisherClient/PublishChannelConnectionEvents/main.go",
"language": "GO",
"clientMethod": {
"shortName": "PublishChannelConnectionEvents",
"fullName": "google.cloud.eventarc.publishing.v1.PublisherClient.PublishChannelConnectionEvents",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "publishingpb.PublishChannelConnectionEventsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*publishingpb.PublishChannelConnectionEventsResponse",
"client": {
"shortName": "PublisherClient",
"fullName": "google.cloud.eventarc.publishing.v1.PublisherClient"
},
"method": {
"shortName": "PublishChannelConnectionEvents",
"fullName": "google.cloud.eventarc.publishing.v1.Publisher.PublishChannelConnectionEvents",
"service": {
"shortName": "Publisher",
"fullName": "google.cloud.eventarc.publishing.v1.Publisher"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "eventarcpublishing_v1_generated_Publisher_PublishEvents_sync",
"title": "eventarcpublishing PublishEvents Sample",
"description": "PublishEvents publish events to a subscriber's channel.",
"file": "PublisherClient/PublishEvents/main.go",
"language": "GO",
"clientMethod": {
"shortName": "PublishEvents",
"fullName": "google.cloud.eventarc.publishing.v1.PublisherClient.PublishEvents",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "publishingpb.PublishEventsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*publishingpb.PublishEventsResponse",
"client": {
"shortName": "PublisherClient",
"fullName": "google.cloud.eventarc.publishing.v1.PublisherClient"
},
"method": {
"shortName": "PublishEvents",
"fullName": "google.cloud.eventarc.publishing.v1.Publisher.PublishEvents",
"service": {
"shortName": "Publisher",
"fullName": "google.cloud.eventarc.publishing.v1.Publisher"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
}
]
}