Google Cloud Service Control V1 Client - Class AllocateQuotaRequest (1.3.0)

Reference documentation and code samples for the Google Cloud Service Control V1 Client class AllocateQuotaRequest.

Request message for the AllocateQuota method.

Generated from protobuf message google.api.servicecontrol.v1.AllocateQuotaRequest

Namespace

Google \ Cloud \ ServiceControl \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ service_name string

Name of the service as specified in the service configuration. For example, "pubsub.googleapis.com". See google.api.Service for the definition of a service name.

↳ allocate_operation Google\Cloud\ServiceControl\V1\QuotaOperation

Operation that describes the quota allocation.

↳ service_config_id string

Specifies which version of service configuration should be used to process the request. If unspecified or no matching version can be found, the latest one will be used.

getServiceName

Name of the service as specified in the service configuration. For example, "pubsub.googleapis.com".

See google.api.Service for the definition of a service name.

Returns
TypeDescription
string

setServiceName

Name of the service as specified in the service configuration. For example, "pubsub.googleapis.com".

See google.api.Service for the definition of a service name.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAllocateOperation

Operation that describes the quota allocation.

Returns
TypeDescription
Google\Cloud\ServiceControl\V1\QuotaOperation|null

hasAllocateOperation

clearAllocateOperation

setAllocateOperation

Operation that describes the quota allocation.

Parameter
NameDescription
var Google\Cloud\ServiceControl\V1\QuotaOperation
Returns
TypeDescription
$this

getServiceConfigId

Specifies which version of service configuration should be used to process the request. If unspecified or no matching version can be found, the latest one will be used.

Returns
TypeDescription
string

setServiceConfigId

Specifies which version of service configuration should be used to process the request. If unspecified or no matching version can be found, the latest one will be used.

Parameter
NameDescription
var string
Returns
TypeDescription
$this