Skip to content

Commit 3879872

Browse files
1 parent 9583696 commit 3879872

5 files changed

Lines changed: 185 additions & 2 deletions

File tree

src/CloudObservability.php

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,16 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
8686
'required' => true,
8787
],
8888
],
89+
],'getSettings' => [
90+
'path' => 'v1/{+name}',
91+
'httpMethod' => 'GET',
92+
'parameters' => [
93+
'name' => [
94+
'location' => 'path',
95+
'type' => 'string',
96+
'required' => true,
97+
],
98+
],
8999
],'list' => [
90100
'path' => 'v1/{+name}/locations',
91101
'httpMethod' => 'GET',
@@ -113,6 +123,20 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
113123
'type' => 'string',
114124
],
115125
],
126+
],'updateSettings' => [
127+
'path' => 'v1/{+name}',
128+
'httpMethod' => 'PATCH',
129+
'parameters' => [
130+
'name' => [
131+
'location' => 'path',
132+
'type' => 'string',
133+
'required' => true,
134+
],
135+
'updateMask' => [
136+
'location' => 'query',
137+
'type' => 'string',
138+
],
139+
],
116140
],
117141
]
118142
]
@@ -199,6 +223,16 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
199223
'required' => true,
200224
],
201225
],
226+
],'getSettings' => [
227+
'path' => 'v1/{+name}',
228+
'httpMethod' => 'GET',
229+
'parameters' => [
230+
'name' => [
231+
'location' => 'path',
232+
'type' => 'string',
233+
'required' => true,
234+
],
235+
],
202236
],'list' => [
203237
'path' => 'v1/{+name}/locations',
204238
'httpMethod' => 'GET',
@@ -226,6 +260,20 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
226260
'type' => 'string',
227261
],
228262
],
263+
],'updateSettings' => [
264+
'path' => 'v1/{+name}',
265+
'httpMethod' => 'PATCH',
266+
'parameters' => [
267+
'name' => [
268+
'location' => 'path',
269+
'type' => 'string',
270+
'required' => true,
271+
],
272+
'updateMask' => [
273+
'location' => 'query',
274+
'type' => 'string',
275+
],
276+
],
229277
],
230278
]
231279
]
@@ -312,6 +360,16 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
312360
'required' => true,
313361
],
314362
],
363+
],'getSettings' => [
364+
'path' => 'v1/{+name}',
365+
'httpMethod' => 'GET',
366+
'parameters' => [
367+
'name' => [
368+
'location' => 'path',
369+
'type' => 'string',
370+
'required' => true,
371+
],
372+
],
315373
],'list' => [
316374
'path' => 'v1/{+name}/locations',
317375
'httpMethod' => 'GET',
@@ -339,6 +397,20 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
339397
'type' => 'string',
340398
],
341399
],
400+
],'updateSettings' => [
401+
'path' => 'v1/{+name}',
402+
'httpMethod' => 'PATCH',
403+
'parameters' => [
404+
'name' => [
405+
'location' => 'path',
406+
'type' => 'string',
407+
'required' => true,
408+
],
409+
'updateMask' => [
410+
'location' => 'query',
411+
'type' => 'string',
412+
],
413+
],
342414
],
343415
]
344416
]

src/CloudObservability/Resource/FoldersLocations.php

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
use Google\Service\CloudObservability\ListLocationsResponse;
2121
use Google\Service\CloudObservability\Location;
22+
use Google\Service\CloudObservability\Operation;
23+
use Google\Service\CloudObservability\Settings;
2224

2325
/**
2426
* The "locations" collection of methods.
@@ -44,6 +46,23 @@ public function get($name, $optParams = [])
4446
$params = array_merge($params, $optParams);
4547
return $this->call('get', [$params], Location::class);
4648
}
49+
/**
50+
* Get Settings (locations.getSettings)
51+
*
52+
* @param string $name Required. Name of the settings to retrieve. Name format:
53+
* "projects/[PROJECT_ID]/locations/[LOCATION]/settings"
54+
* "folders/[FOLDER_ID]/locations/[LOCATION]/settings"
55+
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION]/settings"
56+
* @param array $optParams Optional parameters.
57+
* @return Settings
58+
* @throws \Google\Service\Exception
59+
*/
60+
public function getSettings($name, $optParams = [])
61+
{
62+
$params = ['name' => $name];
63+
$params = array_merge($params, $optParams);
64+
return $this->call('getSettings', [$params], Settings::class);
65+
}
4766
/**
4867
* Lists information about the supported locations for this service. This method
4968
* can be called in two ways: * **List all public locations:** Use the path `GET
@@ -75,6 +94,24 @@ public function listFoldersLocations($name, $optParams = [])
7594
$params = array_merge($params, $optParams);
7695
return $this->call('list', [$params], ListLocationsResponse::class);
7796
}
97+
/**
98+
* Update Settings (locations.updateSettings)
99+
*
100+
* @param string $name Identifier. The resource name of the settings.
101+
* @param Settings $postBody
102+
* @param array $optParams Optional parameters.
103+
*
104+
* @opt_param string updateMask Optional. The field mask specifying which fields
105+
* of the settings are to be updated.
106+
* @return Operation
107+
* @throws \Google\Service\Exception
108+
*/
109+
public function updateSettings($name, Settings $postBody, $optParams = [])
110+
{
111+
$params = ['name' => $name, 'postBody' => $postBody];
112+
$params = array_merge($params, $optParams);
113+
return $this->call('updateSettings', [$params], Operation::class);
114+
}
78115
}
79116

