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.



3608
3609
3610
# File 'lib/google/apis/spanner_v1/classes.rb', line 3608

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>)


3606
3607
3608
# File 'lib/google/apis/spanner_v1/classes.rb', line 3606

def key_parts
  @key_parts
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3613
3614
3615
# File 'lib/google/apis/spanner_v1/classes.rb', line 3613

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