mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
Bump version to 1.0.9; update JSON schemas; add new APIs
This commit is contained in:
@@ -4,12 +4,12 @@
|
||||
[package]
|
||||
|
||||
name = "google-cloudtasks2"
|
||||
version = "1.0.8+20190326"
|
||||
version = "1.0.9+20190618"
|
||||
authors = ["Sebastian Thiel <byronimo@gmail.com>"]
|
||||
description = "A complete library to interact with Cloud Tasks (protocol v2)"
|
||||
repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudtasks2"
|
||||
homepage = "https://cloud.google.com/tasks/"
|
||||
documentation = "https://docs.rs/google-cloudtasks2/1.0.8+20190326"
|
||||
documentation = "https://docs.rs/google-cloudtasks2/1.0.9+20190618"
|
||||
license = "MIT"
|
||||
keywords = ["cloudtasks", "google", "protocol", "web", "api"]
|
||||
autobins = false
|
||||
|
||||
@@ -6,7 +6,7 @@ DO NOT EDIT !
|
||||
The MIT License (MIT)
|
||||
=====================
|
||||
|
||||
Copyright © `2015-2016` `Sebastian Thiel`
|
||||
Copyright © `2015-2019` `Sebastian Thiel`
|
||||
|
||||
Permission is hereby granted, free of charge, to any person
|
||||
obtaining a copy of this software and associated documentation
|
||||
|
||||
@@ -5,16 +5,16 @@ DO NOT EDIT !
|
||||
-->
|
||||
The `google-cloudtasks2` library allows access to all features of the *Google Cloud Tasks* service.
|
||||
|
||||
This documentation was generated from *Cloud Tasks* crate version *1.0.8+20190326*, where *20190326* is the exact revision of the *cloudtasks:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.8*.
|
||||
This documentation was generated from *Cloud Tasks* crate version *1.0.9+20190618*, where *20190618* is the exact revision of the *cloudtasks:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.9*.
|
||||
|
||||
Everything else about the *Cloud Tasks* *v2* API can be found at the
|
||||
[official documentation site](https://cloud.google.com/tasks/).
|
||||
# Features
|
||||
|
||||
Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudtasks2/1.0.8+20190326/google_cloudtasks2/struct.CloudTasks.html) ...
|
||||
Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/struct.CloudTasks.html) ...
|
||||
|
||||
* projects
|
||||
* [*locations get*](https://docs.rs/google-cloudtasks2/1.0.8+20190326/google_cloudtasks2/struct.ProjectLocationGetCall.html), [*locations list*](https://docs.rs/google-cloudtasks2/1.0.8+20190326/google_cloudtasks2/struct.ProjectLocationListCall.html), [*locations queues create*](https://docs.rs/google-cloudtasks2/1.0.8+20190326/google_cloudtasks2/struct.ProjectLocationQueueCreateCall.html), [*locations queues delete*](https://docs.rs/google-cloudtasks2/1.0.8+20190326/google_cloudtasks2/struct.ProjectLocationQueueDeleteCall.html), [*locations queues get*](https://docs.rs/google-cloudtasks2/1.0.8+20190326/google_cloudtasks2/struct.ProjectLocationQueueGetCall.html), [*locations queues get iam policy*](https://docs.rs/google-cloudtasks2/1.0.8+20190326/google_cloudtasks2/struct.ProjectLocationQueueGetIamPolicyCall.html), [*locations queues list*](https://docs.rs/google-cloudtasks2/1.0.8+20190326/google_cloudtasks2/struct.ProjectLocationQueueListCall.html), [*locations queues patch*](https://docs.rs/google-cloudtasks2/1.0.8+20190326/google_cloudtasks2/struct.ProjectLocationQueuePatchCall.html), [*locations queues pause*](https://docs.rs/google-cloudtasks2/1.0.8+20190326/google_cloudtasks2/struct.ProjectLocationQueuePauseCall.html), [*locations queues purge*](https://docs.rs/google-cloudtasks2/1.0.8+20190326/google_cloudtasks2/struct.ProjectLocationQueuePurgeCall.html), [*locations queues resume*](https://docs.rs/google-cloudtasks2/1.0.8+20190326/google_cloudtasks2/struct.ProjectLocationQueueResumeCall.html), [*locations queues set iam policy*](https://docs.rs/google-cloudtasks2/1.0.8+20190326/google_cloudtasks2/struct.ProjectLocationQueueSetIamPolicyCall.html), [*locations queues tasks create*](https://docs.rs/google-cloudtasks2/1.0.8+20190326/google_cloudtasks2/struct.ProjectLocationQueueTaskCreateCall.html), [*locations queues tasks delete*](https://docs.rs/google-cloudtasks2/1.0.8+20190326/google_cloudtasks2/struct.ProjectLocationQueueTaskDeleteCall.html), [*locations queues tasks get*](https://docs.rs/google-cloudtasks2/1.0.8+20190326/google_cloudtasks2/struct.ProjectLocationQueueTaskGetCall.html), [*locations queues tasks list*](https://docs.rs/google-cloudtasks2/1.0.8+20190326/google_cloudtasks2/struct.ProjectLocationQueueTaskListCall.html), [*locations queues tasks run*](https://docs.rs/google-cloudtasks2/1.0.8+20190326/google_cloudtasks2/struct.ProjectLocationQueueTaskRunCall.html) and [*locations queues test iam permissions*](https://docs.rs/google-cloudtasks2/1.0.8+20190326/google_cloudtasks2/struct.ProjectLocationQueueTestIamPermissionCall.html)
|
||||
* [*locations get*](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/struct.ProjectLocationGetCall.html), [*locations list*](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/struct.ProjectLocationListCall.html), [*locations queues create*](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/struct.ProjectLocationQueueCreateCall.html), [*locations queues delete*](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/struct.ProjectLocationQueueDeleteCall.html), [*locations queues get*](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/struct.ProjectLocationQueueGetCall.html), [*locations queues get iam policy*](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/struct.ProjectLocationQueueGetIamPolicyCall.html), [*locations queues list*](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/struct.ProjectLocationQueueListCall.html), [*locations queues patch*](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/struct.ProjectLocationQueuePatchCall.html), [*locations queues pause*](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/struct.ProjectLocationQueuePauseCall.html), [*locations queues purge*](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/struct.ProjectLocationQueuePurgeCall.html), [*locations queues resume*](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/struct.ProjectLocationQueueResumeCall.html), [*locations queues set iam policy*](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/struct.ProjectLocationQueueSetIamPolicyCall.html), [*locations queues tasks create*](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/struct.ProjectLocationQueueTaskCreateCall.html), [*locations queues tasks delete*](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/struct.ProjectLocationQueueTaskDeleteCall.html), [*locations queues tasks get*](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/struct.ProjectLocationQueueTaskGetCall.html), [*locations queues tasks list*](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/struct.ProjectLocationQueueTaskListCall.html), [*locations queues tasks run*](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/struct.ProjectLocationQueueTaskRunCall.html) and [*locations queues test iam permissions*](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/struct.ProjectLocationQueueTestIamPermissionCall.html)
|
||||
|
||||
|
||||
|
||||
@@ -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-cloudtasks2/1.0.8+20190326/google_cloudtasks2/struct.CloudTasks.html)**
|
||||
* **[Hub](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/struct.CloudTasks.html)**
|
||||
* a central object to maintain state and allow accessing all *Activities*
|
||||
* creates [*Method Builders*](https://docs.rs/google-cloudtasks2/1.0.8+20190326/google_cloudtasks2/trait.MethodsBuilder.html) which in turn
|
||||
allow access to individual [*Call Builders*](https://docs.rs/google-cloudtasks2/1.0.8+20190326/google_cloudtasks2/trait.CallBuilder.html)
|
||||
* **[Resources](https://docs.rs/google-cloudtasks2/1.0.8+20190326/google_cloudtasks2/trait.Resource.html)**
|
||||
* creates [*Method Builders*](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/trait.MethodsBuilder.html) which in turn
|
||||
allow access to individual [*Call Builders*](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/trait.CallBuilder.html)
|
||||
* **[Resources](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/trait.Resource.html)**
|
||||
* primary types that you can apply *Activities* to
|
||||
* a collection of properties and *Parts*
|
||||
* **[Parts](https://docs.rs/google-cloudtasks2/1.0.8+20190326/google_cloudtasks2/trait.Part.html)**
|
||||
* **[Parts](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/trait.Part.html)**
|
||||
* a collection of properties
|
||||
* never directly used in *Activities*
|
||||
* **[Activities](https://docs.rs/google-cloudtasks2/1.0.8+20190326/google_cloudtasks2/trait.CallBuilder.html)**
|
||||
* **[Activities](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/trait.CallBuilder.html)**
|
||||
* operations to apply to *Resources*
|
||||
|
||||
All *structures* are marked with applicable traits to further categorize them and ease browsing.
|
||||
@@ -136,17 +136,17 @@ match result {
|
||||
```
|
||||
## Handling Errors
|
||||
|
||||
All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudtasks2/1.0.8+20190326/google_cloudtasks2/enum.Result.html) enumeration as return value of
|
||||
All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/enum.Result.html) enumeration as return value of
|
||||
the doit() methods, or handed as possibly intermediate results to either the
|
||||
[Hub Delegate](https://docs.rs/google-cloudtasks2/1.0.8+20190326/google_cloudtasks2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html).
|
||||
[Hub Delegate](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/trait.Delegate.html), 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-cloudtasks2/1.0.8+20190326/google_cloudtasks2/enum.Result.html), should be
|
||||
If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/enum.Result.html), should be
|
||||
read by you to obtain the media.
|
||||
If such a method also supports a [Response Result](https://docs.rs/google-cloudtasks2/1.0.8+20190326/google_cloudtasks2/trait.ResponseResult.html), it will return that by default.
|
||||
If such a method also supports a [Response Result](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/trait.ResponseResult.html), 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")`.
|
||||
|
||||
@@ -156,29 +156,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-cloudtasks2/1.0.8+20190326/google_cloudtasks2/trait.Delegate.html) to the
|
||||
[Method Builder](https://docs.rs/google-cloudtasks2/1.0.8+20190326/google_cloudtasks2/trait.CallBuilder.html) before making the final `doit()` call.
|
||||
You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/trait.Delegate.html) to the
|
||||
[Method Builder](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/trait.CallBuilder.html) 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-cloudtasks2/1.0.8+20190326/google_cloudtasks2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort.
|
||||
The [delegate trait](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/trait.Delegate.html) 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 [enocodable](https://docs.rs/google-cloudtasks2/1.0.8+20190326/google_cloudtasks2/trait.RequestValue.html) and
|
||||
[decodable](https://docs.rs/google-cloudtasks2/1.0.8+20190326/google_cloudtasks2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses
|
||||
All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/trait.RequestValue.html) and
|
||||
[decodable](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses
|
||||
are valid.
|
||||
Most optionals are are considered [Parts](https://docs.rs/google-cloudtasks2/1.0.8+20190326/google_cloudtasks2/trait.Part.html) which are identifiable by name, which will be sent to
|
||||
Most optionals are are considered [Parts](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/trait.Part.html) 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-cloudtasks2/1.0.8+20190326/google_cloudtasks2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods.
|
||||
Using [method builders](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/trait.CallBuilder.html), 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-cloudtasks2/1.0.8+20190326/google_cloudtasks2/trait.RequestValue.html) are moved
|
||||
* [request values](https://docs.rs/google-cloudtasks2/1.0.9+20190618/google_cloudtasks2/trait.RequestValue.html) are moved
|
||||
|
||||
Arguments will always be copied or cloned into the builder, to make them independent of their original life times.
|
||||
|
||||
|
||||
@@ -748,6 +748,17 @@ pub fn remove_json_null_values(value: &mut json::value::Value) {
|
||||
map.remove(key);
|
||||
}
|
||||
}
|
||||
json::value::Value::Array(ref mut arr) => {
|
||||
let mut i = 0;
|
||||
while i < arr.len() {
|
||||
if arr[i].is_null() {
|
||||
arr.remove(i);
|
||||
} else {
|
||||
remove_json_null_values(&mut arr[i]);
|
||||
i += 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// This file was generated automatically from 'src/mako/api/lib.rs.mako'
|
||||
// DO NOT EDIT !
|
||||
|
||||
//! This documentation was generated from *Cloud Tasks* crate version *1.0.8+20190326*, where *20190326* is the exact revision of the *cloudtasks:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.8*.
|
||||
//! This documentation was generated from *Cloud Tasks* crate version *1.0.9+20190618*, where *20190618* is the exact revision of the *cloudtasks:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.9*.
|
||||
//!
|
||||
//! Everything else about the *Cloud Tasks* *v2* API can be found at the
|
||||
//! [official documentation site](https://cloud.google.com/tasks/).
|
||||
@@ -223,9 +223,7 @@ use std::mem;
|
||||
use std::thread::sleep;
|
||||
use std::time::Duration;
|
||||
|
||||
pub use cmn::{MultiPartReader, ToParts, MethodInfo, Result, Error, CallBuilder, Hub, ReadSeek, Part,
|
||||
ResponseResult, RequestValue, NestedType, Delegate, DefaultDelegate, MethodsBuilder,
|
||||
Resource, ErrorResponse, remove_json_null_values};
|
||||
pub use cmn::*;
|
||||
|
||||
|
||||
// ##############
|
||||
@@ -338,7 +336,7 @@ impl<'a, C, A> CloudTasks<C, A>
|
||||
CloudTasks {
|
||||
client: RefCell::new(client),
|
||||
auth: RefCell::new(authenticator),
|
||||
_user_agent: "google-api-rust-client/1.0.8".to_string(),
|
||||
_user_agent: "google-api-rust-client/1.0.9".to_string(),
|
||||
_base_url: "https://cloudtasks.googleapis.com/".to_string(),
|
||||
_root_url: "https://cloudtasks.googleapis.com/".to_string(),
|
||||
}
|
||||
@@ -349,7 +347,7 @@ impl<'a, C, A> CloudTasks<C, A>
|
||||
}
|
||||
|
||||
/// Set the user-agent header field to use in all requests to the server.
|
||||
/// It defaults to `google-api-rust-client/1.0.8`.
|
||||
/// It defaults to `google-api-rust-client/1.0.9`.
|
||||
///
|
||||
/// Returns the previously set user-agent.
|
||||
pub fn user_agent(&mut self, agent_name: String) -> String {
|
||||
@@ -382,9 +380,6 @@ impl<'a, C, A> CloudTasks<C, A>
|
||||
/// The message defines the HTTP request that is sent to an App Engine app when
|
||||
/// the task is dispatched.
|
||||
///
|
||||
/// This proto can only be used for tasks in a queue which has
|
||||
/// app_engine_http_queue set.
|
||||
///
|
||||
/// Using AppEngineHttpRequest requires
|
||||
/// [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/access-control)
|
||||
/// Google IAM permission for the project
|
||||
@@ -430,13 +425,17 @@ impl<'a, C, A> CloudTasks<C, A>
|
||||
/// required`](https://cloud.google.com/appengine/docs/standard/python/config/appref)
|
||||
/// Task dispatches also do not follow redirects.
|
||||
///
|
||||
/// The task attempt has succeeded if the app's request handler returns
|
||||
/// an HTTP response code in the range [`200` - `299`]. `503` is
|
||||
/// considered an App Engine system error instead of an application
|
||||
/// error. Requests returning error `503` will be retried regardless of
|
||||
/// retry configuration and not counted against retry counts.
|
||||
/// Any other response code or a failure to receive a response before the
|
||||
/// deadline is a failed attempt.
|
||||
/// The task attempt has succeeded if the app's request handler returns an HTTP
|
||||
/// response code in the range [`200` - `299`]. The task attempt has failed if
|
||||
/// the app's handler returns a non-2xx response code or Cloud Tasks does
|
||||
/// not receive response before the deadline. Failed
|
||||
/// tasks will be retried according to the
|
||||
/// retry configuration. `503` (Service Unavailable) is
|
||||
/// considered an App Engine system error instead of an application error and
|
||||
/// will cause Cloud Tasks' traffic congestion control to temporarily throttle
|
||||
/// the queue's dispatches. Unlike other types of task targets, a `429` (Too Many
|
||||
/// Requests) response from an app handler does not cause traffic congestion
|
||||
/// control to throttle the queue.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
@@ -1090,56 +1089,11 @@ impl ResponseResult for Empty {}
|
||||
|
||||
/// The `Status` type defines a logical error model that is suitable for
|
||||
/// different programming environments, including REST APIs and RPC APIs. It is
|
||||
/// used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
||||
/// used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||
/// three pieces of data: error code, error message, and error details.
|
||||
///
|
||||
/// - Simple to use and understand for most users
|
||||
/// - Flexible enough to meet unexpected needs
|
||||
///
|
||||
/// # Overview
|
||||
///
|
||||
/// The `Status` message contains three pieces of data: error code, error
|
||||
/// message, and error details. The error code should be an enum value of
|
||||
/// google.rpc.Code, but it may accept additional error codes if needed. The
|
||||
/// error message should be a developer-facing English message that helps
|
||||
/// developers *understand* and *resolve* the error. If a localized user-facing
|
||||
/// error message is needed, put the localized message in the error details or
|
||||
/// localize it in the client. The optional error details may contain arbitrary
|
||||
/// information about the error. There is a predefined set of error detail types
|
||||
/// in the package `google.rpc` that can be used for common error conditions.
|
||||
///
|
||||
/// # Language mapping
|
||||
///
|
||||
/// The `Status` message is the logical representation of the error model, but it
|
||||
/// is not necessarily the actual wire format. When the `Status` message is
|
||||
/// exposed in different client libraries and different wire protocols, it can be
|
||||
/// mapped differently. For example, it will likely be mapped to some exceptions
|
||||
/// in Java, but more likely mapped to some error codes in C.
|
||||
///
|
||||
/// # Other uses
|
||||
///
|
||||
/// The error model and the `Status` message can be used in a variety of
|
||||
/// environments, either with or without APIs, to provide a
|
||||
/// consistent developer experience across different environments.
|
||||
///
|
||||
/// Example uses of this error model include:
|
||||
///
|
||||
/// - Partial errors. If a service needs to return partial errors to the client,
|
||||
/// it may embed the `Status` in the normal response to indicate the partial
|
||||
/// errors.
|
||||
///
|
||||
/// - Workflow errors. A typical workflow has multiple steps. Each step may
|
||||
/// have a `Status` message for error reporting.
|
||||
///
|
||||
/// - Batch operations. If a client uses batch request and batch response, the
|
||||
/// `Status` message should be used directly inside batch response, one for
|
||||
/// each error sub-response.
|
||||
///
|
||||
/// - Asynchronous operations. If an API call embeds asynchronous operation
|
||||
/// results in its response, the status of those operations should be
|
||||
/// represented directly using the `Status` message.
|
||||
///
|
||||
/// - Logging. If some API errors are stored in logs, the message `Status` could
|
||||
/// be used directly after any stripping needed for security/privacy reasons.
|
||||
/// You can find out more about this error model and how to work with it in the
|
||||
/// [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
@@ -1292,7 +1246,7 @@ pub struct Binding {
|
||||
/// For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
||||
pub role: Option<String>,
|
||||
/// The condition that is associated with this binding.
|
||||
/// NOTE: an unsatisfied condition will not allow user access via current
|
||||
/// NOTE: An unsatisfied condition will not allow user access via current
|
||||
/// binding. Different bindings, including their conditions, are examined
|
||||
/// independently.
|
||||
pub condition: Option<Expr>,
|
||||
@@ -1809,7 +1763,8 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
|
||||
/// WARNING: Resuming many high-QPS queues at the same time can
|
||||
/// lead to target overloading. If you are resuming high-QPS
|
||||
/// queues, follow the 500/50/5 pattern described in
|
||||
/// [Managing Cloud Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).
|
||||
/// [Managing Cloud Tasks Scaling
|
||||
/// Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).
|
||||
///
|
||||
/// # Arguments
|
||||
///
|
||||
@@ -1872,8 +1827,9 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
|
||||
/// WARNING: Using this method may have unintended side effects if you are
|
||||
/// using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
||||
/// Read
|
||||
/// [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml)
|
||||
/// before using this method.
|
||||
/// [Overview of Queue Management and
|
||||
/// queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
|
||||
/// this method.
|
||||
///
|
||||
/// # Arguments
|
||||
///
|
||||
@@ -1945,8 +1901,9 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
|
||||
/// WARNING: Using this method may have unintended side effects if you are
|
||||
/// using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
||||
/// Read
|
||||
/// [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml)
|
||||
/// before using this method.
|
||||
/// [Overview of Queue Management and
|
||||
/// queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
|
||||
/// this method.
|
||||
///
|
||||
/// # Arguments
|
||||
///
|
||||
@@ -1980,8 +1937,9 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
|
||||
/// WARNING: Using this method may have unintended side effects if you are
|
||||
/// using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
||||
/// Read
|
||||
/// [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml)
|
||||
/// before using this method.
|
||||
/// [Overview of Queue Management and
|
||||
/// queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
|
||||
/// this method.
|
||||
///
|
||||
/// # Arguments
|
||||
///
|
||||
@@ -2136,8 +2094,7 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
|
||||
///
|
||||
/// Tasks cannot be updated after creation; there is no UpdateTask command.
|
||||
///
|
||||
/// * For App Engine queues, the maximum task size is
|
||||
/// 100KB.
|
||||
/// * The maximum task size is 100KB.
|
||||
///
|
||||
/// # Arguments
|
||||
///
|
||||
@@ -3300,13 +3257,14 @@ impl<'a, C, A> ProjectLocationQueueTaskListCall<'a, C, A> where C: BorrowMut<hyp
|
||||
self._page_token = Some(new_value.to_string());
|
||||
self
|
||||
}
|
||||
/// Requested page size. Fewer tasks than requested might be returned.
|
||||
/// Maximum page size.
|
||||
///
|
||||
/// The maximum page size is 1000. If unspecified, the page size will
|
||||
/// be the maximum. Fewer tasks than requested might be returned,
|
||||
/// even if more tasks exist; use
|
||||
/// next_page_token in the
|
||||
/// response to determine if more tasks exist.
|
||||
/// Fewer tasks than requested might be returned, even if more tasks exist; use
|
||||
/// next_page_token in the response to
|
||||
/// determine if more tasks exist.
|
||||
///
|
||||
/// The maximum page size is 1000. If unspecified, the page size will be the
|
||||
/// maximum.
|
||||
///
|
||||
/// Sets the *page size* query property to the given value.
|
||||
pub fn page_size(mut self, new_value: i32) -> ProjectLocationQueueTaskListCall<'a, C, A> {
|
||||
@@ -3387,7 +3345,8 @@ impl<'a, C, A> ProjectLocationQueueTaskListCall<'a, C, A> where C: BorrowMut<hyp
|
||||
/// WARNING: Resuming many high-QPS queues at the same time can
|
||||
/// lead to target overloading. If you are resuming high-QPS
|
||||
/// queues, follow the 500/50/5 pattern described in
|
||||
/// [Managing Cloud Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).
|
||||
/// [Managing Cloud Tasks Scaling
|
||||
/// Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).
|
||||
///
|
||||
/// A builder for the *locations.queues.resume* method supported by a *project* resource.
|
||||
/// It is not used directly, but through a `ProjectMethods` instance.
|
||||
@@ -3971,8 +3930,9 @@ impl<'a, C, A> ProjectLocationQueueSetIamPolicyCall<'a, C, A> where C: BorrowMut
|
||||
/// WARNING: Using this method may have unintended side effects if you are
|
||||
/// using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
||||
/// Read
|
||||
/// [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml)
|
||||
/// before using this method.
|
||||
/// [Overview of Queue Management and
|
||||
/// queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
|
||||
/// this method.
|
||||
///
|
||||
/// A builder for the *locations.queues.patch* method supported by a *project* resource.
|
||||
/// It is not used directly, but through a `ProjectMethods` instance.
|
||||
@@ -4580,8 +4540,9 @@ impl<'a, C, A> ProjectLocationQueueGetIamPolicyCall<'a, C, A> where C: BorrowMut
|
||||
/// WARNING: Using this method may have unintended side effects if you are
|
||||
/// using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
||||
/// Read
|
||||
/// [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml)
|
||||
/// before using this method.
|
||||
/// [Overview of Queue Management and
|
||||
/// queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
|
||||
/// this method.
|
||||
///
|
||||
/// A builder for the *locations.queues.create* method supported by a *project* resource.
|
||||
/// It is not used directly, but through a `ProjectMethods` instance.
|
||||
@@ -4877,8 +4838,9 @@ impl<'a, C, A> ProjectLocationQueueCreateCall<'a, C, A> where C: BorrowMut<hyper
|
||||
/// WARNING: Using this method may have unintended side effects if you are
|
||||
/// using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
||||
/// Read
|
||||
/// [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml)
|
||||
/// before using this method.
|
||||
/// [Overview of Queue Management and
|
||||
/// queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
|
||||
/// this method.
|
||||
///
|
||||
/// A builder for the *locations.queues.delete* method supported by a *project* resource.
|
||||
/// It is not used directly, but through a `ProjectMethods` instance.
|
||||
@@ -5649,7 +5611,8 @@ impl<'a, C, A> ProjectLocationQueueListCall<'a, C, A> where C: BorrowMut<hyper::
|
||||
/// field can be used as a filter and several operators as supported.
|
||||
/// For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
|
||||
/// described in
|
||||
/// [Stackdriver's Advanced Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
|
||||
/// [Stackdriver's Advanced Logs
|
||||
/// Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
|
||||
///
|
||||
/// Sample filter "state: PAUSED".
|
||||
///
|
||||
@@ -6800,8 +6763,7 @@ impl<'a, C, A> ProjectLocationQueuePurgeCall<'a, C, A> where C: BorrowMut<hyper:
|
||||
///
|
||||
/// Tasks cannot be updated after creation; there is no UpdateTask command.
|
||||
///
|
||||
/// * For App Engine queues, the maximum task size is
|
||||
/// 100KB.
|
||||
/// * The maximum task size is 100KB.
|
||||
///
|
||||
/// A builder for the *locations.queues.tasks.create* method supported by a *project* resource.
|
||||
/// It is not used directly, but through a `ProjectMethods` instance.
|
||||
|
||||
Reference in New Issue
Block a user