Class FoldersResource.SettingsResource.PatchRequest
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.
Inheritance
Inherited Members
Namespace: Google.Apis.ResourceSettings.v1
Assembly: Google.Apis.ResourceSettings.v1.dll
Syntax
public class FoldersResource.SettingsResource.PatchRequest : ResourceSettingsBaseServiceRequest<GoogleCloudResourcesettingsV1Setting>, IClientServiceRequest<GoogleCloudResourcesettingsV1Setting>, IClientServiceRequest
Constructors
PatchRequest(IClientService, GoogleCloudResourcesettingsV1Setting, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, GoogleCloudResourcesettingsV1Setting body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudResourcesettingsV1Setting | body | |
string | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Name
The resource name of the setting. Must be in one of the following forms: *
projects/{project_number}/settings/{setting_name}
* folders/{folder_id}/settings/{setting_name}
organizations/{organization_id}/settings/{setting_name}
For example, "/projects/123/settings/gcp-enableMyFeature"
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Patch parameter list.
Declaration
protected override void InitParameters()