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 \ V2Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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: |
↳ bucket_id |
string
Required. A client-assigned identifier such as |
↳ bucket |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
LogBucket
|
Returns | |
---|---|
Type | Description |
$this |