Google Cloud Quotas V1 Client - Class CreateQuotaPreferenceRequest (1.0.0)

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

Message for creating a QuotaPreference

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

Namespace

Google \ Cloud \ CloudQuotas \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

Required. Value for parent. Example: projects/123/locations/global

↳ quota_preference_id string

Optional. Id of the requesting object, must be unique under its parent. If client does not set this field, the service will generate one.

↳ quota_preference Google\Cloud\CloudQuotas\V1\QuotaPreference

Required. The resource being created

↳ ignore_safety_checks array

The list of quota safety checks to be ignored.

getParent

Required. Value for parent.

Example: projects/123/locations/global

Returns
Type Description
string

setParent

Required. Value for parent.

Example: projects/123/locations/global

Parameter
Name Description
var string
Returns
Type Description
$this

getQuotaPreferenceId

Optional. Id of the requesting object, must be unique under its parent.

If client does not set this field, the service will generate one.

Returns
Type Description
string

setQuotaPreferenceId

Optional. Id of the requesting object, must be unique under its parent.

If client does not set this field, the service will generate one.

Parameter
Name Description
var string
Returns
Type Description
$this

getQuotaPreference

Required. The resource being created

Returns
Type Description
Google\Cloud\CloudQuotas\V1\QuotaPreference|null

hasQuotaPreference

clearQuotaPreference

setQuotaPreference

Required. The resource being created

Parameter
Name Description
var Google\Cloud\CloudQuotas\V1\QuotaPreference
Returns
Type Description
$this

getIgnoreSafetyChecks

The list of quota safety checks to be ignored.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setIgnoreSafetyChecks

The list of quota safety checks to be ignored.

Parameter
Name Description
var int[]
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

Required. Value for parent.

Example: projects/123/locations/global Please see Google\Cloud\CloudQuotas\V1\CloudQuotasClient::locationName() for help formatting this field.

quotaPreference Google\Cloud\CloudQuotas\V1\QuotaPreference

Required. The resource being created

quotaPreferenceId string

Optional. Id of the requesting object, must be unique under its parent. If client does not set this field, the service will generate one.

Returns
Type Description
Google\Cloud\CloudQuotas\V1\CreateQuotaPreferenceRequest

static::buildFromParentQuotaPreference

Parameters
Name Description
parent string

Required. Value for parent.

Example: projects/123/locations/global Please see Google\Cloud\CloudQuotas\V1\CloudQuotasClient::locationName() for help formatting this field.

quotaPreference Google\Cloud\CloudQuotas\V1\QuotaPreference

Required. The resource being created

Returns
Type Description
Google\Cloud\CloudQuotas\V1\CreateQuotaPreferenceRequest