Class ReservationsResource
The "reservations" collection of methods.
Inherited Members
Namespace: Google.Apis.Compute.alpha
Assembly: Google.Apis.Compute.alpha.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. To prevent failure, Google recommends that you set the
returnPartialSuccess
parameter to true
.
Declaration
public virtual ReservationsResource.AggregatedListRequest AggregatedList(string project)
Parameters
Type | Name | Description |
---|---|---|
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 |
---|---|---|
string | project | Project ID for this request. |
string | zone | Name of the zone for this request. |
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 |
---|---|---|
string | project | Project ID for this request. |
string | zone | Name of the zone for this request. |
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 |
---|---|---|
string | project | Project ID for this request. |
string | zone | The name of the zone for this request. |
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. |
string | project | Project ID for this request. |
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 |
---|---|---|
string | project | Project ID for this request. |
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. |
string | project | Project ID for this request. |
string | zone | Name of the zone for this request. |
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. |
string | project | Project ID for this request. |
string | zone | The name of the zone for this request. |
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. |
string | project | Project ID for this request. |
string | zone | The name of the zone for this request. |
string | resource | Name or id of the resource for this request. |
Returns
Type | Description |
---|---|
ReservationsResource.TestIamPermissionsRequest |
Update(Reservation, string, string, string)
Update share settings of the reservation.
Declaration
public virtual ReservationsResource.UpdateRequest Update(Reservation body, string project, string zone, string reservation)
Parameters
Type | Name | Description |
---|---|---|
Reservation | body | The body of the request. |
string | project | Project ID for this request. |
string | zone | Name of the zone for this request. |
string | reservation | Name of the reservation to update. |
Returns
Type | Description |
---|---|
ReservationsResource.UpdateRequest |