google-api-client 0.11.2 → 0.11.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/README.md +6 -0
- data/api_names.yaml +1 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +38 -38
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +13 -13
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +201 -201
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +46 -46
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +119 -119
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +52 -9
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +9 -0
- 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/classes.rb +926 -926
- data/generated/google/apis/analyticsreporting_v4/representations.rb +149 -149
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +18 -11
- data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +1487 -1487
- data/generated/google/apis/appengine_v1/representations.rb +229 -229
- data/generated/google/apis/appengine_v1/service.rb +188 -188
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +15 -10
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +10 -4
- data/generated/google/apis/classroom_v1.rb +26 -17
- data/generated/google/apis/classroom_v1/classes.rb +990 -990
- data/generated/google/apis/classroom_v1/representations.rb +239 -239
- data/generated/google/apis/classroom_v1/service.rb +853 -853
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +627 -627
- data/generated/google/apis/cloudbuild_v1/representations.rb +116 -116
- data/generated/google/apis/cloudbuild_v1/service.rb +162 -157
- data/generated/google/apis/clouddebugger_v2/classes.rb +258 -258
- data/generated/google/apis/clouddebugger_v2/representations.rb +80 -80
- data/generated/google/apis/clouddebugger_v2/service.rb +163 -163
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +3 -4
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +202 -167
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +53 -37
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +50 -51
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +628 -622
- data/generated/google/apis/cloudkms_v1/representations.rb +134 -133
- data/generated/google/apis/cloudkms_v1/service.rb +190 -190
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +835 -835
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +138 -138
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +474 -474
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +386 -386
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +75 -75
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +64 -64
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +114 -114
- data/generated/google/apis/cloudtrace_v1/representations.rb +23 -23
- data/generated/google/apis/cloudtrace_v1/service.rb +14 -14
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +66 -25
- data/generated/google/apis/compute_beta/representations.rb +16 -0
- data/generated/google/apis/compute_beta/service.rb +85 -3
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +375 -24
- data/generated/google/apis/compute_v1/representations.rb +155 -0
- data/generated/google/apis/compute_v1/service.rb +481 -3
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +301 -301
- data/generated/google/apis/container_v1/representations.rb +59 -59
- data/generated/google/apis/container_v1/service.rb +178 -178
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +37 -2
- data/generated/google/apis/content_v2/representations.rb +15 -0
- data/generated/google/apis/content_v2/service.rb +58 -3
- data/generated/google/apis/dataflow_v1b3.rb +4 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +3514 -3279
- data/generated/google/apis/dataflow_v1b3/representations.rb +530 -440
- data/generated/google/apis/dataflow_v1b3/service.rb +378 -137
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +446 -446
- data/generated/google/apis/dataproc_v1/representations.rb +96 -96
- data/generated/google/apis/dataproc_v1/service.rb +302 -302
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +370 -374
- data/generated/google/apis/datastore_v1/representations.rb +120 -120
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -0
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +24 -21
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +24 -22
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +148 -149
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +42 -42
- data/generated/google/apis/firebaserules_v1/classes.rb +71 -71
- data/generated/google/apis/firebaserules_v1/representations.rb +22 -22
- data/generated/google/apis/firebaserules_v1/service.rb +68 -68
- 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 +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +2348 -2348
- data/generated/google/apis/genomics_v1/representations.rb +430 -430
- data/generated/google/apis/genomics_v1/service.rb +1159 -1159
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/service.rb +2 -2
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +305 -298
- data/generated/google/apis/iam_v1/representations.rb +97 -96
- data/generated/google/apis/iam_v1/service.rb +86 -86
- 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 +10 -10
- data/generated/google/apis/language_v1.rb +4 -4
- data/generated/google/apis/language_v1/classes.rb +452 -452
- data/generated/google/apis/language_v1/representations.rb +93 -93
- data/generated/google/apis/language_v1/service.rb +48 -48
- data/generated/google/apis/language_v1beta1.rb +4 -4
- data/generated/google/apis/language_v1beta1/classes.rb +84 -84
- data/generated/google/apis/language_v1beta1/representations.rb +22 -22
- data/generated/google/apis/language_v1beta1/service.rb +3 -3
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +884 -873
- data/generated/google/apis/logging_v2/representations.rb +167 -166
- data/generated/google/apis/logging_v2/service.rb +430 -430
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +550 -539
- data/generated/google/apis/logging_v2beta1/representations.rb +124 -123
- data/generated/google/apis/logging_v2beta1/service.rb +292 -292
- data/generated/google/apis/manufacturers_v1/classes.rb +322 -322
- data/generated/google/apis/manufacturers_v1/representations.rb +66 -66
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +501 -494
- data/generated/google/apis/ml_v1/representations.rb +92 -91
- data/generated/google/apis/ml_v1/service.rb +190 -190
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +878 -878
- data/generated/google/apis/monitoring_v3/representations.rb +176 -176
- data/generated/google/apis/monitoring_v3/service.rb +223 -262
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1506 -1506
- data/generated/google/apis/partners_v2/representations.rb +370 -370
- data/generated/google/apis/partners_v2/service.rb +393 -393
- data/generated/google/apis/people_v1.rb +13 -13
- data/generated/google/apis/people_v1/classes.rb +597 -594
- data/generated/google/apis/people_v1/representations.rb +121 -121
- data/generated/google/apis/people_v1/service.rb +39 -48
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +323 -327
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +100 -100
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +184 -184
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +178 -178
- data/generated/google/apis/pubsub_v1/representations.rb +55 -55
- data/generated/google/apis/pubsub_v1/service.rb +357 -357
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +20 -20
- data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1/service.rb +12 -7
- data/generated/google/apis/script_v1.rb +16 -16
- data/generated/google/apis/script_v1/classes.rb +113 -113
- data/generated/google/apis/script_v1/representations.rb +28 -28
- data/generated/google/apis/script_v1/service.rb +4 -4
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
- data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
- data/generated/google/apis/searchconsole_v1/service.rb +6 -6
- data/generated/google/apis/servicecontrol_v1.rb +4 -4
- data/generated/google/apis/servicecontrol_v1/classes.rb +1146 -1145
- data/generated/google/apis/servicecontrol_v1/representations.rb +203 -203
- data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
- data/generated/google/apis/servicemanagement_v1.rb +4 -4
- data/generated/google/apis/servicemanagement_v1/classes.rb +3486 -3360
- data/generated/google/apis/servicemanagement_v1/representations.rb +342 -329
- data/generated/google/apis/servicemanagement_v1/service.rb +260 -250
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2716 -2596
- data/generated/google/apis/serviceuser_v1/representations.rb +391 -379
- data/generated/google/apis/serviceuser_v1/service.rb +16 -16
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4255 -4252
- data/generated/google/apis/sheets_v4/representations.rb +548 -548
- data/generated/google/apis/sheets_v4/service.rb +170 -170
- data/generated/google/apis/slides_v1.rb +4 -4
- data/generated/google/apis/slides_v1/classes.rb +2945 -2916
- data/generated/google/apis/slides_v1/representations.rb +700 -697
- data/generated/google/apis/slides_v1/service.rb +44 -44
- data/generated/google/apis/sourcerepo_v1.rb +2 -2
- data/generated/google/apis/sourcerepo_v1/classes.rb +419 -410
- data/generated/google/apis/sourcerepo_v1/representations.rb +88 -87
- data/generated/google/apis/sourcerepo_v1/service.rb +67 -58
- data/generated/google/apis/spanner_v1/classes.rb +2187 -2187
- data/generated/google/apis/spanner_v1/representations.rb +323 -323
- data/generated/google/apis/spanner_v1/service.rb +383 -383
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +226 -226
- data/generated/google/apis/speech_v1beta1/representations.rb +44 -44
- data/generated/google/apis/speech_v1beta1/service.rb +37 -32
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -28
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -16
- data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +26 -0
- data/generated/google/apis/storage_v1/representations.rb +15 -0
- data/generated/google/apis/storage_v1/service.rb +168 -42
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +218 -218
- data/generated/google/apis/storagetransfer_v1/representations.rb +47 -47
- data/generated/google/apis/storagetransfer_v1/service.rb +68 -68
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -4
- data/generated/google/apis/toolresults_v1beta3/service.rb +9 -8
- data/generated/google/apis/translate_v2.rb +11 -4
- data/generated/google/apis/translate_v2/classes.rb +140 -37
- data/generated/google/apis/translate_v2/representations.rb +62 -15
- data/generated/google/apis/translate_v2/service.rb +119 -66
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1265 -1273
- data/generated/google/apis/vision_v1/representations.rb +202 -202
- data/generated/google/apis/vision_v1/service.rb +4 -4
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +91 -91
- data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
- data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
- data/lib/google/apis/core/api_command.rb +43 -10
- data/lib/google/apis/core/json_representation.rb +1 -1
- data/lib/google/apis/options.rb +6 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +3 -3
@@ -28,16 +28,16 @@ module Google
|
|
28
28
|
# @see https://cloud.google.com/trace
|
29
29
|
module CloudtraceV1
|
30
30
|
VERSION = 'V1'
|
31
|
-
REVISION = '
|
31
|
+
REVISION = '20170516'
|
32
|
+
|
33
|
+
# Read Trace data for a project or application
|
34
|
+
AUTH_TRACE_READONLY = 'https://www.googleapis.com/auth/trace.readonly'
|
32
35
|
|
33
36
|
# Write Trace data for a project or application
|
34
37
|
AUTH_TRACE_APPEND = 'https://www.googleapis.com/auth/trace.append'
|
35
38
|
|
36
39
|
# View and manage your data across Google Cloud Platform services
|
37
40
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
38
|
-
|
39
|
-
# Read Trace data for a project or application
|
40
|
-
AUTH_TRACE_READONLY = 'https://www.googleapis.com/auth/trace.readonly'
|
41
41
|
end
|
42
42
|
end
|
43
43
|
end
|
@@ -22,86 +22,6 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module CloudtraceV1
|
24
24
|
|
25
|
-
# The response message for the `ListTraces` method.
|
26
|
-
class ListTracesResponse
|
27
|
-
include Google::Apis::Core::Hashable
|
28
|
-
|
29
|
-
# List of trace records returned.
|
30
|
-
# Corresponds to the JSON property `traces`
|
31
|
-
# @return [Array<Google::Apis::CloudtraceV1::Trace>]
|
32
|
-
attr_accessor :traces
|
33
|
-
|
34
|
-
# If defined, indicates that there are more traces that match the request
|
35
|
-
# and that this value should be passed to the next request to continue
|
36
|
-
# retrieving additional traces.
|
37
|
-
# Corresponds to the JSON property `nextPageToken`
|
38
|
-
# @return [String]
|
39
|
-
attr_accessor :next_page_token
|
40
|
-
|
41
|
-
def initialize(**args)
|
42
|
-
update!(**args)
|
43
|
-
end
|
44
|
-
|
45
|
-
# Update properties of this object
|
46
|
-
def update!(**args)
|
47
|
-
@traces = args[:traces] if args.key?(:traces)
|
48
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
|
-
# A generic empty message that you can re-use to avoid defining duplicated
|
53
|
-
# empty messages in your APIs. A typical example is to use it as the request
|
54
|
-
# or the response type of an API method. For instance:
|
55
|
-
# service Foo `
|
56
|
-
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
57
|
-
# `
|
58
|
-
# The JSON representation for `Empty` is empty JSON object ````.
|
59
|
-
class Empty
|
60
|
-
include Google::Apis::Core::Hashable
|
61
|
-
|
62
|
-
def initialize(**args)
|
63
|
-
update!(**args)
|
64
|
-
end
|
65
|
-
|
66
|
-
# Update properties of this object
|
67
|
-
def update!(**args)
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
|
-
# A trace describes how long it takes for an application to perform an
|
72
|
-
# operation. It consists of a set of spans, each of which represent a single
|
73
|
-
# timed event within the operation.
|
74
|
-
class Trace
|
75
|
-
include Google::Apis::Core::Hashable
|
76
|
-
|
77
|
-
# Project ID of the Cloud project where the trace data is stored.
|
78
|
-
# Corresponds to the JSON property `projectId`
|
79
|
-
# @return [String]
|
80
|
-
attr_accessor :project_id
|
81
|
-
|
82
|
-
# Collection of spans in the trace.
|
83
|
-
# Corresponds to the JSON property `spans`
|
84
|
-
# @return [Array<Google::Apis::CloudtraceV1::TraceSpan>]
|
85
|
-
attr_accessor :spans
|
86
|
-
|
87
|
-
# Globally unique identifier for the trace. This identifier is a 128-bit
|
88
|
-
# numeric value formatted as a 32-byte hex string.
|
89
|
-
# Corresponds to the JSON property `traceId`
|
90
|
-
# @return [String]
|
91
|
-
attr_accessor :trace_id
|
92
|
-
|
93
|
-
def initialize(**args)
|
94
|
-
update!(**args)
|
95
|
-
end
|
96
|
-
|
97
|
-
# Update properties of this object
|
98
|
-
def update!(**args)
|
99
|
-
@project_id = args[:project_id] if args.key?(:project_id)
|
100
|
-
@spans = args[:spans] if args.key?(:spans)
|
101
|
-
@trace_id = args[:trace_id] if args.key?(:trace_id)
|
102
|
-
end
|
103
|
-
end
|
104
|
-
|
105
25
|
# List of new or updated traces.
|
106
26
|
class Traces
|
107
27
|
include Google::Apis::Core::Hashable
|
@@ -129,39 +49,6 @@ module Google
|
|
129
49
|
class TraceSpan
|
130
50
|
include Google::Apis::Core::Hashable
|
131
51
|
|
132
|
-
# Collection of labels associated with the span. Label keys must be less than
|
133
|
-
# 128 bytes. Label values must be less than 16 kilobytes (10MB for
|
134
|
-
# `/stacktrace` values).
|
135
|
-
# Some predefined label keys exist, or you may create your own. When creating
|
136
|
-
# your own, we recommend the following formats:
|
137
|
-
# * `/category/product/key` for agents of well-known products (e.g.
|
138
|
-
# `/db/mongodb/read_size`).
|
139
|
-
# * `short_host/path/key` for domain-specific keys (e.g.
|
140
|
-
# `foo.com/myproduct/bar`)
|
141
|
-
# Predefined labels include:
|
142
|
-
# * `/agent`
|
143
|
-
# * `/component`
|
144
|
-
# * `/error/message`
|
145
|
-
# * `/error/name`
|
146
|
-
# * `/http/client_city`
|
147
|
-
# * `/http/client_country`
|
148
|
-
# * `/http/client_protocol`
|
149
|
-
# * `/http/client_region`
|
150
|
-
# * `/http/host`
|
151
|
-
# * `/http/method`
|
152
|
-
# * `/http/redirected_url`
|
153
|
-
# * `/http/request/size`
|
154
|
-
# * `/http/response/size`
|
155
|
-
# * `/http/status_code`
|
156
|
-
# * `/http/url`
|
157
|
-
# * `/http/user_agent`
|
158
|
-
# * `/pid`
|
159
|
-
# * `/stacktrace`
|
160
|
-
# * `/tid`
|
161
|
-
# Corresponds to the JSON property `labels`
|
162
|
-
# @return [Hash<String,String>]
|
163
|
-
attr_accessor :labels
|
164
|
-
|
165
52
|
# Name of the span. Must be less than 128 bytes. The span name is sanitized
|
166
53
|
# and displayed in the Stackdriver Trace tool in the
|
167
54
|
# `% dynamic print site_values.console_name %`.
|
@@ -201,19 +88,132 @@ module Google
|
|
201
88
|
# @return [String]
|
202
89
|
attr_accessor :kind
|
203
90
|
|
91
|
+
# Collection of labels associated with the span. Label keys must be less than
|
92
|
+
# 128 bytes. Label values must be less than 16 kilobytes (10MB for
|
93
|
+
# `/stacktrace` values).
|
94
|
+
# Some predefined label keys exist, or you may create your own. When creating
|
95
|
+
# your own, we recommend the following formats:
|
96
|
+
# * `/category/product/key` for agents of well-known products (e.g.
|
97
|
+
# `/db/mongodb/read_size`).
|
98
|
+
# * `short_host/path/key` for domain-specific keys (e.g.
|
99
|
+
# `foo.com/myproduct/bar`)
|
100
|
+
# Predefined labels include:
|
101
|
+
# * `/agent`
|
102
|
+
# * `/component`
|
103
|
+
# * `/error/message`
|
104
|
+
# * `/error/name`
|
105
|
+
# * `/http/client_city`
|
106
|
+
# * `/http/client_country`
|
107
|
+
# * `/http/client_protocol`
|
108
|
+
# * `/http/client_region`
|
109
|
+
# * `/http/host`
|
110
|
+
# * `/http/method`
|
111
|
+
# * `/http/redirected_url`
|
112
|
+
# * `/http/request/size`
|
113
|
+
# * `/http/response/size`
|
114
|
+
# * `/http/status_code`
|
115
|
+
# * `/http/url`
|
116
|
+
# * `/http/user_agent`
|
117
|
+
# * `/pid`
|
118
|
+
# * `/stacktrace`
|
119
|
+
# * `/tid`
|
120
|
+
# Corresponds to the JSON property `labels`
|
121
|
+
# @return [Hash<String,String>]
|
122
|
+
attr_accessor :labels
|
123
|
+
|
204
124
|
def initialize(**args)
|
205
125
|
update!(**args)
|
206
126
|
end
|
207
127
|
|
208
128
|
# Update properties of this object
|
209
129
|
def update!(**args)
|
210
|
-
@labels = args[:labels] if args.key?(:labels)
|
211
130
|
@name = args[:name] if args.key?(:name)
|
212
131
|
@span_id = args[:span_id] if args.key?(:span_id)
|
213
132
|
@parent_span_id = args[:parent_span_id] if args.key?(:parent_span_id)
|
214
133
|
@end_time = args[:end_time] if args.key?(:end_time)
|
215
134
|
@start_time = args[:start_time] if args.key?(:start_time)
|
216
135
|
@kind = args[:kind] if args.key?(:kind)
|
136
|
+
@labels = args[:labels] if args.key?(:labels)
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
# The response message for the `ListTraces` method.
|
141
|
+
class ListTracesResponse
|
142
|
+
include Google::Apis::Core::Hashable
|
143
|
+
|
144
|
+
# List of trace records returned.
|
145
|
+
# Corresponds to the JSON property `traces`
|
146
|
+
# @return [Array<Google::Apis::CloudtraceV1::Trace>]
|
147
|
+
attr_accessor :traces
|
148
|
+
|
149
|
+
# If defined, indicates that there are more traces that match the request
|
150
|
+
# and that this value should be passed to the next request to continue
|
151
|
+
# retrieving additional traces.
|
152
|
+
# Corresponds to the JSON property `nextPageToken`
|
153
|
+
# @return [String]
|
154
|
+
attr_accessor :next_page_token
|
155
|
+
|
156
|
+
def initialize(**args)
|
157
|
+
update!(**args)
|
158
|
+
end
|
159
|
+
|
160
|
+
# Update properties of this object
|
161
|
+
def update!(**args)
|
162
|
+
@traces = args[:traces] if args.key?(:traces)
|
163
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
167
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
168
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
169
|
+
# or the response type of an API method. For instance:
|
170
|
+
# service Foo `
|
171
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
172
|
+
# `
|
173
|
+
# The JSON representation for `Empty` is empty JSON object ````.
|
174
|
+
class Empty
|
175
|
+
include Google::Apis::Core::Hashable
|
176
|
+
|
177
|
+
def initialize(**args)
|
178
|
+
update!(**args)
|
179
|
+
end
|
180
|
+
|
181
|
+
# Update properties of this object
|
182
|
+
def update!(**args)
|
183
|
+
end
|
184
|
+
end
|
185
|
+
|
186
|
+
# A trace describes how long it takes for an application to perform an
|
187
|
+
# operation. It consists of a set of spans, each of which represent a single
|
188
|
+
# timed event within the operation.
|
189
|
+
class Trace
|
190
|
+
include Google::Apis::Core::Hashable
|
191
|
+
|
192
|
+
# Project ID of the Cloud project where the trace data is stored.
|
193
|
+
# Corresponds to the JSON property `projectId`
|
194
|
+
# @return [String]
|
195
|
+
attr_accessor :project_id
|
196
|
+
|
197
|
+
# Collection of spans in the trace.
|
198
|
+
# Corresponds to the JSON property `spans`
|
199
|
+
# @return [Array<Google::Apis::CloudtraceV1::TraceSpan>]
|
200
|
+
attr_accessor :spans
|
201
|
+
|
202
|
+
# Globally unique identifier for the trace. This identifier is a 128-bit
|
203
|
+
# numeric value formatted as a 32-byte hex string.
|
204
|
+
# Corresponds to the JSON property `traceId`
|
205
|
+
# @return [String]
|
206
|
+
attr_accessor :trace_id
|
207
|
+
|
208
|
+
def initialize(**args)
|
209
|
+
update!(**args)
|
210
|
+
end
|
211
|
+
|
212
|
+
# Update properties of this object
|
213
|
+
def update!(**args)
|
214
|
+
@project_id = args[:project_id] if args.key?(:project_id)
|
215
|
+
@spans = args[:spans] if args.key?(:spans)
|
216
|
+
@trace_id = args[:trace_id] if args.key?(:trace_id)
|
217
217
|
end
|
218
218
|
end
|
219
219
|
end
|
@@ -22,79 +22,79 @@ 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
60
|
end
|
62
61
|
end
|
63
62
|
|
64
|
-
class
|
63
|
+
class TraceSpan
|
65
64
|
# @private
|
66
65
|
class Representation < Google::Apis::Core::JsonRepresentation
|
66
|
+
property :name, as: 'name'
|
67
|
+
property :span_id, :numeric_string => true, as: 'spanId'
|
68
|
+
property :parent_span_id, :numeric_string => true, as: 'parentSpanId'
|
69
|
+
property :end_time, as: 'endTime'
|
70
|
+
property :start_time, as: 'startTime'
|
71
|
+
property :kind, as: 'kind'
|
72
|
+
hash :labels, as: 'labels'
|
67
73
|
end
|
68
74
|
end
|
69
75
|
|
70
|
-
class
|
76
|
+
class ListTracesResponse
|
71
77
|
# @private
|
72
78
|
class Representation < Google::Apis::Core::JsonRepresentation
|
73
|
-
|
74
|
-
collection :spans, as: 'spans', class: Google::Apis::CloudtraceV1::TraceSpan, decorator: Google::Apis::CloudtraceV1::TraceSpan::Representation
|
79
|
+
collection :traces, as: 'traces', class: Google::Apis::CloudtraceV1::Trace, decorator: Google::Apis::CloudtraceV1::Trace::Representation
|
75
80
|
|
76
|
-
property :
|
81
|
+
property :next_page_token, as: 'nextPageToken'
|
77
82
|
end
|
78
83
|
end
|
79
84
|
|
80
|
-
class
|
85
|
+
class Empty
|
81
86
|
# @private
|
82
87
|
class Representation < Google::Apis::Core::JsonRepresentation
|
83
|
-
collection :traces, as: 'traces', class: Google::Apis::CloudtraceV1::Trace, decorator: Google::Apis::CloudtraceV1::Trace::Representation
|
84
|
-
|
85
88
|
end
|
86
89
|
end
|
87
90
|
|
88
|
-
class
|
91
|
+
class Trace
|
89
92
|
# @private
|
90
93
|
class Representation < Google::Apis::Core::JsonRepresentation
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
property :
|
95
|
-
property :end_time, as: 'endTime'
|
96
|
-
property :start_time, as: 'startTime'
|
97
|
-
property :kind, as: 'kind'
|
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
98
|
end
|
99
99
|
end
|
100
100
|
end
|
@@ -90,13 +90,6 @@ module Google
|
|
90
90
|
# Returns of a list of traces that match the specified filter conditions.
|
91
91
|
# @param [String] project_id
|
92
92
|
# ID of the Cloud project where the trace data is stored.
|
93
|
-
# @param [Fixnum] page_size
|
94
|
-
# Maximum number of traces to return. If not specified or <= 0, the
|
95
|
-
# implementation selects a reasonable value. The implementation may
|
96
|
-
# return fewer traces than the requested page size. Optional.
|
97
|
-
# @param [String] view
|
98
|
-
# Type of data returned for traces in the list. Optional. Default is
|
99
|
-
# `MINIMAL`.
|
100
93
|
# @param [String] order_by
|
101
94
|
# Field used to sort the returned traces. Optional.
|
102
95
|
# Can be one of the following:
|
@@ -140,12 +133,19 @@ module Google
|
|
140
133
|
# @param [String] end_time
|
141
134
|
# End of the time interval (inclusive) during which the trace data was
|
142
135
|
# collected from the application.
|
143
|
-
# @param [String] page_token
|
144
|
-
# Token identifying the page of results to return. If provided, use the
|
145
|
-
# value of the `next_page_token` field from a previous request. Optional.
|
146
136
|
# @param [String] start_time
|
147
137
|
# Start of the time interval (inclusive) during which the trace data was
|
148
138
|
# collected from the application.
|
139
|
+
# @param [String] page_token
|
140
|
+
# Token identifying the page of results to return. If provided, use the
|
141
|
+
# value of the `next_page_token` field from a previous request. Optional.
|
142
|
+
# @param [Fixnum] page_size
|
143
|
+
# Maximum number of traces to return. If not specified or <= 0, the
|
144
|
+
# implementation selects a reasonable value. The implementation may
|
145
|
+
# return fewer traces than the requested page size. Optional.
|
146
|
+
# @param [String] view
|
147
|
+
# Type of data returned for traces in the list. Optional. Default is
|
148
|
+
# `MINIMAL`.
|
149
149
|
# @param [String] quota_user
|
150
150
|
# Available to use for quota purposes for server-side applications. Can be any
|
151
151
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -163,18 +163,18 @@ module Google
|
|
163
163
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
164
164
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
165
165
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
166
|
-
def list_project_traces(project_id,
|
166
|
+
def list_project_traces(project_id, order_by: nil, filter: nil, end_time: nil, start_time: nil, page_token: nil, page_size: nil, view: nil, quota_user: nil, fields: nil, options: nil, &block)
|
167
167
|
command = make_simple_command(:get, 'v1/projects/{projectId}/traces', options)
|
168
168
|
command.response_representation = Google::Apis::CloudtraceV1::ListTracesResponse::Representation
|
169
169
|
command.response_class = Google::Apis::CloudtraceV1::ListTracesResponse
|
170
170
|
command.params['projectId'] = project_id unless project_id.nil?
|
171
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
172
|
-
command.query['view'] = view unless view.nil?
|
173
171
|
command.query['orderBy'] = order_by unless order_by.nil?
|
174
172
|
command.query['filter'] = filter unless filter.nil?
|
175
173
|
command.query['endTime'] = end_time unless end_time.nil?
|
176
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
177
174
|
command.query['startTime'] = start_time unless start_time.nil?
|
175
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
176
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
177
|
+
command.query['view'] = view unless view.nil?
|
178
178
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
179
179
|
command.query['fields'] = fields unless fields.nil?
|
180
180
|
execute_or_queue_command(command, &block)
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/compute/docs/reference/latest/
|
26
26
|
module ComputeBeta
|
27
27
|
VERSION = 'Beta'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170515'
|
29
29
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|