Class RegionCommitmentsResource
The "regionCommitments" collection of methods.
Inheritance
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 |
|---|---|---|
| Google.Apis.Services.IClientService | service |
Methods
AggregatedList(String)
Retrieves an aggregated list of commitments by region.
Declaration
public virtual RegionCommitmentsResource.AggregatedListRequest AggregatedList(string project)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
Returns
| Type | Description |
|---|---|
| RegionCommitmentsResource.AggregatedListRequest |
Get(String, String, String)
Returns the specified commitment resource. Gets a list of available commitments by making a list() request.
Declaration
public virtual RegionCommitmentsResource.GetRequest Get(string project, string region, string commitment)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | region | Name of the region for this request. |
| System.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. |
| System.String | project | Project ID for this request. |
| System.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 |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.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. |
| System.String | project | Project ID for this request. |
| System.String | region | The name of the region for this request. |
| System.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. |
| System.String | project | Project ID for this request. |
| System.String | region | Name of the region for this request. |
| System.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. |
| System.String | project | Project ID for this request. |
| System.String | region | Name of the region for this request. |
| System.String | commitment | Name of the commitment for which the reservation is being updated. |
Returns
| Type | Description |
|---|---|
| RegionCommitmentsResource.UpdateReservationsRequest |