Class: Google::Apis::CloudtraceV2::ListSpansResponse
- Inherits:
-
Object
- Object
- Google::Apis::CloudtraceV2::ListSpansResponse
- 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
-
#next_page_token ⇒ String
If defined, indicates that there might be more spans that match the request.
-
#spans ⇒ Array<Google::Apis::CloudtraceV2::Span>
The requested spans, if there are any in the specified trace.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ListSpansResponse
constructor
A new instance of ListSpansResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
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_token ⇒ String
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
229 230 231 |
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 229 def next_page_token @next_page_token end |
#spans ⇒ Array<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 |