Class ProjectsResource.LocationsResource.CapacityCommitmentsResource.PatchRequest
Updates an existing capacity commitment. Only plan
and renewal_plan
fields can be updated. Plan
can only be changed to a plan of a longer commitment period. Attempting to change to a plan with
shorter commitment period will fail with the error code google.rpc.Code.FAILED_PRECONDITION
.
Inheritance
System.Object
Google.Apis.Requests.ClientServiceRequest
ProjectsResource.LocationsResource.CapacityCommitmentsResource.PatchRequest
Implements
Google.Apis.Requests.IClientServiceRequest
Inherited Members
Google.Apis.Requests.ClientServiceRequest<Google.Apis.BigQueryReservation.v1beta1.Data.CapacityCommitment>.Execute()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.BigQueryReservation.v1beta1.Data.CapacityCommitment>.ExecuteAsStream()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.BigQueryReservation.v1beta1.Data.CapacityCommitment>.ExecuteAsync()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.BigQueryReservation.v1beta1.Data.CapacityCommitment>.ExecuteAsync(System.Threading.CancellationToken)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.BigQueryReservation.v1beta1.Data.CapacityCommitment>.ExecuteAsStreamAsync()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.BigQueryReservation.v1beta1.Data.CapacityCommitment>.ExecuteAsStreamAsync(System.Threading.CancellationToken)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.BigQueryReservation.v1beta1.Data.CapacityCommitment>.CreateRequest(System.Nullable<System.Boolean>)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.BigQueryReservation.v1beta1.Data.CapacityCommitment>.GenerateRequestUri()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.BigQueryReservation.v1beta1.Data.CapacityCommitment>.GetDefaultETagAction(System.String)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.BigQueryReservation.v1beta1.Data.CapacityCommitment>.ETagAction
Google.Apis.Requests.ClientServiceRequest<Google.Apis.BigQueryReservation.v1beta1.Data.CapacityCommitment>.ModifyRequest
Google.Apis.Requests.ClientServiceRequest<Google.Apis.BigQueryReservation.v1beta1.Data.CapacityCommitment>.ValidateParameters
Google.Apis.Requests.ClientServiceRequest<Google.Apis.BigQueryReservation.v1beta1.Data.CapacityCommitment>.RequestParameters
Google.Apis.Requests.ClientServiceRequest<Google.Apis.BigQueryReservation.v1beta1.Data.CapacityCommitment>.Service
Google.Apis.Requests.ClientServiceRequest._unsuccessfulResponseHandlers
Google.Apis.Requests.ClientServiceRequest._exceptionHandlers
Google.Apis.Requests.ClientServiceRequest._executeInterceptors
Google.Apis.Requests.ClientServiceRequest.AddUnsuccessfulResponseHandler(Google.Apis.Http.IHttpUnsuccessfulResponseHandler)
Google.Apis.Requests.ClientServiceRequest.AddExceptionHandler(Google.Apis.Http.IHttpExceptionHandler)
Google.Apis.Requests.ClientServiceRequest.AddExecuteInterceptor(Google.Apis.Http.IHttpExecuteInterceptor)
Google.Apis.Requests.ClientServiceRequest.Credential
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Google.Apis.BigQueryReservation.v1beta1.dll
Syntax
public class PatchRequest : BigQueryReservationBaseServiceRequest<CapacityCommitment>, IClientServiceRequest<CapacityCommitment>, IClientServiceRequest
Constructors
PatchRequest(IClientService, CapacityCommitment, String)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, CapacityCommitment body, string name)
Parameters
Type |
Name |
Description |
Google.Apis.Services.IClientService |
service |
|
CapacityCommitment |
body |
|
System.String |
name |
|
Properties
HttpMethod
Declaration
public override string HttpMethod { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.BigQueryReservation.v1beta1.Data.CapacityCommitment>.HttpMethod
MethodName
Declaration
public override string MethodName { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.BigQueryReservation.v1beta1.Data.CapacityCommitment>.MethodName
Name
Output only. The resource name of the capacity commitment, e.g.,
projects/myproject/locations/US/capacityCommitments/123
The commitment_id must only contain
lower case alphanumeric characters or dashes. It must start with a letter and must not end with
a dash. Its maximum length is 64 characters.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type |
Description |
System.String |
|
RestPath
Declaration
public override string RestPath { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.BigQueryReservation.v1beta1.Data.CapacityCommitment>.RestPath
UpdateMask
Standard field mask for the set of fields to be updated.
Declaration
[RequestParameter("updateMask", RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
Property Value
Type |
Description |
System.Object |
|
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type |
Description |
System.Object |
|
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.BigQueryReservation.v1beta1.Data.CapacityCommitment>.GetBody()
InitParameters()
Initializes Patch parameter list.
Declaration
protected override void InitParameters()
Overrides
Google.Apis.BigQueryReservation.v1beta1.BigQueryReservationBaseServiceRequest<Google.Apis.BigQueryReservation.v1beta1.Data.CapacityCommitment>.InitParameters()
Implements
Google.Apis.Requests.IClientServiceRequest<TResponse>
Google.Apis.Requests.IClientServiceRequest