source: vendor/google/apiclient-services/src/BigQueryConnectionService.php

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

Upload project files

  • Property mode set to 100644
File size: 5.8 KB
RevLine 
[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
18namespace Google\Service;
19
20use Google\Client;
21
22/**
23 * Service definition for BigQueryConnectionService (v1).
24 *
25 * <p>
26 * Allows users to manage BigQuery connections to external data sources.</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://cloud.google.com/bigquery/docs/connections-api-intro" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class BigQueryConnectionService extends \Google\Service
36{
37 /** View and manage your data in Google BigQuery and see the email address for your Google Account. */
38 const BIGQUERY =
39 "https://www.googleapis.com/auth/bigquery";
40 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
41 const CLOUD_PLATFORM =
42 "https://www.googleapis.com/auth/cloud-platform";
43
44 public $projects_locations_connections;
45 public $rootUrlTemplate;
46
47 /**
48 * Constructs the internal representation of the BigQueryConnectionService
49 * 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://bigqueryconnection.googleapis.com/';
59 $this->rootUrlTemplate = $rootUrl ?: 'https://bigqueryconnection.UNIVERSE_DOMAIN/';
60 $this->servicePath = '';
61 $this->batchPath = 'batch';
62 $this->version = 'v1';
63 $this->serviceName = 'bigqueryconnection';
64
65 $this->projects_locations_connections = new BigQueryConnectionService\Resource\ProjectsLocationsConnections(
66 $this,
67 $this->serviceName,
68 'connections',
69 [
70 'methods' => [
71 'create' => [
72 'path' => 'v1/{+parent}/connections',
73 'httpMethod' => 'POST',
74 'parameters' => [
75 'parent' => [
76 'location' => 'path',
77 'type' => 'string',
78 'required' => true,
79 ],
80 'connectionId' => [
81 'location' => 'query',
82 'type' => 'string',
83 ],
84 ],
85 ],'delete' => [
86 'path' => 'v1/{+name}',
87 'httpMethod' => 'DELETE',
88 'parameters' => [
89 'name' => [
90 'location' => 'path',
91 'type' => 'string',
92 'required' => true,
93 ],
94 ],
95 ],'get' => [
96 'path' => 'v1/{+name}',
97 'httpMethod' => 'GET',
98 'parameters' => [
99 'name' => [
100 'location' => 'path',
101 'type' => 'string',
102 'required' => true,
103 ],
104 ],
105 ],'getIamPolicy' => [
106 'path' => 'v1/{+resource}:getIamPolicy',
107 'httpMethod' => 'POST',
108 'parameters' => [
109 'resource' => [
110 'location' => 'path',
111 'type' => 'string',
112 'required' => true,
113 ],
114 ],
115 ],'list' => [
116 'path' => 'v1/{+parent}/connections',
117 'httpMethod' => 'GET',
118 'parameters' => [
119 'parent' => [
120 'location' => 'path',
121 'type' => 'string',
122 'required' => true,
123 ],
124 'pageSize' => [
125 'location' => 'query',
126 'type' => 'integer',
127 ],
128 'pageToken' => [
129 'location' => 'query',
130 'type' => 'string',
131 ],
132 ],
133 ],'patch' => [
134 'path' => 'v1/{+name}',
135 'httpMethod' => 'PATCH',
136 'parameters' => [
137 'name' => [
138 'location' => 'path',
139 'type' => 'string',
140 'required' => true,
141 ],
142 'updateMask' => [
143 'location' => 'query',
144 'type' => 'string',
145 ],
146 ],
147 ],'setIamPolicy' => [
148 'path' => 'v1/{+resource}:setIamPolicy',
149 'httpMethod' => 'POST',
150 'parameters' => [
151 'resource' => [
152 'location' => 'path',
153 'type' => 'string',
154 'required' => true,
155 ],
156 ],
157 ],'testIamPermissions' => [
158 'path' => 'v1/{+resource}:testIamPermissions',
159 'httpMethod' => 'POST',
160 'parameters' => [
161 'resource' => [
162 'location' => 'path',
163 'type' => 'string',
164 'required' => true,
165 ],
166 ],
167 ],
168 ]
169 ]
170 );
171 }
172}
173
174// Adding a class alias for backwards compatibility with the previous class name.
175class_alias(BigQueryConnectionService::class, 'Google_Service_BigQueryConnectionService');
Note: See TracBrowser for help on using the repository browser.