source: vendor/google/apiclient-services/src/ServiceConsumerManagement.php@ e3d4e0a

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

Upload project files

  • Property mode set to 100644
File size: 8.6 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 ServiceConsumerManagement (v1).
24 *
25 * <p>
26 * Manages the service consumers of a Service Infrastructure service.</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://cloud.google.com/service-consumer-management/docs/overview" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class ServiceConsumerManagement 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 $operations;
42 public $services;
43 public $services_tenancyUnits;
44 public $rootUrlTemplate;
45
46 /**
47 * Constructs the internal representation of the ServiceConsumerManagement
48 * 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://serviceconsumermanagement.googleapis.com/';
58 $this->rootUrlTemplate = $rootUrl ?: 'https://serviceconsumermanagement.UNIVERSE_DOMAIN/';
59 $this->servicePath = '';
60 $this->batchPath = 'batch';
61 $this->version = 'v1';
62 $this->serviceName = 'serviceconsumermanagement';
63
64 $this->operations = new ServiceConsumerManagement\Resource\Operations(
65 $this,
66 $this->serviceName,
67 'operations',
68 [
69 'methods' => [
70 'cancel' => [
71 'path' => 'v1/{+name}:cancel',
72 'httpMethod' => 'POST',
73 'parameters' => [
74 'name' => [
75 'location' => 'path',
76 'type' => 'string',
77 'required' => true,
78 ],
79 ],
80 ],'delete' => [
81 'path' => 'v1/{+name}',
82 'httpMethod' => 'DELETE',
83 'parameters' => [
84 'name' => [
85 'location' => 'path',
86 'type' => 'string',
87 'required' => true,
88 ],
89 ],
90 ],'get' => [
91 'path' => 'v1/{+name}',
92 'httpMethod' => 'GET',
93 'parameters' => [
94 'name' => [
95 'location' => 'path',
96 'type' => 'string',
97 'required' => true,
98 ],
99 ],
100 ],'list' => [
101 'path' => 'v1/{+name}',
102 'httpMethod' => 'GET',
103 'parameters' => [
104 'name' => [
105 'location' => 'path',
106 'type' => 'string',
107 'required' => true,
108 ],
109 'filter' => [
110 'location' => 'query',
111 'type' => 'string',
112 ],
113 'pageSize' => [
114 'location' => 'query',
115 'type' => 'integer',
116 ],
117 'pageToken' => [
118 'location' => 'query',
119 'type' => 'string',
120 ],
121 ],
122 ],
123 ]
124 ]
125 );
126 $this->services = new ServiceConsumerManagement\Resource\Services(
127 $this,
128 $this->serviceName,
129 'services',
130 [
131 'methods' => [
132 'search' => [
133 'path' => 'v1/{+parent}:search',
134 'httpMethod' => 'GET',
135 'parameters' => [
136 'parent' => [
137 'location' => 'path',
138 'type' => 'string',
139 'required' => true,
140 ],
141 'pageSize' => [
142 'location' => 'query',
143 'type' => 'integer',
144 ],
145 'pageToken' => [
146 'location' => 'query',
147 'type' => 'string',
148 ],
149 'query' => [
150 'location' => 'query',
151 'type' => 'string',
152 ],
153 ],
154 ],
155 ]
156 ]
157 );
158 $this->services_tenancyUnits = new ServiceConsumerManagement\Resource\ServicesTenancyUnits(
159 $this,
160 $this->serviceName,
161 'tenancyUnits',
162 [
163 'methods' => [
164 'addProject' => [
165 'path' => 'v1/{+parent}:addProject',
166 'httpMethod' => 'POST',
167 'parameters' => [
168 'parent' => [
169 'location' => 'path',
170 'type' => 'string',
171 'required' => true,
172 ],
173 ],
174 ],'applyProjectConfig' => [
175 'path' => 'v1/{+name}:applyProjectConfig',
176 'httpMethod' => 'POST',
177 'parameters' => [
178 'name' => [
179 'location' => 'path',
180 'type' => 'string',
181 'required' => true,
182 ],
183 ],
184 ],'attachProject' => [
185 'path' => 'v1/{+name}:attachProject',
186 'httpMethod' => 'POST',
187 'parameters' => [
188 'name' => [
189 'location' => 'path',
190 'type' => 'string',
191 'required' => true,
192 ],
193 ],
194 ],'create' => [
195 'path' => 'v1/{+parent}/tenancyUnits',
196 'httpMethod' => 'POST',
197 'parameters' => [
198 'parent' => [
199 'location' => 'path',
200 'type' => 'string',
201 'required' => true,
202 ],
203 ],
204 ],'delete' => [
205 'path' => 'v1/{+name}',
206 'httpMethod' => 'DELETE',
207 'parameters' => [
208 'name' => [
209 'location' => 'path',
210 'type' => 'string',
211 'required' => true,
212 ],
213 ],
214 ],'deleteProject' => [
215 'path' => 'v1/{+name}:deleteProject',
216 'httpMethod' => 'POST',
217 'parameters' => [
218 'name' => [
219 'location' => 'path',
220 'type' => 'string',
221 'required' => true,
222 ],
223 ],
224 ],'list' => [
225 'path' => 'v1/{+parent}/tenancyUnits',
226 'httpMethod' => 'GET',
227 'parameters' => [
228 'parent' => [
229 'location' => 'path',
230 'type' => 'string',
231 'required' => true,
232 ],
233 'filter' => [
234 'location' => 'query',
235 'type' => 'string',
236 ],
237 'pageSize' => [
238 'location' => 'query',
239 'type' => 'integer',
240 ],
241 'pageToken' => [
242 'location' => 'query',
243 'type' => 'string',
244 ],
245 ],
246 ],'removeProject' => [
247 'path' => 'v1/{+name}:removeProject',
248 'httpMethod' => 'POST',
249 'parameters' => [
250 'name' => [
251 'location' => 'path',
252 'type' => 'string',
253 'required' => true,
254 ],
255 ],
256 ],'undeleteProject' => [
257 'path' => 'v1/{+name}:undeleteProject',
258 'httpMethod' => 'POST',
259 'parameters' => [
260 'name' => [
261 'location' => 'path',
262 'type' => 'string',
263 'required' => true,
264 ],
265 ],
266 ],
267 ]
268 ]
269 );
270 }
271}
272
273// Adding a class alias for backwards compatibility with the previous class name.
274class_alias(ServiceConsumerManagement::class, 'Google_Service_ServiceConsumerManagement');
Note: See TracBrowser for help on using the repository browser.