blob: 1bb784f752622dd31596ecb625fd7695466c6130 [file] [log] [blame]
{
"clientLibrary": {
"name": "cloud.google.com/go/bigquery/dataexchange/apiv1beta1",
"version": "1.57.1",
"language": "GO",
"apis": [
{
"id": "google.cloud.bigquery.dataexchange.v1beta1",
"version": "v1beta1"
}
]
},
"snippets": [
{
"regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_CreateDataExchange_sync",
"title": "analyticshub CreateDataExchange Sample",
"description": "CreateDataExchange creates a new data exchange.",
"file": "AnalyticsHubClient/CreateDataExchange/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CreateDataExchange",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubClient.CreateDataExchange",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dataexchangepb.CreateDataExchangeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*dataexchangepb.DataExchange",
"client": {
"shortName": "AnalyticsHubClient",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubClient"
},
"method": {
"shortName": "CreateDataExchange",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.CreateDataExchange",
"service": {
"shortName": "AnalyticsHubService",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_CreateListing_sync",
"title": "analyticshub CreateListing Sample",
"description": "CreateListing creates a new listing.",
"file": "AnalyticsHubClient/CreateListing/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CreateListing",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubClient.CreateListing",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dataexchangepb.CreateListingRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*dataexchangepb.Listing",
"client": {
"shortName": "AnalyticsHubClient",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubClient"
},
"method": {
"shortName": "CreateListing",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.CreateListing",
"service": {
"shortName": "AnalyticsHubService",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_DeleteDataExchange_sync",
"title": "analyticshub DeleteDataExchange Sample",
"description": "DeleteDataExchange deletes an existing data exchange.",
"file": "AnalyticsHubClient/DeleteDataExchange/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeleteDataExchange",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubClient.DeleteDataExchange",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dataexchangepb.DeleteDataExchangeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "AnalyticsHubClient",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubClient"
},
"method": {
"shortName": "DeleteDataExchange",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.DeleteDataExchange",
"service": {
"shortName": "AnalyticsHubService",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 51,
"type": "FULL"
}
]
},
{
"regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_DeleteListing_sync",
"title": "analyticshub DeleteListing Sample",
"description": "DeleteListing deletes a listing.",
"file": "AnalyticsHubClient/DeleteListing/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeleteListing",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubClient.DeleteListing",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dataexchangepb.DeleteListingRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "AnalyticsHubClient",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubClient"
},
"method": {
"shortName": "DeleteListing",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.DeleteListing",
"service": {
"shortName": "AnalyticsHubService",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 51,
"type": "FULL"
}
]
},
{
"regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_GetDataExchange_sync",
"title": "analyticshub GetDataExchange Sample",
"description": "GetDataExchange gets the details of a data exchange.",
"file": "AnalyticsHubClient/GetDataExchange/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetDataExchange",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubClient.GetDataExchange",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dataexchangepb.GetDataExchangeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*dataexchangepb.DataExchange",
"client": {
"shortName": "AnalyticsHubClient",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubClient"
},
"method": {
"shortName": "GetDataExchange",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.GetDataExchange",
"service": {
"shortName": "AnalyticsHubService",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_GetIamPolicy_sync",
"title": "analyticshub GetIamPolicy Sample",
"description": "GetIamPolicy gets the IAM policy.",
"file": "AnalyticsHubClient/GetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubClient.GetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "iampb.GetIamPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*iampb.Policy",
"client": {
"shortName": "AnalyticsHubClient",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubClient"
},
"method": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.GetIamPolicy",
"service": {
"shortName": "AnalyticsHubService",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_GetListing_sync",
"title": "analyticshub GetListing Sample",
"description": "GetListing gets the details of a listing.",
"file": "AnalyticsHubClient/GetListing/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetListing",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubClient.GetListing",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dataexchangepb.GetListingRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*dataexchangepb.Listing",
"client": {
"shortName": "AnalyticsHubClient",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubClient"
},
"method": {
"shortName": "GetListing",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.GetListing",
"service": {
"shortName": "AnalyticsHubService",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_GetLocation_sync",
"title": "analyticshub GetLocation Sample",
"description": "GetLocation gets information about a location.",
"file": "AnalyticsHubClient/GetLocation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetLocation",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubClient.GetLocation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.GetLocationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*locationpb.Location",
"client": {
"shortName": "AnalyticsHubClient",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubClient"
},
"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": "analyticshub_v1beta1_generated_AnalyticsHubService_ListDataExchanges_sync",
"title": "analyticshub ListDataExchanges Sample",
"description": "ListDataExchanges lists all data exchanges in a given project and location.",
"file": "AnalyticsHubClient/ListDataExchanges/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListDataExchanges",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubClient.ListDataExchanges",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dataexchangepb.ListDataExchangesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "DataExchangeIterator",
"client": {
"shortName": "AnalyticsHubClient",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubClient"
},
"method": {
"shortName": "ListDataExchanges",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.ListDataExchanges",
"service": {
"shortName": "AnalyticsHubService",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 60,
"type": "FULL"
}
]
},
{
"regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_ListListings_sync",
"title": "analyticshub ListListings Sample",
"description": "ListListings lists all listings in a given project and location.",
"file": "AnalyticsHubClient/ListListings/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListListings",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubClient.ListListings",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dataexchangepb.ListListingsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ListingIterator",
"client": {
"shortName": "AnalyticsHubClient",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubClient"
},
"method": {
"shortName": "ListListings",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.ListListings",
"service": {
"shortName": "AnalyticsHubService",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 60,
"type": "FULL"
}
]
},
{
"regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_ListLocations_sync",
"title": "analyticshub ListLocations Sample",
"description": "ListLocations lists information about the supported locations for this service.",
"file": "AnalyticsHubClient/ListLocations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListLocations",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubClient.ListLocations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.ListLocationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "LocationIterator",
"client": {
"shortName": "AnalyticsHubClient",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubClient"
},
"method": {
"shortName": "ListLocations",
"fullName": "google.cloud.location.Locations.ListLocations",
"service": {
"shortName": "Locations",
"fullName": "google.cloud.location.Locations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 60,
"type": "FULL"
}
]
},
{
"regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_ListOrgDataExchanges_sync",
"title": "analyticshub ListOrgDataExchanges Sample",
"description": "ListOrgDataExchanges lists all data exchanges from projects in a given organization and\nlocation.",
"file": "AnalyticsHubClient/ListOrgDataExchanges/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListOrgDataExchanges",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubClient.ListOrgDataExchanges",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dataexchangepb.ListOrgDataExchangesRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "DataExchangeIterator",
"client": {
"shortName": "AnalyticsHubClient",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubClient"
},
"method": {
"shortName": "ListOrgDataExchanges",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.ListOrgDataExchanges",
"service": {
"shortName": "AnalyticsHubService",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 60,
"type": "FULL"
}
]
},
{
"regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_SetIamPolicy_sync",
"title": "analyticshub SetIamPolicy Sample",
"description": "SetIamPolicy sets the IAM policy.",
"file": "AnalyticsHubClient/SetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubClient.SetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "iampb.SetIamPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*iampb.Policy",
"client": {
"shortName": "AnalyticsHubClient",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubClient"
},
"method": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.SetIamPolicy",
"service": {
"shortName": "AnalyticsHubService",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_SubscribeListing_sync",
"title": "analyticshub SubscribeListing Sample",
"description": "SubscribeListing subscribes to a listing.\n\nCurrently, with Analytics Hub, you can create listings that\nreference only BigQuery datasets.\nUpon subscription to a listing for a BigQuery dataset, Analytics Hub\ncreates a linked dataset in the subscriber's project.",
"file": "AnalyticsHubClient/SubscribeListing/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SubscribeListing",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubClient.SubscribeListing",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dataexchangepb.SubscribeListingRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*dataexchangepb.SubscribeListingResponse",
"client": {
"shortName": "AnalyticsHubClient",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubClient"
},
"method": {
"shortName": "SubscribeListing",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.SubscribeListing",
"service": {
"shortName": "AnalyticsHubService",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_TestIamPermissions_sync",
"title": "analyticshub TestIamPermissions Sample",
"description": "TestIamPermissions returns the permissions that a caller has.",
"file": "AnalyticsHubClient/TestIamPermissions/main.go",
"language": "GO",
"clientMethod": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubClient.TestIamPermissions",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "iampb.TestIamPermissionsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*iampb.TestIamPermissionsResponse",
"client": {
"shortName": "AnalyticsHubClient",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubClient"
},
"method": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.TestIamPermissions",
"service": {
"shortName": "AnalyticsHubService",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_UpdateDataExchange_sync",
"title": "analyticshub UpdateDataExchange Sample",
"description": "UpdateDataExchange updates an existing data exchange.",
"file": "AnalyticsHubClient/UpdateDataExchange/main.go",
"language": "GO",
"clientMethod": {
"shortName": "UpdateDataExchange",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubClient.UpdateDataExchange",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dataexchangepb.UpdateDataExchangeRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*dataexchangepb.DataExchange",
"client": {
"shortName": "AnalyticsHubClient",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubClient"
},
"method": {
"shortName": "UpdateDataExchange",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.UpdateDataExchange",
"service": {
"shortName": "AnalyticsHubService",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_UpdateListing_sync",
"title": "analyticshub UpdateListing Sample",
"description": "UpdateListing updates an existing listing.",
"file": "AnalyticsHubClient/UpdateListing/main.go",
"language": "GO",
"clientMethod": {
"shortName": "UpdateListing",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubClient.UpdateListing",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "dataexchangepb.UpdateListingRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*dataexchangepb.Listing",
"client": {
"shortName": "AnalyticsHubClient",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubClient"
},
"method": {
"shortName": "UpdateListing",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.UpdateListing",
"service": {
"shortName": "AnalyticsHubService",
"fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
}
]
}