Class: Google::Apis::LoggingV2::CopyLogEntriesRequest

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 CopyLogEntries.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CopyLogEntriesRequest

Returns a new instance of CopyLogEntriesRequest.



597
598
599
# File 'lib/google/apis/logging_v2/classes.rb', line 597

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

Instance Attribute Details

#destinationString

Required. Destination to which to copy log entries. For example: "storage. googleapis.com/GCS_BUCKET" Corresponds to the JSON property destination

Returns:

  • (String)


583
584
585
# File 'lib/google/apis/logging_v2/classes.rb', line 583

def destination
  @destination
end

#filterString

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

Returns:

  • (String)


589
590
591
# File 'lib/google/apis/logging_v2/classes.rb', line 589

def filter
  @filter
end

#nameString

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

Returns:

  • (String)


595
596
597
# File 'lib/google/apis/logging_v2/classes.rb', line 595

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



602
603
604
605
606
# File 'lib/google/apis/logging_v2/classes.rb', line 602

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