Class: Google::Apis::LoggingV2::UpdateBucketRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/logging_v2/classes.rb,
lib/google/apis/logging_v2/representations.rb,
lib/google/apis/logging_v2/representations.rb

Overview

The parameters to UpdateBucket.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpdateBucketRequest

Returns a new instance of UpdateBucketRequest.



4075
4076
4077
# File 'lib/google/apis/logging_v2/classes.rb', line 4075

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#bucketGoogle::Apis::LoggingV2::LogBucket

Describes a repository in which log entries are stored. Corresponds to the JSON property bucket



4053
4054
4055
# File 'lib/google/apis/logging_v2/classes.rb', line 4053

def bucket
  @bucket
end

#nameString

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" Corresponds to the JSON property name

Returns:

  • (String)


4063
4064
4065
# File 'lib/google/apis/logging_v2/classes.rb', line 4063

def name
  @name
end

#update_maskString

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.FieldMaskFor example: updateMask= retention_days Corresponds to the JSON property updateMask

Returns:

  • (String)


4073
4074
4075
# File 'lib/google/apis/logging_v2/classes.rb', line 4073

def update_mask
  @update_mask
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4080
4081
4082
4083
4084
# File 'lib/google/apis/logging_v2/classes.rb', line 4080

def update!(**args)
  @bucket = args[:bucket] if args.key?(:bucket)
  @name = args[:name] if args.key?(:name)
  @update_mask = args[:update_mask] if args.key?(:update_mask)
end