Class: Google::Apis::DatastoreV1beta2::PartitionId
- Inherits:
-
Object
- Object
- Google::Apis::DatastoreV1beta2::PartitionId
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/datastore_v1beta2/classes.rb,
generated/google/apis/datastore_v1beta2/representations.rb,
generated/google/apis/datastore_v1beta2/representations.rb
Overview
An identifier for a particular subset of entities. Entities are partitioned into various subsets, each used by different datasets and different namespaces within a dataset and so forth.
Instance Attribute Summary collapse
-
#dataset_id ⇒ String
The dataset ID.
-
#namespace ⇒ String
The namespace.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PartitionId
constructor
A new instance of PartitionId.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PartitionId
Returns a new instance of PartitionId.
605 606 607 |
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 605 def initialize(**args) update!(**args) end |
Instance Attribute Details
#dataset_id ⇒ String
The dataset ID.
Corresponds to the JSON property datasetId
598 599 600 |
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 598 def dataset_id @dataset_id end |
#namespace ⇒ String
The namespace.
Corresponds to the JSON property namespace
603 604 605 |
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 603 def namespace @namespace end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
610 611 612 613 |
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 610 def update!(**args) @dataset_id = args[:dataset_id] if args.key?(:dataset_id) @namespace = args[:namespace] if args.key?(:namespace) end |