Google Cloud Notebooks V1beta1 Client - Class ReservationAffinity (0.4.1)

Reference documentation and code samples for the Google Cloud Notebooks V1beta1 Client class ReservationAffinity.

Reservation Affinity for consuming Zonal reservation.

Generated from protobuf message google.cloud.notebooks.v1beta1.ReservationAffinity

Namespace

Google \ Cloud \ Notebooks \ V1beta1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ consume_reservation_type int

Optional. Type of reservation to consume

↳ key string

Optional. Corresponds to the label key of reservation resource.

↳ values array

Optional. Corresponds to the label values of reservation resource.

getConsumeReservationType

Optional. Type of reservation to consume

Returns
TypeDescription
int

setConsumeReservationType

Optional. Type of reservation to consume

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getKey

Optional. Corresponds to the label key of reservation resource.

Returns
TypeDescription
string

setKey

Optional. Corresponds to the label key of reservation resource.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getValues

Optional. Corresponds to the label values of reservation resource.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setValues

Optional. Corresponds to the label values of reservation resource.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this