Class: Google::Apis::TracingV1::ListSpansResponse

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

Overview

The response message for the ListSpans method.

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) ⇒ ListSpansResponse

Returns a new instance of ListSpansResponse



163
164
165
# File 'generated/google/apis/tracing_v1/classes.rb', line 163

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

Instance Attribute Details

#next_page_tokenString

If defined, indicates that there are more spans that match the request. Pass this as the value of pageToken in a subsequent request to retrieve additional spans. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


156
157
158
# File 'generated/google/apis/tracing_v1/classes.rb', line 156

def next_page_token
  @next_page_token
end

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

The requested spans if there are any in the specified trace. Corresponds to the JSON property spans

Returns:



161
162
163
# File 'generated/google/apis/tracing_v1/classes.rb', line 161

def spans
  @spans
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



168
169
170
171
# File 'generated/google/apis/tracing_v1/classes.rb', line 168

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