Reference documentation and code samples for the Google Cloud Run V2 Client class UpdateInstanceRequest.
Request message for updating an Instance.
Generated from protobuf message google.cloud.run.v2.UpdateInstanceRequest
Namespace
Google \ Cloud \ Run \ V2Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ update_mask |
Google\Protobuf\FieldMask
Optional. The list of fields to be updated. |
↳ instance |
Instance
Required. The Instance to be updated. |
↳ validate_only |
bool
Optional. Indicates that the request should be validated and default values populated, without persisting the request or updating any resources. |
↳ allow_missing |
bool
Optional. If set to |
getUpdateMask
Optional. The list of fields to be updated.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\FieldMask|null |
|
hasUpdateMask
clearUpdateMask
setUpdateMask
Optional. The list of fields to be updated.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\FieldMask
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getInstance
Required. The Instance to be updated.
| Returns | |
|---|---|
| Type | Description |
Instance|null |
|
hasInstance
clearInstance
setInstance
Required. The Instance to be updated.
| Parameter | |
|---|---|
| Name | Description |
var |
Instance
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getValidateOnly
Optional. Indicates that the request should be validated and default values populated, without persisting the request or updating any resources.
| Returns | |
|---|---|
| Type | Description |
bool |
|
setValidateOnly
Optional. Indicates that the request should be validated and default values populated, without persisting the request or updating any resources.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAllowMissing
Optional. If set to true, and if the Instance does not exist, it will
create a new one. The caller must have run.instances.create permissions
if this is set to true and the Instance does not exist.
| Returns | |
|---|---|
| Type | Description |
bool |
|
setAllowMissing
Optional. If set to true, and if the Instance does not exist, it will
create a new one. The caller must have run.instances.create permissions
if this is set to true and the Instance does not exist.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
static::build
| Parameters | |
|---|---|
| Name | Description |
instance |
Instance
Required. The Instance to be updated. |
updateMask |
Google\Protobuf\FieldMask
Optional. The list of fields to be updated. |
| Returns | |
|---|---|
| Type | Description |
UpdateInstanceRequest |
|