class Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1ImportEntitiesRequest

The request for google.datastore.admin.v1beta1.DatastoreAdmin.ImportEntities.

Attributes

entity_filter[RW]

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= Corresponds to the JSON property `entityFilter` @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1EntityFilter]

input_url[RW]

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/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](cloud.google.com/storage/docs/ naming#object-considerations). For more information, see google.datastore. admin.v1beta1.ExportEntitiesResponse.output_url. Corresponds to the JSON property `inputUrl` @return [String]

labels[RW]

Client-assigned labels. Corresponds to the JSON property `labels` @return [Hash<String,String>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/datastore_v1beta1/classes.rb, line 580
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_v1beta1/classes.rb, line 585
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