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.
-
#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.
-
#start_time ⇒ String
The create time of an operation.
-
#state ⇒ String
State of an operation.
-
#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.
230 231 232 |
# File 'lib/google/apis/logging_v2/classes.rb', line 230 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
194 195 196 |
# File 'lib/google/apis/logging_v2/classes.rb', line 194 def cancellation_requested @cancellation_requested end |
#end_time ⇒ String
The end time of an operation.
Corresponds to the JSON property endTime
200 201 202 |
# File 'lib/google/apis/logging_v2/classes.rb', line 200 def end_time @end_time end |
#progress ⇒ Fixnum
Estimated progress of the operation (0 - 100%).
Corresponds to the JSON property progress
205 206 207 |
# File 'lib/google/apis/logging_v2/classes.rb', line 205 def progress @progress end |
#request ⇒ Google::Apis::LoggingV2::CopyLogEntriesRequest
The parameters to CopyLogEntries.
Corresponds to the JSON property request
210 211 212 |
# File 'lib/google/apis/logging_v2/classes.rb', line 210 def request @request end |
#start_time ⇒ String
The create time of an operation.
Corresponds to the JSON property startTime
215 216 217 |
# File 'lib/google/apis/logging_v2/classes.rb', line 215 def start_time @start_time end |
#state ⇒ String
State of an operation.
Corresponds to the JSON property state
220 221 222 |
# File 'lib/google/apis/logging_v2/classes.rb', line 220 def state @state 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
228 229 230 |
# File 'lib/google/apis/logging_v2/classes.rb', line 228 def writer_identity @writer_identity end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
235 236 237 238 239 240 241 242 243 |
# File 'lib/google/apis/logging_v2/classes.rb', line 235 def update!(**args) @cancellation_requested = args[:cancellation_requested] if args.key?(:cancellation_requested) @end_time = args[:end_time] if args.key?(:end_time) @progress = args[:progress] if args.key?(:progress) @request = args[:request] if args.key?(:request) @start_time = args[:start_time] if args.key?(:start_time) @state = args[:state] if args.key?(:state) @writer_identity = args[:writer_identity] if args.key?(:writer_identity) end |