Class: Google::Apis::LoggingV2::LogEntryOperation

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/logging_v2/classes.rb,
generated/google/apis/logging_v2/representations.rb,
generated/google/apis/logging_v2/representations.rb

Overview

Additional information about a potentially long-running operation with which a log entry is associated.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ LogEntryOperation

Returns a new instance of LogEntryOperation



1030
1031
1032
# File 'generated/google/apis/logging_v2/classes.rb', line 1030

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

Instance Attribute Details

#firstBoolean Also known as: first?

Optional. Set this to True if this is the first log entry in the operation. Corresponds to the JSON property first

Returns:

  • (Boolean)


1021
1022
1023
# File 'generated/google/apis/logging_v2/classes.rb', line 1021

def first
  @first
end

#idString

Optional. An arbitrary operation identifier. Log entries with the same identifier are assumed to be part of the same operation. Corresponds to the JSON property id

Returns:

  • (String)


1009
1010
1011
# File 'generated/google/apis/logging_v2/classes.rb', line 1009

def id
  @id
end

#lastBoolean Also known as: last?

Optional. Set this to True if this is the last log entry in the operation. Corresponds to the JSON property last

Returns:

  • (Boolean)


1027
1028
1029
# File 'generated/google/apis/logging_v2/classes.rb', line 1027

def last
  @last
end

#producerString

Optional. An arbitrary producer identifier. The combination of id and producer must be globally unique. Examples for producer: "MyDivision.MyBigCompany.com", "github.com/MyProject/MyApplication". Corresponds to the JSON property producer

Returns:

  • (String)


1016
1017
1018
# File 'generated/google/apis/logging_v2/classes.rb', line 1016

def producer
  @producer
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1035
1036
1037
1038
1039
1040
# File 'generated/google/apis/logging_v2/classes.rb', line 1035

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @producer = args[:producer] if args.key?(:producer)
  @first = args[:first] if args.key?(:first)
  @last = args[:last] if args.key?(:last)
end