Struct google_api_proto::google::datastore::admin::v1::ImportEntitiesRequest
source · pub struct ImportEntitiesRequest {
pub project_id: String,
pub labels: BTreeMap<String, String>,
pub input_url: String,
pub entity_filter: Option<EntityFilter>,
}
Expand description
The request for [google.datastore.admin.v1.DatastoreAdmin.ImportEntities][google.datastore.admin.v1.DatastoreAdmin.ImportEntities].
Fields§
§project_id: String
Required. Project ID against which to make the request.
labels: BTreeMap<String, String>
Client-assigned labels.
input_url: String
Required. 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.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url].
entity_filter: Option<EntityFilter>
Optionally specify which kinds/namespaces are to be imported. If provided, the list must be a subset of the EntityFilter used in creating the export, otherwise a FAILED_PRECONDITION error will be returned. If no filter is specified then all entities from the export are imported.
Trait Implementations§
source§impl Clone for ImportEntitiesRequest
impl Clone for ImportEntitiesRequest
source§fn clone(&self) -> ImportEntitiesRequest
fn clone(&self) -> ImportEntitiesRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ImportEntitiesRequest
impl Debug for ImportEntitiesRequest
source§impl Default for ImportEntitiesRequest
impl Default for ImportEntitiesRequest
source§impl Message for ImportEntitiesRequest
impl Message for ImportEntitiesRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ImportEntitiesRequest
impl PartialEq for ImportEntitiesRequest
source§fn eq(&self, other: &ImportEntitiesRequest) -> bool
fn eq(&self, other: &ImportEntitiesRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ImportEntitiesRequest
Auto Trait Implementations§
impl Freeze for ImportEntitiesRequest
impl RefUnwindSafe for ImportEntitiesRequest
impl Send for ImportEntitiesRequest
impl Sync for ImportEntitiesRequest
impl Unpin for ImportEntitiesRequest
impl UnwindSafe for ImportEntitiesRequest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request