| { |
| "clientLibrary": { |
| "name": "cloud.google.com/go/eventarc/apiv1", |
| "version": "1.13.6", |
| "language": "GO", |
| "apis": [ |
| { |
| "id": "google.cloud.eventarc.v1", |
| "version": "v1" |
| } |
| ] |
| }, |
| "snippets": [ |
| { |
| "regionTag": "eventarc_v1_generated_Eventarc_CancelOperation_sync", |
| "title": "eventarc CancelOperation Sample", |
| "description": "CancelOperation is a utility method from google.longrunning.Operations.", |
| "file": "Client/CancelOperation/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "CancelOperation", |
| "fullName": "google.cloud.eventarc.v1.Client.CancelOperation", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "longrunningpb.CancelOperationRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.eventarc.v1.Client" |
| }, |
| "method": { |
| "shortName": "CancelOperation", |
| "fullName": "google.longrunning.Operations.CancelOperation", |
| "service": { |
| "shortName": "Operations", |
| "fullName": "google.longrunning.Operations" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 51, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "eventarc_v1_generated_Eventarc_CreateChannel_sync", |
| "title": "eventarc CreateChannel Sample", |
| "description": "CreateChannel create a new channel in a particular project and location.", |
| "file": "Client/CreateChannel/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "CreateChannel", |
| "fullName": "google.cloud.eventarc.v1.Client.CreateChannel", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "eventarcpb.CreateChannelRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "CreateChannelOperation", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.eventarc.v1.Client" |
| }, |
| "method": { |
| "shortName": "CreateChannel", |
| "fullName": "google.cloud.eventarc.v1.Eventarc.CreateChannel", |
| "service": { |
| "shortName": "Eventarc", |
| "fullName": "google.cloud.eventarc.v1.Eventarc" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 58, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "eventarc_v1_generated_Eventarc_CreateChannelConnection_sync", |
| "title": "eventarc CreateChannelConnection Sample", |
| "description": "CreateChannelConnection create a new ChannelConnection in a particular project and location.", |
| "file": "Client/CreateChannelConnection/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "CreateChannelConnection", |
| "fullName": "google.cloud.eventarc.v1.Client.CreateChannelConnection", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "eventarcpb.CreateChannelConnectionRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "CreateChannelConnectionOperation", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.eventarc.v1.Client" |
| }, |
| "method": { |
| "shortName": "CreateChannelConnection", |
| "fullName": "google.cloud.eventarc.v1.Eventarc.CreateChannelConnection", |
| "service": { |
| "shortName": "Eventarc", |
| "fullName": "google.cloud.eventarc.v1.Eventarc" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 58, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "eventarc_v1_generated_Eventarc_CreateTrigger_sync", |
| "title": "eventarc CreateTrigger Sample", |
| "description": "CreateTrigger create a new trigger in a particular project and location.", |
| "file": "Client/CreateTrigger/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "CreateTrigger", |
| "fullName": "google.cloud.eventarc.v1.Client.CreateTrigger", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "eventarcpb.CreateTriggerRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "CreateTriggerOperation", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.eventarc.v1.Client" |
| }, |
| "method": { |
| "shortName": "CreateTrigger", |
| "fullName": "google.cloud.eventarc.v1.Eventarc.CreateTrigger", |
| "service": { |
| "shortName": "Eventarc", |
| "fullName": "google.cloud.eventarc.v1.Eventarc" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 58, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "eventarc_v1_generated_Eventarc_DeleteChannel_sync", |
| "title": "eventarc DeleteChannel Sample", |
| "description": "DeleteChannel delete a single channel.", |
| "file": "Client/DeleteChannel/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "DeleteChannel", |
| "fullName": "google.cloud.eventarc.v1.Client.DeleteChannel", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "eventarcpb.DeleteChannelRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "DeleteChannelOperation", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.eventarc.v1.Client" |
| }, |
| "method": { |
| "shortName": "DeleteChannel", |
| "fullName": "google.cloud.eventarc.v1.Eventarc.DeleteChannel", |
| "service": { |
| "shortName": "Eventarc", |
| "fullName": "google.cloud.eventarc.v1.Eventarc" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 58, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "eventarc_v1_generated_Eventarc_DeleteChannelConnection_sync", |
| "title": "eventarc DeleteChannelConnection Sample", |
| "description": "DeleteChannelConnection delete a single ChannelConnection.", |
| "file": "Client/DeleteChannelConnection/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "DeleteChannelConnection", |
| "fullName": "google.cloud.eventarc.v1.Client.DeleteChannelConnection", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "eventarcpb.DeleteChannelConnectionRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "DeleteChannelConnectionOperation", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.eventarc.v1.Client" |
| }, |
| "method": { |
| "shortName": "DeleteChannelConnection", |
| "fullName": "google.cloud.eventarc.v1.Eventarc.DeleteChannelConnection", |
| "service": { |
| "shortName": "Eventarc", |
| "fullName": "google.cloud.eventarc.v1.Eventarc" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 58, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "eventarc_v1_generated_Eventarc_DeleteOperation_sync", |
| "title": "eventarc DeleteOperation Sample", |
| "description": "DeleteOperation is a utility method from google.longrunning.Operations.", |
| "file": "Client/DeleteOperation/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "DeleteOperation", |
| "fullName": "google.cloud.eventarc.v1.Client.DeleteOperation", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "longrunningpb.DeleteOperationRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.eventarc.v1.Client" |
| }, |
| "method": { |
| "shortName": "DeleteOperation", |
| "fullName": "google.longrunning.Operations.DeleteOperation", |
| "service": { |
| "shortName": "Operations", |
| "fullName": "google.longrunning.Operations" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 51, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "eventarc_v1_generated_Eventarc_DeleteTrigger_sync", |
| "title": "eventarc DeleteTrigger Sample", |
| "description": "DeleteTrigger delete a single trigger.", |
| "file": "Client/DeleteTrigger/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "DeleteTrigger", |
| "fullName": "google.cloud.eventarc.v1.Client.DeleteTrigger", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "eventarcpb.DeleteTriggerRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "DeleteTriggerOperation", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.eventarc.v1.Client" |
| }, |
| "method": { |
| "shortName": "DeleteTrigger", |
| "fullName": "google.cloud.eventarc.v1.Eventarc.DeleteTrigger", |
| "service": { |
| "shortName": "Eventarc", |
| "fullName": "google.cloud.eventarc.v1.Eventarc" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 58, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "eventarc_v1_generated_Eventarc_GetChannel_sync", |
| "title": "eventarc GetChannel Sample", |
| "description": "GetChannel get a single Channel.", |
| "file": "Client/GetChannel/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "GetChannel", |
| "fullName": "google.cloud.eventarc.v1.Client.GetChannel", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "eventarcpb.GetChannelRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*eventarcpb.Channel", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.eventarc.v1.Client" |
| }, |
| "method": { |
| "shortName": "GetChannel", |
| "fullName": "google.cloud.eventarc.v1.Eventarc.GetChannel", |
| "service": { |
| "shortName": "Eventarc", |
| "fullName": "google.cloud.eventarc.v1.Eventarc" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "eventarc_v1_generated_Eventarc_GetChannelConnection_sync", |
| "title": "eventarc GetChannelConnection Sample", |
| "description": "GetChannelConnection get a single ChannelConnection.", |
| "file": "Client/GetChannelConnection/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "GetChannelConnection", |
| "fullName": "google.cloud.eventarc.v1.Client.GetChannelConnection", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "eventarcpb.GetChannelConnectionRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*eventarcpb.ChannelConnection", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.eventarc.v1.Client" |
| }, |
| "method": { |
| "shortName": "GetChannelConnection", |
| "fullName": "google.cloud.eventarc.v1.Eventarc.GetChannelConnection", |
| "service": { |
| "shortName": "Eventarc", |
| "fullName": "google.cloud.eventarc.v1.Eventarc" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "eventarc_v1_generated_Eventarc_GetGoogleChannelConfig_sync", |
| "title": "eventarc GetGoogleChannelConfig Sample", |
| "description": "GetGoogleChannelConfig get a GoogleChannelConfig", |
| "file": "Client/GetGoogleChannelConfig/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "GetGoogleChannelConfig", |
| "fullName": "google.cloud.eventarc.v1.Client.GetGoogleChannelConfig", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "eventarcpb.GetGoogleChannelConfigRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*eventarcpb.GoogleChannelConfig", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.eventarc.v1.Client" |
| }, |
| "method": { |
| "shortName": "GetGoogleChannelConfig", |
| "fullName": "google.cloud.eventarc.v1.Eventarc.GetGoogleChannelConfig", |
| "service": { |
| "shortName": "Eventarc", |
| "fullName": "google.cloud.eventarc.v1.Eventarc" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "eventarc_v1_generated_Eventarc_GetIamPolicy_sync", |
| "title": "eventarc GetIamPolicy Sample", |
| "description": "GetIamPolicy gets the access control policy for a resource. Returns an empty policy\nif the resource exists and does not have a policy set.", |
| "file": "Client/GetIamPolicy/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "GetIamPolicy", |
| "fullName": "google.cloud.eventarc.v1.Client.GetIamPolicy", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "iampb.GetIamPolicyRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*iampb.Policy", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.eventarc.v1.Client" |
| }, |
| "method": { |
| "shortName": "GetIamPolicy", |
| "fullName": "google.iam.v1.IAMPolicy.GetIamPolicy", |
| "service": { |
| "shortName": "IAMPolicy", |
| "fullName": "google.iam.v1.IAMPolicy" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "eventarc_v1_generated_Eventarc_GetLocation_sync", |
| "title": "eventarc GetLocation Sample", |
| "description": "GetLocation gets information about a location.", |
| "file": "Client/GetLocation/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "GetLocation", |
| "fullName": "google.cloud.eventarc.v1.Client.GetLocation", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "locationpb.GetLocationRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*locationpb.Location", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.eventarc.v1.Client" |
| }, |
| "method": { |
| "shortName": "GetLocation", |
| "fullName": "google.cloud.location.Locations.GetLocation", |
| "service": { |
| "shortName": "Locations", |
| "fullName": "google.cloud.location.Locations" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "eventarc_v1_generated_Eventarc_GetOperation_sync", |
| "title": "eventarc GetOperation Sample", |
| "description": "GetOperation is a utility method from google.longrunning.Operations.", |
| "file": "Client/GetOperation/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "GetOperation", |
| "fullName": "google.cloud.eventarc.v1.Client.GetOperation", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "longrunningpb.GetOperationRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*longrunningpb.Operation", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.eventarc.v1.Client" |
| }, |
| "method": { |
| "shortName": "GetOperation", |
| "fullName": "google.longrunning.Operations.GetOperation", |
| "service": { |
| "shortName": "Operations", |
| "fullName": "google.longrunning.Operations" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "eventarc_v1_generated_Eventarc_GetProvider_sync", |
| "title": "eventarc GetProvider Sample", |
| "description": "GetProvider get a single Provider.", |
| "file": "Client/GetProvider/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "GetProvider", |
| "fullName": "google.cloud.eventarc.v1.Client.GetProvider", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "eventarcpb.GetProviderRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*eventarcpb.Provider", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.eventarc.v1.Client" |
| }, |
| "method": { |
| "shortName": "GetProvider", |
| "fullName": "google.cloud.eventarc.v1.Eventarc.GetProvider", |
| "service": { |
| "shortName": "Eventarc", |
| "fullName": "google.cloud.eventarc.v1.Eventarc" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "eventarc_v1_generated_Eventarc_GetTrigger_sync", |
| "title": "eventarc GetTrigger Sample", |
| "description": "GetTrigger get a single trigger.", |
| "file": "Client/GetTrigger/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "GetTrigger", |
| "fullName": "google.cloud.eventarc.v1.Client.GetTrigger", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "eventarcpb.GetTriggerRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*eventarcpb.Trigger", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.eventarc.v1.Client" |
| }, |
| "method": { |
| "shortName": "GetTrigger", |
| "fullName": "google.cloud.eventarc.v1.Eventarc.GetTrigger", |
| "service": { |
| "shortName": "Eventarc", |
| "fullName": "google.cloud.eventarc.v1.Eventarc" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "eventarc_v1_generated_Eventarc_ListChannelConnections_sync", |
| "title": "eventarc ListChannelConnections Sample", |
| "description": "ListChannelConnections list channel connections.", |
| "file": "Client/ListChannelConnections/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "ListChannelConnections", |
| "fullName": "google.cloud.eventarc.v1.Client.ListChannelConnections", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "eventarcpb.ListChannelConnectionsRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "ChannelConnectionIterator", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.eventarc.v1.Client" |
| }, |
| "method": { |
| "shortName": "ListChannelConnections", |
| "fullName": "google.cloud.eventarc.v1.Eventarc.ListChannelConnections", |
| "service": { |
| "shortName": "Eventarc", |
| "fullName": "google.cloud.eventarc.v1.Eventarc" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 66, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "eventarc_v1_generated_Eventarc_ListChannels_sync", |
| "title": "eventarc ListChannels Sample", |
| "description": "ListChannels list channels.", |
| "file": "Client/ListChannels/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "ListChannels", |
| "fullName": "google.cloud.eventarc.v1.Client.ListChannels", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "eventarcpb.ListChannelsRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "ChannelIterator", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.eventarc.v1.Client" |
| }, |
| "method": { |
| "shortName": "ListChannels", |
| "fullName": "google.cloud.eventarc.v1.Eventarc.ListChannels", |
| "service": { |
| "shortName": "Eventarc", |
| "fullName": "google.cloud.eventarc.v1.Eventarc" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 66, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "eventarc_v1_generated_Eventarc_ListLocations_sync", |
| "title": "eventarc ListLocations Sample", |
| "description": "ListLocations lists information about the supported locations for this service.", |
| "file": "Client/ListLocations/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "ListLocations", |
| "fullName": "google.cloud.eventarc.v1.Client.ListLocations", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "locationpb.ListLocationsRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "LocationIterator", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.eventarc.v1.Client" |
| }, |
| "method": { |
| "shortName": "ListLocations", |
| "fullName": "google.cloud.location.Locations.ListLocations", |
| "service": { |
| "shortName": "Locations", |
| "fullName": "google.cloud.location.Locations" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 66, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "eventarc_v1_generated_Eventarc_ListOperations_sync", |
| "title": "eventarc ListOperations Sample", |
| "description": "ListOperations is a utility method from google.longrunning.Operations.", |
| "file": "Client/ListOperations/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "ListOperations", |
| "fullName": "google.cloud.eventarc.v1.Client.ListOperations", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "longrunningpb.ListOperationsRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "OperationIterator", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.eventarc.v1.Client" |
| }, |
| "method": { |
| "shortName": "ListOperations", |
| "fullName": "google.longrunning.Operations.ListOperations", |
| "service": { |
| "shortName": "Operations", |
| "fullName": "google.longrunning.Operations" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 66, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "eventarc_v1_generated_Eventarc_ListProviders_sync", |
| "title": "eventarc ListProviders Sample", |
| "description": "ListProviders list providers.", |
| "file": "Client/ListProviders/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "ListProviders", |
| "fullName": "google.cloud.eventarc.v1.Client.ListProviders", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "eventarcpb.ListProvidersRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "ProviderIterator", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.eventarc.v1.Client" |
| }, |
| "method": { |
| "shortName": "ListProviders", |
| "fullName": "google.cloud.eventarc.v1.Eventarc.ListProviders", |
| "service": { |
| "shortName": "Eventarc", |
| "fullName": "google.cloud.eventarc.v1.Eventarc" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 66, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "eventarc_v1_generated_Eventarc_ListTriggers_sync", |
| "title": "eventarc ListTriggers Sample", |
| "description": "ListTriggers list triggers.", |
| "file": "Client/ListTriggers/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "ListTriggers", |
| "fullName": "google.cloud.eventarc.v1.Client.ListTriggers", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "eventarcpb.ListTriggersRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "TriggerIterator", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.eventarc.v1.Client" |
| }, |
| "method": { |
| "shortName": "ListTriggers", |
| "fullName": "google.cloud.eventarc.v1.Eventarc.ListTriggers", |
| "service": { |
| "shortName": "Eventarc", |
| "fullName": "google.cloud.eventarc.v1.Eventarc" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 66, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "eventarc_v1_generated_Eventarc_SetIamPolicy_sync", |
| "title": "eventarc SetIamPolicy Sample", |
| "description": "SetIamPolicy sets the access control policy on the specified resource. Replaces\nany existing policy.\n\nCan return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`\nerrors.", |
| "file": "Client/SetIamPolicy/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "SetIamPolicy", |
| "fullName": "google.cloud.eventarc.v1.Client.SetIamPolicy", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "iampb.SetIamPolicyRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*iampb.Policy", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.eventarc.v1.Client" |
| }, |
| "method": { |
| "shortName": "SetIamPolicy", |
| "fullName": "google.iam.v1.IAMPolicy.SetIamPolicy", |
| "service": { |
| "shortName": "IAMPolicy", |
| "fullName": "google.iam.v1.IAMPolicy" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "eventarc_v1_generated_Eventarc_TestIamPermissions_sync", |
| "title": "eventarc TestIamPermissions Sample", |
| "description": "TestIamPermissions returns permissions that a caller has on the specified resource. If the\nresource does not exist, this will return an empty set of\npermissions, not a `NOT_FOUND` error.\n\nNote: This operation is designed to be used for building\npermission-aware UIs and command-line tools, not for authorization\nchecking. This operation may \"fail open\" without warning.", |
| "file": "Client/TestIamPermissions/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "TestIamPermissions", |
| "fullName": "google.cloud.eventarc.v1.Client.TestIamPermissions", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "iampb.TestIamPermissionsRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*iampb.TestIamPermissionsResponse", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.eventarc.v1.Client" |
| }, |
| "method": { |
| "shortName": "TestIamPermissions", |
| "fullName": "google.iam.v1.IAMPolicy.TestIamPermissions", |
| "service": { |
| "shortName": "IAMPolicy", |
| "fullName": "google.iam.v1.IAMPolicy" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "eventarc_v1_generated_Eventarc_UpdateChannel_sync", |
| "title": "eventarc UpdateChannel Sample", |
| "description": "UpdateChannel update a single channel.", |
| "file": "Client/UpdateChannel/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "UpdateChannel", |
| "fullName": "google.cloud.eventarc.v1.Client.UpdateChannel", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "eventarcpb.UpdateChannelRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "UpdateChannelOperation", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.eventarc.v1.Client" |
| }, |
| "method": { |
| "shortName": "UpdateChannel", |
| "fullName": "google.cloud.eventarc.v1.Eventarc.UpdateChannel", |
| "service": { |
| "shortName": "Eventarc", |
| "fullName": "google.cloud.eventarc.v1.Eventarc" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 58, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "eventarc_v1_generated_Eventarc_UpdateGoogleChannelConfig_sync", |
| "title": "eventarc UpdateGoogleChannelConfig Sample", |
| "description": "UpdateGoogleChannelConfig update a single GoogleChannelConfig", |
| "file": "Client/UpdateGoogleChannelConfig/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "UpdateGoogleChannelConfig", |
| "fullName": "google.cloud.eventarc.v1.Client.UpdateGoogleChannelConfig", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "eventarcpb.UpdateGoogleChannelConfigRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "*eventarcpb.GoogleChannelConfig", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.eventarc.v1.Client" |
| }, |
| "method": { |
| "shortName": "UpdateGoogleChannelConfig", |
| "fullName": "google.cloud.eventarc.v1.Eventarc.UpdateGoogleChannelConfig", |
| "service": { |
| "shortName": "Eventarc", |
| "fullName": "google.cloud.eventarc.v1.Eventarc" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 53, |
| "type": "FULL" |
| } |
| ] |
| }, |
| { |
| "regionTag": "eventarc_v1_generated_Eventarc_UpdateTrigger_sync", |
| "title": "eventarc UpdateTrigger Sample", |
| "description": "UpdateTrigger update a single trigger.", |
| "file": "Client/UpdateTrigger/main.go", |
| "language": "GO", |
| "clientMethod": { |
| "shortName": "UpdateTrigger", |
| "fullName": "google.cloud.eventarc.v1.Client.UpdateTrigger", |
| "parameters": [ |
| { |
| "type": "context.Context", |
| "name": "ctx" |
| }, |
| { |
| "type": "eventarcpb.UpdateTriggerRequest", |
| "name": "req" |
| }, |
| { |
| "type": "...gax.CallOption", |
| "name": "opts" |
| } |
| ], |
| "resultType": "UpdateTriggerOperation", |
| "client": { |
| "shortName": "Client", |
| "fullName": "google.cloud.eventarc.v1.Client" |
| }, |
| "method": { |
| "shortName": "UpdateTrigger", |
| "fullName": "google.cloud.eventarc.v1.Eventarc.UpdateTrigger", |
| "service": { |
| "shortName": "Eventarc", |
| "fullName": "google.cloud.eventarc.v1.Eventarc" |
| } |
| } |
| }, |
| "origin": "API_DEFINITION", |
| "segments": [ |
| { |
| "start": 18, |
| "end": 58, |
| "type": "FULL" |
| } |
| ] |
| } |
| ] |
| } |