Class: Google::Apis::LoggingV2::CopyLogEntriesRequest
- Inherits:
-
Object
- Object
- Google::Apis::LoggingV2::CopyLogEntriesRequest
- 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 CopyLogEntries.
Instance Attribute Summary collapse
-
#destination ⇒ String
Required.
-
#filter ⇒ String
Optional.
-
#name ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CopyLogEntriesRequest
constructor
A new instance of CopyLogEntriesRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CopyLogEntriesRequest
Returns a new instance of CopyLogEntriesRequest.
345 346 347 |
# File 'lib/google/apis/logging_v2/classes.rb', line 345 def initialize(**args) update!(**args) end |
Instance Attribute Details
#destination ⇒ String
Required. Destination to which to copy log entries.
Corresponds to the JSON property destination
331 332 333 |
# File 'lib/google/apis/logging_v2/classes.rb', line 331 def destination @destination end |
#filter ⇒ String
Optional. A filter specifying which log entries to copy. The filter must be no
more than 20k characters. An empty filter matches all log entries.
Corresponds to the JSON property filter
337 338 339 |
# File 'lib/google/apis/logging_v2/classes.rb', line 337 def filter @filter end |
#name ⇒ String
Required. Log bucket from which to copy log entries.For example:"projects/my-
project/locations/global/buckets/my-source-bucket"
Corresponds to the JSON property name
343 344 345 |
# File 'lib/google/apis/logging_v2/classes.rb', line 343 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
350 351 352 353 354 |
# File 'lib/google/apis/logging_v2/classes.rb', line 350 def update!(**args) @destination = args[:destination] if args.key?(:destination) @filter = args[:filter] if args.key?(:filter) @name = args[:name] if args.key?(:name) end |