Class: Google::Apis::LoggingV2::UpdateBucketRequest
- Inherits:
-
Object
- Object
- Google::Apis::LoggingV2::UpdateBucketRequest
- 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
-
#bucket ⇒ Google::Apis::LoggingV2::LogBucket
Describes a repository in which log entries are stored.
-
#name ⇒ String
Required.
-
#update_mask ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpdateBucketRequest
constructor
A new instance of UpdateBucketRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#bucket ⇒ Google::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 |
#name ⇒ 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"
Corresponds to the JSON property name
4062 4063 4064 |
# File 'lib/google/apis/logging_v2/classes.rb', line 4062 def name @name end |
#update_mask ⇒ String
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
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 |