ProjectsSettings
class ProjectsSettings extends Resource (View source)
The "settings" collection of methods.
Typical usage is:
$resourcesettingsService = new Google\Service\ResourceSettings(...);
$settings = $resourcesettingsService->projects_settings;
Methods
Returns a specified setting. Returns a google.rpc.Status
with
google.rpc.Code.NOT_FOUND
if the setting does not exist. (settings.get)
Lists all the settings that are available on the Cloud resource parent
.
Updates a specified setting. Returns a google.rpc.Status
with
google.rpc.Code.NOT_FOUND
if the setting does not exist. Returns a
google.rpc.Status
with google.rpc.Code.FAILED_PRECONDITION
if the setting
is flagged as read only. Returns a google.rpc.Status
with
google.rpc.Code.ABORTED
if the etag supplied in the request does not match
the persisted etag of the setting value. On success, the response will
contain only name
, local_value
and etag
. The metadata
and
effective_value
cannot be updated through this API. Note: the supplied
setting will perform a full overwrite of the local_value
field.
Details
GoogleCloudResourcesettingsV1Setting
get(string $name, array $optParams = [])
Returns a specified setting. Returns a google.rpc.Status
with
google.rpc.Code.NOT_FOUND
if the setting does not exist. (settings.get)
GoogleCloudResourcesettingsV1ListSettingsResponse
listProjectsSettings(string $parent, array $optParams = [])
Lists all the settings that are available on the Cloud resource parent
.
(settings.listProjectsSettings)
GoogleCloudResourcesettingsV1Setting
patch(string $name, GoogleCloudResourcesettingsV1Setting $postBody, array $optParams = [])
Updates a specified setting. Returns a google.rpc.Status
with
google.rpc.Code.NOT_FOUND
if the setting does not exist. Returns a
google.rpc.Status
with google.rpc.Code.FAILED_PRECONDITION
if the setting
is flagged as read only. Returns a google.rpc.Status
with
google.rpc.Code.ABORTED
if the etag supplied in the request does not match
the persisted etag of the setting value. On success, the response will
contain only name
, local_value
and etag
. The metadata
and
effective_value
cannot be updated through this API. Note: the supplied
setting will perform a full overwrite of the local_value
field.
(settings.patch)