PluginProbe
Authorizer / 2.6.10
Authorizer v2.6.10
3.15.3 3.15.2 3.15.1 3.15.0 3.14.3 3.14.4 3.14.2 3.14.1 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.9.0 2.9.1 2.9.10 2.9.11 2.9.12 2.9.13 2.9.2 2.9.3 2.9.6 All 126 releases
authorizer / vendor / google-api-php-client / src / Google / Service / Cloudtrace.php

Cloudtrace.php in Authorizer 2.6.10, at vendor/google-api-php-client/src/Google/Service/Cloudtrace.php

397 lines 11.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 * use this file except in compliance with the License. You may obtain a copy of
5 * the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 * License for the specific language governing permissions and limitations under
13 * the License.
14 */
15
16 /**
17 * Service definition for Cloudtrace (v1).
18 *
19 * <p>
20 * The Cloud Trace API allows you to send traces to and retrieve traces from
21 * Google Cloud Trace.</p>
22 *
23 * <p>
24 * For more information about this service, see the API
25 * <a href="https://cloud.google.com/tools/cloud-trace" target="_blank">Documentation</a>
26 * </p>
27 *
28 * @author Google, Inc.
29 */
30 class Google_Service_Cloudtrace extends Google_Service
31 {
32 /** View and manage your data across Google Cloud Platform services. */
33 const CLOUD_PLATFORM =
34 "https://www.googleapis.com/auth/cloud-platform";
35
36 public $projects;
37 public $projects_traces;
38
39
40 /**
41 * Constructs the internal representation of the Cloudtrace service.
42 *
43 * @param Google_Client $client
44 */
45 public function __construct(Google_Client $client)
46 {
47 parent::__construct($client);
48 $this->rootUrl = 'https://cloudtrace.googleapis.com/';
49 $this->servicePath = '';
50 $this->version = 'v1';
51 $this->serviceName = 'cloudtrace';
52
53 $this->projects = new Google_Service_Cloudtrace_Projects_Resource(
54 $this,
55 $this->serviceName,
56 'projects',
57 array(
58 'methods' => array(
59 'patchTraces' => array(
60 'path' => 'v1/projects/{projectId}/traces',
61 'httpMethod' => 'PATCH',
62 'parameters' => array(
63 'projectId' => array(
64 'location' => 'path',
65 'type' => 'string',
66 'required' => true,
67 ),
68 ),
69 ),
70 )
71 )
72 );
73 $this->projects_traces = new Google_Service_Cloudtrace_ProjectsTraces_Resource(
74 $this,
75 $this->serviceName,
76 'traces',
77 array(
78 'methods' => array(
79 'get' => array(
80 'path' => 'v1/projects/{projectId}/traces/{traceId}',
81 'httpMethod' => 'GET',
82 'parameters' => array(
83 'projectId' => array(
84 'location' => 'path',
85 'type' => 'string',
86 'required' => true,
87 ),
88 'traceId' => array(
89 'location' => 'path',
90 'type' => 'string',
91 'required' => true,
92 ),
93 ),
94 ),'list' => array(
95 'path' => 'v1/projects/{projectId}/traces',
96 'httpMethod' => 'GET',
97 'parameters' => array(
98 'projectId' => array(
99 'location' => 'path',
100 'type' => 'string',
101 'required' => true,
102 ),
103 'view' => array(
104 'location' => 'query',
105 'type' => 'string',
106 ),
107 'pageSize' => array(
108 'location' => 'query',
109 'type' => 'integer',
110 ),
111 'pageToken' => array(
112 'location' => 'query',
113 'type' => 'string',
114 ),
115 'startTime' => array(
116 'location' => 'query',
117 'type' => 'string',
118 ),
119 'endTime' => array(
120 'location' => 'query',
121 'type' => 'string',
122 ),
123 'filter' => array(
124 'location' => 'query',
125 'type' => 'string',
126 ),
127 'orderBy' => array(
128 'location' => 'query',
129 'type' => 'string',
130 ),
131 ),
132 ),
133 )
134 )
135 );
136 }
137 }
138
139
140 /**
141 * The "projects" collection of methods.
142 * Typical usage is:
143 * <code>
144 * $cloudtraceService = new Google_Service_Cloudtrace(...);
145 * $projects = $cloudtraceService->projects;
146 * </code>
147 */
148 class Google_Service_Cloudtrace_Projects_Resource extends Google_Service_Resource
149 {
150
151 /**
152 * Sends new traces to Cloud Trace or updates existing traces. If the ID of a
153 * trace that you send matches that of an existing trace, any fields in the
154 * existing trace and its spans are overwritten by the provided values, and any
155 * new fields provided are merged with the existing trace data. If the ID does
156 * not match, a new trace is created. (projects.patchTraces)
157 *
158 * @param string $projectId ID of the Cloud project where the trace data is
159 * stored.
160 * @param Google_Traces $postBody
161 * @param array $optParams Optional parameters.
162 * @return Google_Service_Cloudtrace_Empty
163 */
164 public function patchTraces($projectId, Google_Service_Cloudtrace_Traces $postBody, $optParams = array())
165 {
166 $params = array('projectId' => $projectId, 'postBody' => $postBody);
167 $params = array_merge($params, $optParams);
168 return $this->call('patchTraces', array($params), "Google_Service_Cloudtrace_Empty");
169 }
170 }
171
172 /**
173 * The "traces" collection of methods.
174 * Typical usage is:
175 * <code>
176 * $cloudtraceService = new Google_Service_Cloudtrace(...);
177 * $traces = $cloudtraceService->traces;
178 * </code>
179 */
180 class Google_Service_Cloudtrace_ProjectsTraces_Resource extends Google_Service_Resource
181 {
182
183 /**
184 * Gets a single trace by its ID. (traces.get)
185 *
186 * @param string $projectId ID of the Cloud project where the trace data is
187 * stored.
188 * @param string $traceId ID of the trace to return.
189 * @param array $optParams Optional parameters.
190 * @return Google_Service_Cloudtrace_Trace
191 */
192 public function get($projectId, $traceId, $optParams = array())
193 {
194 $params = array('projectId' => $projectId, 'traceId' => $traceId);
195 $params = array_merge($params, $optParams);
196 return $this->call('get', array($params), "Google_Service_Cloudtrace_Trace");
197 }
198
199 /**
200 * Returns of a list of traces that match the specified filter conditions.
201 * (traces.listProjectsTraces)
202 *
203 * @param string $projectId ID of the Cloud project where the trace data is
204 * stored.
205 * @param array $optParams Optional parameters.
206 *
207 * @opt_param string view Type of data returned for traces in the list.
208 * Optional. Default is `MINIMAL`.
209 * @opt_param int pageSize Maximum number of traces to return. If not specified
210 * or <= 0, the implementation selects a reasonable value. The implementation
211 * may return fewer traces than the requested page size. Optional.
212 * @opt_param string pageToken Token identifying the page of results to return.
213 * If provided, use the value of the `next_page_token` field from a previous
214 * request. Optional.
215 * @opt_param string startTime End of the time interval (inclusive) during which
216 * the trace data was collected from the application.
217 * @opt_param string endTime Start of the time interval (inclusive) during which
218 * the trace data was collected from the application.
219 * @opt_param string filter An optional filter for the request.
220 * @opt_param string orderBy Field used to sort the returned traces. Optional.
221 * Can be one of the following: * `trace_id` * `name` (`name` field of root span
222 * in the trace) * `duration` (difference between `end_time` and `start_time`
223 * fields of the root span) * `start` (`start_time` field of the root span)
224 * Descending order can be specified by appending `desc` to the sort field (for
225 * example, `name desc`). Only one sort field is permitted.
226 * @return Google_Service_Cloudtrace_ListTracesResponse
227 */
228 public function listProjectsTraces($projectId, $optParams = array())
229 {
230 $params = array('projectId' => $projectId);
231 $params = array_merge($params, $optParams);
232 return $this->call('list', array($params), "Google_Service_Cloudtrace_ListTracesResponse");
233 }
234 }
235
236
237
238
239 class Google_Service_Cloudtrace_Empty extends Google_Model
240 {
241 }
242
243 class Google_Service_Cloudtrace_ListTracesResponse extends Google_Collection
244 {
245 protected $collection_key = 'traces';
246 protected $internal_gapi_mappings = array(
247 );
248 public $nextPageToken;
249 protected $tracesType = 'Google_Service_Cloudtrace_Trace';
250 protected $tracesDataType = 'array';
251
252
253 public function setNextPageToken($nextPageToken)
254 {
255 $this->nextPageToken = $nextPageToken;
256 }
257 public function getNextPageToken()
258 {
259 return $this->nextPageToken;
260 }
261 public function setTraces($traces)
262 {
263 $this->traces = $traces;
264 }
265 public function getTraces()
266 {
267 return $this->traces;
268 }
269 }
270
271 class Google_Service_Cloudtrace_Trace extends Google_Collection
272 {
273 protected $collection_key = 'spans';
274 protected $internal_gapi_mappings = array(
275 );
276 public $projectId;
277 protected $spansType = 'Google_Service_Cloudtrace_TraceSpan';
278 protected $spansDataType = 'array';
279 public $traceId;
280
281
282 public function setProjectId($projectId)
283 {
284 $this->projectId = $projectId;
285 }
286 public function getProjectId()
287 {
288 return $this->projectId;
289 }
290 public function setSpans($spans)
291 {
292 $this->spans = $spans;
293 }
294 public function getSpans()
295 {
296 return $this->spans;
297 }
298 public function setTraceId($traceId)
299 {
300 $this->traceId = $traceId;
301 }
302 public function getTraceId()
303 {
304 return $this->traceId;
305 }
306 }
307
308 class Google_Service_Cloudtrace_TraceSpan extends Google_Model
309 {
310 protected $internal_gapi_mappings = array(
311 );
312 public $endTime;
313 public $kind;
314 public $labels;
315 public $name;
316 public $parentSpanId;
317 public $spanId;
318 public $startTime;
319
320
321 public function setEndTime($endTime)
322 {
323 $this->endTime = $endTime;
324 }
325 public function getEndTime()
326 {
327 return $this->endTime;
328 }
329 public function setKind($kind)
330 {
331 $this->kind = $kind;
332 }
333 public function getKind()
334 {
335 return $this->kind;
336 }
337 public function setLabels($labels)
338 {
339 $this->labels = $labels;
340 }
341 public function getLabels()
342 {
343 return $this->labels;
344 }
345 public function setName($name)
346 {
347 $this->name = $name;
348 }
349 public function getName()
350 {
351 return $this->name;
352 }
353 public function setParentSpanId($parentSpanId)
354 {
355 $this->parentSpanId = $parentSpanId;
356 }
357 public function getParentSpanId()
358 {
359 return $this->parentSpanId;
360 }
361 public function setSpanId($spanId)
362 {
363 $this->spanId = $spanId;
364 }
365 public function getSpanId()
366 {
367 return $this->spanId;
368 }
369 public function setStartTime($startTime)
370 {
371 $this->startTime = $startTime;
372 }
373 public function getStartTime()
374 {
375 return $this->startTime;
376 }
377 }
378
379 class Google_Service_Cloudtrace_Traces extends Google_Collection
380 {
381 protected $collection_key = 'traces';
382 protected $internal_gapi_mappings = array(
383 );
384 protected $tracesType = 'Google_Service_Cloudtrace_Trace';
385 protected $tracesDataType = 'array';
386
387
388 public function setTraces($traces)
389 {
390 $this->traces = $traces;
391 }
392 public function getTraces()
393 {
394 return $this->traces;
395 }
396 }
397