Class ProjectsResource.LocationsResource.ReservationsResource.FailoverReservationRequest
Failover a reservation to the secondary location. The operation should be done in the current
secondary location, which will be promoted to the new primary location for the reservation.
Attempting to failover a reservation in the current primary location will fail with the error code
google.rpc.Code.FAILED_PRECONDITION
.
Inheritance
ProjectsResource.LocationsResource.ReservationsResource.FailoverReservationRequest
Inherited Members
Namespace: Google.Apis.BigQueryReservation.v1
Assembly: Google.Apis.BigQueryReservation.v1.dll
Syntax
public class ProjectsResource.LocationsResource.ReservationsResource.FailoverReservationRequest : BigQueryReservationBaseServiceRequest<Reservation>, IClientServiceRequest<Reservation>, IClientServiceRequest
Constructors
FailoverReservationRequest(IClientService, FailoverReservationRequest, string)
Constructs a new FailoverReservation request.
Declaration
public FailoverReservationRequest(IClientService service, FailoverReservationRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
FailoverReservationRequest | body | |
string | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Name
Required. Resource name of the reservation to failover. E.g.,
projects/myproject/locations/US/reservations/team1-prod
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes FailoverReservation parameter list.
Declaration
protected override void InitParameters()