class ProjectsLocationsBucketsLinks extends Resource (View source)

The "links" collection of methods.

Typical usage is:

 $loggingService = new Google\Service\Logging(...);
 $links = $loggingService->projects_locations_buckets_links;

Methods

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

Asynchronously creates a linked dataset in BigQuery which makes it possible to use BigQuery to read the logs stored in the log bucket. A log bucket may currently only contain one link. (links.create)

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

Deletes a link. This will also delete the corresponding BigQuery linked dataset. (links.delete)

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

Gets a link. (links.get)

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

Lists links. (links.listProjectsLocationsBucketsLinks)

Details

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

Asynchronously creates a linked dataset in BigQuery which makes it possible to use BigQuery to read the logs stored in the log bucket. A log bucket may currently only contain one link. (links.create)

Parameters

string $parent

Required. The full resource name of the bucket to create a link for. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET _ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"

Link $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Deletes a link. This will also delete the corresponding BigQuery linked dataset. (links.delete)

Parameters

string $name

Required. The full resource name of the link to delete. " projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK _ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKE T_ID]/links/[LINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCAT ION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "folders/[FOLDER_ID]/locations/[ LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Gets a link. (links.get)

Parameters

string $name

Required. The resource name of the link: "projects/[PROJE CT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "organiza tions/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LI NK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets /[BUCKET_ID]/links/[LINK_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/bu ckets/[BUCKET_ID]/links/[LINK_ID]"

array $optParams

Optional parameters.

Return Value

Link

Exceptions

Exception

Lists links. (links.listProjectsLocationsBucketsLinks)

Parameters

string $parent

Required. The parent resource whose links are to be listed: "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET _ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"

array $optParams

Optional parameters.

Return Value

ListLinksResponse

Exceptions

Exception