class BillingAccountsLocationsBucketsViews extends Resource (View source)

The "views" collection of methods.

Typical usage is:

 $loggingService = new Google\Service\Logging(...);
 $views = $loggingService->billingAccounts_locations_buckets_views;

Methods

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

Creates a view over log entries in a log bucket. A bucket may contain a maximum of 30 views. (views.create)

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

Deletes a view on a log bucket. If an UNAVAILABLE error is returned, this indicates that system is not in a state where it can delete the view. If this occurs, please try again in a few minutes. (views.delete)

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

Gets a view on a log bucket. (views.get)

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

Lists views on a log bucket. (views.listBillingAccountsLocationsBucketsViews)

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

Updates a view on a log bucket. This method replaces the value of the filter field from the existing view with the corresponding value from the new view.

Details

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

Creates a view over log entries in a log bucket. A bucket may contain a maximum of 30 views. (views.create)

Parameters

string $parent

Required. The bucket in which to create the view "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For example:"projects/my-project/locations/global/buckets/my-bucket"

LogView $postBody
array $optParams

Optional parameters.

Return Value

LogView

Exceptions

Exception

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

Deletes a view on a log bucket. If an UNAVAILABLE error is returned, this indicates that system is not in a state where it can delete the view. If this occurs, please try again in a few minutes. (views.delete)

Parameters

string $name

Required. The full resource name of the view to delete: " projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW _ID]" For example:"projects/my-project/locations/global/buckets/my- bucket/views/my-view"

array $optParams

Optional parameters.

Return Value

LoggingEmpty

Exceptions

Exception

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

Gets a view on a log bucket. (views.get)

Parameters

string $name

Required. The resource name of the policy: "projects/[PRO JECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For example:"projects/my-project/locations/global/buckets/my-bucket/views/my- view"

array $optParams

Optional parameters.

Return Value

LogView

Exceptions

Exception

ListViewsResponse listBillingAccountsLocationsBucketsViews(string $parent, array $optParams = [])

Lists views on a log bucket. (views.listBillingAccountsLocationsBucketsViews)

Parameters

string $parent

Required. The bucket whose views are to be listed: "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"

array $optParams

Optional parameters.

Return Value

ListViewsResponse

Exceptions

Exception

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

Updates a view on a log bucket. This method replaces the value of the filter field from the existing view with the corresponding value from the new view.

If an UNAVAILABLE error is returned, this indicates that system is not in a state where it can update the view. If this occurs, please try again in a few minutes. (views.patch)

Parameters

string $name

Required. The full resource name of the view to update "p rojects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKETID]/views/[VIEW ID]" For example:"projects/my-project/locations/global/buckets/my- bucket/views/my-view"

LogView $postBody
array $optParams

Optional parameters.

Return Value

LogView

Exceptions

Exception