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.



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

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



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

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)


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

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)


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

def update_mask
  @update_mask
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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