Firestore in Datastore mode Admin V1 API - Class Google::Cloud::Datastore::Admin::V1::EntityFilter (v0.11.2)

Reference documentation and code samples for the Firestore in Datastore mode Admin V1 API class Google::Cloud::Datastore::Admin::V1::EntityFilter.

Identifies a subset of entities in a project. This is specified as combinations of kinds and namespaces (either or both of which may be all, as described in the following examples). Example usage:

Entire project: kinds=[], namespace_ids=[]

Kinds Foo and Bar in all namespaces: kinds=['Foo', 'Bar'], namespace_ids=[]

Kinds Foo and Bar only in the default namespace: kinds=['Foo', 'Bar'], namespace_ids=['']

Kinds Foo and Bar in both the default and Baz namespaces: kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz']

The entire Baz namespace: kinds=[], namespace_ids=['Baz']

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#kinds

def kinds() -> ::Array<::String>
Returns
  • (::Array<::String>) — If empty, then this represents all kinds.

#kinds=

def kinds=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — If empty, then this represents all kinds.
Returns
  • (::Array<::String>) — If empty, then this represents all kinds.

#namespace_ids

def namespace_ids() -> ::Array<::String>
Returns
  • (::Array<::String>) — An empty list represents all namespaces. This is the preferred usage for projects that don't use namespaces.

    An empty string element represents the default namespace. This should be used if the project has data in non-default namespaces, but doesn't want to include them. Each namespace in this list must be unique.

#namespace_ids=

def namespace_ids=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — An empty list represents all namespaces. This is the preferred usage for projects that don't use namespaces.

    An empty string element represents the default namespace. This should be used if the project has data in non-default namespaces, but doesn't want to include them. Each namespace in this list must be unique.

Returns
  • (::Array<::String>) — An empty list represents all namespaces. This is the preferred usage for projects that don't use namespaces.

    An empty string element represents the default namespace. This should be used if the project has data in non-default namespaces, but doesn't want to include them. Each namespace in this list must be unique.