Class: Google::Apis::LoggingV2::CreateBucketRequest
- Inherits:
-
Object
- Object
- Google::Apis::LoggingV2::CreateBucketRequest
- 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 CreateBucket.
Instance Attribute Summary collapse
-
#bucket ⇒ Google::Apis::LoggingV2::LogBucket
Describes a repository in which log entries are stored.
-
#bucket_id ⇒ String
Required.
-
#parent ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CreateBucketRequest
constructor
A new instance of CreateBucketRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CreateBucketRequest
Returns a new instance of CreateBucketRequest.
399 400 401 |
# File 'lib/google/apis/logging_v2/classes.rb', line 399 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
383 384 385 |
# File 'lib/google/apis/logging_v2/classes.rb', line 383 def bucket @bucket end |
#bucket_id ⇒ 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.
Corresponds to the JSON property bucketId
390 391 392 |
# File 'lib/google/apis/logging_v2/classes.rb', line 390 def bucket_id @bucket_id end |
#parent ⇒ String
Required. The resource in which to create the log bucket: "projects/[
PROJECT_ID]/locations/[LOCATION_ID]" For example:"projects/my-project/
locations/global"
Corresponds to the JSON property parent
397 398 399 |
# File 'lib/google/apis/logging_v2/classes.rb', line 397 def parent @parent end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
404 405 406 407 408 |
# File 'lib/google/apis/logging_v2/classes.rb', line 404 def update!(**args) @bucket = args[:bucket] if args.key?(:bucket) @bucket_id = args[:bucket_id] if args.key?(:bucket_id) @parent = args[:parent] if args.key?(:parent) end |