Class: Google::Apis::CloudtraceV2::BatchWriteSpansRequest

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

Overview

The request message for the BatchWriteSpans method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BatchWriteSpansRequest

Returns a new instance of BatchWriteSpansRequest.



123
124
125
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 123

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

Instance Attribute Details

#spansArray<Google::Apis::CloudtraceV2::Span>

Required. A list of new spans. The span names must not match existing spans, or the results are undefined. Corresponds to the JSON property spans



121
122
123
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 121

def spans
  @spans
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



128
129
130
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 128

def update!(**args)
  @spans = args[:spans] if args.key?(:spans)
end