1.8.0 (latest) 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::UpdateBucketRequest.

The parameters to `UpdateBucket`.

## 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 updated bucket.

### #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 updated bucket.
**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 updated bucket.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Required. The full resource name of the bucket to update.

      "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"

  For example:

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

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The full resource name of the bucket to update.


      "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"

  For example:

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

- (::String) --- Required. The full resource name of the bucket to update.

      "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"

  For example:

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

### #update_mask

    def update_mask() -> ::Google::Protobuf::FieldMask

**Returns**

- ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Protobuf-FieldMask)) --- Required. Field mask that specifies the fields in `bucket` that need an update. A bucket field will be overwritten if, and only if, it is in the update mask. `name` and output only fields cannot be updated.


  For a detailed `FieldMask` definition, see:
  https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask

  For example: `updateMask=retention_days`

### #update_mask=

    def update_mask=(value) -> ::Google::Protobuf::FieldMask

**Parameter**

- **value** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Protobuf-FieldMask)) --- Required. Field mask that specifies the fields in `bucket` that need an update. A bucket field will be overwritten if, and only if, it is in the update mask. `name` and output only fields cannot be updated.


  For a detailed `FieldMask` definition, see:
  https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask

  For example: `updateMask=retention_days`
**Returns**

- ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Protobuf-FieldMask)) --- Required. Field mask that specifies the fields in `bucket` that need an update. A bucket field will be overwritten if, and only if, it is in the update mask. `name` and output only fields cannot be updated.


  For a detailed `FieldMask` definition, see:
  https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask

  For example: `updateMask=retention_days`