class Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1EntityFilter

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=

Attributes

kinds[RW]

If empty, then this represents all kinds. Corresponds to the JSON property `kinds` @return [Array<String>]

namespace_ids[RW]

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. Corresponds to the JSON property `namespaceIds` @return [Array<String>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/datastore_v1beta3/classes.rb, line 381
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/datastore_v1beta3/classes.rb, line 386
def update!(**args)
  @kinds = args[:kinds] if args.key?(:kinds)
  @namespace_ids = args[:namespace_ids] if args.key?(:namespace_ids)
end