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 |
ReservationGroups
Gets the ReservationGroups resource.
Declaration
public virtual ProjectsResource.LocationsResource.ReservationGroupsResource ReservationGroups { get; }
Property Value
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.ReservationGroupsResource |
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 | Identifier. The resource name of the singleton BI reservation. Reservation names have the form
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.UpdateBiReservationRequest |
UpgradeEdition(UpgradeEditionRequest, string)
Upgrades the edition for a list of reservations and capacity commitments. You can only upgrade to a
higher edition (from STANDARD to ENTERPRISE or ENTERPRISE_PLUS, from ENTERPRISE to
ENTERPRISE_PLUS, or from EDITION_UNSPECIFIED to ENTERPRISE or ENTERPRISE_PLUS). You can't
downgrade an edition. The upgrade must not cause an overall flexible slot increase across the original
and target editions (for example, by upgrading a reservation without upgrading its corresponding
capacity commitment). Otherwise, the method fails with a google.rpc.Code.FAILED_PRECONDITION error.
Before the upgrade, the service validates that the resources meet the requirements of the target edition
(for example, all reservations within a reservation group must be upgraded together).
Declaration
public virtual ProjectsResource.LocationsResource.UpgradeEditionRequest UpgradeEdition(UpgradeEditionRequest body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| UpgradeEditionRequest | body | The body of the request. |
| string | parent | The parent resource name that identifies the admin project and location, in the format
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.UpgradeEditionRequest |