Class: Google::Apis::SpannerV1::Delete
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::Delete
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/spanner_v1/classes.rb,
generated/google/apis/spanner_v1/representations.rb,
generated/google/apis/spanner_v1/representations.rb
Overview
Arguments to delete operations.
Instance Attribute Summary collapse
-
#key_set ⇒ Google::Apis::SpannerV1::KeySet
KeySetdefines a collection of Cloud Spanner keys and/or key ranges. -
#table ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Delete
constructor
A new instance of Delete.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Delete
Returns a new instance of Delete
1239 1240 1241 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 1239 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key_set ⇒ Google::Apis::SpannerV1::KeySet
KeySet defines a collection of Cloud Spanner keys and/or key ranges. All
the keys are expected to be in the same table or index. The keys need
not be sorted in any particular way.
If the same key is specified multiple times in the set (for example
if two ranges, two keys, or a key and a range overlap), Cloud Spanner
behaves as if the key were only specified once.
Corresponds to the JSON property keySet
1237 1238 1239 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 1237 def key_set @key_set end |
#table ⇒ String
Required. The table whose rows will be deleted.
Corresponds to the JSON property table
1227 1228 1229 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 1227 def table @table end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1244 1245 1246 1247 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 1244 def update!(**args) @table = args[:table] if args.key?(:table) @key_set = args[:key_set] if args.key?(:key_set) end |