Class ReservationsResource
The "reservations" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.Compute.v1
Assembly: Google.Apis.Compute.v1.dll
Syntax
public class ReservationsResource
Constructors
ReservationsResource(IClientService)
Constructs a new resource.
Declaration
public ReservationsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
AggregatedList(String)
Retrieves an aggregated list of reservations.
Declaration
public virtual ReservationsResource.AggregatedListRequest AggregatedList(string project)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
Returns
| Type | Description |
|---|---|
| ReservationsResource.AggregatedListRequest |
Delete(String, String, String)
Deletes the specified reservation.
Declaration
public virtual ReservationsResource.DeleteRequest Delete(string project, string zone, string reservation)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | zone | Name of the zone for this request. |
| System.String | reservation | Name of the reservation to delete. |
Returns
| Type | Description |
|---|---|
| ReservationsResource.DeleteRequest |
Get(String, String, String)
Retrieves information about the specified reservation.
Declaration
public virtual ReservationsResource.GetRequest Get(string project, string zone, string reservation)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | zone | Name of the zone for this request. |
| System.String | reservation | Name of the reservation to retrieve. |
Returns
| Type | Description |
|---|---|
| ReservationsResource.GetRequest |
GetIamPolicy(String, String, String)
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
Declaration
public virtual ReservationsResource.GetIamPolicyRequest GetIamPolicy(string project, string zone, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | zone | The name of the zone for this request. |
| System.String | resource | Name or id of the resource for this request. |
Returns
| Type | Description |
|---|---|
| ReservationsResource.GetIamPolicyRequest |
Insert(Reservation, String, String)
Creates a new reservation. For more information, read Reserving zonal resources.
Declaration
public virtual ReservationsResource.InsertRequest Insert(Reservation body, string project, string zone)
Parameters
| Type | Name | Description |
|---|---|---|
| Reservation | body | The body of the request. |
| System.String | project | Project ID for this request. |
| System.String | zone | Name of the zone for this request. |
Returns
| Type | Description |
|---|---|
| ReservationsResource.InsertRequest |
List(String, String)
A list of all the reservations that have been configured for the specified project in specified zone.
Declaration
public virtual ReservationsResource.ListRequest List(string project, string zone)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | zone | Name of the zone for this request. |
Returns
| Type | Description |
|---|---|
| ReservationsResource.ListRequest |
Resize(ReservationsResizeRequest, String, String, String)
Resizes the reservation (applicable to standalone reservations only). For more information, read Modifying reservations.
Declaration
public virtual ReservationsResource.ResizeRequest Resize(ReservationsResizeRequest body, string project, string zone, string reservation)
Parameters
| Type | Name | Description |
|---|---|---|
| ReservationsResizeRequest | body | The body of the request. |
| System.String | project | Project ID for this request. |
| System.String | zone | Name of the zone for this request. |
| System.String | reservation | Name of the reservation to update. |
Returns
| Type | Description |
|---|---|
| ReservationsResource.ResizeRequest |
SetIamPolicy(ZoneSetPolicyRequest, String, String, String)
Sets the access control policy on the specified resource. Replaces any existing policy.
Declaration
public virtual ReservationsResource.SetIamPolicyRequest SetIamPolicy(ZoneSetPolicyRequest body, string project, string zone, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| ZoneSetPolicyRequest | body | The body of the request. |
| System.String | project | Project ID for this request. |
| System.String | zone | The name of the zone for this request. |
| System.String | resource | Name or id of the resource for this request. |
Returns
| Type | Description |
|---|---|
| ReservationsResource.SetIamPolicyRequest |
TestIamPermissions(TestPermissionsRequest, String, String, String)
Returns permissions that a caller has on the specified resource.
Declaration
public virtual ReservationsResource.TestIamPermissionsRequest TestIamPermissions(TestPermissionsRequest body, string project, string zone, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| TestPermissionsRequest | body | The body of the request. |
| System.String | project | Project ID for this request. |
| System.String | zone | The name of the zone for this request. |
| System.String | resource | Name or id of the resource for this request. |
Returns
| Type | Description |
|---|---|
| ReservationsResource.TestIamPermissionsRequest |