BackendRule
class BackendRule extends Message
A backend rule provides configuration for an individual API element.
Generated from protobuf message google.api.BackendRule
Properties
protected | $authentication |
Methods
Constructor.
Selects the methods to which this rule applies.
Selects the methods to which this rule applies.
The address of the API backend.
The address of the API backend.
The number of seconds to wait for a response from a request. The default varies based on the request protocol and deployment environment.
The number of seconds to wait for a response from a request. The default varies based on the request protocol and deployment environment.
Minimum deadline in seconds needed for this method. Calls having deadline value lower than this will be rejected.
Minimum deadline in seconds needed for this method. Calls having deadline value lower than this will be rejected.
The number of seconds to wait for the completion of a long running operation. The default is no deadline.
The number of seconds to wait for the completion of a long running operation. The default is no deadline.
Generated from protobuf field .google.api.BackendRule.PathTranslation path_translation = 6;
Generated from protobuf field .google.api.BackendRule.PathTranslation path_translation = 6;
The JWT audience is used when generating a JWT ID token for the backend.
The JWT audience is used when generating a JWT ID token for the backend.
When disable_auth is false, a JWT ID token will be generated with the value from [BackendRule.address][google.api.BackendRule.address] as jwt_audience, overrode to the HTTP "Authorization" request header and sent to the backend.
When disable_auth is false, a JWT ID token will be generated with the value from [BackendRule.address][google.api.BackendRule.address] as jwt_audience, overrode to the HTTP "Authorization" request header and sent to the backend.
No description
Details
at line 93
__construct(array $data = NULL)
Constructor.
at line 105
string
getSelector()
Selects the methods to which this rule applies.
Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
Generated from protobuf field string selector = 1;
at line 118
$this
setSelector(string $var)
Selects the methods to which this rule applies.
Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
Generated from protobuf field string selector = 1;
at line 132
string
getAddress()
The address of the API backend.
Generated from protobuf field string address = 2;
at line 144
$this
setAddress(string $var)
The address of the API backend.
Generated from protobuf field string address = 2;
at line 159
float
getDeadline()
The number of seconds to wait for a response from a request. The default varies based on the request protocol and deployment environment.
Generated from protobuf field double deadline = 3;
at line 172
$this
setDeadline(float $var)
The number of seconds to wait for a response from a request. The default varies based on the request protocol and deployment environment.
Generated from protobuf field double deadline = 3;
at line 187
float
getMinDeadline()
Minimum deadline in seconds needed for this method. Calls having deadline value lower than this will be rejected.
Generated from protobuf field double min_deadline = 4;
at line 200
$this
setMinDeadline(float $var)
Minimum deadline in seconds needed for this method. Calls having deadline value lower than this will be rejected.
Generated from protobuf field double min_deadline = 4;
at line 215
float
getOperationDeadline()
The number of seconds to wait for the completion of a long running operation. The default is no deadline.
Generated from protobuf field double operation_deadline = 5;
at line 228
$this
setOperationDeadline(float $var)
The number of seconds to wait for the completion of a long running operation. The default is no deadline.
Generated from protobuf field double operation_deadline = 5;
at line 240
int
getPathTranslation()
Generated from protobuf field .google.api.BackendRule.PathTranslation path_translation = 6;
at line 250
$this
setPathTranslation(int $var)
Generated from protobuf field .google.api.BackendRule.PathTranslation path_translation = 6;
at line 266
string
getJwtAudience()
The JWT audience is used when generating a JWT ID token for the backend.
This ID token will be added in the HTTP "authorization" header, and sent to the backend.
Generated from protobuf field string jwt_audience = 7;
at line 280
$this
setJwtAudience(string $var)
The JWT audience is used when generating a JWT ID token for the backend.
This ID token will be added in the HTTP "authorization" header, and sent to the backend.
Generated from protobuf field string jwt_audience = 7;
at line 300
bool
getDisableAuth()
When disable_auth is false, a JWT ID token will be generated with the value from [BackendRule.address][google.api.BackendRule.address] as jwt_audience, overrode to the HTTP "Authorization" request header and sent to the backend.
When disable_auth is true, a JWT ID token won't be generated and the original "Authorization" HTTP header will be preserved. If the header is used to carry the original token and is expected by the backend, this field must be set to true to preserve the header.
Generated from protobuf field bool disable_auth = 8;
at line 318
$this
setDisableAuth(bool $var)
When disable_auth is false, a JWT ID token will be generated with the value from [BackendRule.address][google.api.BackendRule.address] as jwt_audience, overrode to the HTTP "Authorization" request header and sent to the backend.
When disable_auth is true, a JWT ID token won't be generated and the original "Authorization" HTTP header will be preserved. If the header is used to carry the original token and is expected by the backend, this field must be set to true to preserve the header.
Generated from protobuf field bool disable_auth = 8;