on develop help sign in
Regenerating gogol-cloudtrace from latest service definition
commite6e5c3da8ea599266490d0a4b0bc845706306aa8 authorBrendan Hay <brendan.g.hay@gmail.com> dateMon 20 Jun 2016, 09:33 (10 years ago) parentc171275
7 files changed+40−21
gogol-cloudtrace/gen/Network/Google/CloudTrace.hs+6−2 gogol-cloudtrace/gen/Network/Google/CloudTrace/Types.hs+10 gogol-cloudtrace/gen/Network/Google/CloudTrace/Types/Product.hs+4−4 gogol-cloudtrace/gen/Network/Google/Resource/CloudTrace/Projects/PatchTraces.hs+12−11 gogol-cloudtrace/gen/Network/Google/Resource/CloudTrace/Projects/Traces/Get.hs+2−1 gogol-cloudtrace/gen/Network/Google/Resource/CloudTrace/Projects/Traces/List.hs+2−1 gogol-cloudtrace/gogol-cloudtrace.cabal+4−2
gogol-cloudtrace/gen/Network/Google/CloudTrace.hs+6−2
@@ -13,8 +13,10 @@
1313-- Stability : auto-generated
1414-- Portability : non-portable (GHC extensions)
1515--
16−-- The Cloud Trace API allows you to send traces to and retrieve traces
17−-- from Google Cloud Trace.
16+-- Send and retrieve trace data from Google Cloud Trace. Data is generated
17+-- and available by default for all App Engine applications. Data from
18+-- other applications can be written to Cloud Trace for display, reporting,
19+-- and analysis.
1820--
1921-- /See:/ <https://cloud.google.com/tools/cloud-trace Google Cloud Trace API Reference>
2022module Network.Google.CloudTrace
@@ -23,6 +25,8 @@ module Network.Google.CloudTrace
2325 cloudTraceService
2426
2527 -- * OAuth Scopes
28+ , traceAppendScope
29+ , traceReadOnlyScope
2630 , cloudPlatformScope
2731
2832 -- * API Declaration
gogol-cloudtrace/gen/Network/Google/CloudTrace/Types.hs+10
@@ -20,6 +20,8 @@ module Network.Google.CloudTrace.Types
2020 cloudTraceService
2121
2222 -- * OAuth Scopes
23+ , traceAppendScope
24+ , traceReadOnlyScope
2325 , cloudPlatformScope
2426
2527 -- * Empty
@@ -71,6 +73,14 @@ cloudTraceService
7173 = defaultService (ServiceId "cloudtrace:v1")
7274 "cloudtrace.googleapis.com"
7375
76+-- | Write Trace data for a project or application
77+traceAppendScope :: Proxy '["https://www.googleapis.com/auth/trace.append"]
78+traceAppendScope = Proxy;
79+
80+-- | Read Trace data for a project or application
81+traceReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/trace.readonly"]
82+traceReadOnlyScope = Proxy;
83+
7484-- | View and manage your data across Google Cloud Platform services
7585cloudPlatformScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform"]
7686cloudPlatformScope = Proxy;
gogol-cloudtrace/gen/Network/Google/CloudTrace/Types/Product.hs+4−4
@@ -170,10 +170,10 @@ tsKind :: Lens' TraceSpan (Maybe Text)
170170tsKind = lens _tsKind (\ s a -> s{_tsKind = a})
171171
172172-- | Name of the trace. The trace name is sanitized and displayed in the
173−-- Cloud Trace tool in the Google Developers Console. The name may be a
174−-- method name or some other per-call site name. For the same executable
175−-- and the same call point, a best practice is to use a consistent name,
176−-- which makes it easier to correlate cross-trace spans.
173+-- Stackdriver Trace tool in the {% dynamic print site_values.console_name
174+-- %}. The name may be a method name or some other per-call site name. For
175+-- the same executable and the same call point, a best practice is to use a
176+-- consistent name, which makes it easier to correlate cross-trace spans.
177177tsName :: Lens' TraceSpan (Maybe Text)
178178tsName = lens _tsName (\ s a -> s{_tsName = a})
179179
gogol-cloudtrace/gen/Network/Google/Resource/CloudTrace/Projects/PatchTraces.hs+12−11
@@ -20,11 +20,11 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- Sends new traces to Cloud Trace or updates existing traces. If the ID of
24−-- a trace that you send matches that of an existing trace, any fields in
25−-- the existing trace and its spans are overwritten by the provided values,
26−-- and any new fields provided are merged with the existing trace data. If
27−-- the ID does not match, a new trace is created.
23+-- Sends new traces to Stackdriver Trace or updates existing traces. If the
24+-- ID of a trace that you send matches that of an existing trace, any
25+-- fields in the existing trace and its spans are overwritten by the
26+-- provided values, and any new fields provided are merged with the
27+-- existing trace data. If the ID does not match, a new trace is created.
2828--
2929-- /See:/ <https://cloud.google.com/tools/cloud-trace Google Cloud Trace API Reference> for @cloudtrace.projects.patchTraces@.
3030module Network.Google.Resource.CloudTrace.Projects.PatchTraces
@@ -68,11 +68,11 @@ type ProjectsPatchTracesResource =
6868 QueryParam "alt" AltJSON :>
6969 ReqBody '[JSON] Traces :> Patch '[JSON] Empty
7070
71−-- | Sends new traces to Cloud Trace or updates existing traces. If the ID of
72−-- a trace that you send matches that of an existing trace, any fields in
73−-- the existing trace and its spans are overwritten by the provided values,
74−-- and any new fields provided are merged with the existing trace data. If
75−-- the ID does not match, a new trace is created.
71+-- | Sends new traces to Stackdriver Trace or updates existing traces. If the
72+-- ID of a trace that you send matches that of an existing trace, any
73+-- fields in the existing trace and its spans are overwritten by the
74+-- provided values, and any new fields provided are merged with the
75+-- existing trace data. If the ID does not match, a new trace is created.
7676--
7777-- /See:/ 'projectsPatchTraces' smart constructor.
7878data ProjectsPatchTraces = ProjectsPatchTraces'
@@ -175,7 +175,8 @@ pptCallback
175175instance GoogleRequest ProjectsPatchTraces where
176176 type Rs ProjectsPatchTraces = Empty
177177 type Scopes ProjectsPatchTraces =
178− '["https://www.googleapis.com/auth/cloud-platform"]
178+ '["https://www.googleapis.com/auth/cloud-platform",
179+ "https://www.googleapis.com/auth/trace.append"]
179180 requestClient ProjectsPatchTraces'{..}
180181 = go _pptProjectId _pptXgafv _pptUploadProtocol
181182 (Just _pptPp)
gogol-cloudtrace/gen/Network/Google/Resource/CloudTrace/Projects/Traces/Get.hs+2−1
@@ -167,7 +167,8 @@ ptgCallback
167167instance GoogleRequest ProjectsTracesGet where
168168 type Rs ProjectsTracesGet = Trace
169169 type Scopes ProjectsTracesGet =
170− '["https://www.googleapis.com/auth/cloud-platform"]
170+ '["https://www.googleapis.com/auth/cloud-platform",
171+ "https://www.googleapis.com/auth/trace.readonly"]
171172 requestClient ProjectsTracesGet'{..}
172173 = go _ptgProjectId _ptgTraceId _ptgXgafv
173174 _ptgUploadProtocol
gogol-cloudtrace/gen/Network/Google/Resource/CloudTrace/Projects/Traces/List.hs+2−1
@@ -246,7 +246,8 @@ ptlCallback
246246instance GoogleRequest ProjectsTracesList where
247247 type Rs ProjectsTracesList = ListTracesResponse
248248 type Scopes ProjectsTracesList =
249− '["https://www.googleapis.com/auth/cloud-platform"]
249+ '["https://www.googleapis.com/auth/cloud-platform",
250+ "https://www.googleapis.com/auth/trace.readonly"]
250251 requestClient ProjectsTracesList'{..}
251252 = go _ptlProjectId _ptlXgafv _ptlUploadProtocol
252253 _ptlOrderBy
gogol-cloudtrace/gogol-cloudtrace.cabal+4−2
@@ -14,8 +14,10 @@ cabal-version: >= 1.10
1414extra-source-files: README.md
1515
1616description:
17− The Cloud Trace API allows you to send traces to and retrieve traces
18− from Google Cloud Trace.
17+ Send and retrieve trace data from Google Cloud Trace. Data is generated
18+ and available by default for all App Engine applications. Data from
19+ other applications can be written to Cloud Trace for display, reporting,
20+ and analysis.
1921 .
2022 /Warning:/ This is an experimental prototype/preview release which is still
2123 under exploratory development and not intended for public use, caveat emptor!