Class ProjectsResource.LocationsResource
The "locations" collection of methods.
Inherited Members
Namespace: Google.Apis.BigQueryReservation.v1
Assembly: Google.Apis.BigQueryReservation.v1.dll
Syntax
public class ProjectsResource.LocationsResource
Constructors
LocationsResource(IClientService)
Constructs a new resource.
Declaration
public LocationsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
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 |
---|---|---|
string | name | Required. Name of the requested reservation, for example:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.GetBiReservationRequest |
SearchAllAssignments(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/*
.
Declaration
public virtual ProjectsResource.LocationsResource.SearchAllAssignmentsRequest SearchAllAssignments(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The resource name with location (project name could be the wildcard '-'), e.g.:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.SearchAllAssignmentsRequest |
SearchAssignments(string)
Deprecated: 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 |
---|---|---|
string | parent | Required. The resource name of the admin project(containing project and location), e.g.:
|
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. |
string | name | The resource name of the singleton BI reservation. Reservation names have the form
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.UpdateBiReservationRequest |