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.



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

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



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

def spans
  @spans
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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