A backend rule provides configuration for an individual API element.
Generated from protobuf message google.api.BackendRule
Methods |
public __construct( $data = NULL) Constructor.
|
public getAddress() The address of the API backend. The scheme is used to determine the backend protocol and security. The following schemes are accepted: SCHEME PROTOCOL SECURITY http:// HTTP None https:// HTTP TLS grpc:// gRPC None grpcs:// gRPC TLS It is recommended to explicitly include a scheme. Leaving out the scheme may cause constrasting behaviors across platforms. If the port is unspecified, the default is:
Generated from protobuf field string address = 2;
|
public getAuthentication()
|
public 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;
|
public getDisableAuth() 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;
|
public 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;
|
public getMinDeadline() Deprecated, do not use. Generated from protobuf field double min_deadline = 4 [deprecated = true];
|
public 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;
|
public getOverridesByRequestProtocol() The map between request protocol and the backend address. Generated from protobuf field map<string, .google.api.BackendRule> overrides_by_request_protocol = 10;
|
public getPathTranslation() Generated from protobuf field .google.api.BackendRule.PathTranslation path_translation = 6;
|
public getProtocol() The protocol used for sending a request to the backend. The supported values are "http/1.1" and "h2". The default value is inferred from the scheme in the [address][google.api.BackendRule.address] field: SCHEME PROTOCOL https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-idshttps://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-idsnon-default values is only supported for secure HTTP backends. This field will be ignored for all other backends. See https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids for more details on the supported values. Generated from protobuf field string protocol = 9;
|
public 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;
|
public hasDisableAuth() |
public hasJwtAudience() |
public setAddress( $var) The address of the API backend. The scheme is used to determine the backend protocol and security. The following schemes are accepted: SCHEME PROTOCOL SECURITY http:// HTTP None https:// HTTP TLS grpc:// gRPC None grpcs:// gRPC TLS It is recommended to explicitly include a scheme. Leaving out the scheme may cause constrasting behaviors across platforms. If the port is unspecified, the default is:
Generated from protobuf field string address = 2;
|
public setDeadline( $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;
|
public setDisableAuth( $var) 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;
|
public setJwtAudience( $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;
|
public setMinDeadline( $var) Deprecated, do not use. Generated from protobuf field double min_deadline = 4 [deprecated = true];
|
public setOperationDeadline( $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;
|
public setOverridesByRequestProtocol( $var) The map between request protocol and the backend address. Generated from protobuf field map<string, .google.api.BackendRule> overrides_by_request_protocol = 10;
|
public setPathTranslation( $var) Generated from protobuf field .google.api.BackendRule.PathTranslation path_translation = 6;
|
public setProtocol( $var) The protocol used for sending a request to the backend. The supported values are "http/1.1" and "h2". The default value is inferred from the scheme in the [address][google.api.BackendRule.address] field: SCHEME PROTOCOL https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-idshttps://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-idsnon-default values is only supported for secure HTTP backends. This field will be ignored for all other backends. See https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids for more details on the supported values. Generated from protobuf field string protocol = 9;
|
public setSelector( $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;
|
Properties |
protected $address = '' The address of the API backend. The scheme is used to determine the backend protocol and security. The following schemes are accepted: SCHEME PROTOCOL SECURITY http:// HTTP None https:// HTTP TLS grpc:// gRPC None grpcs:// gRPC TLS It is recommended to explicitly include a scheme. Leaving out the scheme may cause constrasting behaviors across platforms. If the port is unspecified, the default is:
Generated from protobuf field string address = 2; |
protected $authentication = NULL |
protected $deadline = 0 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; |
protected $min_deadline = 0 Deprecated, do not use. Generated from protobuf field double min_deadline = 4 [deprecated = true];
|
protected $operation_deadline = 0 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; |
protected $path_translation = 0 Generated from protobuf field .google.api.BackendRule.PathTranslation path_translation = 6; |
protected $protocol = '' The protocol used for sending a request to the backend. The supported values are "http/1.1" and "h2". The default value is inferred from the scheme in the [address][google.api.BackendRule.address] field: SCHEME PROTOCOL https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-idshttps://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-idsnon-default values is only supported for secure HTTP backends. This field will be ignored for all other backends. See https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids for more details on the supported values. Generated from protobuf field string protocol = 9; |
protected $selector = '' 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; |
Methods |
Properties |
private $overrides_by_request_protocol = NULL The map between request protocol and the backend address. Generated from protobuf field map<string, .google.api.BackendRule> overrides_by_request_protocol = 10; |