Class: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1EntityFilter
- Inherits:
-
Object
- Object
- Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1EntityFilter
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/datastore_v1beta3/classes.rb,
generated/google/apis/datastore_v1beta3/representations.rb,
generated/google/apis/datastore_v1beta3/representations.rb
Overview
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']
Instance Attribute Summary collapse
-
#kinds ⇒ Array<String>
If empty, then this represents all kinds.
-
#namespace_ids ⇒ Array<String>
An empty list represents all namespaces.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleDatastoreAdminV1EntityFilter
constructor
A new instance of GoogleDatastoreAdminV1EntityFilter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleDatastoreAdminV1EntityFilter
Returns a new instance of GoogleDatastoreAdminV1EntityFilter.
404 405 406 |
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 404 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kinds ⇒ Array<String>
If empty, then this represents all kinds.
Corresponds to the JSON property kinds
392 393 394 |
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 392 def kinds @kinds end |
#namespace_ids ⇒ 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.
Corresponds to the JSON property namespaceIds
402 403 404 |
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 402 def namespace_ids @namespace_ids end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
409 410 411 412 |
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 409 def update!(**args) @kinds = args[:kinds] if args.key?(:kinds) @namespace_ids = args[:namespace_ids] if args.key?(:namespace_ids) end |