mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-13 21:19:05 +01:00
regen all APIs
This commit is contained in:
@@ -4,12 +4,12 @@
|
||||
[package]
|
||||
|
||||
name = "google-datastore1"
|
||||
version = "5.0.3+20230118"
|
||||
version = "5.0.3+20240226"
|
||||
authors = ["Sebastian Thiel <byronimo@gmail.com>"]
|
||||
description = "A complete library to interact with datastore (protocol v1)"
|
||||
repository = "https://github.com/Byron/google-apis-rs/tree/main/gen/datastore1"
|
||||
homepage = "https://cloud.google.com/datastore/"
|
||||
documentation = "https://docs.rs/google-datastore1/5.0.3+20230118"
|
||||
documentation = "https://docs.rs/google-datastore1/5.0.3+20240226"
|
||||
license = "MIT"
|
||||
keywords = ["datastore", "google", "protocol", "web", "api"]
|
||||
autobins = false
|
||||
|
||||
@@ -5,16 +5,16 @@ DO NOT EDIT !
|
||||
-->
|
||||
The `google-datastore1` library allows access to all features of the *Google datastore* service.
|
||||
|
||||
This documentation was generated from *datastore* crate version *5.0.3+20230118*, where *20230118* is the exact revision of the *datastore:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v5.0.3*.
|
||||
This documentation was generated from *datastore* crate version *5.0.3+20240226*, where *20240226* is the exact revision of the *datastore:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v5.0.3*.
|
||||
|
||||
Everything else about the *datastore* *v1* API can be found at the
|
||||
[official documentation site](https://cloud.google.com/datastore/).
|
||||
# Features
|
||||
|
||||
Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/Datastore) ...
|
||||
Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/Datastore) ...
|
||||
|
||||
* projects
|
||||
* [*allocate ids*](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/api::ProjectAllocateIdCall), [*begin transaction*](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/api::ProjectBeginTransactionCall), [*commit*](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/api::ProjectCommitCall), [*export*](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/api::ProjectExportCall), [*import*](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/api::ProjectImportCall), [*indexes create*](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/api::ProjectIndexCreateCall), [*indexes delete*](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/api::ProjectIndexDeleteCall), [*indexes get*](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/api::ProjectIndexGetCall), [*indexes list*](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/api::ProjectIndexListCall), [*lookup*](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/api::ProjectLookupCall), [*operations cancel*](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/api::ProjectOperationCancelCall), [*operations delete*](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/api::ProjectOperationDeleteCall), [*operations get*](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/api::ProjectOperationGetCall), [*operations list*](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/api::ProjectOperationListCall), [*reserve ids*](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/api::ProjectReserveIdCall), [*rollback*](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/api::ProjectRollbackCall), [*run aggregation query*](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/api::ProjectRunAggregationQueryCall) and [*run query*](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/api::ProjectRunQueryCall)
|
||||
* [*allocate ids*](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/api::ProjectAllocateIdCall), [*begin transaction*](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/api::ProjectBeginTransactionCall), [*commit*](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/api::ProjectCommitCall), [*export*](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/api::ProjectExportCall), [*import*](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/api::ProjectImportCall), [*indexes create*](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/api::ProjectIndexCreateCall), [*indexes delete*](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/api::ProjectIndexDeleteCall), [*indexes get*](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/api::ProjectIndexGetCall), [*indexes list*](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/api::ProjectIndexListCall), [*lookup*](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/api::ProjectLookupCall), [*operations cancel*](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/api::ProjectOperationCancelCall), [*operations delete*](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/api::ProjectOperationDeleteCall), [*operations get*](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/api::ProjectOperationGetCall), [*operations list*](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/api::ProjectOperationListCall), [*reserve ids*](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/api::ProjectReserveIdCall), [*rollback*](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/api::ProjectRollbackCall), [*run aggregation query*](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/api::ProjectRunAggregationQueryCall) and [*run query*](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/api::ProjectRunQueryCall)
|
||||
|
||||
|
||||
|
||||
@@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r
|
||||
|
||||
The API is structured into the following primary items:
|
||||
|
||||
* **[Hub](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/Datastore)**
|
||||
* **[Hub](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/Datastore)**
|
||||
* a central object to maintain state and allow accessing all *Activities*
|
||||
* creates [*Method Builders*](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/client::MethodsBuilder) which in turn
|
||||
allow access to individual [*Call Builders*](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/client::CallBuilder)
|
||||
* **[Resources](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/client::Resource)**
|
||||
* creates [*Method Builders*](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/client::MethodsBuilder) which in turn
|
||||
allow access to individual [*Call Builders*](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/client::CallBuilder)
|
||||
* **[Resources](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/client::Resource)**
|
||||
* primary types that you can apply *Activities* to
|
||||
* a collection of properties and *Parts*
|
||||
* **[Parts](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/client::Part)**
|
||||
* **[Parts](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/client::Part)**
|
||||
* a collection of properties
|
||||
* never directly used in *Activities*
|
||||
* **[Activities](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/client::CallBuilder)**
|
||||
* **[Activities](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/client::CallBuilder)**
|
||||
* operations to apply to *Resources*
|
||||
|
||||
All *structures* are marked with applicable traits to further categorize them and ease browsing.
|
||||
@@ -128,17 +128,17 @@ match result {
|
||||
```
|
||||
## Handling Errors
|
||||
|
||||
All errors produced by the system are provided either as [Result](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/client::Result) enumeration as return value of
|
||||
All errors produced by the system are provided either as [Result](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/client::Result) enumeration as return value of
|
||||
the doit() methods, or handed as possibly intermediate results to either the
|
||||
[Hub Delegate](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/client::Delegate), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html).
|
||||
[Hub Delegate](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/client::Delegate), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html).
|
||||
|
||||
When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This
|
||||
makes the system potentially resilient to all kinds of errors.
|
||||
|
||||
## Uploads and Downloads
|
||||
If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/client::Result), should be
|
||||
If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/client::Result), should be
|
||||
read by you to obtain the media.
|
||||
If such a method also supports a [Response Result](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/client::ResponseResult), it will return that by default.
|
||||
If such a method also supports a [Response Result](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/client::ResponseResult), it will return that by default.
|
||||
You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making
|
||||
this call: `.param("alt", "media")`.
|
||||
|
||||
@@ -148,29 +148,29 @@ Methods supporting uploads can do so using up to 2 different protocols:
|
||||
|
||||
## Customization and Callbacks
|
||||
|
||||
You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/client::Delegate) to the
|
||||
[Method Builder](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/client::CallBuilder) before making the final `doit()` call.
|
||||
You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/client::Delegate) to the
|
||||
[Method Builder](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/client::CallBuilder) before making the final `doit()` call.
|
||||
Respective methods will be called to provide progress information, as well as determine whether the system should
|
||||
retry on failure.
|
||||
|
||||
The [delegate trait](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/client::Delegate) is default-implemented, allowing you to customize it with minimal effort.
|
||||
The [delegate trait](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/client::Delegate) is default-implemented, allowing you to customize it with minimal effort.
|
||||
|
||||
## Optional Parts in Server-Requests
|
||||
|
||||
All structures provided by this library are made to be [encodable](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/client::RequestValue) and
|
||||
[decodable](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/client::ResponseResult) via *json*. Optionals are used to indicate that partial requests are responses
|
||||
All structures provided by this library are made to be [encodable](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/client::RequestValue) and
|
||||
[decodable](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/client::ResponseResult) via *json*. Optionals are used to indicate that partial requests are responses
|
||||
are valid.
|
||||
Most optionals are are considered [Parts](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/client::Part) which are identifiable by name, which will be sent to
|
||||
Most optionals are are considered [Parts](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/client::Part) which are identifiable by name, which will be sent to
|
||||
the server to indicate either the set parts of the request or the desired parts in the response.
|
||||
|
||||
## Builder Arguments
|
||||
|
||||
Using [method builders](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/client::CallBuilder), you are able to prepare an action call by repeatedly calling it's methods.
|
||||
Using [method builders](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/client::CallBuilder), you are able to prepare an action call by repeatedly calling it's methods.
|
||||
These will always take a single argument, for which the following statements are true.
|
||||
|
||||
* [PODs][wiki-pod] are handed by copy
|
||||
* strings are passed as `&str`
|
||||
* [request values](https://docs.rs/google-datastore1/5.0.3+20230118/google_datastore1/client::RequestValue) are moved
|
||||
* [request values](https://docs.rs/google-datastore1/5.0.3+20240226/google_datastore1/client::RequestValue) are moved
|
||||
|
||||
Arguments will always be copied or cloned into the builder, to make them independent of their original life times.
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ use crate::{client, client::GetToken, client::serde_with};
|
||||
/// Identifies the an OAuth2 authorization scope.
|
||||
/// A scope is needed when requesting an
|
||||
/// [authorization token](https://developers.google.com/youtube/v3/guides/authentication).
|
||||
#[derive(PartialEq, Eq, Hash)]
|
||||
#[derive(PartialEq, Eq, Ord, PartialOrd, Hash, Debug, Clone, Copy)]
|
||||
pub enum Scope {
|
||||
/// See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
||||
CloudPlatform,
|
||||
@@ -168,19 +168,25 @@ impl<'a, S> Datastore<S> {
|
||||
// ############
|
||||
// SCHEMAS ###
|
||||
// ##########
|
||||
/// Defines a aggregation that produces a single result.
|
||||
/// Defines an aggregation that produces a single result.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct Aggregation {
|
||||
/// Optional. Optional name of the property to store the result of the aggregation. If not provided, Datastore will pick a default name following the format `property_`. For example: ``` AGGREGATE COUNT_UP_TO(1) AS count_up_to_1, COUNT_UP_TO(2), COUNT_UP_TO(3) AS count_up_to_3, COUNT_UP_TO(4) OVER ( ... ); ``` becomes: ``` AGGREGATE COUNT_UP_TO(1) AS count_up_to_1, COUNT_UP_TO(2) AS property_1, COUNT_UP_TO(3) AS count_up_to_3, COUNT_UP_TO(4) AS property_2 OVER ( ... ); ``` Requires: * Must be unique across all aggregation aliases. * Conform to entity property name limitations.
|
||||
/// Optional. Optional name of the property to store the result of the aggregation. If not provided, Datastore will pick a default name following the format `property_`. For example: ``` AGGREGATE COUNT_UP_TO(1) AS count_up_to_1, COUNT_UP_TO(2), COUNT_UP_TO(3) AS count_up_to_3, COUNT(*) OVER ( ... ); ``` becomes: ``` AGGREGATE COUNT_UP_TO(1) AS count_up_to_1, COUNT_UP_TO(2) AS property_1, COUNT_UP_TO(3) AS count_up_to_3, COUNT(*) AS property_2 OVER ( ... ); ``` Requires: * Must be unique across all aggregation aliases. * Conform to entity property name limitations.
|
||||
|
||||
pub alias: Option<String>,
|
||||
/// Average aggregator.
|
||||
|
||||
pub avg: Option<Avg>,
|
||||
/// Count aggregator.
|
||||
|
||||
pub count: Option<Count>,
|
||||
/// Sum aggregator.
|
||||
|
||||
pub sum: Option<Sum>,
|
||||
}
|
||||
|
||||
impl client::Part for Aggregation {}
|
||||
@@ -302,6 +308,21 @@ pub struct ArrayValue {
|
||||
impl client::Part for ArrayValue {}
|
||||
|
||||
|
||||
/// Average of the values of the requested property. * Only numeric values will be aggregated. All non-numeric values including `NULL` are skipped. * If the aggregated values contain `NaN`, returns `NaN`. Infinity math follows IEEE-754 standards. * If the aggregated value set is empty, returns `NULL`. * Always returns the result as a double.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct Avg {
|
||||
/// The property to aggregate on.
|
||||
|
||||
pub property: Option<PropertyReference>,
|
||||
}
|
||||
|
||||
impl client::Part for Avg {}
|
||||
|
||||
|
||||
/// The request for Datastore.BeginTransaction.
|
||||
///
|
||||
/// # Activities
|
||||
@@ -339,7 +360,7 @@ impl client::RequestValue for BeginTransactionRequest {}
|
||||
pub struct BeginTransactionResponse {
|
||||
/// The transaction identifier (always present).
|
||||
|
||||
#[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")]
|
||||
#[serde_as(as = "Option<::client::serde::standard_base64::Wrapper>")]
|
||||
pub transaction: Option<Vec<u8>>,
|
||||
}
|
||||
|
||||
@@ -373,7 +394,7 @@ pub struct CommitRequest {
|
||||
pub single_use_transaction: Option<TransactionOptions>,
|
||||
/// The identifier of the transaction associated with the commit. A transaction identifier is returned by a call to Datastore.BeginTransaction.
|
||||
|
||||
#[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")]
|
||||
#[serde_as(as = "Option<::client::serde::standard_base64::Wrapper>")]
|
||||
pub transaction: Option<Vec<u8>>,
|
||||
}
|
||||
|
||||
@@ -433,7 +454,7 @@ impl client::Part for CompositeFilter {}
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct Count {
|
||||
/// Optional. Optional constraint on the maximum number of entities to count. This provides a way to set an upper bound on the number of entities to scan, limiting latency and cost. Unspecified is interpreted as no bound. If a zero value is provided, a count result of zero should always be expected. High-Level Example: ``` AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k ); ``` Requires: * Must be non-negative when present.
|
||||
/// Optional. Optional constraint on the maximum number of entities to count. This provides a way to set an upper bound on the number of entities to scan, limiting latency, and cost. Unspecified is interpreted as no bound. If a zero value is provided, a count result of zero should always be expected. High-Level Example: ``` AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k ); ``` Requires: * Must be non-negative when present.
|
||||
#[serde(rename="upTo")]
|
||||
|
||||
#[serde_as(as = "Option<::client::serde_with::DisplayFromStr>")]
|
||||
@@ -459,7 +480,7 @@ pub struct Empty { _never_set: Option<bool> }
|
||||
impl client::ResponseResult for Empty {}
|
||||
|
||||
|
||||
/// A Datastore data object. An entity is limited to 1 megabyte when stored. That _roughly_ corresponds to a limit of 1 megabyte for the serialized form of this message.
|
||||
/// A Datastore data object. Must not exceed 1 MiB - 4 bytes.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
@@ -469,7 +490,7 @@ pub struct Entity {
|
||||
/// The entity's key. An entity must have a key, unless otherwise documented (for example, an entity in `Value.entity_value` may have no key). An entity's kind is its key path's last element's kind, or null if it has no key.
|
||||
|
||||
pub key: Option<Key>,
|
||||
/// The entity's properties. The map's keys are property names. A property name matching regex `__.*__` is reserved. A reserved property name is forbidden in certain documented contexts. The name must not contain more than 500 characters. The name cannot be `""`.
|
||||
/// The entity's properties. The map's keys are property names. A property name matching regex `__.*__` is reserved. A reserved property name is forbidden in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
|
||||
|
||||
pub properties: Option<HashMap<String, Value>>,
|
||||
}
|
||||
@@ -490,7 +511,7 @@ pub struct EntityResult {
|
||||
pub create_time: Option<client::chrono::DateTime<client::chrono::offset::Utc>>,
|
||||
/// A cursor that points to the position after the result entity. Set only when the `EntityResult` is part of a `QueryResultBatch` message.
|
||||
|
||||
#[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")]
|
||||
#[serde_as(as = "Option<::client::serde::standard_base64::Wrapper>")]
|
||||
pub cursor: Option<Vec<u8>>,
|
||||
/// The resulting entity.
|
||||
|
||||
@@ -730,7 +751,7 @@ pub struct GoogleLongrunningOperation {
|
||||
/// The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
|
||||
|
||||
pub name: Option<String>,
|
||||
/// The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
|
||||
/// The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
|
||||
|
||||
pub response: Option<HashMap<String, json::Value>>,
|
||||
}
|
||||
@@ -775,7 +796,7 @@ impl client::Part for GqlQuery {}
|
||||
pub struct GqlQueryParameter {
|
||||
/// A query cursor. Query cursors are returned in query result batches.
|
||||
|
||||
#[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")]
|
||||
#[serde_as(as = "Option<::client::serde::standard_base64::Wrapper>")]
|
||||
pub cursor: Option<Vec<u8>>,
|
||||
/// A value parameter.
|
||||
|
||||
@@ -888,9 +909,9 @@ pub struct LookupResponse {
|
||||
#[serde(rename="readTime")]
|
||||
|
||||
pub read_time: Option<client::chrono::DateTime<client::chrono::offset::Utc>>,
|
||||
/// The identifier of the transaction that was started as part of this Lookup request. Set only when ReadOptions.begin_transaction was set in LookupRequest.read_options.
|
||||
/// The identifier of the transaction that was started as part of this Lookup request. Set only when ReadOptions.new_transaction was set in LookupRequest.read_options.
|
||||
|
||||
#[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")]
|
||||
#[serde_as(as = "Option<::client::serde::standard_base64::Wrapper>")]
|
||||
pub transaction: Option<Vec<u8>>,
|
||||
}
|
||||
|
||||
@@ -1068,7 +1089,7 @@ impl client::Part for PropertyOrder {}
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct PropertyReference {
|
||||
/// The name of the property. If name includes "."s, it may be interpreted as a property name path.
|
||||
/// A reference to a property. Requires: * MUST be a dot-delimited (`.`) string of segments, where each segment conforms to entity property name limitations.
|
||||
|
||||
pub name: Option<String>,
|
||||
}
|
||||
@@ -1083,14 +1104,14 @@ impl client::Part for PropertyReference {}
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct Query {
|
||||
/// The properties to make distinct. The query results will contain the first result for each distinct combination of values for the given properties (if empty, all results are returned).
|
||||
/// The properties to make distinct. The query results will contain the first result for each distinct combination of values for the given properties (if empty, all results are returned). Requires: * If `order` is specified, the set of distinct on properties must appear before the non-distinct on properties in `order`.
|
||||
#[serde(rename="distinctOn")]
|
||||
|
||||
pub distinct_on: Option<Vec<PropertyReference>>,
|
||||
/// An ending point for the query results. Query cursors are returned in query result batches and [can only be used to limit the same query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
|
||||
#[serde(rename="endCursor")]
|
||||
|
||||
#[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")]
|
||||
#[serde_as(as = "Option<::client::serde::standard_base64::Wrapper>")]
|
||||
pub end_cursor: Option<Vec<u8>>,
|
||||
/// The filter to apply.
|
||||
|
||||
@@ -1113,7 +1134,7 @@ pub struct Query {
|
||||
/// A starting point for the query results. Query cursors are returned in query result batches and [can only be used to continue the same query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
|
||||
#[serde(rename="startCursor")]
|
||||
|
||||
#[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")]
|
||||
#[serde_as(as = "Option<::client::serde::standard_base64::Wrapper>")]
|
||||
pub start_cursor: Option<Vec<u8>>,
|
||||
}
|
||||
|
||||
@@ -1130,7 +1151,7 @@ pub struct QueryResultBatch {
|
||||
/// A cursor that points to the position after the last result in the batch.
|
||||
#[serde(rename="endCursor")]
|
||||
|
||||
#[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")]
|
||||
#[serde_as(as = "Option<::client::serde::standard_base64::Wrapper>")]
|
||||
pub end_cursor: Option<Vec<u8>>,
|
||||
/// The result type for every entity in `entity_results`.
|
||||
#[serde(rename="entityResultType")]
|
||||
@@ -1151,7 +1172,7 @@ pub struct QueryResultBatch {
|
||||
/// A cursor that points to the position after the last skipped result. Will be set when `skipped_results` != 0.
|
||||
#[serde(rename="skippedCursor")]
|
||||
|
||||
#[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")]
|
||||
#[serde_as(as = "Option<::client::serde::standard_base64::Wrapper>")]
|
||||
pub skipped_cursor: Option<Vec<u8>>,
|
||||
/// The number of results skipped, typically because of an offset.
|
||||
#[serde(rename="skippedResults")]
|
||||
@@ -1174,7 +1195,7 @@ impl client::Part for QueryResultBatch {}
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct ReadOnly {
|
||||
/// Reads entities at the given time. This may not be older than 60 seconds.
|
||||
/// Reads entities at the given time. This must be a microsecond precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can additionally be a whole minute timestamp within the past 7 days.
|
||||
#[serde(rename="readTime")]
|
||||
|
||||
pub read_time: Option<client::chrono::DateTime<client::chrono::offset::Utc>>,
|
||||
@@ -1198,13 +1219,13 @@ pub struct ReadOptions {
|
||||
#[serde(rename="readConsistency")]
|
||||
|
||||
pub read_consistency: Option<String>,
|
||||
/// Reads entities as they were at the given time. This may not be older than 270 seconds. This value is only supported for Cloud Firestore in Datastore mode.
|
||||
/// Reads entities as they were at the given time. This value is only supported for Cloud Firestore in Datastore mode. This must be a microsecond precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can additionally be a whole minute timestamp within the past 7 days.
|
||||
#[serde(rename="readTime")]
|
||||
|
||||
pub read_time: Option<client::chrono::DateTime<client::chrono::offset::Utc>>,
|
||||
/// The identifier of the transaction in which to read. A transaction identifier is returned by a call to Datastore.BeginTransaction.
|
||||
|
||||
#[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")]
|
||||
#[serde_as(as = "Option<::client::serde::standard_base64::Wrapper>")]
|
||||
pub transaction: Option<Vec<u8>>,
|
||||
}
|
||||
|
||||
@@ -1221,7 +1242,7 @@ pub struct ReadWrite {
|
||||
/// The transaction identifier of the transaction being retried.
|
||||
#[serde(rename="previousTransaction")]
|
||||
|
||||
#[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")]
|
||||
#[serde_as(as = "Option<::client::serde::standard_base64::Wrapper>")]
|
||||
pub previous_transaction: Option<Vec<u8>>,
|
||||
}
|
||||
|
||||
@@ -1283,7 +1304,7 @@ pub struct RollbackRequest {
|
||||
pub database_id: Option<String>,
|
||||
/// Required. The transaction identifier, returned by a call to Datastore.BeginTransaction.
|
||||
|
||||
#[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")]
|
||||
#[serde_as(as = "Option<::client::serde::standard_base64::Wrapper>")]
|
||||
pub transaction: Option<Vec<u8>>,
|
||||
}
|
||||
|
||||
@@ -1358,9 +1379,9 @@ pub struct RunAggregationQueryResponse {
|
||||
/// The parsed form of the `GqlQuery` from the request, if it was set.
|
||||
|
||||
pub query: Option<AggregationQuery>,
|
||||
/// The identifier of the transaction that was started as part of this RunAggregationQuery request. Set only when ReadOptions.begin_transaction was set in RunAggregationQueryRequest.read_options.
|
||||
/// The identifier of the transaction that was started as part of this RunAggregationQuery request. Set only when ReadOptions.new_transaction was set in RunAggregationQueryRequest.read_options.
|
||||
|
||||
#[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")]
|
||||
#[serde_as(as = "Option<::client::serde::standard_base64::Wrapper>")]
|
||||
pub transaction: Option<Vec<u8>>,
|
||||
}
|
||||
|
||||
@@ -1419,9 +1440,9 @@ pub struct RunQueryResponse {
|
||||
/// The parsed form of the `GqlQuery` from the request, if it was set.
|
||||
|
||||
pub query: Option<Query>,
|
||||
/// The identifier of the transaction that was started as part of this RunQuery request. Set only when ReadOptions.begin_transaction was set in RunQueryRequest.read_options.
|
||||
/// The identifier of the transaction that was started as part of this RunQuery request. Set only when ReadOptions.new_transaction was set in RunQueryRequest.read_options.
|
||||
|
||||
#[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")]
|
||||
#[serde_as(as = "Option<::client::serde::standard_base64::Wrapper>")]
|
||||
pub transaction: Option<Vec<u8>>,
|
||||
}
|
||||
|
||||
@@ -1449,6 +1470,21 @@ pub struct Status {
|
||||
impl client::Part for Status {}
|
||||
|
||||
|
||||
/// Sum of the values of the requested property. * Only numeric values will be aggregated. All non-numeric values including `NULL` are skipped. * If the aggregated values contain `NaN`, returns `NaN`. Infinity math follows IEEE-754 standards. * If the aggregated value set is empty, returns 0. * Returns a 64-bit integer if all aggregated numbers are integers and the sum result does not overflow. Otherwise, the result is returned as a double. Note that even if all the aggregated values are integers, the result is returned as a double if it cannot fit within a 64-bit signed integer. When this occurs, the returned value will lose precision. * When underflow occurs, floating-point aggregation is non-deterministic. This means that running the same query repeatedly without any changes to the underlying values could produce slightly different results each time. In those cases, values should be stored as integers over floating-point numbers.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct Sum {
|
||||
/// The property to aggregate on.
|
||||
|
||||
pub property: Option<PropertyReference>,
|
||||
}
|
||||
|
||||
impl client::Part for Sum {}
|
||||
|
||||
|
||||
/// Options for beginning a new transaction. Transactions can be created explicitly with calls to Datastore.BeginTransaction or implicitly by setting ReadOptions.new_transaction in read requests.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
@@ -1483,7 +1519,7 @@ pub struct Value {
|
||||
/// A blob value. May have at most 1,000,000 bytes. When `exclude_from_indexes` is false, may have at most 1500 bytes. In JSON requests, must be base64-encoded.
|
||||
#[serde(rename="blobValue")]
|
||||
|
||||
#[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")]
|
||||
#[serde_as(as = "Option<::client::serde::standard_base64::Wrapper>")]
|
||||
pub blob_value: Option<Vec<u8>>,
|
||||
/// A boolean value.
|
||||
#[serde(rename="booleanValue")]
|
||||
@@ -1707,7 +1743,7 @@ impl<'a, S> ProjectMethods<'a, S> {
|
||||
|
||||
/// Create a builder to help you perform the following task:
|
||||
///
|
||||
/// Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.
|
||||
/// Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.
|
||||
///
|
||||
/// # Arguments
|
||||
///
|
||||
@@ -3847,7 +3883,7 @@ where
|
||||
}
|
||||
|
||||
|
||||
/// Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.
|
||||
/// Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.
|
||||
///
|
||||
/// A builder for the *operations.list* method supported by a *project* resource.
|
||||
/// It is not used directly, but through a [`ProjectMethods`] instance.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// This file was generated automatically from 'src/generator/templates/api/lib.rs.mako'
|
||||
// DO NOT EDIT !
|
||||
|
||||
//! This documentation was generated from *datastore* crate version *5.0.3+20230118*, where *20230118* is the exact revision of the *datastore:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v5.0.3*.
|
||||
//! This documentation was generated from *datastore* crate version *5.0.3+20240226*, where *20240226* is the exact revision of the *datastore:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v5.0.3*.
|
||||
//!
|
||||
//! Everything else about the *datastore* *v1* API can be found at the
|
||||
//! [official documentation site](https://cloud.google.com/datastore/).
|
||||
|
||||
Reference in New Issue
Block a user