[e3d4e0a] | 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 | namespace Google\Service;
|
---|
| 19 |
|
---|
| 20 | use Google\Client;
|
---|
| 21 |
|
---|
| 22 | /**
|
---|
| 23 | * Service definition for DeveloperConnect (v1).
|
---|
| 24 | *
|
---|
| 25 | * <p>
|
---|
| 26 | * Connect third-party source code management to Google</p>
|
---|
| 27 | *
|
---|
| 28 | * <p>
|
---|
| 29 | * For more information about this service, see the API
|
---|
| 30 | * <a href="http://cloud.google.com/developer-connect/docs/overview" target="_blank">Documentation</a>
|
---|
| 31 | * </p>
|
---|
| 32 | *
|
---|
| 33 | * @author Google, Inc.
|
---|
| 34 | */
|
---|
| 35 | class DeveloperConnect extends \Google\Service
|
---|
| 36 | {
|
---|
| 37 | /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
|
---|
| 38 | const CLOUD_PLATFORM =
|
---|
| 39 | "https://www.googleapis.com/auth/cloud-platform";
|
---|
| 40 |
|
---|
| 41 | public $projects_locations;
|
---|
| 42 | public $projects_locations_connections;
|
---|
| 43 | public $projects_locations_connections_gitRepositoryLinks;
|
---|
| 44 | public $projects_locations_operations;
|
---|
| 45 | public $rootUrlTemplate;
|
---|
| 46 |
|
---|
| 47 | /**
|
---|
| 48 | * Constructs the internal representation of the DeveloperConnect service.
|
---|
| 49 | *
|
---|
| 50 | * @param Client|array $clientOrConfig The client used to deliver requests, or a
|
---|
| 51 | * config array to pass to a new Client instance.
|
---|
| 52 | * @param string $rootUrl The root URL used for requests to the service.
|
---|
| 53 | */
|
---|
| 54 | public function __construct($clientOrConfig = [], $rootUrl = null)
|
---|
| 55 | {
|
---|
| 56 | parent::__construct($clientOrConfig);
|
---|
| 57 | $this->rootUrl = $rootUrl ?: 'https://developerconnect.googleapis.com/';
|
---|
| 58 | $this->rootUrlTemplate = $rootUrl ?: 'https://developerconnect.UNIVERSE_DOMAIN/';
|
---|
| 59 | $this->servicePath = '';
|
---|
| 60 | $this->batchPath = 'batch';
|
---|
| 61 | $this->version = 'v1';
|
---|
| 62 | $this->serviceName = 'developerconnect';
|
---|
| 63 |
|
---|
| 64 | $this->projects_locations = new DeveloperConnect\Resource\ProjectsLocations(
|
---|
| 65 | $this,
|
---|
| 66 | $this->serviceName,
|
---|
| 67 | 'locations',
|
---|
| 68 | [
|
---|
| 69 | 'methods' => [
|
---|
| 70 | 'get' => [
|
---|
| 71 | 'path' => 'v1/{+name}',
|
---|
| 72 | 'httpMethod' => 'GET',
|
---|
| 73 | 'parameters' => [
|
---|
| 74 | 'name' => [
|
---|
| 75 | 'location' => 'path',
|
---|
| 76 | 'type' => 'string',
|
---|
| 77 | 'required' => true,
|
---|
| 78 | ],
|
---|
| 79 | ],
|
---|
| 80 | ],'list' => [
|
---|
| 81 | 'path' => 'v1/{+name}/locations',
|
---|
| 82 | 'httpMethod' => 'GET',
|
---|
| 83 | 'parameters' => [
|
---|
| 84 | 'name' => [
|
---|
| 85 | 'location' => 'path',
|
---|
| 86 | 'type' => 'string',
|
---|
| 87 | 'required' => true,
|
---|
| 88 | ],
|
---|
| 89 | 'filter' => [
|
---|
| 90 | 'location' => 'query',
|
---|
| 91 | 'type' => 'string',
|
---|
| 92 | ],
|
---|
| 93 | 'pageSize' => [
|
---|
| 94 | 'location' => 'query',
|
---|
| 95 | 'type' => 'integer',
|
---|
| 96 | ],
|
---|
| 97 | 'pageToken' => [
|
---|
| 98 | 'location' => 'query',
|
---|
| 99 | 'type' => 'string',
|
---|
| 100 | ],
|
---|
| 101 | ],
|
---|
| 102 | ],
|
---|
| 103 | ]
|
---|
| 104 | ]
|
---|
| 105 | );
|
---|
| 106 | $this->projects_locations_connections = new DeveloperConnect\Resource\ProjectsLocationsConnections(
|
---|
| 107 | $this,
|
---|
| 108 | $this->serviceName,
|
---|
| 109 | 'connections',
|
---|
| 110 | [
|
---|
| 111 | 'methods' => [
|
---|
| 112 | 'create' => [
|
---|
| 113 | 'path' => 'v1/{+parent}/connections',
|
---|
| 114 | 'httpMethod' => 'POST',
|
---|
| 115 | 'parameters' => [
|
---|
| 116 | 'parent' => [
|
---|
| 117 | 'location' => 'path',
|
---|
| 118 | 'type' => 'string',
|
---|
| 119 | 'required' => true,
|
---|
| 120 | ],
|
---|
| 121 | 'connectionId' => [
|
---|
| 122 | 'location' => 'query',
|
---|
| 123 | 'type' => 'string',
|
---|
| 124 | ],
|
---|
| 125 | 'requestId' => [
|
---|
| 126 | 'location' => 'query',
|
---|
| 127 | 'type' => 'string',
|
---|
| 128 | ],
|
---|
| 129 | 'validateOnly' => [
|
---|
| 130 | 'location' => 'query',
|
---|
| 131 | 'type' => 'boolean',
|
---|
| 132 | ],
|
---|
| 133 | ],
|
---|
| 134 | ],'delete' => [
|
---|
| 135 | 'path' => 'v1/{+name}',
|
---|
| 136 | 'httpMethod' => 'DELETE',
|
---|
| 137 | 'parameters' => [
|
---|
| 138 | 'name' => [
|
---|
| 139 | 'location' => 'path',
|
---|
| 140 | 'type' => 'string',
|
---|
| 141 | 'required' => true,
|
---|
| 142 | ],
|
---|
| 143 | 'etag' => [
|
---|
| 144 | 'location' => 'query',
|
---|
| 145 | 'type' => 'string',
|
---|
| 146 | ],
|
---|
| 147 | 'requestId' => [
|
---|
| 148 | 'location' => 'query',
|
---|
| 149 | 'type' => 'string',
|
---|
| 150 | ],
|
---|
| 151 | 'validateOnly' => [
|
---|
| 152 | 'location' => 'query',
|
---|
| 153 | 'type' => 'boolean',
|
---|
| 154 | ],
|
---|
| 155 | ],
|
---|
| 156 | ],'fetchGitHubInstallations' => [
|
---|
| 157 | 'path' => 'v1/{+connection}:fetchGitHubInstallations',
|
---|
| 158 | 'httpMethod' => 'GET',
|
---|
| 159 | 'parameters' => [
|
---|
| 160 | 'connection' => [
|
---|
| 161 | 'location' => 'path',
|
---|
| 162 | 'type' => 'string',
|
---|
| 163 | 'required' => true,
|
---|
| 164 | ],
|
---|
| 165 | ],
|
---|
| 166 | ],'fetchLinkableGitRepositories' => [
|
---|
| 167 | 'path' => 'v1/{+connection}:fetchLinkableGitRepositories',
|
---|
| 168 | 'httpMethod' => 'GET',
|
---|
| 169 | 'parameters' => [
|
---|
| 170 | 'connection' => [
|
---|
| 171 | 'location' => 'path',
|
---|
| 172 | 'type' => 'string',
|
---|
| 173 | 'required' => true,
|
---|
| 174 | ],
|
---|
| 175 | 'pageSize' => [
|
---|
| 176 | 'location' => 'query',
|
---|
| 177 | 'type' => 'integer',
|
---|
| 178 | ],
|
---|
| 179 | 'pageToken' => [
|
---|
| 180 | 'location' => 'query',
|
---|
| 181 | 'type' => 'string',
|
---|
| 182 | ],
|
---|
| 183 | ],
|
---|
| 184 | ],'get' => [
|
---|
| 185 | 'path' => 'v1/{+name}',
|
---|
| 186 | 'httpMethod' => 'GET',
|
---|
| 187 | 'parameters' => [
|
---|
| 188 | 'name' => [
|
---|
| 189 | 'location' => 'path',
|
---|
| 190 | 'type' => 'string',
|
---|
| 191 | 'required' => true,
|
---|
| 192 | ],
|
---|
| 193 | ],
|
---|
| 194 | ],'list' => [
|
---|
| 195 | 'path' => 'v1/{+parent}/connections',
|
---|
| 196 | 'httpMethod' => 'GET',
|
---|
| 197 | 'parameters' => [
|
---|
| 198 | 'parent' => [
|
---|
| 199 | 'location' => 'path',
|
---|
| 200 | 'type' => 'string',
|
---|
| 201 | 'required' => true,
|
---|
| 202 | ],
|
---|
| 203 | 'filter' => [
|
---|
| 204 | 'location' => 'query',
|
---|
| 205 | 'type' => 'string',
|
---|
| 206 | ],
|
---|
| 207 | 'orderBy' => [
|
---|
| 208 | 'location' => 'query',
|
---|
| 209 | 'type' => 'string',
|
---|
| 210 | ],
|
---|
| 211 | 'pageSize' => [
|
---|
| 212 | 'location' => 'query',
|
---|
| 213 | 'type' => 'integer',
|
---|
| 214 | ],
|
---|
| 215 | 'pageToken' => [
|
---|
| 216 | 'location' => 'query',
|
---|
| 217 | 'type' => 'string',
|
---|
| 218 | ],
|
---|
| 219 | ],
|
---|
| 220 | ],'patch' => [
|
---|
| 221 | 'path' => 'v1/{+name}',
|
---|
| 222 | 'httpMethod' => 'PATCH',
|
---|
| 223 | 'parameters' => [
|
---|
| 224 | 'name' => [
|
---|
| 225 | 'location' => 'path',
|
---|
| 226 | 'type' => 'string',
|
---|
| 227 | 'required' => true,
|
---|
| 228 | ],
|
---|
| 229 | 'allowMissing' => [
|
---|
| 230 | 'location' => 'query',
|
---|
| 231 | 'type' => 'boolean',
|
---|
| 232 | ],
|
---|
| 233 | 'requestId' => [
|
---|
| 234 | 'location' => 'query',
|
---|
| 235 | 'type' => 'string',
|
---|
| 236 | ],
|
---|
| 237 | 'updateMask' => [
|
---|
| 238 | 'location' => 'query',
|
---|
| 239 | 'type' => 'string',
|
---|
| 240 | ],
|
---|
| 241 | 'validateOnly' => [
|
---|
| 242 | 'location' => 'query',
|
---|
| 243 | 'type' => 'boolean',
|
---|
| 244 | ],
|
---|
| 245 | ],
|
---|
| 246 | ],'processGitHubEnterpriseWebhook' => [
|
---|
| 247 | 'path' => 'v1/{+parent}/connections:processGitHubEnterpriseWebhook',
|
---|
| 248 | 'httpMethod' => 'POST',
|
---|
| 249 | 'parameters' => [
|
---|
| 250 | 'parent' => [
|
---|
| 251 | 'location' => 'path',
|
---|
| 252 | 'type' => 'string',
|
---|
| 253 | 'required' => true,
|
---|
| 254 | ],
|
---|
| 255 | ],
|
---|
| 256 | ],
|
---|
| 257 | ]
|
---|
| 258 | ]
|
---|
| 259 | );
|
---|
| 260 | $this->projects_locations_connections_gitRepositoryLinks = new DeveloperConnect\Resource\ProjectsLocationsConnectionsGitRepositoryLinks(
|
---|
| 261 | $this,
|
---|
| 262 | $this->serviceName,
|
---|
| 263 | 'gitRepositoryLinks',
|
---|
| 264 | [
|
---|
| 265 | 'methods' => [
|
---|
| 266 | 'create' => [
|
---|
| 267 | 'path' => 'v1/{+parent}/gitRepositoryLinks',
|
---|
| 268 | 'httpMethod' => 'POST',
|
---|
| 269 | 'parameters' => [
|
---|
| 270 | 'parent' => [
|
---|
| 271 | 'location' => 'path',
|
---|
| 272 | 'type' => 'string',
|
---|
| 273 | 'required' => true,
|
---|
| 274 | ],
|
---|
| 275 | 'gitRepositoryLinkId' => [
|
---|
| 276 | 'location' => 'query',
|
---|
| 277 | 'type' => 'string',
|
---|
| 278 | ],
|
---|
| 279 | 'requestId' => [
|
---|
| 280 | 'location' => 'query',
|
---|
| 281 | 'type' => 'string',
|
---|
| 282 | ],
|
---|
| 283 | 'validateOnly' => [
|
---|
| 284 | 'location' => 'query',
|
---|
| 285 | 'type' => 'boolean',
|
---|
| 286 | ],
|
---|
| 287 | ],
|
---|
| 288 | ],'delete' => [
|
---|
| 289 | 'path' => 'v1/{+name}',
|
---|
| 290 | 'httpMethod' => 'DELETE',
|
---|
| 291 | 'parameters' => [
|
---|
| 292 | 'name' => [
|
---|
| 293 | 'location' => 'path',
|
---|
| 294 | 'type' => 'string',
|
---|
| 295 | 'required' => true,
|
---|
| 296 | ],
|
---|
| 297 | 'etag' => [
|
---|
| 298 | 'location' => 'query',
|
---|
| 299 | 'type' => 'string',
|
---|
| 300 | ],
|
---|
| 301 | 'requestId' => [
|
---|
| 302 | 'location' => 'query',
|
---|
| 303 | 'type' => 'string',
|
---|
| 304 | ],
|
---|
| 305 | 'validateOnly' => [
|
---|
| 306 | 'location' => 'query',
|
---|
| 307 | 'type' => 'boolean',
|
---|
| 308 | ],
|
---|
| 309 | ],
|
---|
| 310 | ],'fetchGitRefs' => [
|
---|
| 311 | 'path' => 'v1/{+gitRepositoryLink}:fetchGitRefs',
|
---|
| 312 | 'httpMethod' => 'GET',
|
---|
| 313 | 'parameters' => [
|
---|
| 314 | 'gitRepositoryLink' => [
|
---|
| 315 | 'location' => 'path',
|
---|
| 316 | 'type' => 'string',
|
---|
| 317 | 'required' => true,
|
---|
| 318 | ],
|
---|
| 319 | 'pageSize' => [
|
---|
| 320 | 'location' => 'query',
|
---|
| 321 | 'type' => 'integer',
|
---|
| 322 | ],
|
---|
| 323 | 'pageToken' => [
|
---|
| 324 | 'location' => 'query',
|
---|
| 325 | 'type' => 'string',
|
---|
| 326 | ],
|
---|
| 327 | 'refType' => [
|
---|
| 328 | 'location' => 'query',
|
---|
| 329 | 'type' => 'string',
|
---|
| 330 | ],
|
---|
| 331 | ],
|
---|
| 332 | ],'fetchReadToken' => [
|
---|
| 333 | 'path' => 'v1/{+gitRepositoryLink}:fetchReadToken',
|
---|
| 334 | 'httpMethod' => 'POST',
|
---|
| 335 | 'parameters' => [
|
---|
| 336 | 'gitRepositoryLink' => [
|
---|
| 337 | 'location' => 'path',
|
---|
| 338 | 'type' => 'string',
|
---|
| 339 | 'required' => true,
|
---|
| 340 | ],
|
---|
| 341 | ],
|
---|
| 342 | ],'fetchReadWriteToken' => [
|
---|
| 343 | 'path' => 'v1/{+gitRepositoryLink}:fetchReadWriteToken',
|
---|
| 344 | 'httpMethod' => 'POST',
|
---|
| 345 | 'parameters' => [
|
---|
| 346 | 'gitRepositoryLink' => [
|
---|
| 347 | 'location' => 'path',
|
---|
| 348 | 'type' => 'string',
|
---|
| 349 | 'required' => true,
|
---|
| 350 | ],
|
---|
| 351 | ],
|
---|
| 352 | ],'get' => [
|
---|
| 353 | 'path' => 'v1/{+name}',
|
---|
| 354 | 'httpMethod' => 'GET',
|
---|
| 355 | 'parameters' => [
|
---|
| 356 | 'name' => [
|
---|
| 357 | 'location' => 'path',
|
---|
| 358 | 'type' => 'string',
|
---|
| 359 | 'required' => true,
|
---|
| 360 | ],
|
---|
| 361 | ],
|
---|
| 362 | ],'list' => [
|
---|
| 363 | 'path' => 'v1/{+parent}/gitRepositoryLinks',
|
---|
| 364 | 'httpMethod' => 'GET',
|
---|
| 365 | 'parameters' => [
|
---|
| 366 | 'parent' => [
|
---|
| 367 | 'location' => 'path',
|
---|
| 368 | 'type' => 'string',
|
---|
| 369 | 'required' => true,
|
---|
| 370 | ],
|
---|
| 371 | 'filter' => [
|
---|
| 372 | 'location' => 'query',
|
---|
| 373 | 'type' => 'string',
|
---|
| 374 | ],
|
---|
| 375 | 'orderBy' => [
|
---|
| 376 | 'location' => 'query',
|
---|
| 377 | 'type' => 'string',
|
---|
| 378 | ],
|
---|
| 379 | 'pageSize' => [
|
---|
| 380 | 'location' => 'query',
|
---|
| 381 | 'type' => 'integer',
|
---|
| 382 | ],
|
---|
| 383 | 'pageToken' => [
|
---|
| 384 | 'location' => 'query',
|
---|
| 385 | 'type' => 'string',
|
---|
| 386 | ],
|
---|
| 387 | ],
|
---|
| 388 | ],'processGitLabEnterpriseWebhook' => [
|
---|
| 389 | 'path' => 'v1/{+name}:processGitLabEnterpriseWebhook',
|
---|
| 390 | 'httpMethod' => 'POST',
|
---|
| 391 | 'parameters' => [
|
---|
| 392 | 'name' => [
|
---|
| 393 | 'location' => 'path',
|
---|
| 394 | 'type' => 'string',
|
---|
| 395 | 'required' => true,
|
---|
| 396 | ],
|
---|
| 397 | ],
|
---|
| 398 | ],'processGitLabWebhook' => [
|
---|
| 399 | 'path' => 'v1/{+name}:processGitLabWebhook',
|
---|
| 400 | 'httpMethod' => 'POST',
|
---|
| 401 | 'parameters' => [
|
---|
| 402 | 'name' => [
|
---|
| 403 | 'location' => 'path',
|
---|
| 404 | 'type' => 'string',
|
---|
| 405 | 'required' => true,
|
---|
| 406 | ],
|
---|
| 407 | ],
|
---|
| 408 | ],
|
---|
| 409 | ]
|
---|
| 410 | ]
|
---|
| 411 | );
|
---|
| 412 | $this->projects_locations_operations = new DeveloperConnect\Resource\ProjectsLocationsOperations(
|
---|
| 413 | $this,
|
---|
| 414 | $this->serviceName,
|
---|
| 415 | 'operations',
|
---|
| 416 | [
|
---|
| 417 | 'methods' => [
|
---|
| 418 | 'cancel' => [
|
---|
| 419 | 'path' => 'v1/{+name}:cancel',
|
---|
| 420 | 'httpMethod' => 'POST',
|
---|
| 421 | 'parameters' => [
|
---|
| 422 | 'name' => [
|
---|
| 423 | 'location' => 'path',
|
---|
| 424 | 'type' => 'string',
|
---|
| 425 | 'required' => true,
|
---|
| 426 | ],
|
---|
| 427 | ],
|
---|
| 428 | ],'delete' => [
|
---|
| 429 | 'path' => 'v1/{+name}',
|
---|
| 430 | 'httpMethod' => 'DELETE',
|
---|
| 431 | 'parameters' => [
|
---|
| 432 | 'name' => [
|
---|
| 433 | 'location' => 'path',
|
---|
| 434 | 'type' => 'string',
|
---|
| 435 | 'required' => true,
|
---|
| 436 | ],
|
---|
| 437 | ],
|
---|
| 438 | ],'get' => [
|
---|
| 439 | 'path' => 'v1/{+name}',
|
---|
| 440 | 'httpMethod' => 'GET',
|
---|
| 441 | 'parameters' => [
|
---|
| 442 | 'name' => [
|
---|
| 443 | 'location' => 'path',
|
---|
| 444 | 'type' => 'string',
|
---|
| 445 | 'required' => true,
|
---|
| 446 | ],
|
---|
| 447 | ],
|
---|
| 448 | ],'list' => [
|
---|
| 449 | 'path' => 'v1/{+name}/operations',
|
---|
| 450 | 'httpMethod' => 'GET',
|
---|
| 451 | 'parameters' => [
|
---|
| 452 | 'name' => [
|
---|
| 453 | 'location' => 'path',
|
---|
| 454 | 'type' => 'string',
|
---|
| 455 | 'required' => true,
|
---|
| 456 | ],
|
---|
| 457 | 'filter' => [
|
---|
| 458 | 'location' => 'query',
|
---|
| 459 | 'type' => 'string',
|
---|
| 460 | ],
|
---|
| 461 | 'pageSize' => [
|
---|
| 462 | 'location' => 'query',
|
---|
| 463 | 'type' => 'integer',
|
---|
| 464 | ],
|
---|
| 465 | 'pageToken' => [
|
---|
| 466 | 'location' => 'query',
|
---|
| 467 | 'type' => 'string',
|
---|
| 468 | ],
|
---|
| 469 | ],
|
---|
| 470 | ],
|
---|
| 471 | ]
|
---|
| 472 | ]
|
---|
| 473 | );
|
---|
| 474 | }
|
---|
| 475 | }
|
---|
| 476 |
|
---|
| 477 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 478 | class_alias(DeveloperConnect::class, 'Google_Service_DeveloperConnect');
|
---|