class BillingStatusRule extends Message

Defines the billing status requirements for operations.

When used with Service Control API, the following statuses are supported: - current: the associated billing account is up to date and capable of paying for resource usages. - delinquent: the associated billing account has a correctable problem, such as late payment. Mostly services should only allow current status when serving requests. In addition, services can choose to allow both current and delinquent statuses when serving read-only requests to resources. If the list of allowed_statuses is empty, it means no billing requirement.

Protobuf type Google\Api\BillingStatusRule

Methods

__construct()

No description

string
getSelector()

Selects the operation names to which this rule applies.

setSelector(string $var)

Selects the operation names to which this rule applies.

RepeatedField
getAllowedStatuses()

Allowed billing statuses. The billing status check passes if the actual billing status matches any of the provided values here.

setAllowedStatuses(array|RepeatedField $var)

Allowed billing statuses. The billing status check passes if the actual billing status matches any of the provided values here.

Details

at line 44
__construct()

at line 56
string getSelector()

Selects the operation names to which this rule applies.

Refer to [selector][google.api.DocumentationRule.selector] for syntax details.

Generated from protobuf field string selector = 1;

Return Value

string

at line 68
setSelector(string $var)

Selects the operation names to which this rule applies.

Refer to [selector][google.api.DocumentationRule.selector] for syntax details.

Generated from protobuf field string selector = 1;

Parameters

string $var

at line 81
RepeatedField getAllowedStatuses()

Allowed billing statuses. The billing status check passes if the actual billing status matches any of the provided values here.

Generated from protobuf field repeated string allowed_statuses = 2;

Return Value

RepeatedField

at line 93
setAllowedStatuses(array|RepeatedField $var)

Allowed billing statuses. The billing status check passes if the actual billing status matches any of the provided values here.

Generated from protobuf field repeated string allowed_statuses = 2;

Parameters

array|RepeatedField $var