#[non_exhaustive]pub struct ExportEntitiesRequest {
pub project_id: String,
pub labels: HashMap<String, String>,
pub entity_filter: Option<EntityFilter>,
pub output_url_prefix: String,
/* private fields */
}Expand description
The request for google.datastore.admin.v1.DatastoreAdmin.ExportEntities.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.project_id: StringRequired. Project ID against which to make the request.
labels: HashMap<String, String>Client-assigned labels.
entity_filter: Option<EntityFilter>Description of what data from the project is included in the export.
output_url_prefix: StringRequired. Location for the export metadata and data files.
The full resource URL of the external storage location. Currently, only
Google Cloud Storage is supported. So output_url_prefix should be of the
form: gs://BUCKET_NAME[/NAMESPACE_PATH], where BUCKET_NAME is the
name of the Cloud Storage bucket and NAMESPACE_PATH is an optional Cloud
Storage namespace path (this is not a Cloud Datastore namespace). For more
information about Cloud Storage namespace paths, see
Object name
considerations.
The resulting files will be nested deeper than the specified URL prefix. The final output URL will be provided in the google.datastore.admin.v1.ExportEntitiesResponse.output_url field. That value should be used for subsequent ImportEntities operations.
By nesting the data files deeper, the same Cloud Storage bucket can be used in multiple ExportEntities operations without conflict.
Implementations§
Source§impl ExportEntitiesRequest
impl ExportEntitiesRequest
pub fn new() -> Self
Sourcepub fn set_project_id<T: Into<String>>(self, v: T) -> Self
pub fn set_project_id<T: Into<String>>(self, v: T) -> Self
Sets the value of project_id.
Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sets the value of labels.
Sourcepub fn set_entity_filter<T>(self, v: T) -> Selfwhere
T: Into<EntityFilter>,
pub fn set_entity_filter<T>(self, v: T) -> Selfwhere
T: Into<EntityFilter>,
Sets the value of entity_filter.
Sourcepub fn set_or_clear_entity_filter<T>(self, v: Option<T>) -> Selfwhere
T: Into<EntityFilter>,
pub fn set_or_clear_entity_filter<T>(self, v: Option<T>) -> Selfwhere
T: Into<EntityFilter>,
Sets or clears the value of entity_filter.
Sourcepub fn set_output_url_prefix<T: Into<String>>(self, v: T) -> Self
pub fn set_output_url_prefix<T: Into<String>>(self, v: T) -> Self
Sets the value of output_url_prefix.
Trait Implementations§
Source§impl Clone for ExportEntitiesRequest
impl Clone for ExportEntitiesRequest
Source§fn clone(&self) -> ExportEntitiesRequest
fn clone(&self) -> ExportEntitiesRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more