Class: Google::Apis::LoggingV2::CopyLogEntriesMetadata

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

Metadata for CopyLogEntries long running operations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CopyLogEntriesMetadata

Returns a new instance of CopyLogEntriesMetadata.



496
497
498
# File 'lib/google/apis/logging_v2/classes.rb', line 496

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

Instance Attribute Details

#cancellation_requestedBoolean Also known as: cancellation_requested?

Identifies whether the user has requested cancellation of the operation. Corresponds to the JSON property cancellationRequested

Returns:

  • (Boolean)


443
444
445
# File 'lib/google/apis/logging_v2/classes.rb', line 443

def cancellation_requested
  @cancellation_requested
end

#destinationString

Destination to which to copy log entries.For example, a Cloud Storage bucket:" storage.googleapis.com/my-cloud-storage-bucket" Corresponds to the JSON property destination

Returns:

  • (String)


450
451
452
# File 'lib/google/apis/logging_v2/classes.rb', line 450

def destination
  @destination
end

#end_timeString

The end time of an operation. Corresponds to the JSON property endTime

Returns:

  • (String)


455
456
457
# File 'lib/google/apis/logging_v2/classes.rb', line 455

def end_time
  @end_time
end

#progressFixnum

Estimated progress of the operation (0 - 100%). Corresponds to the JSON property progress

Returns:

  • (Fixnum)


460
461
462
# File 'lib/google/apis/logging_v2/classes.rb', line 460

def progress
  @progress
end

#requestGoogle::Apis::LoggingV2::CopyLogEntriesRequest

The parameters to CopyLogEntries. Corresponds to the JSON property request



465
466
467
# File 'lib/google/apis/logging_v2/classes.rb', line 465

def request
  @request
end

#sourceString

Source from which to copy log entries.For example, a log bucket:"projects/my- project/locations/global/buckets/my-source-bucket" Corresponds to the JSON property source

Returns:

  • (String)


471
472
473
# File 'lib/google/apis/logging_v2/classes.rb', line 471

def source
  @source
end

#start_timeString

The create time of an operation. Corresponds to the JSON property startTime

Returns:

  • (String)


476
477
478
# File 'lib/google/apis/logging_v2/classes.rb', line 476

def start_time
  @start_time
end

#stateString

Output only. State of an operation. Corresponds to the JSON property state

Returns:

  • (String)


481
482
483
# File 'lib/google/apis/logging_v2/classes.rb', line 481

def state
  @state
end

#verbString

Name of the verb executed by the operation.For example,"copy" Corresponds to the JSON property verb

Returns:

  • (String)


486
487
488
# File 'lib/google/apis/logging_v2/classes.rb', line 486

def verb
  @verb
end

#writer_identityString

The IAM identity of a service account that must be granted access to the destination.If the service account is not granted permission to the destination within an hour, the operation will be cancelled.For example: " serviceAccount:foo@bar.com" Corresponds to the JSON property writerIdentity

Returns:

  • (String)


494
495
496
# File 'lib/google/apis/logging_v2/classes.rb', line 494

def writer_identity
  @writer_identity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



501
502
503
504
505
506
507
508
509
510
511
512
# File 'lib/google/apis/logging_v2/classes.rb', line 501

def update!(**args)
  @cancellation_requested = args[:cancellation_requested] if args.key?(:cancellation_requested)
  @destination = args[:destination] if args.key?(:destination)
  @end_time = args[:end_time] if args.key?(:end_time)
  @progress = args[:progress] if args.key?(:progress)
  @request = args[:request] if args.key?(:request)
  @source = args[:source] if args.key?(:source)
  @start_time = args[:start_time] if args.key?(:start_time)
  @state = args[:state] if args.key?(:state)
  @verb = args[:verb] if args.key?(:verb)
  @writer_identity = args[:writer_identity] if args.key?(:writer_identity)
end