Google Cloud Quotas V1 Client - Class UpdateQuotaPreferenceRequest (0.1.0)

Reference documentation and code samples for the Google Cloud Quotas V1 Client class UpdateQuotaPreferenceRequest.

Message for updating a QuotaPreference

Generated from protobuf message google.api.cloudquotas.v1.UpdateQuotaPreferenceRequest

Namespace

Google \ Cloud \ CloudQuotas \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ update_mask Google\Protobuf\FieldMask

Optional. Field mask is used to specify the fields to be overwritten in the QuotaPreference resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

↳ quota_preference Google\Cloud\CloudQuotas\V1\QuotaPreference

Required. The resource being updated

↳ allow_missing bool

Optional. If set to true, and the quota preference is not found, a new one will be created. In this situation, update_mask is ignored.

↳ validate_only bool

Optional. If set to true, validate the request, but do not actually update. Note that a request being valid does not mean that the request is guaranteed to be fulfilled.

↳ ignore_safety_checks array

The list of quota safety checks to be ignored.

getUpdateMask

Optional. Field mask is used to specify the fields to be overwritten in the QuotaPreference resource by the update.

The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

Returns
TypeDescription
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

Optional. Field mask is used to specify the fields to be overwritten in the QuotaPreference resource by the update.

The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

Parameter
NameDescription
var Google\Protobuf\FieldMask
Returns
TypeDescription
$this

getQuotaPreference

Required. The resource being updated

Returns
TypeDescription
Google\Cloud\CloudQuotas\V1\QuotaPreference|null

hasQuotaPreference

clearQuotaPreference

setQuotaPreference

Required. The resource being updated

Parameter
NameDescription
var Google\Cloud\CloudQuotas\V1\QuotaPreference
Returns
TypeDescription
$this

getAllowMissing

Optional. If set to true, and the quota preference is not found, a new one will be created. In this situation, update_mask is ignored.

Returns
TypeDescription
bool

setAllowMissing

Optional. If set to true, and the quota preference is not found, a new one will be created. In this situation, update_mask is ignored.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getValidateOnly

Optional. If set to true, validate the request, but do not actually update.

Note that a request being valid does not mean that the request is guaranteed to be fulfilled.

Returns
TypeDescription
bool

setValidateOnly

Optional. If set to true, validate the request, but do not actually update.

Note that a request being valid does not mean that the request is guaranteed to be fulfilled.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getIgnoreSafetyChecks

The list of quota safety checks to be ignored.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setIgnoreSafetyChecks

The list of quota safety checks to be ignored.

Parameter
NameDescription
var int[]
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
quotaPreference Google\Cloud\CloudQuotas\V1\QuotaPreference

Required. The resource being updated

updateMask Google\Protobuf\FieldMask

Optional. Field mask is used to specify the fields to be overwritten in the QuotaPreference resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

Returns
TypeDescription
Google\Cloud\CloudQuotas\V1\UpdateQuotaPreferenceRequest