1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18/**
19 * Service definition for CloudDebugger (v2).
20 *
21 * <p>
22 * Examines the call stack and variables of a running application without
23 * stopping or slowing it down.</p>
24 *
25 * <p>
26 * For more information about this service, see the API
27 * <a href="https://cloud.google.com/debugger" target="_blank">Documentation</a>
28 * </p>
29 *
30 * @author Google, Inc.
31 */
32class Google_Service_CloudDebugger extends Google_Service
33{
34  /** View and manage your data across Google Cloud Platform services. */
35  const CLOUD_PLATFORM =
36      "https://www.googleapis.com/auth/cloud-platform";
37  /** Use Stackdriver Debugger. */
38  const CLOUD_DEBUGGER =
39      "https://www.googleapis.com/auth/cloud_debugger";
40
41  public $controller_debuggees;
42  public $controller_debuggees_breakpoints;
43  public $debugger_debuggees;
44  public $debugger_debuggees_breakpoints;
45
46  /**
47   * Constructs the internal representation of the CloudDebugger service.
48   *
49   * @param Google_Client $client
50   */
51  public function __construct(Google_Client $client)
52  {
53    parent::__construct($client);
54    $this->rootUrl = 'https://clouddebugger.googleapis.com/';
55    $this->servicePath = '';
56    $this->batchPath = 'batch';
57    $this->version = 'v2';
58    $this->serviceName = 'clouddebugger';
59
60    $this->controller_debuggees = new Google_Service_CloudDebugger_Resource_ControllerDebuggees(
61        $this,
62        $this->serviceName,
63        'debuggees',
64        array(
65          'methods' => array(
66            'register' => array(
67              'path' => 'v2/controller/debuggees/register',
68              'httpMethod' => 'POST',
69              'parameters' => array(),
70            ),
71          )
72        )
73    );
74    $this->controller_debuggees_breakpoints = new Google_Service_CloudDebugger_Resource_ControllerDebuggeesBreakpoints(
75        $this,
76        $this->serviceName,
77        'breakpoints',
78        array(
79          'methods' => array(
80            'list' => array(
81              'path' => 'v2/controller/debuggees/{debuggeeId}/breakpoints',
82              'httpMethod' => 'GET',
83              'parameters' => array(
84                'debuggeeId' => array(
85                  'location' => 'path',
86                  'type' => 'string',
87                  'required' => true,
88                ),
89                'waitToken' => array(
90                  'location' => 'query',
91                  'type' => 'string',
92                ),
93                'successOnTimeout' => array(
94                  'location' => 'query',
95                  'type' => 'boolean',
96                ),
97              ),
98            ),'update' => array(
99              'path' => 'v2/controller/debuggees/{debuggeeId}/breakpoints/{id}',
100              'httpMethod' => 'PUT',
101              'parameters' => array(
102                'debuggeeId' => array(
103                  'location' => 'path',
104                  'type' => 'string',
105                  'required' => true,
106                ),
107                'id' => array(
108                  'location' => 'path',
109                  'type' => 'string',
110                  'required' => true,
111                ),
112              ),
113            ),
114          )
115        )
116    );
117    $this->debugger_debuggees = new Google_Service_CloudDebugger_Resource_DebuggerDebuggees(
118        $this,
119        $this->serviceName,
120        'debuggees',
121        array(
122          'methods' => array(
123            'list' => array(
124              'path' => 'v2/debugger/debuggees',
125              'httpMethod' => 'GET',
126              'parameters' => array(
127                'project' => array(
128                  'location' => 'query',
129                  'type' => 'string',
130                ),
131                'clientVersion' => array(
132                  'location' => 'query',
133                  'type' => 'string',
134                ),
135                'includeInactive' => array(
136                  'location' => 'query',
137                  'type' => 'boolean',
138                ),
139              ),
140            ),
141          )
142        )
143    );
144    $this->debugger_debuggees_breakpoints = new Google_Service_CloudDebugger_Resource_DebuggerDebuggeesBreakpoints(
145        $this,
146        $this->serviceName,
147        'breakpoints',
148        array(
149          'methods' => array(
150            'delete' => array(
151              'path' => 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}',
152              'httpMethod' => 'DELETE',
153              'parameters' => array(
154                'debuggeeId' => array(
155                  'location' => 'path',
156                  'type' => 'string',
157                  'required' => true,
158                ),
159                'breakpointId' => array(
160                  'location' => 'path',
161                  'type' => 'string',
162                  'required' => true,
163                ),
164                'clientVersion' => array(
165                  'location' => 'query',
166                  'type' => 'string',
167                ),
168              ),
169            ),'get' => array(
170              'path' => 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}',
171              'httpMethod' => 'GET',
172              'parameters' => array(
173                'debuggeeId' => array(
174                  'location' => 'path',
175                  'type' => 'string',
176                  'required' => true,
177                ),
178                'breakpointId' => array(
179                  'location' => 'path',
180                  'type' => 'string',
181                  'required' => true,
182                ),
183                'clientVersion' => array(
184                  'location' => 'query',
185                  'type' => 'string',
186                ),
187              ),
188            ),'list' => array(
189              'path' => 'v2/debugger/debuggees/{debuggeeId}/breakpoints',
190              'httpMethod' => 'GET',
191              'parameters' => array(
192                'debuggeeId' => array(
193                  'location' => 'path',
194                  'type' => 'string',
195                  'required' => true,
196                ),
197                'waitToken' => array(
198                  'location' => 'query',
199                  'type' => 'string',
200                ),
201                'clientVersion' => array(
202                  'location' => 'query',
203                  'type' => 'string',
204                ),
205                'action.value' => array(
206                  'location' => 'query',
207                  'type' => 'string',
208                ),
209                'includeInactive' => array(
210                  'location' => 'query',
211                  'type' => 'boolean',
212                ),
213                'includeAllUsers' => array(
214                  'location' => 'query',
215                  'type' => 'boolean',
216                ),
217                'stripResults' => array(
218                  'location' => 'query',
219                  'type' => 'boolean',
220                ),
221              ),
222            ),'set' => array(
223              'path' => 'v2/debugger/debuggees/{debuggeeId}/breakpoints/set',
224              'httpMethod' => 'POST',
225              'parameters' => array(
226                'debuggeeId' => array(
227                  'location' => 'path',
228                  'type' => 'string',
229                  'required' => true,
230                ),
231                'clientVersion' => array(
232                  'location' => 'query',
233                  'type' => 'string',
234                ),
235              ),
236            ),
237          )
238        )
239    );
240  }
241}
242