pub struct BatchUpsertCatalogObjectsRequest {
pub idempotency_key: Option<String>,
pub batches: Vec<CatalogObjectBatch>,
}
Expand description
This is a model class for BatchUpsertCatalogObjectsRequest type.
Fields§
§idempotency_key: Option<String>
A value you specify that uniquely identifies this request among all your requests. A common way to create a valid idempotency key is to use a Universally unique identifier (UUID).
If you’re unsure whether a particular request was successful, you can reattempt it with the same idempotency key without worrying about creating duplicate objects.
See Idempotency for more information.
batches: Vec<CatalogObjectBatch>
A batch of CatalogObjects to be inserted/updated atomically. The objects within a batch will be inserted in an all-or-nothing fashion, i.e., if an error occurs attempting to insert or update an object within a batch, the entire batch will be rejected. However, an error in one batch will not affect other batches within the same request.
For each object, its updated_at
field is ignored and replaced with a current timestamp,
and its is_deleted
field must not be set to true
.
To modify an existing object, supply its ID. To create a new object, use an ID starting with
#
. These IDs may be used to create relationships between an object and attributes of other
objects that reference it. For example, you can create a CatalogItem with ID #ABC
and a
CatalogItemVariation with its item_id
attribute set to #ABC
in order to associate the
CatalogItemVariation with its parent CatalogItem.
Any #
-prefixed IDs are valid only within a single atomic batch, and will be replaced by
server-generated IDs.
Each batch may contain up to 1,000 objects. The total number of objects across all batches for a single request may not exceed 10,000. If either of these limits is violated, an error will be returned and no objects will be inserted or updated.
Trait Implementations§
Source§impl Clone for BatchUpsertCatalogObjectsRequest
impl Clone for BatchUpsertCatalogObjectsRequest
Source§fn clone(&self) -> BatchUpsertCatalogObjectsRequest
fn clone(&self) -> BatchUpsertCatalogObjectsRequest
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for BatchUpsertCatalogObjectsRequest
impl Default for BatchUpsertCatalogObjectsRequest
Source§fn default() -> BatchUpsertCatalogObjectsRequest
fn default() -> BatchUpsertCatalogObjectsRequest
Source§impl PartialEq for BatchUpsertCatalogObjectsRequest
impl PartialEq for BatchUpsertCatalogObjectsRequest
Source§fn eq(&self, other: &BatchUpsertCatalogObjectsRequest) -> bool
fn eq(&self, other: &BatchUpsertCatalogObjectsRequest) -> bool
self
and other
values to be equal, and is used by ==
.impl Eq for BatchUpsertCatalogObjectsRequest
impl StructuralPartialEq for BatchUpsertCatalogObjectsRequest
Auto Trait Implementations§
impl Freeze for BatchUpsertCatalogObjectsRequest
impl RefUnwindSafe for BatchUpsertCatalogObjectsRequest
impl Send for BatchUpsertCatalogObjectsRequest
impl Sync for BatchUpsertCatalogObjectsRequest
impl Unpin for BatchUpsertCatalogObjectsRequest
impl UnwindSafe for BatchUpsertCatalogObjectsRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.