Class: Google::Apis::DatastoreV1beta2::PartitionId

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_idString

The dataset ID. Corresponds to the JSON property datasetId

Returns:

  • (String)

598
599
600
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 598

def dataset_id
  @dataset_id
end

#namespaceString

The namespace. Corresponds to the JSON property namespace

Returns:

  • (String)

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