Google BigQuery Reservation V1 Client - Class MoveAssignmentRequest (1.3.5)

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

Namespace

Google \ Cloud \ BigQuery \ Reservation \ V1

Methods

__construct

Constructor.

Parameters
Name Description
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
Type Description
string

setName

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

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

Parameter
Name Description
var string
Returns
Type Description
$this

getDestinationId

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

Returns
Type Description
string

setDestinationId

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

Parameter
Name Description
var string
Returns
Type Description
$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
Type Description
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
Name Description
var string
Returns
Type Description
$this

static::build

Parameters
Name Description
name string

Required. The resource name of the assignment, e.g. projects/myproject/locations/US/reservations/team1-prod/assignments/123 Please see Google\Cloud\BigQuery\Reservation\V1\ReservationServiceClient::assignmentName() for help formatting this field.

destinationId string

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

Returns
Type Description
Google\Cloud\BigQuery\Reservation\V1\MoveAssignmentRequest