Class: Google::Apis::SpannerV1::Key

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

A split key.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Key

Returns a new instance of Key.



3683
3684
3685
# File 'lib/google/apis/spanner_v1/classes.rb', line 3683

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

Instance Attribute Details

#key_partsArray<Object>

Required. The column values making up the split key. Corresponds to the JSON property keyParts

Returns:

  • (Array<Object>)


3681
3682
3683
# File 'lib/google/apis/spanner_v1/classes.rb', line 3681

def key_parts
  @key_parts
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3688
3689
3690
# File 'lib/google/apis/spanner_v1/classes.rb', line 3688

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