Google BigQuery Reservation V1 Client - Class MoveAssignmentRequest (1.1.2)

Reference documentation and code samples for the Google BigQuery Reservation V1 Client class MoveAssignmentRequest.

The request for ReservationService.MoveAssignment.

Note: "bigquery.reservationAssignments.create" permission is required on the destination_id. Note: "bigquery.reservationAssignments.create" and "bigquery.reservationAssignments.delete" permission are required on the related assignee.

Generated from protobuf message google.cloud.bigquery.reservation.v1.MoveAssignmentRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Required. The resource name of the assignment, e.g. projects/myproject/locations/US/reservations/team1-prod/assignments/123

↳ destination_id string

The new reservation ID, e.g.: projects/myotherproject/locations/US/reservations/team2-prod

↳ assignment_id string

The optional assignment ID. A new assignment name is generated if this field is empty. This field can contain only lowercase alphanumeric characters or dashes. Max length is 64 characters.

getName

Required. The resource name of the assignment, e.g.

projects/myproject/locations/US/reservations/team1-prod/assignments/123

Returns
TypeDescription
string

setName

Required. The resource name of the assignment, e.g.

projects/myproject/locations/US/reservations/team1-prod/assignments/123

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDestinationId

The new reservation ID, e.g.: projects/myotherproject/locations/US/reservations/team2-prod

Returns
TypeDescription
string

setDestinationId

The new reservation ID, e.g.: projects/myotherproject/locations/US/reservations/team2-prod

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAssignmentId

The optional assignment ID. A new assignment name is generated if this field is empty.

This field can contain only lowercase alphanumeric characters or dashes. Max length is 64 characters.

Returns
TypeDescription
string

setAssignmentId

The optional assignment ID. A new assignment name is generated if this field is empty.

This field can contain only lowercase alphanumeric characters or dashes. Max length is 64 characters.

Parameter
NameDescription
var string
Returns
TypeDescription
$this