Skip to content

Commit 96778ef

Browse files
1 parent dca2b84 commit 96778ef

5 files changed

Lines changed: 522 additions & 38 deletions

File tree

src/CloudObservability.php

Lines changed: 230 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ class CloudObservability extends \Google\Service
3939
const CLOUD_PLATFORM =
4040
"https://www.googleapis.com/auth/cloud-platform";
4141

42+
public $folders_locations;
43+
public $folders_locations_operations;
44+
public $organizations_locations;
45+
public $organizations_locations_operations;
4246
public $projects_locations;
4347
public $projects_locations_operations;
4448
public $projects_locations_scopes;
@@ -62,6 +66,232 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
6266
$this->version = 'v1';
6367
$this->serviceName = 'observability';
6468

69+
$this->folders_locations = new CloudObservability\Resource\FoldersLocations(
70+
$this,
71+
$this->serviceName,
72+
'locations',
73+
[
74+
'methods' => [
75+
'get' => [
76+
'path' => 'v1/{+name}',
77+
'httpMethod' => 'GET',
78+
'parameters' => [
79+
'name' => [
80+
'location' => 'path',
81+
'type' => 'string',
82+
'required' => true,
83+
],
84+
],
85+
],'list' => [
86+
'path' => 'v1/{+name}/locations',
87+
'httpMethod' => 'GET',
88+
'parameters' => [
89+
'name' => [
90+
'location' => 'path',
91+
'type' => 'string',
92+
'required' => true,
93+
],
94+
'extraLocationTypes' => [
95+
'location' => 'query',
96+
'type' => 'string',
97+
'repeated' => true,
98+
],
99+
'filter' => [
100+
'location' => 'query',
101+
'type' => 'string',
102+
],
103+
'pageSize' => [
104+
'location' => 'query',
105+
'type' => 'integer',
106+
],
107+
'pageToken' => [
108+
'location' => 'query',
109+
'type' => 'string',
110+
],
111+
],
112+
],
113+
]
114+
]
115+
);
116+
$this->folders_locations_operations = new CloudObservability\Resource\FoldersLocationsOperations(
117+
$this,
118+
$this->serviceName,
119+
'operations',
120+
[
121+
'methods' => [
122+
'cancel' => [
123+
'path' => 'v1/{+name}:cancel',
124+
'httpMethod' => 'POST',
125+
'parameters' => [
126+
'name' => [
127+
'location' => 'path',
128+
'type' => 'string',
129+
'required' => true,
130+
],
131+
],
132+
],'delete' => [
133+
'path' => 'v1/{+name}',
134+
'httpMethod' => 'DELETE',
135+
'parameters' => [
136+
'name' => [
137+
'location' => 'path',
138+
'type' => 'string',
139+
'required' => true,
140+
],
141+
],
142+
],'get' => [
143+
'path' => 'v1/{+name}',
144+
'httpMethod' => 'GET',
145+
'parameters' => [
146+
'name' => [
147+
'location' => 'path',
148+
'type' => 'string',
149+
'required' => true,
150+
],
151+
],
152+
],'list' => [
153+
'path' => 'v1/{+name}/operations',
154+
'httpMethod' => 'GET',
155+
'parameters' => [
156+
'name' => [
157+
'location' => 'path',
158+
'type' => 'string',
159+
'required' => true,
160+
],
161+
'filter' => [
162+
'location' => 'query',
163+
'type' => 'string',
164+
],
165+
'pageSize' => [
166+
'location' => 'query',
167+
'type' => 'integer',
168+
],
169+
'pageToken' => [
170+
'location' => 'query',
171+
'type' => 'string',
172+
],
173+
'returnPartialSuccess' => [
174+
'location' => 'query',
175+
'type' => 'boolean',
176+
],
177+
],
178+
],
179+
]
180+
]
181+
);
182+
$this->organizations_locations = new CloudObservability\Resource\OrganizationsLocations(
183+
$this,
184+
$this->serviceName,
185+
'locations',
186+
[
187+
'methods' => [
188+
'get' => [
189+
'path' => 'v1/{+name}',
190+
'httpMethod' => 'GET',
191+
'parameters' => [
192+
'name' => [
193+
'location' => 'path',
194+
'type' => 'string',
195+
'required' => true,
196+
],
197+
],
198+
],'list' => [
199+
'path' => 'v1/{+name}/locations',
200+
'httpMethod' => 'GET',
201+
'parameters' => [
202+
'name' => [
203+
'location' => 'path',
204+
'type' => 'string',
205+
'required' => true,
206+
],
207+
'extraLocationTypes' => [
208+
'location' => 'query',
209+
'type' => 'string',
210+
'repeated' => true,
211+
],
212+
'filter' => [
213+
'location' => 'query',
214+
'type' => 'string',
215+
],
216+
'pageSize' => [
217+
'location' => 'query',
218+
'type' => 'integer',
219+
],
220+
'pageToken' => [
221+
'location' => 'query',
222+
'type' => 'string',
223+
],
224+
],
225+
],
226+
]
227+
]
228+
);
229+
$this->organizations_locations_operations = new CloudObservability\Resource\OrganizationsLocationsOperations(
230+
$this,
231+
$this->serviceName,
232+
'operations',
233+
[
234+
'methods' => [
235+
'cancel' => [
236+
'path' => 'v1/{+name}:cancel',
237+
'httpMethod' => 'POST',
238+
'parameters' => [
239+
'name' => [
240+
'location' => 'path',
241+
'type' => 'string',
242+
'required' => true,
243+
],
244+
],
245+
],'delete' => [
246+
'path' => 'v1/{+name}',
247+
'httpMethod' => 'DELETE',
248+
'parameters' => [
249+
'name' => [
250+
'location' => 'path',
251+
'type' => 'string',
252+
'required' => true,
253+
],
254+
],
255+
],'get' => [
256+
'path' => 'v1/{+name}',
257+
'httpMethod' => 'GET',
258+
'parameters' => [
259+
'name' => [
260+
'location' => 'path',
261+
'type' => 'string',
262+
'required' => true,
263+
],
264+
],
265+
],'list' => [
266+
'path' => 'v1/{+name}/operations',
267+
'httpMethod' => 'GET',
268+
'parameters' => [
269+
'name' => [
270+
'location' => 'path',
271+
'type' => 'string',
272+
'required' => true,
273+
],
274+
'filter' => [
275+
'location' => 'query',
276+
'type' => 'string',
277+
],
278+
'pageSize' => [
279+
'location' => 'query',
280+
'type' => 'integer',
281+
],
282+
'pageToken' => [
283+
'location' => 'query',
284+
'type' => 'string',
285+
],
286+
'returnPartialSuccess' => [
287+
'location' => 'query',
288+
'type' => 'boolean',
289+
],
290+
],
291+
],
292+
]
293+
]
294+
);
65295
$this->projects_locations = new CloudObservability\Resource\ProjectsLocations(
66296
$this,
67297
$this->serviceName,

src/CloudObservability/Resource/FoldersLocations.php

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
namespace Google\Service\CloudObservability\Resource;
1919

20-
use Google\Service\CloudObservability\Operation;
21-
use Google\Service\CloudObservability\Settings;
20+
use Google\Service\CloudObservability\ListLocationsResponse;
21+
use Google\Service\CloudObservability\Location;
2222

2323
/**
2424
* The "locations" collection of methods.
@@ -31,39 +31,45 @@
3131
class FoldersLocations extends \Google\Service\Resource
3232
{
3333
/**
34-
* Get Settings (locations.getSettings)
34+
* Gets information about a location. (locations.get)
3535
*
36-
* @param string $name Required. Name of the settings to retrieve. Name format:
37-
* "projects/[PROJECT_ID]/locations/[LOCATION]/settings"
38-
* "folders/[FOLDER_ID]/locations/[LOCATION]/settings"
39-
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION]/settings"
36+
* @param string $name Resource name for the location.
4037
* @param array $optParams Optional parameters.
41-
* @return Settings
38+
* @return Location
4239
* @throws \Google\Service\Exception
4340
*/
44-
public function getSettings($name, $optParams = [])
41+
public function get($name, $optParams = [])
4542
{
4643
$params = ['name' => $name];
4744
$params = array_merge($params, $optParams);
48-
return $this->call('getSettings', [$params], Settings::class);
45+
return $this->call('get', [$params], Location::class);
4946
}
5047
/**
51-
* Update Settings (locations.updateSettings)
48+
* Lists information about the supported locations for this service.
49+
* (locations.listFoldersLocations)
5250
*
53-
* @param string $name Identifier. The resource name of the settings.
54-
* @param Settings $postBody
51+
* @param string $name The resource that owns the locations collection, if
52+
* applicable.
5553
* @param array $optParams Optional parameters.
5654
*
57-
* @opt_param string updateMask Optional. The field mask specifying which fields
58-
* of the settings are to be updated.
59-
* @return Operation
55+
* @opt_param string extraLocationTypes Optional. Do not use this field. It is
56+
* unsupported and is ignored unless explicitly documented otherwise. This is
57+
* primarily for internal usage.
58+
* @opt_param string filter A filter to narrow down results to a preferred
59+
* subset. The filtering language accepts strings like `"displayName=tokyo"`,
60+
* and is documented in more detail in [AIP-160](https://google.aip.dev/160).
61+
* @opt_param int pageSize The maximum number of results to return. If not set,
62+
* the service selects a default.
63+
* @opt_param string pageToken A page token received from the `next_page_token`
64+
* field in the response. Send that page token to receive the subsequent page.
65+
* @return ListLocationsResponse
6066
* @throws \Google\Service\Exception
6167
*/
62-
public function updateSettings($name, Settings $postBody, $optParams = [])
68+
public function listFoldersLocations($name, $optParams = [])
6369
{
64-
$params = ['name' => $name, 'postBody' => $postBody];
70+
$params = ['name' => $name];
6571
$params = array_merge($params, $optParams);
66-
return $this->call('updateSettings', [$params], Operation::class);
72+
return $this->call('list', [$params], ListLocationsResponse::class);
6773
}
6874
}
6975

0 commit comments

Comments
 (0)