blob: 73f70cf9ce08cd6042acef56a3d1808164c59c7a [file] [log] [blame]
{
"clientLibrary": {
"name": "cloud.google.com/go/bigquery/dataexchange/apiv1beta1",
"version": "1.34.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 DataExchange in a given project and location.",
"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": 47,
"type": "FULL"
}
]
},
{
"regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_CreateListing_sync",
"title": "analyticshub CreateListing Sample",
"description": "CreateListing creates a new Listing in a given project and location.",
"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": 47,
"type": "FULL"
}
]
},
{
"regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_DeleteDataExchange_sync",
"title": "analyticshub DeleteDataExchange Sample",
"description": "DeleteDataExchange deletes a single DataExchange.",
"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": 45,
"type": "FULL"
}
]
},
{
"regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_DeleteListing_sync",
"title": "analyticshub DeleteListing Sample",
"description": "DeleteListing deletes a single Listing, as long as there are no subscriptions\nassociated with the source of this 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": 45,
"type": "FULL"
}
]
},
{
"regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_GetDataExchange_sync",
"title": "analyticshub GetDataExchange Sample",
"description": "GetDataExchange gets details of a single DataExchange.",
"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": 47,
"type": "FULL"
}
]
},
{
"regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_GetIamPolicy_sync",
"title": "analyticshub GetIamPolicy Sample",
"description": "GetIamPolicy gets the IAM policy for a dataExchange or a listing.",
"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": 47,
"type": "FULL"
}
]
},
{
"regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_GetListing_sync",
"title": "analyticshub GetListing Sample",
"description": "GetListing gets details of a single 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": 47,
"type": "FULL"
}
]
},
{
"regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_ListDataExchanges_sync",
"title": "analyticshub ListDataExchanges Sample",
"description": "ListDataExchanges lists DataExchanges 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": 54,
"type": "FULL"
}
]
},
{
"regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_ListListings_sync",
"title": "analyticshub ListListings Sample",
"description": "ListListings lists 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": 54,
"type": "FULL"
}
]
},
{
"regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_ListOrgDataExchanges_sync",
"title": "analyticshub ListOrgDataExchanges Sample",
"description": "ListOrgDataExchanges lists DataExchanges from projects in a given organization and location.",
"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": 54,
"type": "FULL"
}
]
},
{
"regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_SetIamPolicy_sync",
"title": "analyticshub SetIamPolicy Sample",
"description": "SetIamPolicy sets the IAM policy for a dataExchange or a listing.",
"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": 47,
"type": "FULL"
}
]
},
{
"regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_SubscribeListing_sync",
"title": "analyticshub SubscribeListing Sample",
"description": "SubscribeListing subscribes to a single Listing.\n\nData Exchange currently supports one type of Listing: a BigQuery dataset.\nUpon subscription to a Listing for a BigQuery dataset, Data Exchange\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": 47,
"type": "FULL"
}
]
},
{
"regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_TestIamPermissions_sync",
"title": "analyticshub TestIamPermissions Sample",
"description": "TestIamPermissions returns the permissions that a caller has on a specified dataExchange or\nlisting.",
"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": 47,
"type": "FULL"
}
]
},
{
"regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_UpdateDataExchange_sync",
"title": "analyticshub UpdateDataExchange Sample",
"description": "UpdateDataExchange updates the parameters of a single DataExchange.",
"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": 47,
"type": "FULL"
}
]
},
{
"regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_UpdateListing_sync",
"title": "analyticshub UpdateListing Sample",
"description": "UpdateListing updates the parameters of a single 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": 47,
"type": "FULL"
}
]
}
]
}