Show / Hide Table of Contents

Class ReservationBlocksResource

The "reservationBlocks" collection of methods.

Inheritance
object
ReservationBlocksResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Compute.v1
Assembly: Google.Apis.Compute.v1.dll
Syntax
public class ReservationBlocksResource

Constructors

ReservationBlocksResource(IClientService)

Constructs a new resource.

Declaration
public ReservationBlocksResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Get(string, string, string, string)

Retrieves information about the specified reservation block.

Declaration
public virtual ReservationBlocksResource.GetRequest Get(string project, string zone, string reservation, string reservationBlock)
Parameters
Type Name Description
string project

Project ID for this request.

string zone

Name of the zone for this request. Zone name should conform to RFC1035.

string reservation

The name of the reservation. Name should conform to RFC1035 or be a resource ID.

string reservationBlock

The name of the reservation block. Name should conform to RFC1035 or be a resource ID.

Returns
Type Description
ReservationBlocksResource.GetRequest

GetIamPolicy(string, string, string, string)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Declaration
public virtual ReservationBlocksResource.GetIamPolicyRequest GetIamPolicy(string project, string zone, string parentResource, string resource)
Parameters
Type Name Description
string project

Project ID for this request.

string zone

The name of the zone for this request.

string parentResource

Name or id of parent resource of the resource for this request.

string resource

Name or id of the resource for this request.

Returns
Type Description
ReservationBlocksResource.GetIamPolicyRequest

List(string, string, string)

Retrieves a list of reservation blocks under a single reservation.

Declaration
public virtual ReservationBlocksResource.ListRequest List(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. Zone name should conform to RFC1035.

string reservation

The name of the reservation. Name should conform to RFC1035 or be a resource ID.

Returns
Type Description
ReservationBlocksResource.ListRequest

PerformMaintenance(ReservationsBlocksPerformMaintenanceRequest, string, string, string, string)

Allows customers to perform maintenance on a reservation block

Declaration
public virtual ReservationBlocksResource.PerformMaintenanceRequest PerformMaintenance(ReservationsBlocksPerformMaintenanceRequest body, string project, string zone, string reservation, string reservationBlock)
Parameters
Type Name Description
ReservationsBlocksPerformMaintenanceRequest body

The body of the request.

string project

Project ID for this request.

string zone

Name of the zone for this request. Zone name should conform to RFC1035.

string reservation

The name of the reservation. Name should conform to RFC1035 or be a resource ID.

string reservationBlock

The name of the reservation block. Name should conform to RFC1035 or be a resource ID.

Returns
Type Description
ReservationBlocksResource.PerformMaintenanceRequest

SetIamPolicy(ZoneSetNestedPolicyRequest, string, string, string, string)

Sets the access control policy on the specified resource. Replaces any existing policy.

Declaration
public virtual ReservationBlocksResource.SetIamPolicyRequest SetIamPolicy(ZoneSetNestedPolicyRequest body, string project, string zone, string parentResource, string resource)
Parameters
Type Name Description
ZoneSetNestedPolicyRequest body

The body of the request.

string project

Project ID for this request.

string zone

The name of the zone for this request.

string parentResource

Name or id of parent resource of the resource for this request.

string resource

Name or id of the resource for this request.

Returns
Type Description
ReservationBlocksResource.SetIamPolicyRequest

TestIamPermissions(TestPermissionsRequest, string, string, string, string)

Returns permissions that a caller has on the specified resource.

Declaration
public virtual ReservationBlocksResource.TestIamPermissionsRequest TestIamPermissions(TestPermissionsRequest body, string project, string zone, string parentResource, 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 parentResource

Name or id of parent resource of the resource for this request.

string resource

Name or id of the resource for this request.

Returns
Type Description
ReservationBlocksResource.TestIamPermissionsRequest
In this article
Back to top Generated by DocFX