BackendRule class

A backend rule provides configuration for an individual API element.


BackendRule.fromJson(Map _json)


address String
The address of the API backend. [...]
read / write
deadline double
The number of seconds to wait for a response from a request. The default varies based on the request protocol and deployment environment.
read / write
disableAuth bool
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.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
jwtAudience String
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.
read / write
minDeadline double
Minimum deadline in seconds needed for this method. Calls having deadline value lower than this will be rejected.
read / write
operationDeadline double
The number of seconds to wait for the completion of a long running operation. The default is no deadline.
read / write
pathTranslation String
Possible string values are: [...]
read / write
protocol String
The protocol used for sending a request to the backend. The supported values are "http/1.1" and "h2". [...]
read / write
renameTo String
Unimplemented. Do not use. [...]
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
selector String
Selects the methods to which this rule applies. [...]
read / write


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toJson() Map<String, Object>
toString() String
Returns a string representation of this object.


operator ==(dynamic other) bool
The equality operator. [...]