Google Cloud Quotas V1 Client - Class CreateQuotaPreferenceRequest (0.1.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
NameDescription
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
TypeDescription
string

setParent

Required. Value for parent.

Example: projects/123/locations/global

Parameter
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getQuotaPreference

Required. The resource being created

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

hasQuotaPreference

clearQuotaPreference

setQuotaPreference

Required. The resource being created

Parameter
NameDescription
var Google\Cloud\CloudQuotas\V1\QuotaPreference
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
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
TypeDescription
Google\Cloud\CloudQuotas\V1\CreateQuotaPreferenceRequest

static::buildFromParentQuotaPreference

Parameters
NameDescription
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
TypeDescription
Google\Cloud\CloudQuotas\V1\CreateQuotaPreferenceRequest