source: vendor/google/apiclient-services/src/IDS.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: 9.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 IDS (v1).
24 *
25 * <p>
26 * Cloud IDS (Cloud Intrusion Detection System) detects malware, spyware,
27 * command-and-control attacks, and other network-based threats. Its security
28 * efficacy is industry leading, built with Palo Alto Networks technologies.
29 * When you use this product, your organization name and consumption levels will
30 * be shared with Palo Alto Networks.</p>
31 *
32 * <p>
33 * For more information about this service, see the API
34 * <a href="https://cloud.google.com/" target="_blank">Documentation</a>
35 * </p>
36 *
37 * @author Google, Inc.
38 */
39class IDS extends \Google\Service
40{
41 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
42 const CLOUD_PLATFORM =
43 "https://www.googleapis.com/auth/cloud-platform";
44
45 public $projects_locations;
46 public $projects_locations_endpoints;
47 public $projects_locations_operations;
48 public $rootUrlTemplate;
49
50 /**
51 * Constructs the internal representation of the IDS service.
52 *
53 * @param Client|array $clientOrConfig The client used to deliver requests, or a
54 * config array to pass to a new Client instance.
55 * @param string $rootUrl The root URL used for requests to the service.
56 */
57 public function __construct($clientOrConfig = [], $rootUrl = null)
58 {
59 parent::__construct($clientOrConfig);
60 $this->rootUrl = $rootUrl ?: 'https://ids.googleapis.com/';
61 $this->rootUrlTemplate = $rootUrl ?: 'https://ids.UNIVERSE_DOMAIN/';
62 $this->servicePath = '';
63 $this->batchPath = 'batch';
64 $this->version = 'v1';
65 $this->serviceName = 'ids';
66
67 $this->projects_locations = new IDS\Resource\ProjectsLocations(
68 $this,
69 $this->serviceName,
70 'locations',
71 [
72 'methods' => [
73 'get' => [
74 'path' => 'v1/{+name}',
75 'httpMethod' => 'GET',
76 'parameters' => [
77 'name' => [
78 'location' => 'path',
79 'type' => 'string',
80 'required' => true,
81 ],
82 ],
83 ],'list' => [
84 'path' => 'v1/{+name}/locations',
85 'httpMethod' => 'GET',
86 'parameters' => [
87 'name' => [
88 'location' => 'path',
89 'type' => 'string',
90 'required' => true,
91 ],
92 'filter' => [
93 'location' => 'query',
94 'type' => 'string',
95 ],
96 'pageSize' => [
97 'location' => 'query',
98 'type' => 'integer',
99 ],
100 'pageToken' => [
101 'location' => 'query',
102 'type' => 'string',
103 ],
104 ],
105 ],
106 ]
107 ]
108 );
109 $this->projects_locations_endpoints = new IDS\Resource\ProjectsLocationsEndpoints(
110 $this,
111 $this->serviceName,
112 'endpoints',
113 [
114 'methods' => [
115 'create' => [
116 'path' => 'v1/{+parent}/endpoints',
117 'httpMethod' => 'POST',
118 'parameters' => [
119 'parent' => [
120 'location' => 'path',
121 'type' => 'string',
122 'required' => true,
123 ],
124 'endpointId' => [
125 'location' => 'query',
126 'type' => 'string',
127 ],
128 'requestId' => [
129 'location' => 'query',
130 'type' => 'string',
131 ],
132 ],
133 ],'delete' => [
134 'path' => 'v1/{+name}',
135 'httpMethod' => 'DELETE',
136 'parameters' => [
137 'name' => [
138 'location' => 'path',
139 'type' => 'string',
140 'required' => true,
141 ],
142 'requestId' => [
143 'location' => 'query',
144 'type' => 'string',
145 ],
146 ],
147 ],'get' => [
148 'path' => 'v1/{+name}',
149 'httpMethod' => 'GET',
150 'parameters' => [
151 'name' => [
152 'location' => 'path',
153 'type' => 'string',
154 'required' => true,
155 ],
156 ],
157 ],'getIamPolicy' => [
158 'path' => 'v1/{+resource}:getIamPolicy',
159 'httpMethod' => 'GET',
160 'parameters' => [
161 'resource' => [
162 'location' => 'path',
163 'type' => 'string',
164 'required' => true,
165 ],
166 'options.requestedPolicyVersion' => [
167 'location' => 'query',
168 'type' => 'integer',
169 ],
170 ],
171 ],'list' => [
172 'path' => 'v1/{+parent}/endpoints',
173 'httpMethod' => 'GET',
174 'parameters' => [
175 'parent' => [
176 'location' => 'path',
177 'type' => 'string',
178 'required' => true,
179 ],
180 'filter' => [
181 'location' => 'query',
182 'type' => 'string',
183 ],
184 'orderBy' => [
185 'location' => 'query',
186 'type' => 'string',
187 ],
188 'pageSize' => [
189 'location' => 'query',
190 'type' => 'integer',
191 ],
192 'pageToken' => [
193 'location' => 'query',
194 'type' => 'string',
195 ],
196 ],
197 ],'patch' => [
198 'path' => 'v1/{+name}',
199 'httpMethod' => 'PATCH',
200 'parameters' => [
201 'name' => [
202 'location' => 'path',
203 'type' => 'string',
204 'required' => true,
205 ],
206 'requestId' => [
207 'location' => 'query',
208 'type' => 'string',
209 ],
210 'updateMask' => [
211 'location' => 'query',
212 'type' => 'string',
213 ],
214 ],
215 ],'setIamPolicy' => [
216 'path' => 'v1/{+resource}:setIamPolicy',
217 'httpMethod' => 'POST',
218 'parameters' => [
219 'resource' => [
220 'location' => 'path',
221 'type' => 'string',
222 'required' => true,
223 ],
224 ],
225 ],'testIamPermissions' => [
226 'path' => 'v1/{+resource}:testIamPermissions',
227 'httpMethod' => 'POST',
228 'parameters' => [
229 'resource' => [
230 'location' => 'path',
231 'type' => 'string',
232 'required' => true,
233 ],
234 ],
235 ],
236 ]
237 ]
238 );
239 $this->projects_locations_operations = new IDS\Resource\ProjectsLocationsOperations(
240 $this,
241 $this->serviceName,
242 'operations',
243 [
244 'methods' => [
245 'cancel' => [
246 'path' => 'v1/{+name}:cancel',
247 'httpMethod' => 'POST',
248 'parameters' => [
249 'name' => [
250 'location' => 'path',
251 'type' => 'string',
252 'required' => true,
253 ],
254 ],
255 ],'delete' => [
256 'path' => 'v1/{+name}',
257 'httpMethod' => 'DELETE',
258 'parameters' => [
259 'name' => [
260 'location' => 'path',
261 'type' => 'string',
262 'required' => true,
263 ],
264 ],
265 ],'get' => [
266 'path' => 'v1/{+name}',
267 'httpMethod' => 'GET',
268 'parameters' => [
269 'name' => [
270 'location' => 'path',
271 'type' => 'string',
272 'required' => true,
273 ],
274 ],
275 ],'list' => [
276 'path' => 'v1/{+name}/operations',
277 'httpMethod' => 'GET',
278 'parameters' => [
279 'name' => [
280 'location' => 'path',
281 'type' => 'string',
282 'required' => true,
283 ],
284 'filter' => [
285 'location' => 'query',
286 'type' => 'string',
287 ],
288 'pageSize' => [
289 'location' => 'query',
290 'type' => 'integer',
291 ],
292 'pageToken' => [
293 'location' => 'query',
294 'type' => 'string',
295 ],
296 ],
297 ],
298 ]
299 ]
300 );
301 }
302}
303
304// Adding a class alias for backwards compatibility with the previous class name.
305class_alias(IDS::class, 'Google_Service_IDS');
Note: See TracBrowser for help on using the repository browser.