Class: Google::Apis::SpannerV1::ClientContext

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/spanner_v1/classes.rb,
lib/google/apis/spanner_v1/representations.rb,
lib/google/apis/spanner_v1/representations.rb

Overview

Container for various pieces of client-owned context attached to a request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ClientContext

Returns a new instance of ClientContext.



1216
1217
1218
# File 'lib/google/apis/spanner_v1/classes.rb', line 1216

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#secure_contextHash<String,Object>

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). Corresponds to the JSON property secureContext

Returns:

  • (Hash<String,Object>)


1214
1215
1216
# File 'lib/google/apis/spanner_v1/classes.rb', line 1214

def secure_context
  @secure_context
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1221
1222
1223
# File 'lib/google/apis/spanner_v1/classes.rb', line 1221

def update!(**args)
  @secure_context = args[:secure_context] if args.key?(:secure_context)
end