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 \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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<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 | |
---|---|
Type | Description |
float |
setCpu
Number of CPU cores needed.
Parameter | |
---|---|
Name | Description |
var |
float
|
Returns | |
---|---|
Type | Description |
$this |
getDiskGb
Disk size (GB) needed.
Returns | |
---|---|
Type | Description |
float |
setDiskGb
Disk size (GB) needed.
Parameter | |
---|---|
Name | Description |
var |
float
|
Returns | |
---|---|
Type | Description |
$this |
getMemoryGb
Memory (GB) needed.
Returns | |
---|---|
Type | Description |
float |
setMemoryGb
Memory (GB) needed.
Parameter | |
---|---|
Name | Description |
var |
float
|
Returns | |
---|---|
Type | Description |
$this |
getVolumes
User specified volumes.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setVolumes
User specified volumes.
Parameter | |
---|---|
Name | Description |
var |
array<Volume>
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |