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

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BatchWriteSpansRequest

Returns a new instance of BatchWriteSpansRequest



125
126
127
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 125

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

Instance Attribute Details

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

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



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

def spans
  @spans
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



130
131
132
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 130

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