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
49  /**
50   * Constructs the internal representation of the IDS service.
51   *
52   * @param Client|array $clientOrConfig The client used to deliver requests, or a
53   *                                     config array to pass to a new Client instance.
54   * @param string $rootUrl The root URL used for requests to the service.
55   */
56  public function __construct($clientOrConfig = [], $rootUrl = null)
57  {
58    parent::__construct($clientOrConfig);
59    $this->rootUrl = $rootUrl ?: 'https://ids.googleapis.com/';
60    $this->servicePath = '';
61    $this->batchPath = 'batch';
62    $this->version = 'v1';
63    $this->serviceName = 'ids';
64
65    $this->projects_locations = new IDS\Resource\ProjectsLocations(
66        $this,
67        $this->serviceName,
68        'locations',
69        [
70          'methods' => [
71            'get' => [
72              'path' => 'v1/{+name}',
73              'httpMethod' => 'GET',
74              'parameters' => [
75                'name' => [
76                  'location' => 'path',
77                  'type' => 'string',
78                  'required' => true,
79                ],
80              ],
81            ],'list' => [
82              'path' => 'v1/{+name}/locations',
83              'httpMethod' => 'GET',
84              'parameters' => [
85                'name' => [
86                  'location' => 'path',
87                  'type' => 'string',
88                  'required' => true,
89                ],
90                'filter' => [
91                  'location' => 'query',
92                  'type' => 'string',
93                ],
94                'pageSize' => [
95                  'location' => 'query',
96                  'type' => 'integer',
97                ],
98                'pageToken' => [
99                  'location' => 'query',
100                  'type' => 'string',
101                ],
102              ],
103            ],
104          ]
105        ]
106    );
107    $this->projects_locations_endpoints = new IDS\Resource\ProjectsLocationsEndpoints(
108        $this,
109        $this->serviceName,
110        'endpoints',
111        [
112          'methods' => [
113            'create' => [
114              'path' => 'v1/{+parent}/endpoints',
115              'httpMethod' => 'POST',
116              'parameters' => [
117                'parent' => [
118                  'location' => 'path',
119                  'type' => 'string',
120                  'required' => true,
121                ],
122                'endpointId' => [
123                  'location' => 'query',
124                  'type' => 'string',
125                ],
126                'requestId' => [
127                  'location' => 'query',
128                  'type' => 'string',
129                ],
130              ],
131            ],'delete' => [
132              'path' => 'v1/{+name}',
133              'httpMethod' => 'DELETE',
134              'parameters' => [
135                'name' => [
136                  'location' => 'path',
137                  'type' => 'string',
138                  'required' => true,
139                ],
140                'requestId' => [
141                  'location' => 'query',
142                  'type' => 'string',
143                ],
144              ],
145            ],'get' => [
146              'path' => 'v1/{+name}',
147              'httpMethod' => 'GET',
148              'parameters' => [
149                'name' => [
150                  'location' => 'path',
151                  'type' => 'string',
152                  'required' => true,
153                ],
154              ],
155            ],'getIamPolicy' => [
156              'path' => 'v1/{+resource}:getIamPolicy',
157              'httpMethod' => 'GET',
158              'parameters' => [
159                'resource' => [
160                  'location' => 'path',
161                  'type' => 'string',
162                  'required' => true,
163                ],
164                'options.requestedPolicyVersion' => [
165                  'location' => 'query',
166                  'type' => 'integer',
167                ],
168              ],
169            ],'list' => [
170              'path' => 'v1/{+parent}/endpoints',
171              'httpMethod' => 'GET',
172              'parameters' => [
173                'parent' => [
174                  'location' => 'path',
175                  'type' => 'string',
176                  'required' => true,
177                ],
178                'filter' => [
179                  'location' => 'query',
180                  'type' => 'string',
181                ],
182                'orderBy' => [
183                  'location' => 'query',
184                  'type' => 'string',
185                ],
186                'pageSize' => [
187                  'location' => 'query',
188                  'type' => 'integer',
189                ],
190                'pageToken' => [
191                  'location' => 'query',
192                  'type' => 'string',
193                ],
194              ],
195            ],'setIamPolicy' => [
196              'path' => 'v1/{+resource}:setIamPolicy',
197              'httpMethod' => 'POST',
198              'parameters' => [
199                'resource' => [
200                  'location' => 'path',
201                  'type' => 'string',
202                  'required' => true,
203                ],
204              ],
205            ],'testIamPermissions' => [
206              'path' => 'v1/{+resource}:testIamPermissions',
207              'httpMethod' => 'POST',
208              'parameters' => [
209                'resource' => [
210                  'location' => 'path',
211                  'type' => 'string',
212                  'required' => true,
213                ],
214              ],
215            ],
216          ]
217        ]
218    );
219    $this->projects_locations_operations = new IDS\Resource\ProjectsLocationsOperations(
220        $this,
221        $this->serviceName,
222        'operations',
223        [
224          'methods' => [
225            'cancel' => [
226              'path' => 'v1/{+name}:cancel',
227              'httpMethod' => 'POST',
228              'parameters' => [
229                'name' => [
230                  'location' => 'path',
231                  'type' => 'string',
232                  'required' => true,
233                ],
234              ],
235            ],'delete' => [
236              'path' => 'v1/{+name}',
237              'httpMethod' => 'DELETE',
238              'parameters' => [
239                'name' => [
240                  'location' => 'path',
241                  'type' => 'string',
242                  'required' => true,
243                ],
244              ],
245            ],'get' => [
246              'path' => 'v1/{+name}',
247              'httpMethod' => 'GET',
248              'parameters' => [
249                'name' => [
250                  'location' => 'path',
251                  'type' => 'string',
252                  'required' => true,
253                ],
254              ],
255            ],'list' => [
256              'path' => 'v1/{+name}/operations',
257              'httpMethod' => 'GET',
258              'parameters' => [
259                'name' => [
260                  'location' => 'path',
261                  'type' => 'string',
262                  'required' => true,
263                ],
264                'filter' => [
265                  'location' => 'query',
266                  'type' => 'string',
267                ],
268                'pageSize' => [
269                  'location' => 'query',
270                  'type' => 'integer',
271                ],
272                'pageToken' => [
273                  'location' => 'query',
274                  'type' => 'string',
275                ],
276              ],
277            ],
278          ]
279        ]
280    );
281  }
282}
283
284// Adding a class alias for backwards compatibility with the previous class name.
285class_alias(IDS::class, 'Google_Service_IDS');
286