class ProjectsLocationsDataExchangesListings extends Resource (View source)

The "listings" collection of methods.

Typical usage is:

 $analyticshubService = new Google\Service\AnalyticsHub(...);
 $listings = $analyticshubService->projects_locations_dataExchanges_listings;

Methods

create(string $parent, Listing $postBody, array $optParams = [])

Creates a new listing. (listings.create)

delete(string $name, array $optParams = [])

Deletes a listing. (listings.delete)

get(string $name, array $optParams = [])

Gets the details of a listing. (listings.get)

getIamPolicy(string $resource, GetIamPolicyRequest $postBody, array $optParams = [])

Gets the IAM policy. (listings.getIamPolicy)

listProjectsLocationsDataExchangesListings(string $parent, array $optParams = [])

Lists all listings in a given project and location.

listSubscriptions(string $resource, array $optParams = [])

Lists all subscriptions on a given Data Exchange or Listing.

patch(string $name, Listing $postBody, array $optParams = [])

Updates an existing listing. (listings.patch)

setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])

Sets the IAM policy. (listings.setIamPolicy)

subscribe(string $name, SubscribeListingRequest $postBody, array $optParams = [])

Subscribes to a listing. Currently, with Analytics Hub, you can create listings that reference only BigQuery datasets. Upon subscription to a listing for a BigQuery dataset, Analytics Hub creates a linked dataset in the subscriber's project. (listings.subscribe)

testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])

Returns the permissions that a caller has. (listings.testIamPermissions)

Details

Listing create(string $parent, Listing $postBody, array $optParams = [])

Creates a new listing. (listings.create)

Parameters

string $parent

Required. The parent resource path of the listing. e.g. projects/myproject/locations/US/dataExchanges/123.

Listing $postBody
array $optParams

Optional parameters.

Return Value

Listing

Exceptions

Exception

AnalyticshubEmpty delete(string $name, array $optParams = [])

Deletes a listing. (listings.delete)

Parameters

string $name

Required. Resource name of the listing to delete. e.g. projects/myproject/locations/US/dataExchanges/123/listings/456.

array $optParams

Optional parameters.

Return Value

AnalyticshubEmpty

Exceptions

Exception

Listing get(string $name, array $optParams = [])

Gets the details of a listing. (listings.get)

Parameters

string $name

Required. The resource name of the listing. e.g. projects/myproject/locations/US/dataExchanges/123/listings/456.

array $optParams

Optional parameters.

Return Value

Listing

Exceptions

Exception

Policy getIamPolicy(string $resource, GetIamPolicyRequest $postBody, array $optParams = [])

Gets the IAM policy. (listings.getIamPolicy)

Parameters

string $resource

REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.

GetIamPolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

ListListingsResponse listProjectsLocationsDataExchangesListings(string $parent, array $optParams = [])

Lists all listings in a given project and location.

(listings.listProjectsLocationsDataExchangesListings)

Parameters

string $parent

Required. The parent resource path of the listing. e.g. projects/myproject/locations/US/dataExchanges/123.

array $optParams

Optional parameters.

Return Value

ListListingsResponse

Exceptions

Exception

ListSharedResourceSubscriptionsResponse listSubscriptions(string $resource, array $optParams = [])

Lists all subscriptions on a given Data Exchange or Listing.

(listings.listSubscriptions)

Parameters

string $resource

Required. Resource name of the requested target. This resource may be either a Listing or a DataExchange. e.g. projects/123/locations/US/dataExchanges/456 OR e.g. projects/123/locations/US/dataExchanges/456/listings/789

array $optParams

Optional parameters.

Return Value

ListSharedResourceSubscriptionsResponse

Exceptions

Exception

Listing patch(string $name, Listing $postBody, array $optParams = [])

Updates an existing listing. (listings.patch)

Parameters

string $name

Output only. The resource name of the listing. e.g. projects/myproject/locations/US/dataExchanges/123/listings/456

Listing $postBody
array $optParams

Optional parameters.

Return Value

Listing

Exceptions

Exception

Policy setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])

Sets the IAM policy. (listings.setIamPolicy)

Parameters

string $resource

REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.

SetIamPolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

SubscribeListingResponse subscribe(string $name, SubscribeListingRequest $postBody, array $optParams = [])

Subscribes to a listing. Currently, with Analytics Hub, you can create listings that reference only BigQuery datasets. Upon subscription to a listing for a BigQuery dataset, Analytics Hub creates a linked dataset in the subscriber's project. (listings.subscribe)

Parameters

string $name

Required. Resource name of the listing that you want to subscribe to. e.g. projects/myproject/locations/US/dataExchanges/123/listings/456.

SubscribeListingRequest $postBody
array $optParams

Optional parameters.

Return Value

SubscribeListingResponse

Exceptions

Exception

TestIamPermissionsResponse testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])

Returns the permissions that a caller has. (listings.testIamPermissions)

Parameters

string $resource

REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.

TestIamPermissionsRequest $postBody
array $optParams

Optional parameters.

Return Value

TestIamPermissionsResponse

Exceptions

Exception