class ProjectsLocationsDataExchanges extends Resource (View source)

The "dataExchanges" collection of methods.

Typical usage is:

 $analyticshubService = new Google\Service\AnalyticsHub(...);
 $dataExchanges = $analyticshubService->projects_locations_dataExchanges;

Methods

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

Creates a new data exchange. (dataExchanges.create)

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

Deletes an existing data exchange. (dataExchanges.delete)

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

Gets the details of a data exchange. (dataExchanges.get)

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

Gets the IAM policy. (dataExchanges.getIamPolicy)

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

Lists all data exchanges in a given project and location.

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

Lists all subscriptions on a given Data Exchange or Listing.

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

Updates an existing data exchange. (dataExchanges.patch)

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

Sets the IAM policy. (dataExchanges.setIamPolicy)

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

Creates a Subscription to a Data Clean Room. This is a long-running operation as it will create one or more linked datasets. (dataExchanges.subscribe)

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

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

Details

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

Creates a new data exchange. (dataExchanges.create)

Parameters

string $parent

Required. The parent resource path of the data exchange. e.g. projects/myproject/locations/US.

DataExchange $postBody
array $optParams

Optional parameters.

Return Value

DataExchange

Exceptions

Exception

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

Deletes an existing data exchange. (dataExchanges.delete)

Parameters

string $name

Required. The full name of the data exchange resource that you want to delete. For example, projects/myproject/locations/US/dataExchanges/123.

array $optParams

Optional parameters.

Return Value

AnalyticshubEmpty

Exceptions

Exception

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

Gets the details of a data exchange. (dataExchanges.get)

Parameters

string $name

Required. The resource name of the data exchange. e.g. projects/myproject/locations/US/dataExchanges/123.

array $optParams

Optional parameters.

Return Value

DataExchange

Exceptions

Exception

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

Gets the IAM policy. (dataExchanges.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

ListDataExchangesResponse listProjectsLocationsDataExchanges(string $parent, array $optParams = [])

Lists all data exchanges in a given project and location.

(dataExchanges.listProjectsLocationsDataExchanges)

Parameters

string $parent

Required. The parent resource path of the data exchanges. e.g. projects/myproject/locations/US.

array $optParams

Optional parameters.

Return Value

ListDataExchangesResponse

Exceptions

Exception

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

Lists all subscriptions on a given Data Exchange or Listing.

(dataExchanges.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

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

Updates an existing data exchange. (dataExchanges.patch)

Parameters

string $name

Output only. The resource name of the data exchange. e.g. projects/myproject/locations/US/dataExchanges/123.

DataExchange $postBody
array $optParams

Optional parameters.

Return Value

DataExchange

Exceptions

Exception

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

Sets the IAM policy. (dataExchanges.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

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

Creates a Subscription to a Data Clean Room. This is a long-running operation as it will create one or more linked datasets. (dataExchanges.subscribe)

Parameters

string $name

Required. Resource name of the Data Exchange. e.g. projects/publisherproject/locations/US/dataExchanges/123

SubscribeDataExchangeRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Returns the permissions that a caller has. (dataExchanges.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