Class RegionCommitmentsResource
The "regionCommitments" collection of methods.
Inherited Members
Namespace: Google.Apis.Compute.alpha
Assembly: Google.Apis.Compute.alpha.dll
Syntax
public class RegionCommitmentsResource
Constructors
RegionCommitmentsResource(IClientService)
Constructs a new resource.
Declaration
public RegionCommitmentsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
AggregatedList(string)
Retrieves an aggregated list of commitments by region. To prevent failure, Google recommends that you set
the returnPartialSuccess
parameter to true
.
Declaration
public virtual RegionCommitmentsResource.AggregatedListRequest AggregatedList(string project)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
Returns
Type | Description |
---|---|
RegionCommitmentsResource.AggregatedListRequest |
CalculateCancellationFee(string, string, string)
Calculate cancellation fee for the specified commitment.
Declaration
public virtual RegionCommitmentsResource.CalculateCancellationFeeRequest CalculateCancellationFee(string project, string region, string commitment)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | region | Name of the region for this request. |
string | commitment | Name of the commitment to delete. |
Returns
Type | Description |
---|---|
RegionCommitmentsResource.CalculateCancellationFeeRequest |
Cancel(string, string, string)
Cancel the specified commitment.
Declaration
public virtual RegionCommitmentsResource.CancelRequest Cancel(string project, string region, string commitment)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | region | Name of the region for this request. |
string | commitment | Name of the commitment to delete. |
Returns
Type | Description |
---|---|
RegionCommitmentsResource.CancelRequest |
Get(string, string, string)
Returns the specified commitment resource.
Declaration
public virtual RegionCommitmentsResource.GetRequest Get(string project, string region, string commitment)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | region | Name of the region for this request. |
string | commitment | Name of the commitment to return. |
Returns
Type | Description |
---|---|
RegionCommitmentsResource.GetRequest |
Insert(Commitment, string, string)
Creates a commitment in the specified project using the data included in the request.
Declaration
public virtual RegionCommitmentsResource.InsertRequest Insert(Commitment body, string project, string region)
Parameters
Type | Name | Description |
---|---|---|
Commitment | body | The body of the request. |
string | project | Project ID for this request. |
string | region | Name of the region for this request. |
Returns
Type | Description |
---|---|
RegionCommitmentsResource.InsertRequest |
List(string, string)
Retrieves a list of commitments contained within the specified region.
Declaration
public virtual RegionCommitmentsResource.ListRequest List(string project, string region)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | region | Name of the region for this request. |
Returns
Type | Description |
---|---|
RegionCommitmentsResource.ListRequest |
TestIamPermissions(TestPermissionsRequest, string, string, string)
Returns permissions that a caller has on the specified resource.
Declaration
public virtual RegionCommitmentsResource.TestIamPermissionsRequest TestIamPermissions(TestPermissionsRequest body, string project, string region, string resource)
Parameters
Type | Name | Description |
---|---|---|
TestPermissionsRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | region | The name of the region for this request. |
string | resource | Name or id of the resource for this request. |
Returns
Type | Description |
---|---|
RegionCommitmentsResource.TestIamPermissionsRequest |
Update(Commitment, string, string, string)
Updates the specified commitment with the data included in the request. Update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: auto_renew.
Declaration
public virtual RegionCommitmentsResource.UpdateRequest Update(Commitment body, string project, string region, string commitment)
Parameters
Type | Name | Description |
---|---|---|
Commitment | body | The body of the request. |
string | project | Project ID for this request. |
string | region | Name of the region for this request. |
string | commitment | Name of the commitment for which auto renew is being updated. |
Returns
Type | Description |
---|---|
RegionCommitmentsResource.UpdateRequest |
UpdateReservations(RegionCommitmentsUpdateReservationsRequest, string, string, string)
Transfers GPUs or local SSDs between reservations within commitments.
Declaration
public virtual RegionCommitmentsResource.UpdateReservationsRequest UpdateReservations(RegionCommitmentsUpdateReservationsRequest body, string project, string region, string commitment)
Parameters
Type | Name | Description |
---|---|---|
RegionCommitmentsUpdateReservationsRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | region | Name of the region for this request. |
string | commitment | Name of the commitment for which the reservation is being updated. |
Returns
Type | Description |
---|---|
RegionCommitmentsResource.UpdateReservationsRequest |