Stackdriver Logging V2 Client - Class CreateBucketRequest (1.27.1)

Reference documentation and code samples for the Stackdriver Logging V2 Client class CreateBucketRequest.

The parameters to CreateBucket.

Generated from protobuf message google.logging.v2.CreateBucketRequest

Namespace

Google \ Cloud \ Logging \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

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

↳ bucket_id string

Required. A client-assigned identifier such as "my-bucket". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.

↳ bucket Google\Cloud\Logging\V2\LogBucket

Required. The new bucket. The region specified in the new bucket must be compliant with any Location Restriction Org Policy. The name field in the bucket is ignored.

getParent

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

Returns
TypeDescription
string

setParent

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getBucketId

Required. A client-assigned identifier such as "my-bucket". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.

Returns
TypeDescription
string

setBucketId

Required. A client-assigned identifier such as "my-bucket". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getBucket

Required. The new bucket. The region specified in the new bucket must be compliant with any Location Restriction Org Policy. The name field in the bucket is ignored.

Returns
TypeDescription
Google\Cloud\Logging\V2\LogBucket|null

hasBucket

clearBucket

setBucket

Required. The new bucket. The region specified in the new bucket must be compliant with any Location Restriction Org Policy. The name field in the bucket is ignored.

Parameter
NameDescription
var Google\Cloud\Logging\V2\LogBucket
Returns
TypeDescription
$this