1.9.0 (latest) 1.8.0 1.7.1 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.13.0 0.12.2 0.11.0 0.10.1 0.9.0 0.8.1 0.7.0 0.6.0 0.5.6 Reference documentation and code samples for the Cloud Logging V2 API class Google::Cloud::Logging::V2::CreateBucketRequest.

The parameters to `CreateBucket`.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #bucket

    def bucket() -> ::Google::Cloud::Logging::V2::LogBucket

**Returns**

- ([::Google::Cloud::Logging::V2::LogBucket](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-logging-v2/latest/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.

### #bucket=

    def bucket=(value) -> ::Google::Cloud::Logging::V2::LogBucket

**Parameter**

- **value** ([::Google::Cloud::Logging::V2::LogBucket](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-logging-v2/latest/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.
**Returns**

- ([::Google::Cloud::Logging::V2::LogBucket](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-logging-v2/latest/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.

### #bucket_id

    def bucket_id() -> ::String

**Returns**

- (::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_id=

    def bucket_id=(value) -> ::String

**Parameter**

- **value** (::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.
**Returns**

- (::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.

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- Required. The resource in which to create the log bucket:

      "projects/[PROJECT_ID]/locations/[LOCATION_ID]"

  For example:

  `"projects/my-project/locations/global"`

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The resource in which to create the log bucket:


      "projects/[PROJECT_ID]/locations/[LOCATION_ID]"

  For example:

  `"projects/my-project/locations/global"`
**Returns**

- (::String) --- Required. The resource in which to create the log bucket:

      "projects/[PROJECT_ID]/locations/[LOCATION_ID]"

  For example:

  `"projects/my-project/locations/global"`