Compute V1 Client - Class InstancesSetMachineTypeRequest (1.12.1)

Reference documentation and code samples for the Compute V1 Client class InstancesSetMachineTypeRequest.

Generated from protobuf message google.cloud.compute.v1.InstancesSetMachineTypeRequest

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ machine_type string

Full or partial URL of the machine type resource. See Machine Types for a full list of machine types. For example: zones/us-central1-f/machineTypes/n1-standard-1

getMachineType

Full or partial URL of the machine type resource. See Machine Types for a full list of machine types. For example: zones/us-central1-f/machineTypes/n1-standard-1

Returns
TypeDescription
string

hasMachineType

clearMachineType

setMachineType

Full or partial URL of the machine type resource. See Machine Types for a full list of machine types. For example: zones/us-central1-f/machineTypes/n1-standard-1

Parameter
NameDescription
var string
Returns
TypeDescription
$this