Show / Hide Table of Contents

Class ProjectsResource.LocationsResource

The "locations" collection of methods.

Inheritance
System.Object
ProjectsResource.LocationsResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.BigQueryReservation.v1beta1
Assembly: Google.Apis.BigQueryReservation.v1beta1.dll
Syntax
public class LocationsResource

Constructors

LocationsResource(IClientService)

Constructs a new resource.

Declaration
public LocationsResource(IClientService service)
Parameters
Type Name Description
Google.Apis.Services.IClientService service

Properties

CapacityCommitments

Gets the CapacityCommitments resource.

Declaration
public virtual ProjectsResource.LocationsResource.CapacityCommitmentsResource CapacityCommitments { get; }
Property Value
Type Description
ProjectsResource.LocationsResource.CapacityCommitmentsResource

Reservations

Gets the Reservations resource.

Declaration
public virtual ProjectsResource.LocationsResource.ReservationsResource Reservations { get; }
Property Value
Type Description
ProjectsResource.LocationsResource.ReservationsResource

Methods

GetBiReservation(String)

Retrieves a BI reservation.

Declaration
public virtual ProjectsResource.LocationsResource.GetBiReservationRequest GetBiReservation(string name)
Parameters
Type Name Description
System.String name

Required. Name of the requested reservation, for example: projects/{project_id}/locations/{location_id}/biReservation

Returns
Type Description
ProjectsResource.LocationsResource.GetBiReservationRequest

SearchAssignments(String)

Looks up assignments for a specified resource for a particular region. If the request is about a project: 1. Assignments created on the project will be returned if they exist. 2. Otherwise assignments created on the closest ancestor will be returned. 3. Assignments for different JobTypes will all be returned. The same logic applies if the request is about a folder. If the request is about an organization, then assignments created on the organization will be returned (organization doesn't have ancestors). Comparing to ListAssignments, there are some behavior differences: 1. permission on the assignee will be verified in this API. 2. Hierarchy lookup (project->folder->organization) happens in this API. 3. Parent here is projects/*/locations/*, instead of projects/*/locations/*reservations/*. Note "-" cannot be used for projects nor locations.

Declaration
public virtual ProjectsResource.LocationsResource.SearchAssignmentsRequest SearchAssignments(string parent)
Parameters
Type Name Description
System.String parent

Required. The resource name of the admin project(containing project and location), e.g.: projects/myproject/locations/US.

Returns
Type Description
ProjectsResource.LocationsResource.SearchAssignmentsRequest

UpdateBiReservation(BiReservation, String)

Updates a BI reservation. Only fields specified in the field_mask are updated. A singleton BI reservation always exists with default size 0. In order to reserve BI capacity it needs to be updated to an amount greater than 0. In order to release BI capacity reservation size must be set to 0.

Declaration
public virtual ProjectsResource.LocationsResource.UpdateBiReservationRequest UpdateBiReservation(BiReservation body, string name)
Parameters
Type Name Description
BiReservation body

The body of the request.

System.String name

The resource name of the singleton BI reservation. Reservation names have the form projects/{project_id}/locations/{location_id}/biReservation.

Returns
Type Description
ProjectsResource.LocationsResource.UpdateBiReservationRequest
In This Article
Back to top