Class: Google::Apis::LoggingV2::CopyLogEntriesMetadata
- Inherits:
-
Object
- Object
- Google::Apis::LoggingV2::CopyLogEntriesMetadata
- 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
-
#cancellation_requested ⇒ Boolean
(also: #cancellation_requested?)
Identifies whether the user has requested cancellation of the operation.
-
#destination ⇒ String
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
. -
#end_time ⇒ String
The end time of an operation.
-
#progress ⇒ Fixnum
Estimated progress of the operation (0 - 100%).
-
#request ⇒ Google::Apis::LoggingV2::CopyLogEntriesRequest
The parameters to CopyLogEntries.
-
#source ⇒ String
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
. -
#start_time ⇒ String
The create time of an operation.
-
#state ⇒ String
Output only.
-
#verb ⇒ String
Name of the verb executed by the operation.For example,"copy" Corresponds to the JSON property
verb
. -
#writer_identity ⇒ String
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
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CopyLogEntriesMetadata
constructor
A new instance of CopyLogEntriesMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_requested ⇒ Boolean Also known as: cancellation_requested?
Identifies whether the user has requested cancellation of the operation.
Corresponds to the JSON property cancellationRequested
443 444 445 |
# File 'lib/google/apis/logging_v2/classes.rb', line 443 def cancellation_requested @cancellation_requested end |
#destination ⇒ String
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
450 451 452 |
# File 'lib/google/apis/logging_v2/classes.rb', line 450 def destination @destination end |
#end_time ⇒ String
The end time of an operation.
Corresponds to the JSON property endTime
455 456 457 |
# File 'lib/google/apis/logging_v2/classes.rb', line 455 def end_time @end_time end |
#progress ⇒ Fixnum
Estimated progress of the operation (0 - 100%).
Corresponds to the JSON property progress
460 461 462 |
# File 'lib/google/apis/logging_v2/classes.rb', line 460 def progress @progress end |
#request ⇒ Google::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 |
#source ⇒ String
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
471 472 473 |
# File 'lib/google/apis/logging_v2/classes.rb', line 471 def source @source end |
#start_time ⇒ String
The create time of an operation.
Corresponds to the JSON property startTime
476 477 478 |
# File 'lib/google/apis/logging_v2/classes.rb', line 476 def start_time @start_time end |
#state ⇒ String
Output only. State of an operation.
Corresponds to the JSON property state
481 482 483 |
# File 'lib/google/apis/logging_v2/classes.rb', line 481 def state @state end |
#verb ⇒ String
Name of the verb executed by the operation.For example,"copy"
Corresponds to the JSON property verb
486 487 488 |
# File 'lib/google/apis/logging_v2/classes.rb', line 486 def verb @verb end |
#writer_identity ⇒ String
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
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 |