LocationsBuckets
class LocationsBuckets extends Resource (View source)
The "buckets" collection of methods.
Typical usage is:
$loggingService = new Google\Service\Logging(...);
$buckets = $loggingService->locations_buckets;
Methods
Creates a log bucket asynchronously that can be used to store log entries.After a bucket has been created, the bucket's location cannot be changed. (buckets.createAsync)
Deletes a log bucket.Changes the bucket's lifecycle_state to the DELETE_REQUESTED state. After 7 days, the bucket will be purged and all log entries in the bucket will be permanently deleted. (buckets.delete)
Lists log buckets. (buckets.listLocationsBuckets)
Undeletes a log bucket. A bucket that has been deleted can be undeleted within the grace period of 7 days. (buckets.undelete)
Updates a log bucket asynchronously.If the bucket has a lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket has been created, the bucket's location cannot be changed.
Details
LogBucket
create(string $parent, LogBucket $postBody, array $optParams = [])
Creates a log bucket that can be used to store log entries. After a bucket has been created, the bucket's location cannot be changed. (buckets.create)
Operation
createAsync(string $parent, LogBucket $postBody, array $optParams = [])
Creates a log bucket asynchronously that can be used to store log entries.After a bucket has been created, the bucket's location cannot be changed. (buckets.createAsync)
LoggingEmpty
delete(string $name, array $optParams = [])
Deletes a log bucket.Changes the bucket's lifecycle_state to the DELETE_REQUESTED state. After 7 days, the bucket will be purged and all log entries in the bucket will be permanently deleted. (buckets.delete)
LogBucket
get(string $name, array $optParams = [])
Gets a log bucket. (buckets.get)
ListBucketsResponse
listLocationsBuckets(string $parent, array $optParams = [])
Lists log buckets. (buckets.listLocationsBuckets)
LogBucket
patch(string $name, LogBucket $postBody, array $optParams = [])
Updates a log bucket.If the bucket has a lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket has been created, the bucket's location cannot be changed. (buckets.patch)
LoggingEmpty
undelete(string $name, UndeleteBucketRequest $postBody, array $optParams = [])
Undeletes a log bucket. A bucket that has been deleted can be undeleted within the grace period of 7 days. (buckets.undelete)
Operation
updateAsync(string $name, LogBucket $postBody, array $optParams = [])
Updates a log bucket asynchronously.If the bucket has a lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket has been created, the bucket's location cannot be changed.
(buckets.updateAsync)