Class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1ImportEntitiesRequest
- Inherits:
-
Object
- Object
- Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1ImportEntitiesRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/datastore_v1beta1/classes.rb,
generated/google/apis/datastore_v1beta1/representations.rb,
generated/google/apis/datastore_v1beta1/representations.rb
Overview
The request for google.datastore.admin.v1beta1.DatastoreAdmin.ImportEntities.
Instance Attribute Summary collapse
-
#entity_filter ⇒ Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1EntityFilter
Identifies a subset of entities in a project.
-
#input_url ⇒ String
The full resource URL of the external storage location.
-
#labels ⇒ Hash<String,String>
Client-assigned labels.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleDatastoreAdminV1beta1ImportEntitiesRequest
constructor
A new instance of GoogleDatastoreAdminV1beta1ImportEntitiesRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleDatastoreAdminV1beta1ImportEntitiesRequest
Returns a new instance of GoogleDatastoreAdminV1beta1ImportEntitiesRequest
645 646 647 |
# File 'generated/google/apis/datastore_v1beta1/classes.rb', line 645 def initialize(**args) update!(**args) end |
Instance Attribute Details
#entity_filter ⇒ Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1EntityFilter
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']
Corresponds to the JSON property entityFilter
621 622 623 |
# File 'generated/google/apis/datastore_v1beta1/classes.rb', line 621 def entity_filter @entity_filter end |
#input_url ⇒ String
The full resource URL of the external storage location. Currently, only
Google Cloud Storage is supported. So input_url should be of the form:
gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE
, where
BUCKET_NAME
is the name of the Cloud Storage bucket, NAMESPACE_PATH
is
an optional Cloud Storage namespace path (this is not a Cloud Datastore
namespace), and OVERALL_EXPORT_METADATA_FILE
is the metadata file written
by the ExportEntities operation. For more information about Cloud Storage
namespace paths, see
Object name
considerations.
For more information, see
google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url.
Corresponds to the JSON property inputUrl
638 639 640 |
# File 'generated/google/apis/datastore_v1beta1/classes.rb', line 638 def input_url @input_url end |
#labels ⇒ Hash<String,String>
Client-assigned labels.
Corresponds to the JSON property labels
643 644 645 |
# File 'generated/google/apis/datastore_v1beta1/classes.rb', line 643 def labels @labels end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
650 651 652 653 654 |
# File 'generated/google/apis/datastore_v1beta1/classes.rb', line 650 def update!(**args) @entity_filter = args[:entity_filter] if args.key?(:entity_filter) @input_url = args[:input_url] if args.key?(:input_url) @labels = args[:labels] if args.key?(:labels) end |