source: vendor/google/apiclient-services/src/Connectors.php@ f9c482b

Last change on this file since f9c482b was f9c482b, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload new project files

  • Property mode set to 100644
File size: 10.5 KB
Line 
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
18namespace Google\Service;
19
20use Google\Client;
21
22/**
23 * Service definition for Connectors (v2).
24 *
25 * <p>
26 * Enables users to create and manage connections to Google Cloud services and
27 * third-party business applications using the Connectors interface.</p>
28 *
29 * <p>
30 * For more information about this service, see the API
31 * <a href="https://cloud.google.com/apigee/docs/api-platform/connectors/about-connectors" target="_blank">Documentation</a>
32 * </p>
33 *
34 * @author Google, Inc.
35 */
36class Connectors extends \Google\Service
37{
38 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
39 const CLOUD_PLATFORM =
40 "https://www.googleapis.com/auth/cloud-platform";
41
42 public $projects_locations_connections;
43 public $projects_locations_connections_actions;
44 public $projects_locations_connections_entityTypes;
45 public $projects_locations_connections_entityTypes_entities;
46 public $rootUrlTemplate;
47
48 /**
49 * Constructs the internal representation of the Connectors service.
50 *
51 * @param Client|array $clientOrConfig The client used to deliver requests, or a
52 * config array to pass to a new Client instance.
53 * @param string $rootUrl The root URL used for requests to the service.
54 */
55 public function __construct($clientOrConfig = [], $rootUrl = null)
56 {
57 parent::__construct($clientOrConfig);
58 $this->rootUrl = $rootUrl ?: 'https://connectors.googleapis.com/';
59 $this->rootUrlTemplate = $rootUrl ?: 'https://connectors.UNIVERSE_DOMAIN/';
60 $this->servicePath = '';
61 $this->batchPath = 'batch';
62 $this->version = 'v2';
63 $this->serviceName = 'connectors';
64
65 $this->projects_locations_connections = new Connectors\Resource\ProjectsLocationsConnections(
66 $this,
67 $this->serviceName,
68 'connections',
69 [
70 'methods' => [
71 'checkReadiness' => [
72 'path' => 'v2/{+name}:checkReadiness',
73 'httpMethod' => 'GET',
74 'parameters' => [
75 'name' => [
76 'location' => 'path',
77 'type' => 'string',
78 'required' => true,
79 ],
80 ],
81 ],'checkStatus' => [
82 'path' => 'v2/{+name}:checkStatus',
83 'httpMethod' => 'GET',
84 'parameters' => [
85 'name' => [
86 'location' => 'path',
87 'type' => 'string',
88 'required' => true,
89 ],
90 ],
91 ],'exchangeAuthCode' => [
92 'path' => 'v2/{+name}:exchangeAuthCode',
93 'httpMethod' => 'POST',
94 'parameters' => [
95 'name' => [
96 'location' => 'path',
97 'type' => 'string',
98 'required' => true,
99 ],
100 ],
101 ],'executeSqlQuery' => [
102 'path' => 'v2/{+connection}:executeSqlQuery',
103 'httpMethod' => 'POST',
104 'parameters' => [
105 'connection' => [
106 'location' => 'path',
107 'type' => 'string',
108 'required' => true,
109 ],
110 ],
111 ],'refreshAccessToken' => [
112 'path' => 'v2/{+name}:refreshAccessToken',
113 'httpMethod' => 'POST',
114 'parameters' => [
115 'name' => [
116 'location' => 'path',
117 'type' => 'string',
118 'required' => true,
119 ],
120 ],
121 ],
122 ]
123 ]
124 );
125 $this->projects_locations_connections_actions = new Connectors\Resource\ProjectsLocationsConnectionsActions(
126 $this,
127 $this->serviceName,
128 'actions',
129 [
130 'methods' => [
131 'execute' => [
132 'path' => 'v2/{+name}:execute',
133 'httpMethod' => 'POST',
134 'parameters' => [
135 'name' => [
136 'location' => 'path',
137 'type' => 'string',
138 'required' => true,
139 ],
140 ],
141 ],'get' => [
142 'path' => 'v2/{+name}',
143 'httpMethod' => 'GET',
144 'parameters' => [
145 'name' => [
146 'location' => 'path',
147 'type' => 'string',
148 'required' => true,
149 ],
150 ],
151 ],'list' => [
152 'path' => 'v2/{+parent}/actions',
153 'httpMethod' => 'GET',
154 'parameters' => [
155 'parent' => [
156 'location' => 'path',
157 'type' => 'string',
158 'required' => true,
159 ],
160 'pageSize' => [
161 'location' => 'query',
162 'type' => 'integer',
163 ],
164 'pageToken' => [
165 'location' => 'query',
166 'type' => 'string',
167 ],
168 'view' => [
169 'location' => 'query',
170 'type' => 'string',
171 ],
172 ],
173 ],
174 ]
175 ]
176 );
177 $this->projects_locations_connections_entityTypes = new Connectors\Resource\ProjectsLocationsConnectionsEntityTypes(
178 $this,
179 $this->serviceName,
180 'entityTypes',
181 [
182 'methods' => [
183 'get' => [
184 'path' => 'v2/{+name}',
185 'httpMethod' => 'GET',
186 'parameters' => [
187 'name' => [
188 'location' => 'path',
189 'type' => 'string',
190 'required' => true,
191 ],
192 ],
193 ],'list' => [
194 'path' => 'v2/{+parent}/entityTypes',
195 'httpMethod' => 'GET',
196 'parameters' => [
197 'parent' => [
198 'location' => 'path',
199 'type' => 'string',
200 'required' => true,
201 ],
202 'pageSize' => [
203 'location' => 'query',
204 'type' => 'integer',
205 ],
206 'pageToken' => [
207 'location' => 'query',
208 'type' => 'string',
209 ],
210 'view' => [
211 'location' => 'query',
212 'type' => 'string',
213 ],
214 ],
215 ],
216 ]
217 ]
218 );
219 $this->projects_locations_connections_entityTypes_entities = new Connectors\Resource\ProjectsLocationsConnectionsEntityTypesEntities(
220 $this,
221 $this->serviceName,
222 'entities',
223 [
224 'methods' => [
225 'create' => [
226 'path' => 'v2/{+parent}/entities',
227 'httpMethod' => 'POST',
228 'parameters' => [
229 'parent' => [
230 'location' => 'path',
231 'type' => 'string',
232 'required' => true,
233 ],
234 ],
235 ],'delete' => [
236 'path' => 'v2/{+name}',
237 'httpMethod' => 'DELETE',
238 'parameters' => [
239 'name' => [
240 'location' => 'path',
241 'type' => 'string',
242 'required' => true,
243 ],
244 ],
245 ],'deleteEntitiesWithConditions' => [
246 'path' => 'v2/{+entityType}/entities:deleteEntitiesWithConditions',
247 'httpMethod' => 'POST',
248 'parameters' => [
249 'entityType' => [
250 'location' => 'path',
251 'type' => 'string',
252 'required' => true,
253 ],
254 'conditions' => [
255 'location' => 'query',
256 'type' => 'string',
257 ],
258 ],
259 ],'get' => [
260 'path' => 'v2/{+name}',
261 'httpMethod' => 'GET',
262 'parameters' => [
263 'name' => [
264 'location' => 'path',
265 'type' => 'string',
266 'required' => true,
267 ],
268 ],
269 ],'list' => [
270 'path' => 'v2/{+parent}/entities',
271 'httpMethod' => 'GET',
272 'parameters' => [
273 'parent' => [
274 'location' => 'path',
275 'type' => 'string',
276 'required' => true,
277 ],
278 'conditions' => [
279 'location' => 'query',
280 'type' => 'string',
281 ],
282 'pageSize' => [
283 'location' => 'query',
284 'type' => 'integer',
285 ],
286 'pageToken' => [
287 'location' => 'query',
288 'type' => 'string',
289 ],
290 'sortBy' => [
291 'location' => 'query',
292 'type' => 'string',
293 'repeated' => true,
294 ],
295 ],
296 ],'patch' => [
297 'path' => 'v2/{+name}',
298 'httpMethod' => 'PATCH',
299 'parameters' => [
300 'name' => [
301 'location' => 'path',
302 'type' => 'string',
303 'required' => true,
304 ],
305 ],
306 ],'updateEntitiesWithConditions' => [
307 'path' => 'v2/{+entityType}/entities:updateEntitiesWithConditions',
308 'httpMethod' => 'POST',
309 'parameters' => [
310 'entityType' => [
311 'location' => 'path',
312 'type' => 'string',
313 'required' => true,
314 ],
315 'conditions' => [
316 'location' => 'query',
317 'type' => 'string',
318 ],
319 ],
320 ],
321 ]
322 ]
323 );
324 }
325}
326
327// Adding a class alias for backwards compatibility with the previous class name.
328class_alias(Connectors::class, 'Google_Service_Connectors');
Note: See TracBrowser for help on using the repository browser.