Class: Google::Apis::SpannerV1::AddSplitPointsRequest

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

The request for AddSplitPoints.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AddSplitPointsRequest

Returns a new instance of AddSplitPointsRequest.



128
129
130
# File 'lib/google/apis/spanner_v1/classes.rb', line 128

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

Instance Attribute Details

#initiatorString

Optional. A user-supplied tag associated with the split points. For example, " initial_data_load", "special_event_1". Defaults to "CloudAddSplitPointsAPI" if not specified. The length of the tag must not exceed 50 characters, or else it is trimmed. Only valid UTF8 characters are allowed. Corresponds to the JSON property initiator

Returns:

  • (String)


121
122
123
# File 'lib/google/apis/spanner_v1/classes.rb', line 121

def initiator
  @initiator
end

#split_pointsArray<Google::Apis::SpannerV1::SplitPoints>

Required. The split points to add. Corresponds to the JSON property splitPoints



126
127
128
# File 'lib/google/apis/spanner_v1/classes.rb', line 126

def split_points
  @split_points
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



133
134
135
136
# File 'lib/google/apis/spanner_v1/classes.rb', line 133

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