Class ProjectsResource.InstanceConfigsResource.PatchRequest
Updates an instance config. The returned long-running operation can be used to track the progress of
updating the instance. If the named instance config does not exist, returns NOT_FOUND
. Only user
managed configurations can be updated. Immediately after the request returns: * The instance config's
reconciling field is set to true. While the operation is pending: * Cancelling the operation sets its
metadata's cancel_time. The operation is guaranteed to succeed at undoing all changes, after which point
it terminates with a CANCELLED
status. * All other attempts to modify the instance config are
rejected. * Reading the instance config via the API continues to give the pre-request values. Upon
completion of the returned operation: * Creating instances using the instance configuration uses the new
values. * The instance config's new values are readable via the API. * The instance config's reconciling
field becomes false. The returned long-running operation will have a name of the format /operations/
and can be used to track the instance config modification. The metadata field type is
UpdateInstanceConfigMetadata. The response field type is InstanceConfig, if successful. Authorization
requires spanner.instanceConfigs.update
permission on the resource name.
Inheritance
Inherited Members
Namespace: Google.Apis.Spanner.v1
Assembly: Google.Apis.Spanner.v1.dll
Syntax
public class ProjectsResource.InstanceConfigsResource.PatchRequest : SpannerBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
PatchRequest(IClientService, UpdateInstanceConfigRequest, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, UpdateInstanceConfigRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
UpdateInstanceConfigRequest | 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
A unique identifier for the instance configuration. Values are of the form
projects//instanceConfigs/a-z*
.
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()