google-api-client 0.9.28 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +7 -4
- data/CHANGELOG.md +10 -0
- data/api_names.yaml +36512 -36326
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +41 -41
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +13 -13
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +110 -110
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4.rb +3 -3
- data/generated/google/apis/analyticsreporting_v4/classes.rb +845 -845
- data/generated/google/apis/analyticsreporting_v4/representations.rb +184 -184
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +5 -5
- data/generated/google/apis/androidenterprise_v1/service.rb +3 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +22 -25
- data/generated/google/apis/classroom_v1/classes.rb +998 -907
- data/generated/google/apis/classroom_v1/representations.rb +240 -240
- data/generated/google/apis/classroom_v1/service.rb +1269 -1061
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +322 -322
- data/generated/google/apis/cloudbuild_v1/representations.rb +88 -88
- data/generated/google/apis/cloudbuild_v1/service.rb +57 -57
- data/generated/google/apis/clouddebugger_v2.rb +4 -4
- data/generated/google/apis/clouddebugger_v2/classes.rb +311 -311
- data/generated/google/apis/clouddebugger_v2/representations.rb +92 -92
- data/generated/google/apis/clouddebugger_v2/service.rb +41 -41
- data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +611 -611
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +124 -124
- data/generated/google/apis/cloudkms_v1beta1/service.rb +254 -248
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +116 -116
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +28 -28
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +257 -257
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +394 -394
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +79 -79
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +269 -269
- data/generated/google/apis/cloudtrace_v1.rb +8 -8
- data/generated/google/apis/cloudtrace_v1/classes.rb +90 -84
- data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
- data/generated/google/apis/cloudtrace_v1/service.rb +40 -35
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +406 -31
- data/generated/google/apis/compute_beta/representations.rb +154 -0
- data/generated/google/apis/compute_beta/service.rb +262 -9
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +17 -20
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +3226 -2847
- data/generated/google/apis/dataflow_v1b3/representations.rb +825 -677
- data/generated/google/apis/dataflow_v1b3/service.rb +175 -175
- data/generated/google/apis/dataproc_v1.rb +2 -2
- data/generated/google/apis/dataproc_v1/classes.rb +1213 -1136
- data/generated/google/apis/dataproc_v1/representations.rb +262 -244
- data/generated/google/apis/dataproc_v1/service.rb +298 -243
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +728 -728
- data/generated/google/apis/datastore_v1/representations.rb +167 -167
- data/generated/google/apis/datastore_v1/service.rb +68 -68
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +7 -7
- data/generated/google/apis/genomics_v1/classes.rb +932 -932
- data/generated/google/apis/genomics_v1/representations.rb +205 -205
- data/generated/google/apis/genomics_v1/service.rb +1228 -1228
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +440 -440
- data/generated/google/apis/iam_v1/representations.rb +94 -94
- data/generated/google/apis/iam_v1/service.rb +60 -60
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +21 -1
- data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +21 -21
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +232 -232
- data/generated/google/apis/language_v1beta1/representations.rb +75 -75
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +345 -337
- data/generated/google/apis/logging_v2beta1/representations.rb +55 -55
- data/generated/google/apis/logging_v2beta1/service.rb +331 -306
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +253 -253
- data/generated/google/apis/monitoring_v3/representations.rb +58 -58
- data/generated/google/apis/monitoring_v3/service.rb +135 -135
- data/generated/google/apis/people_v1.rb +15 -16
- data/generated/google/apis/people_v1/classes.rb +985 -855
- data/generated/google/apis/people_v1/representations.rb +227 -220
- data/generated/google/apis/people_v1/service.rb +58 -52
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +257 -257
- data/generated/google/apis/pubsub_v1/representations.rb +83 -83
- data/generated/google/apis/pubsub_v1/service.rb +390 -390
- data/generated/google/apis/script_v1.rb +17 -17
- data/generated/google/apis/script_v1/classes.rb +149 -141
- data/generated/google/apis/script_v1/representations.rb +26 -27
- data/generated/google/apis/script_v1/service.rb +9 -8
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4223 -4188
- data/generated/google/apis/sheets_v4/representations.rb +850 -834
- data/generated/google/apis/sheets_v4/service.rb +192 -192
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +927 -800
- data/generated/google/apis/slides_v1/representations.rb +253 -211
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +94 -107
- data/generated/google/apis/speech_v1beta1/representations.rb +24 -36
- data/generated/google/apis/speech_v1beta1/service.rb +51 -54
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +888 -885
- data/generated/google/apis/vision_v1/representations.rb +139 -139
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/service.rb +5 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +80 -80
- data/generated/google/apis/youtubereporting_v1/representations.rb +23 -23
- data/generated/google/apis/youtubereporting_v1/service.rb +51 -51
- data/google-api-client.gemspec +2 -2
- data/lib/google/apis/core/api_command.rb +1 -1
- data/lib/google/apis/core/json_representation.rb +2 -2
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/you_tube.rb +4 -1
- metadata +36 -30
@@ -18,24 +18,24 @@ require 'google/apis/cloudtrace_v1/representations.rb'
|
|
18
18
|
|
19
19
|
module Google
|
20
20
|
module Apis
|
21
|
-
#
|
21
|
+
# Stackdriver Trace API
|
22
22
|
#
|
23
|
-
# Send and retrieve trace data from
|
23
|
+
# Send and retrieve trace data from Stackdriver Trace. Data is generated and
|
24
24
|
# available by default for all App Engine applications. Data from other
|
25
|
-
# applications can be written to
|
25
|
+
# applications can be written to Stackdriver Trace for display, reporting, and
|
26
26
|
# analysis.
|
27
27
|
#
|
28
|
-
# @see https://cloud.google.com/
|
28
|
+
# @see https://cloud.google.com/trace
|
29
29
|
module CloudtraceV1
|
30
30
|
VERSION = 'V1'
|
31
|
-
REVISION = '
|
32
|
-
|
33
|
-
# View and manage your data across Google Cloud Platform services
|
34
|
-
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
31
|
+
REVISION = '20170208'
|
35
32
|
|
36
33
|
# Write Trace data for a project or application
|
37
34
|
AUTH_TRACE_APPEND = 'https://www.googleapis.com/auth/trace.append'
|
38
35
|
|
36
|
+
# View and manage your data across Google Cloud Platform services
|
37
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
38
|
+
|
39
39
|
# Read Trace data for a project or application
|
40
40
|
AUTH_TRACE_READONLY = 'https://www.googleapis.com/auth/trace.readonly'
|
41
41
|
end
|
@@ -22,22 +22,15 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module CloudtraceV1
|
24
24
|
|
25
|
-
#
|
26
|
-
class
|
25
|
+
# List of new or updated traces.
|
26
|
+
class Traces
|
27
27
|
include Google::Apis::Core::Hashable
|
28
28
|
|
29
|
-
# List of
|
29
|
+
# List of traces.
|
30
30
|
# Corresponds to the JSON property `traces`
|
31
31
|
# @return [Array<Google::Apis::CloudtraceV1::Trace>]
|
32
32
|
attr_accessor :traces
|
33
33
|
|
34
|
-
# If defined, indicates that there are more traces that match the request and
|
35
|
-
# that this value should be passed to the next request to continue retrieving
|
36
|
-
# additional traces.
|
37
|
-
# Corresponds to the JSON property `nextPageToken`
|
38
|
-
# @return [String]
|
39
|
-
attr_accessor :next_page_token
|
40
|
-
|
41
34
|
def initialize(**args)
|
42
35
|
update!(**args)
|
43
36
|
end
|
@@ -45,118 +38,94 @@ module Google
|
|
45
38
|
# Update properties of this object
|
46
39
|
def update!(**args)
|
47
40
|
@traces = args[:traces] if args.key?(:traces)
|
48
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
49
41
|
end
|
50
42
|
end
|
51
43
|
|
52
|
-
# A
|
53
|
-
#
|
54
|
-
#
|
55
|
-
|
44
|
+
# A span represents a single timed event within a trace. Spans can be nested
|
45
|
+
# and form a trace tree. Often, a trace contains a root span that describes the
|
46
|
+
# end-to-end latency of an operation and, optionally, one or more subspans for
|
47
|
+
# its suboperations. Spans do not need to be contiguous. There may be gaps
|
48
|
+
# between spans in a trace.
|
49
|
+
class TraceSpan
|
56
50
|
include Google::Apis::Core::Hashable
|
57
51
|
|
58
|
-
#
|
59
|
-
# Corresponds to the JSON property `
|
60
|
-
# @return [String]
|
61
|
-
attr_accessor :project_id
|
62
|
-
|
63
|
-
# Globally unique identifier for the trace. This identifier is a 128-bit numeric
|
64
|
-
# value formatted as a 32-byte hex string.
|
65
|
-
# Corresponds to the JSON property `traceId`
|
52
|
+
# End time of the span in nanoseconds from the UNIX epoch.
|
53
|
+
# Corresponds to the JSON property `endTime`
|
66
54
|
# @return [String]
|
67
|
-
attr_accessor :
|
68
|
-
|
69
|
-
# Collection of spans in the trace.
|
70
|
-
# Corresponds to the JSON property `spans`
|
71
|
-
# @return [Array<Google::Apis::CloudtraceV1::TraceSpan>]
|
72
|
-
attr_accessor :spans
|
73
|
-
|
74
|
-
def initialize(**args)
|
75
|
-
update!(**args)
|
76
|
-
end
|
77
|
-
|
78
|
-
# Update properties of this object
|
79
|
-
def update!(**args)
|
80
|
-
@project_id = args[:project_id] if args.key?(:project_id)
|
81
|
-
@trace_id = args[:trace_id] if args.key?(:trace_id)
|
82
|
-
@spans = args[:spans] if args.key?(:spans)
|
83
|
-
end
|
84
|
-
end
|
85
|
-
|
86
|
-
# A span represents a single timed event within a trace. Spans can be nested and
|
87
|
-
# form a trace tree. Often, a trace contains a root span that describes the end-
|
88
|
-
# to-end latency of an operation and, optionally, one or more subspans for its
|
89
|
-
# suboperations. Spans do not need to be contiguous. There may be gaps between
|
90
|
-
# spans in a trace.
|
91
|
-
class TraceSpan
|
92
|
-
include Google::Apis::Core::Hashable
|
55
|
+
attr_accessor :end_time
|
93
56
|
|
94
|
-
#
|
95
|
-
# Corresponds to the JSON property `
|
57
|
+
# Start time of the span in nanoseconds from the UNIX epoch.
|
58
|
+
# Corresponds to the JSON property `startTime`
|
96
59
|
# @return [String]
|
97
|
-
attr_accessor :
|
60
|
+
attr_accessor :start_time
|
98
61
|
|
99
62
|
# Distinguishes between spans generated in a particular context. For example,
|
100
|
-
# two spans with the same name may be distinguished using `RPC_CLIENT`
|
101
|
-
# RPC_SERVER` to identify queueing latency associated with the span.
|
63
|
+
# two spans with the same name may be distinguished using `RPC_CLIENT`
|
64
|
+
# and `RPC_SERVER` to identify queueing latency associated with the span.
|
102
65
|
# Corresponds to the JSON property `kind`
|
103
66
|
# @return [String]
|
104
67
|
attr_accessor :kind
|
105
68
|
|
106
|
-
#
|
107
|
-
#
|
108
|
-
#
|
109
|
-
#
|
110
|
-
|
69
|
+
# Collection of labels associated with the span. Label keys must be less than
|
70
|
+
# 128 bytes. Label values must be less than 16 kilobytes.
|
71
|
+
# Corresponds to the JSON property `labels`
|
72
|
+
# @return [Hash<String,String>]
|
73
|
+
attr_accessor :labels
|
74
|
+
|
75
|
+
# Name of the span. Must be less than 128 bytes. The span name is sanitized
|
76
|
+
# and displayed in the Stackdriver Trace tool in the
|
77
|
+
# `% dynamic print site_values.console_name %`.
|
78
|
+
# The name may be a method name or some other per-call site name.
|
79
|
+
# For the same executable and the same call point, a best practice is
|
80
|
+
# to use a consistent name, which makes it easier to correlate
|
81
|
+
# cross-trace spans.
|
111
82
|
# Corresponds to the JSON property `name`
|
112
83
|
# @return [String]
|
113
84
|
attr_accessor :name
|
114
85
|
|
115
|
-
#
|
116
|
-
#
|
117
|
-
#
|
118
|
-
attr_accessor :start_time
|
119
|
-
|
120
|
-
# End time of the span in nanoseconds from the UNIX epoch.
|
121
|
-
# Corresponds to the JSON property `endTime`
|
86
|
+
# Identifier for the span. Must be a 64-bit integer other than 0 and
|
87
|
+
# unique within a trace.
|
88
|
+
# Corresponds to the JSON property `spanId`
|
122
89
|
# @return [String]
|
123
|
-
attr_accessor :
|
90
|
+
attr_accessor :span_id
|
124
91
|
|
125
92
|
# ID of the parent span, if any. Optional.
|
126
93
|
# Corresponds to the JSON property `parentSpanId`
|
127
94
|
# @return [String]
|
128
95
|
attr_accessor :parent_span_id
|
129
96
|
|
130
|
-
# Collection of labels associated with the span.
|
131
|
-
# Corresponds to the JSON property `labels`
|
132
|
-
# @return [Hash<String,String>]
|
133
|
-
attr_accessor :labels
|
134
|
-
|
135
97
|
def initialize(**args)
|
136
98
|
update!(**args)
|
137
99
|
end
|
138
100
|
|
139
101
|
# Update properties of this object
|
140
102
|
def update!(**args)
|
141
|
-
@
|
103
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
104
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
142
105
|
@kind = args[:kind] if args.key?(:kind)
|
106
|
+
@labels = args[:labels] if args.key?(:labels)
|
143
107
|
@name = args[:name] if args.key?(:name)
|
144
|
-
@
|
145
|
-
@end_time = args[:end_time] if args.key?(:end_time)
|
108
|
+
@span_id = args[:span_id] if args.key?(:span_id)
|
146
109
|
@parent_span_id = args[:parent_span_id] if args.key?(:parent_span_id)
|
147
|
-
@labels = args[:labels] if args.key?(:labels)
|
148
110
|
end
|
149
111
|
end
|
150
112
|
|
151
|
-
#
|
152
|
-
class
|
113
|
+
# The response message for the `ListTraces` method.
|
114
|
+
class ListTracesResponse
|
153
115
|
include Google::Apis::Core::Hashable
|
154
116
|
|
155
|
-
# List of
|
117
|
+
# List of trace records returned.
|
156
118
|
# Corresponds to the JSON property `traces`
|
157
119
|
# @return [Array<Google::Apis::CloudtraceV1::Trace>]
|
158
120
|
attr_accessor :traces
|
159
121
|
|
122
|
+
# If defined, indicates that there are more traces that match the request
|
123
|
+
# and that this value should be passed to the next request to continue
|
124
|
+
# retrieving additional traces.
|
125
|
+
# Corresponds to the JSON property `nextPageToken`
|
126
|
+
# @return [String]
|
127
|
+
attr_accessor :next_page_token
|
128
|
+
|
160
129
|
def initialize(**args)
|
161
130
|
update!(**args)
|
162
131
|
end
|
@@ -164,14 +133,17 @@ module Google
|
|
164
133
|
# Update properties of this object
|
165
134
|
def update!(**args)
|
166
135
|
@traces = args[:traces] if args.key?(:traces)
|
136
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
167
137
|
end
|
168
138
|
end
|
169
139
|
|
170
|
-
# A generic empty message that you can re-use to avoid defining duplicated
|
171
|
-
# messages in your APIs. A typical example is to use it as the request
|
172
|
-
# response type of an API method. For instance:
|
173
|
-
#
|
174
|
-
#
|
140
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
141
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
142
|
+
# or the response type of an API method. For instance:
|
143
|
+
# service Foo `
|
144
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
145
|
+
# `
|
146
|
+
# The JSON representation for `Empty` is empty JSON object ````.
|
175
147
|
class Empty
|
176
148
|
include Google::Apis::Core::Hashable
|
177
149
|
|
@@ -183,6 +155,40 @@ module Google
|
|
183
155
|
def update!(**args)
|
184
156
|
end
|
185
157
|
end
|
158
|
+
|
159
|
+
# A trace describes how long it takes for an application to perform an
|
160
|
+
# operation. It consists of a set of spans, each of which represent a single
|
161
|
+
# timed event within the operation.
|
162
|
+
class Trace
|
163
|
+
include Google::Apis::Core::Hashable
|
164
|
+
|
165
|
+
# Project ID of the Cloud project where the trace data is stored.
|
166
|
+
# Corresponds to the JSON property `projectId`
|
167
|
+
# @return [String]
|
168
|
+
attr_accessor :project_id
|
169
|
+
|
170
|
+
# Collection of spans in the trace.
|
171
|
+
# Corresponds to the JSON property `spans`
|
172
|
+
# @return [Array<Google::Apis::CloudtraceV1::TraceSpan>]
|
173
|
+
attr_accessor :spans
|
174
|
+
|
175
|
+
# Globally unique identifier for the trace. This identifier is a 128-bit
|
176
|
+
# numeric value formatted as a 32-byte hex string.
|
177
|
+
# Corresponds to the JSON property `traceId`
|
178
|
+
# @return [String]
|
179
|
+
attr_accessor :trace_id
|
180
|
+
|
181
|
+
def initialize(**args)
|
182
|
+
update!(**args)
|
183
|
+
end
|
184
|
+
|
185
|
+
# Update properties of this object
|
186
|
+
def update!(**args)
|
187
|
+
@project_id = args[:project_id] if args.key?(:project_id)
|
188
|
+
@spans = args[:spans] if args.key?(:spans)
|
189
|
+
@trace_id = args[:trace_id] if args.key?(:trace_id)
|
190
|
+
end
|
191
|
+
end
|
186
192
|
end
|
187
193
|
end
|
188
194
|
end
|
@@ -22,73 +22,63 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module CloudtraceV1
|
24
24
|
|
25
|
-
class
|
25
|
+
class Traces
|
26
26
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
27
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
29
29
|
end
|
30
30
|
|
31
|
-
class
|
31
|
+
class TraceSpan
|
32
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
33
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
37
|
-
class
|
37
|
+
class ListTracesResponse
|
38
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
39
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
41
41
|
end
|
42
42
|
|
43
|
-
class
|
43
|
+
class Empty
|
44
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
45
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
47
47
|
end
|
48
48
|
|
49
|
-
class
|
49
|
+
class Trace
|
50
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
51
|
|
52
52
|
include Google::Apis::Core::JsonObjectSupport
|
53
53
|
end
|
54
54
|
|
55
|
-
class
|
55
|
+
class Traces
|
56
56
|
# @private
|
57
57
|
class Representation < Google::Apis::Core::JsonRepresentation
|
58
58
|
collection :traces, as: 'traces', class: Google::Apis::CloudtraceV1::Trace, decorator: Google::Apis::CloudtraceV1::Trace::Representation
|
59
59
|
|
60
|
-
property :next_page_token, as: 'nextPageToken'
|
61
|
-
end
|
62
|
-
end
|
63
|
-
|
64
|
-
class Trace
|
65
|
-
# @private
|
66
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
67
|
-
property :project_id, as: 'projectId'
|
68
|
-
property :trace_id, as: 'traceId'
|
69
|
-
collection :spans, as: 'spans', class: Google::Apis::CloudtraceV1::TraceSpan, decorator: Google::Apis::CloudtraceV1::TraceSpan::Representation
|
70
|
-
|
71
60
|
end
|
72
61
|
end
|
73
62
|
|
74
63
|
class TraceSpan
|
75
64
|
# @private
|
76
65
|
class Representation < Google::Apis::Core::JsonRepresentation
|
77
|
-
property :
|
66
|
+
property :end_time, as: 'endTime'
|
67
|
+
property :start_time, as: 'startTime'
|
78
68
|
property :kind, as: 'kind'
|
69
|
+
hash :labels, as: 'labels'
|
79
70
|
property :name, as: 'name'
|
80
|
-
property :
|
81
|
-
property :end_time, as: 'endTime'
|
71
|
+
property :span_id, as: 'spanId'
|
82
72
|
property :parent_span_id, as: 'parentSpanId'
|
83
|
-
hash :labels, as: 'labels'
|
84
73
|
end
|
85
74
|
end
|
86
75
|
|
87
|
-
class
|
76
|
+
class ListTracesResponse
|
88
77
|
# @private
|
89
78
|
class Representation < Google::Apis::Core::JsonRepresentation
|
90
79
|
collection :traces, as: 'traces', class: Google::Apis::CloudtraceV1::Trace, decorator: Google::Apis::CloudtraceV1::Trace::Representation
|
91
80
|
|
81
|
+
property :next_page_token, as: 'nextPageToken'
|
92
82
|
end
|
93
83
|
end
|
94
84
|
|
@@ -97,6 +87,16 @@ module Google
|
|
97
87
|
class Representation < Google::Apis::Core::JsonRepresentation
|
98
88
|
end
|
99
89
|
end
|
90
|
+
|
91
|
+
class Trace
|
92
|
+
# @private
|
93
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
94
|
+
property :project_id, as: 'projectId'
|
95
|
+
collection :spans, as: 'spans', class: Google::Apis::CloudtraceV1::TraceSpan, decorator: Google::Apis::CloudtraceV1::TraceSpan::Representation
|
96
|
+
|
97
|
+
property :trace_id, as: 'traceId'
|
98
|
+
end
|
99
|
+
end
|
100
100
|
end
|
101
101
|
end
|
102
102
|
end
|
@@ -20,11 +20,11 @@ require 'google/apis/errors'
|
|
20
20
|
module Google
|
21
21
|
module Apis
|
22
22
|
module CloudtraceV1
|
23
|
-
#
|
23
|
+
# Stackdriver Trace API
|
24
24
|
#
|
25
|
-
# Send and retrieve trace data from
|
25
|
+
# Send and retrieve trace data from Stackdriver Trace. Data is generated and
|
26
26
|
# available by default for all App Engine applications. Data from other
|
27
|
-
# applications can be written to
|
27
|
+
# applications can be written to Stackdriver Trace for display, reporting, and
|
28
28
|
# analysis.
|
29
29
|
#
|
30
30
|
# @example
|
@@ -33,7 +33,7 @@ module Google
|
|
33
33
|
# Cloudtrace = Google::Apis::CloudtraceV1 # Alias the module
|
34
34
|
# service = Cloudtrace::CloudTraceService.new
|
35
35
|
#
|
36
|
-
# @see https://cloud.google.com/
|
36
|
+
# @see https://cloud.google.com/trace
|
37
37
|
class CloudTraceService < Google::Apis::Core::BaseService
|
38
38
|
# @return [String]
|
39
39
|
# API key. Your API key identifies your project and provides you with API access,
|
@@ -49,11 +49,11 @@ module Google
|
|
49
49
|
super('https://cloudtrace.googleapis.com/', '')
|
50
50
|
end
|
51
51
|
|
52
|
-
# Sends new traces to Stackdriver Trace or updates existing traces. If the ID
|
53
|
-
# a trace that you send matches that of an existing trace, any fields
|
54
|
-
# existing trace and its spans are overwritten by the provided values,
|
55
|
-
# new fields provided are merged with the existing trace data. If the
|
56
|
-
# not match, a new trace is created.
|
52
|
+
# Sends new traces to Stackdriver Trace or updates existing traces. If the ID
|
53
|
+
# of a trace that you send matches that of an existing trace, any fields
|
54
|
+
# in the existing trace and its spans are overwritten by the provided values,
|
55
|
+
# and any new fields provided are merged with the existing trace data. If the
|
56
|
+
# ID does not match, a new trace is created.
|
57
57
|
# @param [String] project_id
|
58
58
|
# ID of the Cloud project where the trace data is stored.
|
59
59
|
# @param [Google::Apis::CloudtraceV1::Traces] traces_object
|
@@ -89,30 +89,35 @@ module Google
|
|
89
89
|
# Returns of a list of traces that match the specified filter conditions.
|
90
90
|
# @param [String] project_id
|
91
91
|
# ID of the Cloud project where the trace data is stored.
|
92
|
-
# @param [String]
|
93
|
-
#
|
94
|
-
# @param [Fixnum] page_size
|
95
|
-
# Maximum number of traces to return. If not specified or <= 0, the
|
96
|
-
# implementation selects a reasonable value. The implementation may return fewer
|
97
|
-
# traces than the requested page size. Optional.
|
98
|
-
# @param [String] page_token
|
99
|
-
# Token identifying the page of results to return. If provided, use the value of
|
100
|
-
# the `next_page_token` field from a previous request. Optional.
|
101
|
-
# @param [String] start_time
|
102
|
-
# End of the time interval (inclusive) during which the trace data was collected
|
103
|
-
# from the application.
|
92
|
+
# @param [String] filter
|
93
|
+
# An optional filter for the request.
|
104
94
|
# @param [String] end_time
|
105
95
|
# Start of the time interval (inclusive) during which the trace data was
|
106
96
|
# collected from the application.
|
107
|
-
# @param [String]
|
108
|
-
#
|
97
|
+
# @param [String] start_time
|
98
|
+
# End of the time interval (inclusive) during which the trace data was
|
99
|
+
# collected from the application.
|
100
|
+
# @param [String] page_token
|
101
|
+
# Token identifying the page of results to return. If provided, use the
|
102
|
+
# value of the `next_page_token` field from a previous request. Optional.
|
103
|
+
# @param [Fixnum] page_size
|
104
|
+
# Maximum number of traces to return. If not specified or <= 0, the
|
105
|
+
# implementation selects a reasonable value. The implementation may
|
106
|
+
# return fewer traces than the requested page size. Optional.
|
107
|
+
# @param [String] view
|
108
|
+
# Type of data returned for traces in the list. Optional. Default is
|
109
|
+
# `MINIMAL`.
|
109
110
|
# @param [String] order_by
|
110
|
-
# Field used to sort the returned traces. Optional.
|
111
|
-
#
|
112
|
-
#
|
113
|
-
#
|
114
|
-
#
|
115
|
-
#
|
111
|
+
# Field used to sort the returned traces. Optional.
|
112
|
+
# Can be one of the following:
|
113
|
+
# * `trace_id`
|
114
|
+
# * `name` (`name` field of root span in the trace)
|
115
|
+
# * `duration` (difference between `end_time` and `start_time` fields of
|
116
|
+
# the root span)
|
117
|
+
# * `start` (`start_time` field of the root span)
|
118
|
+
# Descending order can be specified by appending `desc` to the sort field
|
119
|
+
# (for example, `name desc`).
|
120
|
+
# Only one sort field is permitted.
|
116
121
|
# @param [String] fields
|
117
122
|
# Selector specifying which fields to include in a partial response.
|
118
123
|
# @param [String] quota_user
|
@@ -130,17 +135,17 @@ module Google
|
|
130
135
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
131
136
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
132
137
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
133
|
-
def list_project_traces(project_id,
|
138
|
+
def list_project_traces(project_id, filter: nil, end_time: nil, start_time: nil, page_token: nil, page_size: nil, view: nil, order_by: nil, fields: nil, quota_user: nil, options: nil, &block)
|
134
139
|
command = make_simple_command(:get, 'v1/projects/{projectId}/traces', options)
|
135
140
|
command.response_representation = Google::Apis::CloudtraceV1::ListTracesResponse::Representation
|
136
141
|
command.response_class = Google::Apis::CloudtraceV1::ListTracesResponse
|
137
142
|
command.params['projectId'] = project_id unless project_id.nil?
|
138
|
-
command.query['view'] = view unless view.nil?
|
139
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
140
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
141
|
-
command.query['startTime'] = start_time unless start_time.nil?
|
142
|
-
command.query['endTime'] = end_time unless end_time.nil?
|
143
143
|
command.query['filter'] = filter unless filter.nil?
|
144
|
+
command.query['endTime'] = end_time unless end_time.nil?
|
145
|
+
command.query['startTime'] = start_time unless start_time.nil?
|
146
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
147
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
148
|
+
command.query['view'] = view unless view.nil?
|
144
149
|
command.query['orderBy'] = order_by unless order_by.nil?
|
145
150
|
command.query['fields'] = fields unless fields.nil?
|
146
151
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|