Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.CapacityCommitmentsResource

The "capacityCommitments" collection of methods.

Inheritance
object
ProjectsResource.LocationsResource.CapacityCommitmentsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.BigQueryReservation.v1
Assembly: Google.Apis.BigQueryReservation.v1.dll
Syntax
public class ProjectsResource.LocationsResource.CapacityCommitmentsResource

Constructors

CapacityCommitmentsResource(IClientService)

Constructs a new resource.

Declaration
public CapacityCommitmentsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Create(CapacityCommitment, string)

Creates a new capacity commitment resource.

Declaration
public virtual ProjectsResource.LocationsResource.CapacityCommitmentsResource.CreateRequest Create(CapacityCommitment body, string parent)
Parameters
Type Name Description
CapacityCommitment body

The body of the request.

string parent

Required. Resource name of the parent reservation. E.g., projects/myproject/locations/US

Returns
Type Description
ProjectsResource.LocationsResource.CapacityCommitmentsResource.CreateRequest

Delete(string)

Deletes a capacity commitment. Attempting to delete capacity commitment before its commitment_end_time will fail with the error code google.rpc.Code.FAILED_PRECONDITION.

Declaration
public virtual ProjectsResource.LocationsResource.CapacityCommitmentsResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
string name

Required. Resource name of the capacity commitment to delete. E.g., projects/myproject/locations/US/capacityCommitments/123

Returns
Type Description
ProjectsResource.LocationsResource.CapacityCommitmentsResource.DeleteRequest

Get(string)

Returns information about the capacity commitment.

Declaration
public virtual ProjectsResource.LocationsResource.CapacityCommitmentsResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

Required. Resource name of the capacity commitment to retrieve. E.g., projects/myproject/locations/US/capacityCommitments/123

Returns
Type Description
ProjectsResource.LocationsResource.CapacityCommitmentsResource.GetRequest

List(string)

Lists all the capacity commitments for the admin project.

Declaration
public virtual ProjectsResource.LocationsResource.CapacityCommitmentsResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. Resource name of the parent reservation. E.g., projects/myproject/locations/US

Returns
Type Description
ProjectsResource.LocationsResource.CapacityCommitmentsResource.ListRequest

Merge(MergeCapacityCommitmentsRequest, string)

Merges capacity commitments of the same plan into a single commitment. The resulting capacity commitment has the greater commitment_end_time out of the to-be-merged capacity commitments. Attempting to merge capacity commitments of different plan will fail with the error code google.rpc.Code.FAILED_PRECONDITION.

Declaration
public virtual ProjectsResource.LocationsResource.CapacityCommitmentsResource.MergeRequest Merge(MergeCapacityCommitmentsRequest body, string parent)
Parameters
Type Name Description
MergeCapacityCommitmentsRequest body

The body of the request.

string parent

Parent resource that identifies admin project and location e.g., projects/myproject/locations/us

Returns
Type Description
ProjectsResource.LocationsResource.CapacityCommitmentsResource.MergeRequest

Patch(CapacityCommitment, string)

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.

Declaration
public virtual ProjectsResource.LocationsResource.CapacityCommitmentsResource.PatchRequest Patch(CapacityCommitment body, string name)
Parameters
Type Name Description
CapacityCommitment body

The body of the request.

string 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.

Returns
Type Description
ProjectsResource.LocationsResource.CapacityCommitmentsResource.PatchRequest

Split(SplitCapacityCommitmentRequest, string)

Splits capacity commitment to two commitments of the same plan and commitment_end_time. A common use case is to enable downgrading commitments. For example, in order to downgrade from 10000 slots to 8000, you might split a 10000 capacity commitment into commitments of 2000 and 8000. Then, you delete the first one after the commitment end time passes.

Declaration
public virtual ProjectsResource.LocationsResource.CapacityCommitmentsResource.SplitRequest Split(SplitCapacityCommitmentRequest body, string name)
Parameters
Type Name Description
SplitCapacityCommitmentRequest body

The body of the request.

string name

Required. The resource name e.g.,: projects/myproject/locations/US/capacityCommitments/123

Returns
Type Description
ProjectsResource.LocationsResource.CapacityCommitmentsResource.SplitRequest
In this article
Back to top Generated by DocFX