Class RegionCommitmentsResource
The "regionCommitments" collection of methods.
Inheritance
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.
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 |
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 |