80117
// Adding a class alias for backwards compatibility with the previous class name.

src/CloudObservability/Resource/OrganizationsLocations.php

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
use Google\Service\CloudObservability\ListLocationsResponse;
2121
use Google\Service\CloudObservability\Location;
22+
use Google\Service\CloudObservability\Operation;
23+
use Google\Service\CloudObservability\Settings;
2224

2325
/**
2426
* The "locations" collection of methods.
@@ -44,6 +46,23 @@ public function get($name, $optParams = [])
4446
$params = array_merge($params, $optParams);
4547
return $this->call('get', [$params], Location::class);
4648
}
49+
/**
50+
* Get Settings (locations.getSettings)
51+
*
52+
* @param string $name Required. Name of the settings to retrieve. Name format:
53+
* "projects/[PROJECT_ID]/locations/[LOCATION]/settings"
54+
* "folders/[FOLDER_ID]/locations/[LOCATION]/settings"
55+
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION]/settings"
56+
* @param array $optParams Optional parameters.
57+
* @return Settings
58+
* @throws \Google\Service\Exception
59+
*/
60+
public function getSettings($name, $optParams = [])
61+
{
62+
$params = ['name' => $name];
63+
$params = array_merge($params, $optParams);
64+
return $this->call('getSettings', [$params], Settings::class);
65+
}
4766
/**
4867
* Lists information about the supported locations for this service. This method
4968
* can be called in two ways: * **List all public locations:** Use the path `GET
@@ -75,6 +94,24 @@ public function listOrganizationsLocations($name, $optParams = [])
7594
$params = array_merge($params, $optParams);
7695
return $this->call('list', [$params], ListLocationsResponse::class);
7796
}
97+
/**
98+
* Update Settings (locations.updateSettings)
99+
*
100+
* @param string $name Identifier. The resource name of the settings.
101+
* @param Settings $postBody
102+
* @param array $optParams Optional parameters.
103+
*
104+
* @opt_param string updateMask Optional. The field mask specifying which fields
105+
* of the settings are to be updated.
106+
* @return Operation
107+
* @throws \Google\Service\Exception
108+
*/
109+
public function updateSettings($name, Settings $postBody, $optParams = [])
110+
{
111+
$params = ['name' => $name, 'postBody' => $postBody];
112+
$params = array_merge($params, $optParams);
113+
return $this->call('updateSettings', [$params], Operation::class);
114+
}
78115
}
79116

80117
// Adding a class alias for backwards compatibility with the previous class name.

src/CloudObservability/Resource/ProjectsLocations.php

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
use Google\Service\CloudObservability\ListLocationsResponse;
2121
use Google\Service\CloudObservability\Location;
22+
use Google\Service\CloudObservability\Operation;
23+
use Google\Service\CloudObservability\Settings;
2224

2325
/**
2426
* The "locations" collection of methods.
@@ -44,6 +46,23 @@ public function get($name, $optParams = [])
4446
$params = array_merge($params, $optParams);
4547
return $this->call('get', [$params], Location::class);
4648
}
49+
/**
50+
* Get Settings (locations.getSettings)
51+
*
52+
* @param string $name Required. Name of the settings to retrieve. Name format:
53+
* "projects/[PROJECT_ID]/locations/[LOCATION]/settings"
54+
* "folders/[FOLDER_ID]/locations/[LOCATION]/settings"
55+
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION]/settings"
56+
* @param array $optParams Optional parameters.
57+
* @return Settings
58+
* @throws \Google\Service\Exception
59+
*/
60+
public function getSettings($name, $optParams = [])
61+
{
62+
$params = ['name' => $name];
63+
$params = array_merge($params, $optParams);
64+
return $this->call('getSettings', [$params], Settings::class);
65+
}
4766
/**
4867
* Lists information about the supported locations for this service. This method
4968
* can be called in two ways: * **List all public locations:** Use the path `GET
@@ -75,6 +94,24 @@ public function listProjectsLocations($name, $optParams = [])
7594
$params = array_merge($params, $optParams);
7695
return $this->call('list', [$params], ListLocationsResponse::class);
7796
}
97+
/**
98+
* Update Settings (locations.updateSettings)
99+
*
100+
* @param string $name Identifier. The resource name of the settings.
101+
* @param Settings $postBody
102+
* @param array $optParams Optional parameters.
103+
*
104+
* @opt_param string updateMask Optional. The field mask specifying which fields
105+
* of the settings are to be updated.
106+
* @return Operation
107+
* @throws \Google\Service\Exception
108+
*/
109+
public function updateSettings($name, Settings $postBody, $optParams = [])
110+
{
111+
$params = ['name' => $name, 'postBody' => $postBody];
112+
$params = array_merge($params, $optParams);
113+
return $this->call('updateSettings', [$params], Operation::class);
114+
}
78115
}
79116

80117
// Adding a class alias for backwards compatibility with the previous class name.

src/CloudObservability/Settings.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Settings extends \Google\Model
2121
{
2222
/**
2323
* Optional. The location which should be used when any regional resources are
24-
* provisioned by GCP.
24+
* provisioned by Google Cloud.
2525
*
2626
* @var string
2727
*/
@@ -54,7 +54,7 @@ class Settings extends \Google\Model
5454

5555
/**
5656
* Optional. The location which should be used when any regional resources are
57-
* provisioned by GCP.
57+
* provisioned by Google Cloud.
5858
*
5959
* @param string $defaultStorageLocation
6060
*/

0 commit comments

Comments
 (0)