Class RegionCommitmentsResource
The "regionCommitments" collection of methods.
Inherited Members
Namespace: Google.Apis.Compute.v1
Assembly: Google.Apis.Compute.v1.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, it is recommended 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 |
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 |
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 updated: auto_renew and plan.
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 that you want to update. |
Returns
| Type | Description |
|---|---|
| RegionCommitmentsResource.UpdateRequest |