source: vendor/google/apiclient-services/src/Advisorynotifications.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: 7.1 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 Advisorynotifications (v1).
24 *
25 * <p>
26 * An API for accessing Advisory Notifications in Google Cloud</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://cloud.google.com/advisory-notifications" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class Advisorynotifications 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 $organizations_locations;
42 public $organizations_locations_notifications;
43 public $projects_locations;
44 public $projects_locations_notifications;
45 public $rootUrlTemplate;
46
47 /**
48 * Constructs the internal representation of the Advisorynotifications
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://advisorynotifications.googleapis.com/';
59 $this->rootUrlTemplate = $rootUrl ?: 'https://advisorynotifications.UNIVERSE_DOMAIN/';
60 $this->servicePath = '';
61 $this->batchPath = 'batch';
62 $this->version = 'v1';
63 $this->serviceName = 'advisorynotifications';
64
65 $this->organizations_locations = new Advisorynotifications\Resource\OrganizationsLocations(
66 $this,
67 $this->serviceName,
68 'locations',
69 [
70 'methods' => [
71 'getSettings' => [
72 'path' => 'v1/{+name}',
73 'httpMethod' => 'GET',
74 'parameters' => [
75 'name' => [
76 'location' => 'path',
77 'type' => 'string',
78 'required' => true,
79 ],
80 ],
81 ],'updateSettings' => [
82 'path' => 'v1/{+name}',
83 'httpMethod' => 'PATCH',
84 'parameters' => [
85 'name' => [
86 'location' => 'path',
87 'type' => 'string',
88 'required' => true,
89 ],
90 ],
91 ],
92 ]
93 ]
94 );
95 $this->organizations_locations_notifications = new Advisorynotifications\Resource\OrganizationsLocationsNotifications(
96 $this,
97 $this->serviceName,
98 'notifications',
99 [
100 'methods' => [
101 'get' => [
102 'path' => 'v1/{+name}',
103 'httpMethod' => 'GET',
104 'parameters' => [
105 'name' => [
106 'location' => 'path',
107 'type' => 'string',
108 'required' => true,
109 ],
110 'languageCode' => [
111 'location' => 'query',
112 'type' => 'string',
113 ],
114 ],
115 ],'list' => [
116 'path' => 'v1/{+parent}/notifications',
117 'httpMethod' => 'GET',
118 'parameters' => [
119 'parent' => [
120 'location' => 'path',
121 'type' => 'string',
122 'required' => true,
123 ],
124 'languageCode' => [
125 'location' => 'query',
126 'type' => 'string',
127 ],
128 'pageSize' => [
129 'location' => 'query',
130 'type' => 'integer',
131 ],
132 'pageToken' => [
133 'location' => 'query',
134 'type' => 'string',
135 ],
136 'view' => [
137 'location' => 'query',
138 'type' => 'string',
139 ],
140 ],
141 ],
142 ]
143 ]
144 );
145 $this->projects_locations = new Advisorynotifications\Resource\ProjectsLocations(
146 $this,
147 $this->serviceName,
148 'locations',
149 [
150 'methods' => [
151 'getSettings' => [
152 'path' => 'v1/{+name}',
153 'httpMethod' => 'GET',
154 'parameters' => [
155 'name' => [
156 'location' => 'path',
157 'type' => 'string',
158 'required' => true,
159 ],
160 ],
161 ],'updateSettings' => [
162 'path' => 'v1/{+name}',
163 'httpMethod' => 'PATCH',
164 'parameters' => [
165 'name' => [
166 'location' => 'path',
167 'type' => 'string',
168 'required' => true,
169 ],
170 ],
171 ],
172 ]
173 ]
174 );
175 $this->projects_locations_notifications = new Advisorynotifications\Resource\ProjectsLocationsNotifications(
176 $this,
177 $this->serviceName,
178 'notifications',
179 [
180 'methods' => [
181 'get' => [
182 'path' => 'v1/{+name}',
183 'httpMethod' => 'GET',
184 'parameters' => [
185 'name' => [
186 'location' => 'path',
187 'type' => 'string',
188 'required' => true,
189 ],
190 'languageCode' => [
191 'location' => 'query',
192 'type' => 'string',
193 ],
194 ],
195 ],'list' => [
196 'path' => 'v1/{+parent}/notifications',
197 'httpMethod' => 'GET',
198 'parameters' => [
199 'parent' => [
200 'location' => 'path',
201 'type' => 'string',
202 'required' => true,
203 ],
204 'languageCode' => [
205 'location' => 'query',
206 'type' => 'string',
207 ],
208 'pageSize' => [
209 'location' => 'query',
210 'type' => 'integer',
211 ],
212 'pageToken' => [
213 'location' => 'query',
214 'type' => 'string',
215 ],
216 'view' => [
217 'location' => 'query',
218 'type' => 'string',
219 ],
220 ],
221 ],
222 ]
223 ]
224 );
225 }
226}
227
228// Adding a class alias for backwards compatibility with the previous class name.
229class_alias(Advisorynotifications::class, 'Google_Service_Advisorynotifications');
Note: See TracBrowser for help on using the repository browser.