google-api-client 0.9.8 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +15 -8
- data/CHANGELOG.md +84 -0
- data/Gemfile +10 -2
- data/README.md +10 -2
- data/api_names.yaml +37172 -135
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1200 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +526 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +844 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +310 -28
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +84 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
- data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +206 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +63 -0
- data/generated/google/apis/admin_directory_v1/service.rb +41 -2
- data/generated/google/apis/admin_reports_v1.rb +5 -5
- data/generated/google/apis/admin_reports_v1/service.rb +6 -6
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +379 -3
- data/generated/google/apis/analytics_v3/representations.rb +136 -0
- data/generated/google/apis/analytics_v3/service.rb +256 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +858 -823
- data/generated/google/apis/analyticsreporting_v4/representations.rb +194 -193
- data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +913 -220
- data/generated/google/apis/androidenterprise_v1/representations.rb +337 -30
- data/generated/google/apis/androidenterprise_v1/service.rb +1163 -561
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +230 -8
- data/generated/google/apis/androidpublisher_v2/representations.rb +90 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +116 -3
- data/generated/google/apis/appengine_v1beta5.rb +7 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +810 -395
- data/generated/google/apis/appengine_v1beta5/representations.rb +188 -22
- data/generated/google/apis/appengine_v1beta5/service.rb +343 -39
- data/generated/google/apis/appsactivity_v1.rb +3 -3
- data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
- data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
- data/generated/google/apis/appsactivity_v1/service.rb +1 -1
- 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 +360 -38
- data/generated/google/apis/bigquery_v2/representations.rb +106 -0
- data/generated/google/apis/bigquery_v2/service.rb +18 -4
- data/generated/google/apis/books_v1.rb +2 -2
- data/generated/google/apis/books_v1/classes.rb +83 -0
- data/generated/google/apis/books_v1/representations.rb +35 -0
- data/generated/google/apis/books_v1/service.rb +7 -3
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +208 -5
- data/generated/google/apis/calendar_v3/representations.rb +97 -0
- data/generated/google/apis/civicinfo_v2.rb +3 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
- data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
- data/generated/google/apis/civicinfo_v2/service.rb +27 -6
- data/generated/google/apis/classroom_v1.rb +22 -25
- data/generated/google/apis/classroom_v1/classes.rb +998 -761
- data/generated/google/apis/classroom_v1/representations.rb +263 -198
- data/generated/google/apis/classroom_v1/service.rb +1349 -672
- data/generated/google/apis/cloudbilling_v1.rb +3 -3
- data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
- data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
- data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +661 -264
- data/generated/google/apis/cloudbuild_v1/representations.rb +198 -48
- data/generated/google/apis/cloudbuild_v1/service.rb +259 -44
- data/generated/google/apis/clouddebugger_v2.rb +5 -8
- data/generated/google/apis/clouddebugger_v2/classes.rb +686 -616
- data/generated/google/apis/clouddebugger_v2/representations.rb +151 -151
- data/generated/google/apis/clouddebugger_v2/service.rb +165 -159
- data/generated/google/apis/cloudkms_v1.rb +35 -0
- data/generated/google/apis/cloudkms_v1/classes.rb +1022 -0
- data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1/service.rb +933 -0
- data/generated/google/apis/cloudkms_v1beta1.rb +35 -0
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +1039 -0
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1beta1/service.rb +933 -0
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1529 -167
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +491 -26
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +1593 -135
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1155 -235
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +344 -44
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +702 -310
- data/generated/google/apis/cloudtrace_v1.rb +9 -9
- data/generated/google/apis/cloudtrace_v1/classes.rb +98 -92
- data/generated/google/apis/cloudtrace_v1/representations.rb +24 -24
- data/generated/google/apis/cloudtrace_v1/service.rb +42 -37
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +7007 -3648
- data/generated/google/apis/compute_beta/representations.rb +1459 -120
- data/generated/google/apis/compute_beta/service.rb +7943 -3726
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +2567 -370
- data/generated/google/apis/compute_v1/representations.rb +855 -0
- data/generated/google/apis/compute_v1/service.rb +6388 -2908
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +287 -16
- data/generated/google/apis/container_v1/representations.rb +113 -2
- data/generated/google/apis/container_v1/service.rb +130 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +778 -10
- data/generated/google/apis/content_v2/representations.rb +339 -0
- data/generated/google/apis/content_v2/service.rb +364 -49
- data/generated/google/apis/dataflow_v1b3.rb +37 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +4941 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +2037 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +957 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1235 -963
- data/generated/google/apis/dataproc_v1/representations.rb +299 -225
- data/generated/google/apis/dataproc_v1/service.rb +277 -192
- data/generated/google/apis/datastore_v1.rb +38 -0
- data/generated/google/apis/datastore_v1/classes.rb +1289 -0
- data/generated/google/apis/datastore_v1/representations.rb +572 -0
- data/generated/google/apis/datastore_v1/service.rb +259 -0
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +436 -3
- data/generated/google/apis/deploymentmanager_v2/representations.rb +178 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +226 -61
- data/generated/google/apis/dfareporting_v2_5.rb +40 -0
- data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
- data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
- data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
- data/generated/google/apis/dfareporting_v2_6.rb +40 -0
- data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
- data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
- data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
- data/generated/google/apis/dfareporting_v2_7.rb +40 -0
- data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
- data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
- data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +43 -0
- data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
- data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
- data/generated/google/apis/dns_v2beta1/service.rb +768 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +595 -37
- data/generated/google/apis/drive_v2/representations.rb +140 -0
- data/generated/google/apis/drive_v2/service.rb +406 -40
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +507 -40
- data/generated/google/apis/drive_v3/representations.rb +105 -0
- data/generated/google/apis/drive_v3/service.rb +326 -29
- data/generated/google/apis/fitness_v1.rb +38 -2
- data/generated/google/apis/fitness_v1/classes.rb +65 -7
- data/generated/google/apis/fitness_v1/representations.rb +20 -0
- data/generated/google/apis/fitness_v1/service.rb +17 -18
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
- 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 +10 -12
- data/generated/google/apis/genomics_v1/classes.rb +2276 -2165
- data/generated/google/apis/genomics_v1/representations.rb +468 -496
- data/generated/google/apis/genomics_v1/service.rb +978 -882
- data/generated/google/apis/gmail_v1.rb +11 -2
- data/generated/google/apis/gmail_v1/classes.rb +655 -5
- data/generated/google/apis/gmail_v1/representations.rb +261 -0
- data/generated/google/apis/gmail_v1/service.rb +1211 -48
- data/generated/google/apis/groupssettings_v1.rb +2 -2
- data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
- data/generated/google/apis/iam_v1.rb +2 -2
- data/generated/google/apis/iam_v1/classes.rb +446 -368
- data/generated/google/apis/iam_v1/representations.rb +109 -91
- data/generated/google/apis/iam_v1/service.rb +249 -162
- data/generated/google/apis/identitytoolkit_v3.rb +7 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +254 -2
- data/generated/google/apis/identitytoolkit_v3/representations.rb +38 -0
- data/generated/google/apis/kgsearch_v1.rb +2 -3
- data/generated/google/apis/kgsearch_v1/classes.rb +13 -13
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
- data/generated/google/apis/kgsearch_v1/service.rb +26 -24
- data/generated/google/apis/language_v1beta1.rb +36 -0
- data/generated/google/apis/language_v1beta1/classes.rb +757 -0
- data/generated/google/apis/language_v1beta1/representations.rb +339 -0
- data/generated/google/apis/language_v1beta1/service.rb +185 -0
- data/generated/google/apis/licensing_v1.rb +3 -3
- data/generated/google/apis/licensing_v1/classes.rb +14 -2
- data/generated/google/apis/licensing_v1/representations.rb +2 -0
- data/generated/google/apis/licensing_v1/service.rb +1 -1
- data/generated/google/apis/logging_v2beta1.rb +6 -6
- data/generated/google/apis/logging_v2beta1/classes.rb +900 -775
- data/generated/google/apis/logging_v2beta1/representations.rb +163 -142
- data/generated/google/apis/logging_v2beta1/service.rb +427 -155
- data/generated/google/apis/manufacturers_v1.rb +34 -0
- data/generated/google/apis/manufacturers_v1/classes.rb +605 -0
- data/generated/google/apis/manufacturers_v1/representations.rb +223 -0
- data/generated/google/apis/manufacturers_v1/service.rb +138 -0
- data/generated/google/apis/mirror_v1.rb +2 -2
- data/generated/google/apis/mirror_v1/service.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +45 -0
- data/generated/google/apis/monitoring_v3/classes.rb +1333 -0
- data/generated/google/apis/monitoring_v3/representations.rb +516 -0
- data/generated/google/apis/monitoring_v3/service.rb +706 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/partners_v2.rb +3 -3
- data/generated/google/apis/partners_v2/classes.rb +1831 -477
- data/generated/google/apis/partners_v2/representations.rb +571 -114
- data/generated/google/apis/partners_v2/service.rb +898 -167
- data/generated/google/apis/people_v1.rb +15 -16
- data/generated/google/apis/people_v1/classes.rb +1047 -859
- data/generated/google/apis/people_v1/representations.rb +252 -213
- data/generated/google/apis/people_v1/service.rb +75 -62
- 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 +527 -456
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +101 -100
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +467 -343
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +363 -310
- data/generated/google/apis/pubsub_v1/representations.rb +76 -76
- data/generated/google/apis/pubsub_v1/service.rb +464 -335
- data/generated/google/apis/qpx_express_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
- data/generated/google/apis/replicapool_v1beta2.rb +1 -1
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +222 -61
- data/generated/google/apis/reseller_v1/representations.rb +28 -0
- data/generated/google/apis/reseller_v1/service.rb +240 -47
- data/generated/google/apis/script_v1.rb +19 -19
- data/generated/google/apis/script_v1/classes.rb +151 -137
- data/generated/google/apis/script_v1/representations.rb +26 -26
- data/generated/google/apis/script_v1/service.rb +9 -8
- data/generated/google/apis/sheets_v4.rb +7 -7
- data/generated/google/apis/sheets_v4/classes.rb +4530 -3506
- data/generated/google/apis/sheets_v4/representations.rb +988 -737
- data/generated/google/apis/sheets_v4/service.rb +266 -99
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/slides_v1.rb +49 -0
- data/generated/google/apis/slides_v1/classes.rb +4480 -0
- data/generated/google/apis/slides_v1/representations.rb +1926 -0
- data/generated/google/apis/slides_v1/service.rb +245 -0
- data/generated/google/apis/speech_v1beta1.rb +34 -0
- data/generated/google/apis/speech_v1beta1/classes.rb +498 -0
- data/generated/google/apis/speech_v1beta1/representations.rb +206 -0
- data/generated/google/apis/speech_v1beta1/service.rb +270 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +131 -10
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +50 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +92 -2
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +205 -21
- data/generated/google/apis/storage_v1/representations.rb +51 -1
- data/generated/google/apis/storage_v1/service.rb +263 -9
- data/generated/google/apis/tagmanager_v1.rb +5 -5
- data/generated/google/apis/translate_v2.rb +2 -2
- data/generated/google/apis/translate_v2/service.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1275 -731
- data/generated/google/apis/vision_v1/representations.rb +378 -111
- 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_analytics_v1/classes.rb +0 -209
- data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
- data/generated/google/apis/youtube_analytics_v1/service.rb +5 -77
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +155 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +69 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +107 -3
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +430 -22
- data/generated/google/apis/youtube_v3/representations.rb +171 -4
- data/generated/google/apis/youtube_v3/service.rb +100 -9
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +140 -131
- data/generated/google/apis/youtubereporting_v1/representations.rb +37 -37
- data/generated/google/apis/youtubereporting_v1/service.rb +139 -135
- data/google-api-client.gemspec +4 -3
- data/lib/google/apis/core/api_command.rb +16 -6
- data/lib/google/apis/core/base_service.rb +17 -9
- data/lib/google/apis/core/download.rb +7 -2
- data/lib/google/apis/core/http_command.rb +5 -1
- data/lib/google/apis/core/json_representation.rb +2 -2
- data/lib/google/apis/core/upload.rb +7 -1
- data/lib/google/apis/errors.rb +6 -2
- data/lib/google/apis/generator/annotator.rb +6 -0
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/bigquery.rb +101 -0
- data/samples/cli/lib/samples/calendar.rb +1 -1
- data/samples/cli/lib/samples/gmail.rb +74 -0
- data/samples/cli/lib/samples/sheets.rb +61 -0
- data/samples/cli/lib/samples/you_tube.rb +4 -1
- data/sync.rb +71 -0
- metadata +86 -18
@@ -18,26 +18,26 @@ 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 = '
|
31
|
+
REVISION = '20170320'
|
32
32
|
|
33
|
-
#
|
34
|
-
|
33
|
+
# Read Trace data for a project or application
|
34
|
+
AUTH_TRACE_READONLY = 'https://www.googleapis.com/auth/trace.readonly'
|
35
35
|
|
36
36
|
# Write Trace data for a project or application
|
37
37
|
AUTH_TRACE_APPEND = 'https://www.googleapis.com/auth/trace.append'
|
38
38
|
|
39
|
-
#
|
40
|
-
|
39
|
+
# View and manage your data across Google Cloud Platform services
|
40
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
41
41
|
end
|
42
42
|
end
|
43
43
|
end
|
@@ -22,6 +22,75 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module CloudtraceV1
|
24
24
|
|
25
|
+
# A span represents a single timed event within a trace. Spans can be nested
|
26
|
+
# and form a trace tree. Often, a trace contains a root span that describes the
|
27
|
+
# end-to-end latency of an operation and, optionally, one or more subspans for
|
28
|
+
# its suboperations. Spans do not need to be contiguous. There may be gaps
|
29
|
+
# between spans in a trace.
|
30
|
+
class TraceSpan
|
31
|
+
include Google::Apis::Core::Hashable
|
32
|
+
|
33
|
+
# Identifier for the span. Must be a 64-bit integer other than 0 and
|
34
|
+
# unique within a trace.
|
35
|
+
# Corresponds to the JSON property `spanId`
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :span_id
|
38
|
+
|
39
|
+
# ID of the parent span, if any. Optional.
|
40
|
+
# Corresponds to the JSON property `parentSpanId`
|
41
|
+
# @return [String]
|
42
|
+
attr_accessor :parent_span_id
|
43
|
+
|
44
|
+
# End time of the span in nanoseconds from the UNIX epoch.
|
45
|
+
# Corresponds to the JSON property `endTime`
|
46
|
+
# @return [String]
|
47
|
+
attr_accessor :end_time
|
48
|
+
|
49
|
+
# Start time of the span in nanoseconds from the UNIX epoch.
|
50
|
+
# Corresponds to the JSON property `startTime`
|
51
|
+
# @return [String]
|
52
|
+
attr_accessor :start_time
|
53
|
+
|
54
|
+
# Distinguishes between spans generated in a particular context. For example,
|
55
|
+
# two spans with the same name may be distinguished using `RPC_CLIENT`
|
56
|
+
# and `RPC_SERVER` to identify queueing latency associated with the span.
|
57
|
+
# Corresponds to the JSON property `kind`
|
58
|
+
# @return [String]
|
59
|
+
attr_accessor :kind
|
60
|
+
|
61
|
+
# Collection of labels associated with the span. Label keys must be less than
|
62
|
+
# 128 bytes. Label values must be less than 16 kilobytes.
|
63
|
+
# Corresponds to the JSON property `labels`
|
64
|
+
# @return [Hash<String,String>]
|
65
|
+
attr_accessor :labels
|
66
|
+
|
67
|
+
# Name of the span. Must be less than 128 bytes. The span name is sanitized
|
68
|
+
# and displayed in the Stackdriver Trace tool in the
|
69
|
+
# `% dynamic print site_values.console_name %`.
|
70
|
+
# The name may be a method name or some other per-call site name.
|
71
|
+
# For the same executable and the same call point, a best practice is
|
72
|
+
# to use a consistent name, which makes it easier to correlate
|
73
|
+
# cross-trace spans.
|
74
|
+
# Corresponds to the JSON property `name`
|
75
|
+
# @return [String]
|
76
|
+
attr_accessor :name
|
77
|
+
|
78
|
+
def initialize(**args)
|
79
|
+
update!(**args)
|
80
|
+
end
|
81
|
+
|
82
|
+
# Update properties of this object
|
83
|
+
def update!(**args)
|
84
|
+
@span_id = args[:span_id] if args.key?(:span_id)
|
85
|
+
@parent_span_id = args[:parent_span_id] if args.key?(:parent_span_id)
|
86
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
87
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
88
|
+
@kind = args[:kind] if args.key?(:kind)
|
89
|
+
@labels = args[:labels] if args.key?(:labels)
|
90
|
+
@name = args[:name] if args.key?(:name)
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
25
94
|
# The response message for the `ListTraces` method.
|
26
95
|
class ListTracesResponse
|
27
96
|
include Google::Apis::Core::Hashable
|
@@ -31,9 +100,9 @@ module Google
|
|
31
100
|
# @return [Array<Google::Apis::CloudtraceV1::Trace>]
|
32
101
|
attr_accessor :traces
|
33
102
|
|
34
|
-
# If defined, indicates that there are more traces that match the request
|
35
|
-
# that this value should be passed to the next request to continue
|
36
|
-
# additional traces.
|
103
|
+
# If defined, indicates that there are more traces that match the request
|
104
|
+
# and that this value should be passed to the next request to continue
|
105
|
+
# retrieving additional traces.
|
37
106
|
# Corresponds to the JSON property `nextPageToken`
|
38
107
|
# @return [String]
|
39
108
|
attr_accessor :next_page_token
|
@@ -49,88 +118,46 @@ module Google
|
|
49
118
|
end
|
50
119
|
end
|
51
120
|
|
52
|
-
# A
|
53
|
-
#
|
54
|
-
#
|
55
|
-
|
121
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
122
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
123
|
+
# or the response type of an API method. For instance:
|
124
|
+
# service Foo `
|
125
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
126
|
+
# `
|
127
|
+
# The JSON representation for `Empty` is empty JSON object ````.
|
128
|
+
class Empty
|
56
129
|
include Google::Apis::Core::Hashable
|
57
130
|
|
58
|
-
# Project ID of the Cloud project where the trace data is stored.
|
59
|
-
# Corresponds to the JSON property `projectId`
|
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`
|
66
|
-
# @return [String]
|
67
|
-
attr_accessor :trace_id
|
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
131
|
def initialize(**args)
|
75
132
|
update!(**args)
|
76
133
|
end
|
77
134
|
|
78
135
|
# Update properties of this object
|
79
136
|
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
137
|
end
|
84
138
|
end
|
85
139
|
|
86
|
-
# A
|
87
|
-
#
|
88
|
-
#
|
89
|
-
|
90
|
-
# spans in a trace.
|
91
|
-
class TraceSpan
|
140
|
+
# A trace describes how long it takes for an application to perform an
|
141
|
+
# operation. It consists of a set of spans, each of which represent a single
|
142
|
+
# timed event within the operation.
|
143
|
+
class Trace
|
92
144
|
include Google::Apis::Core::Hashable
|
93
145
|
|
94
|
-
#
|
95
|
-
# Corresponds to the JSON property `
|
96
|
-
# @return [String]
|
97
|
-
attr_accessor :span_id
|
98
|
-
|
99
|
-
# Distinguishes between spans generated in a particular context. For example,
|
100
|
-
# two spans with the same name may be distinguished using `RPC_CLIENT` and `
|
101
|
-
# RPC_SERVER` to identify queueing latency associated with the span.
|
102
|
-
# Corresponds to the JSON property `kind`
|
103
|
-
# @return [String]
|
104
|
-
attr_accessor :kind
|
105
|
-
|
106
|
-
# Name of the trace. The trace name is sanitized and displayed in the
|
107
|
-
# Stackdriver Trace tool in the `% dynamic print site_values.console_name %`.
|
108
|
-
# The name may be a method name or some other per-call site name. For the same
|
109
|
-
# executable and the same call point, a best practice is to use a consistent
|
110
|
-
# name, which makes it easier to correlate cross-trace spans.
|
111
|
-
# Corresponds to the JSON property `name`
|
112
|
-
# @return [String]
|
113
|
-
attr_accessor :name
|
114
|
-
|
115
|
-
# Start time of the span in nanoseconds from the UNIX epoch.
|
116
|
-
# Corresponds to the JSON property `startTime`
|
146
|
+
# Project ID of the Cloud project where the trace data is stored.
|
147
|
+
# Corresponds to the JSON property `projectId`
|
117
148
|
# @return [String]
|
118
|
-
attr_accessor :
|
149
|
+
attr_accessor :project_id
|
119
150
|
|
120
|
-
#
|
121
|
-
# Corresponds to the JSON property `
|
122
|
-
# @return [
|
123
|
-
attr_accessor :
|
151
|
+
# Collection of spans in the trace.
|
152
|
+
# Corresponds to the JSON property `spans`
|
153
|
+
# @return [Array<Google::Apis::CloudtraceV1::TraceSpan>]
|
154
|
+
attr_accessor :spans
|
124
155
|
|
125
|
-
#
|
126
|
-
#
|
156
|
+
# Globally unique identifier for the trace. This identifier is a 128-bit
|
157
|
+
# numeric value formatted as a 32-byte hex string.
|
158
|
+
# Corresponds to the JSON property `traceId`
|
127
159
|
# @return [String]
|
128
|
-
attr_accessor :
|
129
|
-
|
130
|
-
# Collection of labels associated with the span.
|
131
|
-
# Corresponds to the JSON property `labels`
|
132
|
-
# @return [Hash<String,String>]
|
133
|
-
attr_accessor :labels
|
160
|
+
attr_accessor :trace_id
|
134
161
|
|
135
162
|
def initialize(**args)
|
136
163
|
update!(**args)
|
@@ -138,13 +165,9 @@ module Google
|
|
138
165
|
|
139
166
|
# Update properties of this object
|
140
167
|
def update!(**args)
|
141
|
-
@
|
142
|
-
@
|
143
|
-
@
|
144
|
-
@start_time = args[:start_time] if args.key?(:start_time)
|
145
|
-
@end_time = args[:end_time] if args.key?(:end_time)
|
146
|
-
@parent_span_id = args[:parent_span_id] if args.key?(:parent_span_id)
|
147
|
-
@labels = args[:labels] if args.key?(:labels)
|
168
|
+
@project_id = args[:project_id] if args.key?(:project_id)
|
169
|
+
@spans = args[:spans] if args.key?(:spans)
|
170
|
+
@trace_id = args[:trace_id] if args.key?(:trace_id)
|
148
171
|
end
|
149
172
|
end
|
150
173
|
|
@@ -166,23 +189,6 @@ module Google
|
|
166
189
|
@traces = args[:traces] if args.key?(:traces)
|
167
190
|
end
|
168
191
|
end
|
169
|
-
|
170
|
-
# A generic empty message that you can re-use to avoid defining duplicated empty
|
171
|
-
# messages in your APIs. A typical example is to use it as the request or the
|
172
|
-
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
173
|
-
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
|
174
|
-
# `Empty` is empty JSON object ````.
|
175
|
-
class Empty
|
176
|
-
include Google::Apis::Core::Hashable
|
177
|
-
|
178
|
-
def initialize(**args)
|
179
|
-
update!(**args)
|
180
|
-
end
|
181
|
-
|
182
|
-
# Update properties of this object
|
183
|
-
def update!(**args)
|
184
|
-
end
|
185
|
-
end
|
186
192
|
end
|
187
193
|
end
|
188
194
|
end
|
@@ -22,79 +22,79 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module CloudtraceV1
|
24
24
|
|
25
|
-
class
|
25
|
+
class TraceSpan
|
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 ListTracesResponse
|
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 Empty
|
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 Trace
|
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 Traces
|
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 TraceSpan
|
56
56
|
# @private
|
57
57
|
class Representation < Google::Apis::Core::JsonRepresentation
|
58
|
-
|
59
|
-
|
60
|
-
property :
|
58
|
+
property :span_id, as: 'spanId'
|
59
|
+
property :parent_span_id, as: 'parentSpanId'
|
60
|
+
property :end_time, as: 'endTime'
|
61
|
+
property :start_time, as: 'startTime'
|
62
|
+
property :kind, as: 'kind'
|
63
|
+
hash :labels, as: 'labels'
|
64
|
+
property :name, as: 'name'
|
61
65
|
end
|
62
66
|
end
|
63
67
|
|
64
|
-
class
|
68
|
+
class ListTracesResponse
|
65
69
|
# @private
|
66
70
|
class Representation < Google::Apis::Core::JsonRepresentation
|
67
|
-
|
68
|
-
property :trace_id, as: 'traceId'
|
69
|
-
collection :spans, as: 'spans', class: Google::Apis::CloudtraceV1::TraceSpan, decorator: Google::Apis::CloudtraceV1::TraceSpan::Representation
|
71
|
+
collection :traces, as: 'traces', class: Google::Apis::CloudtraceV1::Trace, decorator: Google::Apis::CloudtraceV1::Trace::Representation
|
70
72
|
|
73
|
+
property :next_page_token, as: 'nextPageToken'
|
71
74
|
end
|
72
75
|
end
|
73
76
|
|
74
|
-
class
|
77
|
+
class Empty
|
75
78
|
# @private
|
76
79
|
class Representation < Google::Apis::Core::JsonRepresentation
|
77
|
-
property :span_id, as: 'spanId'
|
78
|
-
property :kind, as: 'kind'
|
79
|
-
property :name, as: 'name'
|
80
|
-
property :start_time, as: 'startTime'
|
81
|
-
property :end_time, as: 'endTime'
|
82
|
-
property :parent_span_id, as: 'parentSpanId'
|
83
|
-
hash :labels, as: 'labels'
|
84
80
|
end
|
85
81
|
end
|
86
82
|
|
87
|
-
class
|
83
|
+
class Trace
|
88
84
|
# @private
|
89
85
|
class Representation < Google::Apis::Core::JsonRepresentation
|
90
|
-
|
86
|
+
property :project_id, as: 'projectId'
|
87
|
+
collection :spans, as: 'spans', class: Google::Apis::CloudtraceV1::TraceSpan, decorator: Google::Apis::CloudtraceV1::TraceSpan::Representation
|
91
88
|
|
89
|
+
property :trace_id, as: 'traceId'
|
92
90
|
end
|
93
91
|
end
|
94
92
|
|
95
|
-
class
|
93
|
+
class Traces
|
96
94
|
# @private
|
97
95
|
class Representation < Google::Apis::Core::JsonRepresentation
|
96
|
+
collection :traces, as: 'traces', class: Google::Apis::CloudtraceV1::Trace, decorator: Google::Apis::CloudtraceV1::Trace::Representation
|
97
|
+
|
98
98
|
end
|
99
99
|
end
|
100
100
|
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
|
-
#
|
95
|
-
#
|
96
|
-
#
|
97
|
-
#
|
98
|
-
#
|
99
|
-
#
|
100
|
-
#
|
101
|
-
#
|
102
|
-
#
|
103
|
-
#
|
92
|
+
# @param [String] order_by
|
93
|
+
# Field used to sort the returned traces. Optional.
|
94
|
+
# Can be one of the following:
|
95
|
+
# * `trace_id`
|
96
|
+
# * `name` (`name` field of root span in the trace)
|
97
|
+
# * `duration` (difference between `end_time` and `start_time` fields of
|
98
|
+
# the root span)
|
99
|
+
# * `start` (`start_time` field of the root span)
|
100
|
+
# Descending order can be specified by appending `desc` to the sort field
|
101
|
+
# (for example, `name desc`).
|
102
|
+
# Only one sort field is permitted.
|
103
|
+
# @param [String] filter
|
104
|
+
# An optional filter for the request.
|
104
105
|
# @param [String] end_time
|
105
106
|
# Start of the time interval (inclusive) during which the trace data was
|
106
107
|
# collected from the application.
|
107
|
-
# @param [String]
|
108
|
-
#
|
109
|
-
#
|
110
|
-
#
|
111
|
-
#
|
112
|
-
#
|
113
|
-
#
|
114
|
-
#
|
115
|
-
#
|
108
|
+
# @param [String] start_time
|
109
|
+
# End of the time interval (inclusive) during which the trace data was
|
110
|
+
# collected from the application.
|
111
|
+
# @param [String] page_token
|
112
|
+
# Token identifying the page of results to return. If provided, use the
|
113
|
+
# value of the `next_page_token` field from a previous request. Optional.
|
114
|
+
# @param [Fixnum] page_size
|
115
|
+
# Maximum number of traces to return. If not specified or <= 0, the
|
116
|
+
# implementation selects a reasonable value. The implementation may
|
117
|
+
# return fewer traces than the requested page size. Optional.
|
118
|
+
# @param [String] view
|
119
|
+
# Type of data returned for traces in the list. Optional. Default is
|
120
|
+
# `MINIMAL`.
|
116
121
|
# @param [String] fields
|
117
122
|
# Selector specifying which fields to include in a partial response.
|
118
123
|
# @param [String] quota_user
|
@@ -130,18 +135,18 @@ 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, order_by: nil, filter: nil, end_time: nil, start_time: nil, page_token: nil, page_size: nil, view: 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
|
-
command.query['filter'] = filter unless filter.nil?
|
144
143
|
command.query['orderBy'] = order_by unless order_by.nil?
|
144
|
+
command.query['filter'] = filter unless filter.nil?
|
145
|
+
command.query['endTime'] = end_time unless end_time.nil?
|
146
|
+
command.query['startTime'] = start_time unless start_time.nil?
|
147
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
148
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
149
|
+
command.query['view'] = view unless view.nil?
|
145
150
|
command.query['fields'] = fields unless fields.nil?
|
146
151
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
147
152
|
execute_or_queue_command(command, &block)
|