Google Cloud Appengine Admin V1 Client - Class Resources (1.1.1)

Reference documentation and code samples for the Google Cloud Appengine Admin V1 Client class Resources.

Machine resources for a version.

Generated from protobuf message google.appengine.v1.Resources

Namespace

Google \ Cloud \ AppEngine \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ cpu float

Number of CPU cores needed.

↳ disk_gb float

Disk size (GB) needed.

↳ memory_gb float

Memory (GB) needed.

↳ volumes array<Google\Cloud\AppEngine\V1\Volume>

User specified volumes.

↳ kms_key_reference string

The name of the encryption key that is stored in Google Cloud KMS. Only should be used by Cloud Composer to encrypt the vm disk

getCpu

Number of CPU cores needed.

Returns
TypeDescription
float

setCpu

Number of CPU cores needed.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getDiskGb

Disk size (GB) needed.

Returns
TypeDescription
float

setDiskGb

Disk size (GB) needed.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getMemoryGb

Memory (GB) needed.

Returns
TypeDescription
float

setMemoryGb

Memory (GB) needed.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getVolumes

User specified volumes.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setVolumes

User specified volumes.

Parameter
NameDescription
var array<Google\Cloud\AppEngine\V1\Volume>
Returns
TypeDescription
$this

getKmsKeyReference

The name of the encryption key that is stored in Google Cloud KMS.

Only should be used by Cloud Composer to encrypt the vm disk

Returns
TypeDescription
string

setKmsKeyReference

The name of the encryption key that is stored in Google Cloud KMS.

Only should be used by Cloud Composer to encrypt the vm disk

Parameter
NameDescription
var string
Returns
TypeDescription
$this