Class: Google::Apis::CloudtraceV2::ListSpansResponse

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 response message for the ListSpans 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) ⇒ ListSpansResponse

Returns a new instance of ListSpansResponse



236
237
238
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 236

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

Instance Attribute Details

#next_page_tokenString

If defined, indicates that there might be 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)


229
230
231
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 229

def next_page_token
  @next_page_token
end

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

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



234
235
236
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 234

def spans
  @spans
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



241
242
243
244
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 241

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