mirror of
https://github.com/googleapis/googleapis.git
synced 2026-08-18 13:08:24 +02:00
feat: add a ClientContext field to Spanner requests
feat: add Secure Parameters to the ClientContext PiperOrigin-RevId: 853323071
This commit is contained in:
parent
110554fa59
commit
211d22fa6d
1 changed files with 12 additions and 0 deletions
|
|
@ -517,6 +517,15 @@ message RequestOptions {
|
|||
PRIORITY_HIGH = 3;
|
||||
}
|
||||
|
||||
// Container for various pieces of client-owned context attached to a request.
|
||||
message ClientContext {
|
||||
// Optional. Map of parameter name to value for this request. These values
|
||||
// will be returned by any SECURE_CONTEXT() calls invoked by this request
|
||||
// (e.g., by queries against Parameterized Secure Views).
|
||||
map<string, google.protobuf.Value> secure_context = 1
|
||||
[(google.api.field_behavior) = OPTIONAL];
|
||||
}
|
||||
|
||||
// Priority for the request.
|
||||
Priority priority = 1;
|
||||
|
||||
|
|
@ -544,6 +553,9 @@ message RequestOptions {
|
|||
// characters. Values that exceed this limit are truncated.
|
||||
// Any leading underscore (_) characters are removed from the string.
|
||||
string transaction_tag = 3;
|
||||
|
||||
// Optional. Optional context that may be needed for some requests.
|
||||
ClientContext client_context = 4 [(google.api.field_behavior) = OPTIONAL];
|
||||
}
|
||||
|
||||
// The `DirectedReadOptions` can be used to indicate which replicas or regions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue