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 \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
Required. Value for parent. Example: |
↳ 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 |
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 |
QuotaPreference|null |
hasQuotaPreference
clearQuotaPreference
setQuotaPreference
Required. The resource being created
Parameter | |
---|---|
Name | Description |
var |
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:
|
quotaPreference |
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 |
CreateQuotaPreferenceRequest |
static::buildFromParentQuotaPreference
Parameters | |
---|---|
Name | Description |
parent |
string
Required. Value for parent. Example:
|
quotaPreference |
QuotaPreference
Required. The resource being created |
Returns | |
---|---|
Type | Description |
CreateQuotaPreferenceRequest |