regenerate all crates with updated patch level

This commit is contained in:
Sebastian Thiel
2020-04-12 18:58:21 +08:00
parent aacc30f08d
commit d302542d8d
1372 changed files with 345452 additions and 163522 deletions

View File

@@ -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.12+20190618*, where *20190618* is the exact revision of the *cloudtasks:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*.
//! This documentation was generated from *Cloud Tasks* crate version *1.0.13+20200331*, where *20200331* is the exact revision of the *cloudtasks:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.13*.
//!
//! Everything else about the *Cloud Tasks* *v2* API can be found at the
//! [official documentation site](https://cloud.google.com/tasks/).
@@ -336,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.12".to_string(),
_user_agent: "google-api-rust-client/1.0.13".to_string(),
_base_url: "https://cloudtasks.googleapis.com/".to_string(),
_root_url: "https://cloudtasks.googleapis.com/".to_string(),
}
@@ -347,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.12`.
/// It defaults to `google-api-rust-client/1.0.13`.
///
/// Returns the previously set user-agent.
pub fn user_agent(&mut self, agent_name: String) -> String {
@@ -375,6 +375,110 @@ impl<'a, C, A> CloudTasks<C, A>
// ############
// SCHEMAS ###
// ##########
/// HTTP request.
///
/// The task will be pushed to the worker as an HTTP request. If the worker
/// or the redirected worker acknowledges the task by returning a successful HTTP
/// response code ([`200` - `299`]), the task will be removed from the queue. If
/// any other HTTP response code is returned or no response is received, the
/// task will be retried according to the following:
///
/// * User-specified throttling: retry configuration,
/// rate limits, and the queue's state.
///
/// * System throttling: To prevent the worker from overloading, Cloud Tasks may
/// temporarily reduce the queue's effective rate. User-specified settings
/// will not be changed.
///
/// System throttling happens because:
///
/// * Cloud Tasks backs off on all errors. Normally the backoff specified in
/// rate limits will be used. But if the worker returns
/// `429` (Too Many Requests), `503` (Service Unavailable), or the rate of
/// errors is high, Cloud Tasks will use a higher backoff rate. The retry
/// specified in the `Retry-After` HTTP response header is considered.
///
/// * To prevent traffic spikes and to smooth sudden increases in traffic,
/// dispatches ramp up slowly when the queue is newly created or idle and
/// if large numbers of tasks suddenly become available to dispatch (due to
/// spikes in create task rates, the queue being unpaused, or many tasks
/// that are scheduled at the same time).
///
/// This type is not used in any activity, and only used as *part* of another schema.
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct HttpRequest {
/// HTTP request body.
///
/// A request body is allowed only if the
/// HTTP method is POST, PUT, or PATCH. It is an
/// error to set body on a task with an incompatible HttpMethod.
pub body: Option<String>,
/// HTTP request headers.
///
/// This map contains the header field names and values.
/// Headers can be set when the
/// task is created.
///
/// These headers represent a subset of the headers that will accompany the
/// task's HTTP request. Some HTTP request headers will be ignored or replaced.
///
/// A partial list of headers that will be ignored or replaced is:
///
/// * Host: This will be computed by Cloud Tasks and derived from
/// HttpRequest.url.
/// * Content-Length: This will be computed by Cloud Tasks.
/// * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
/// * X-Google-*: Google use only.
/// * X-AppEngine-*: Google use only.
///
/// `Content-Type` won't be set by Cloud Tasks. You can explicitly set
/// `Content-Type` to a media type when the
/// task is created.
/// For example, `Content-Type` can be set to `"application/octet-stream"` or
/// `"application/json"`.
///
/// Headers which can have multiple values (according to RFC2616) can be
/// specified using comma-separated values.
///
/// The size of the headers must be less than 80KB.
pub headers: Option<HashMap<String, String>>,
/// The HTTP method to use for the request. The default is POST.
#[serde(rename="httpMethod")]
pub http_method: Option<String>,
/// Required. The full url path that the request will be sent to.
///
/// This string must begin with either "http://" or "https://". Some examples
/// are: `http://acme.com` and `https://acme.com/sales:8080`. Cloud Tasks will
/// encode some characters for safety and compatibility. The maximum allowed
/// URL length is 2083 characters after encoding.
///
/// The `Location` header response from a redirect response [`300` - `399`]
/// may be followed. The redirect is not counted as a separate attempt.
pub url: Option<String>,
/// If specified, an
/// [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
/// token will be generated and attached as an `Authorization` header in the
/// HTTP request.
///
/// This type of authorization can be used for many scenarios, including
/// calling Cloud Run, or endpoints where you intend to validate the token
/// yourself.
#[serde(rename="oidcToken")]
pub oidc_token: Option<OidcToken>,
/// If specified, an
/// [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
/// will be generated and attached as an `Authorization` header in the HTTP
/// request.
///
/// This type of authorization should generally only be used when calling
/// Google APIs hosted on *.googleapis.com.
#[serde(rename="oauthToken")]
pub oauth_token: Option<OAuthToken>,
}
impl Part for HttpRequest {}
/// App Engine HTTP request.
///
/// The message defines the HTTP request that is sent to an App Engine app when
@@ -403,11 +507,10 @@ impl<'a, C, A> CloudTasks<C, A>
/// The AppEngineRouting used to construct the URL that the task is
/// delivered to can be set at the queue-level or task-level:
///
/// * If set,
/// app_engine_routing_override
/// is used for all tasks in the queue, no matter what the setting
/// is for the
/// task-level app_engine_routing.
/// * If app_engine_routing_override is set on the
/// queue, this value is used for all
/// tasks in the queue, no matter what the setting is for the task-level
/// app_engine_routing.
///
///
/// The `url` that the task will be sent to is:
@@ -481,7 +584,7 @@ pub struct AppEngineHttpRequest {
/// In addition, Cloud Tasks sets some headers when the task is dispatched,
/// such as headers containing information about the task; see
/// [request
/// headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers).
/// headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
/// These headers are set only when the task is dispatched, so they are not
/// visible when the task is returned in a Cloud Tasks response.
///
@@ -491,10 +594,10 @@ pub struct AppEngineHttpRequest {
pub headers: Option<HashMap<String, String>>,
/// Task-level setting for App Engine routing.
///
/// If set,
/// app_engine_routing_override
/// is used for all tasks in the queue, no matter what the setting is for the
/// task-level app_engine_routing.
/// * If app_engine_routing_override is set on the
/// queue, this value is used for all
/// tasks in the queue, no matter what the setting is for the task-level
/// app_engine_routing.
#[serde(rename="appEngineRouting")]
pub app_engine_routing: Option<AppEngineRouting>,
/// The relative URI.
@@ -533,7 +636,11 @@ impl Part for AppEngineHttpRequest {}
/// * [locations queues get iam policy projects](struct.ProjectLocationQueueGetIamPolicyCall.html) (request)
///
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct GetIamPolicyRequest { _never_set: Option<bool> }
pub struct GetIamPolicyRequest {
/// OPTIONAL: A `GetPolicyOptions` object for specifying options to
/// `GetIamPolicy`. This field is only used by Cloud IAM.
pub options: Option<GetPolicyOptions>,
}
impl RequestValue for GetIamPolicyRequest {}
@@ -606,30 +713,59 @@ pub struct PauseQueueRequest { _never_set: Option<bool> }
impl RequestValue for PauseQueueRequest {}
/// Represents an expression text. Example:
/// Represents a textual expression in the Common Expression Language (CEL)
/// syntax. CEL is a C-like expression language. The syntax and semantics of CEL
/// are documented at https://github.com/google/cel-spec.
///
/// Example (Comparison):
///
/// ````text
/// title: "User account presence"
/// description: "Determines whether the request has a user account"
/// expression: "size(request.user) > 0"
/// title: "Summary size limit"
/// description: "Determines if a summary is less than 100 chars"
/// expression: "document.summary.size() < 100"
/// ````
///
/// Example (Equality):
///
/// ````text
/// title: "Requestor is owner"
/// description: "Determines if requestor is the document owner"
/// expression: "document.owner == request.auth.claims.email"
/// ````
///
/// Example (Logic):
///
/// ````text
/// title: "Public documents"
/// description: "Determine whether the document should be publicly visible"
/// expression: "document.type != 'private' && document.type != 'internal'"
/// ````
///
/// Example (Data Manipulation):
///
/// ````text
/// title: "Notification string"
/// description: "Create a notification string with a timestamp."
/// expression: "'New message received at ' + string(document.create_time)"
/// ````
///
/// The exact variables and functions that may be referenced within an expression
/// are determined by the service that evaluates it. See the service
/// documentation for additional information.
///
/// This type is not used in any activity, and only used as *part* of another schema.
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct Expr {
/// An optional description of the expression. This is a longer text which
/// Optional. Description of the expression. This is a longer text which
/// describes the expression, e.g. when hovered over it in a UI.
pub description: Option<String>,
/// Textual representation of an expression in
/// Common Expression Language syntax.
///
/// The application context of the containing message determines which
/// well-known feature set of CEL is supported.
/// Textual representation of an expression in Common Expression Language
/// syntax.
pub expression: Option<String>,
/// An optional string indicating the location of the expression for error
/// Optional. String indicating the location of the expression for error
/// reporting, e.g. a file name and a position in the file.
pub location: Option<String>,
/// An optional title for the expression, i.e. a short string describing
/// Optional. Title for the expression, i.e. a short string describing
/// its purpose. This can be used e.g. in UIs which allow to enter the
/// expression.
pub title: Option<String>,
@@ -724,6 +860,11 @@ pub struct Queue {
/// * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
/// hyphens (-). The maximum length is 100 characters.
pub name: Option<String>,
/// Configuration options for writing logs to
/// [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this
/// field is unset, then no logs are written.
#[serde(rename="stackdriverLoggingConfig")]
pub stackdriver_logging_config: Option<StackdriverLoggingConfig>,
/// Rate limits for task dispatches.
///
/// rate_limits and retry_config are
@@ -754,6 +895,7 @@ pub struct Queue {
/// task-level app_engine_routing.
/// These settings apply only to
/// App Engine tasks in this queue.
/// Http tasks are not affected.
///
/// If set, `app_engine_routing_override` is used for all
/// App Engine tasks in the queue, no matter what the
@@ -779,37 +921,50 @@ impl RequestValue for Queue {}
impl ResponseResult for Queue {}
/// Defines an Identity and Access Management (IAM) policy. It is used to
/// specify access control policies for Cloud Platform resources.
/// An Identity and Access Management (IAM) policy, which specifies access
/// controls for Google Cloud resources.
///
/// A `Policy` consists of a list of `bindings`. A `binding` binds a list of
/// `members` to a `role`, where the members can be user accounts, Google groups,
/// Google domains, and service accounts. A `role` is a named list of permissions
/// defined by IAM.
/// A `Policy` is a collection of `bindings`. A `binding` binds one or more
/// `members` to a single `role`. Members can be user accounts, service accounts,
/// Google groups, and domains (such as G Suite). A `role` is a named list of
/// permissions; each `role` can be an IAM predefined role or a user-created
/// custom role.
///
/// **JSON Example**
/// Optionally, a `binding` can specify a `condition`, which is a logical
/// expression that allows access to a resource only if the expression evaluates
/// to `true`. A condition can add constraints based on attributes of the
/// request, the resource, or both.
///
/// **JSON example:**
///
/// ````text
/// {
/// "bindings": [
/// {
/// "role": "roles/owner",
/// "role": "roles/resourcemanager.organizationAdmin",
/// "members": [
/// "user:mike@example.com",
/// "group:admins@example.com",
/// "domain:google.com",
/// "serviceAccount:my-other-app@appspot.gserviceaccount.com"
/// "serviceAccount:my-project-id@appspot.gserviceaccount.com"
/// ]
/// },
/// {
/// "role": "roles/viewer",
/// "members": ["user:sean@example.com"]
/// "role": "roles/resourcemanager.organizationViewer",
/// "members": ["user:eve@example.com"],
/// "condition": {
/// "title": "expirable access",
/// "description": "Does not grant access after Sep 2020",
/// "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')",
/// }
/// }
/// ]
/// ],
/// "etag": "BwWWja0YfJA=",
/// "version": 3
/// }
/// ````
///
/// **YAML Example**
/// **YAML example:**
///
/// ````text
/// bindings:
@@ -817,15 +972,21 @@ impl ResponseResult for Queue {}
/// - user:mike@example.com
/// - group:admins@example.com
/// - domain:google.com
/// - serviceAccount:my-other-app@appspot.gserviceaccount.com
/// role: roles/owner
/// - serviceAccount:my-project-id@appspot.gserviceaccount.com
/// role: roles/resourcemanager.organizationAdmin
/// - members:
/// - user:sean@example.com
/// role: roles/viewer
/// - user:eve@example.com
/// role: roles/resourcemanager.organizationViewer
/// condition:
/// title: expirable access
/// description: Does not grant access after Sep 2020
/// expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
/// - etag: BwWWja0YfJA=
/// - version: 3
/// ````
///
/// For a description of IAM and its features, see the
/// [IAM developer's guide](https://cloud.google.com/iam/docs).
/// [IAM documentation](https://cloud.google.com/iam/docs/).
///
/// # Activities
///
@@ -836,8 +997,9 @@ impl ResponseResult for Queue {}
/// * [locations queues get iam policy projects](struct.ProjectLocationQueueGetIamPolicyCall.html) (response)
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct Policy {
/// Associates a list of `members` to a `role`.
/// `bindings` with no members will result in an error.
/// Associates a list of `members` to a `role`. Optionally, may specify a
/// `condition` that determines how and when the `bindings` are applied. Each
/// of the `bindings` must contain at least one member.
pub bindings: Option<Vec<Binding>>,
/// `etag` is used for optimistic concurrency control as a way to help
/// prevent simultaneous updates of a policy from overwriting each other.
@@ -847,10 +1009,32 @@ pub struct Policy {
/// systems are expected to put that etag in the request to `setIamPolicy` to
/// ensure that their change will be applied to the same version of the policy.
///
/// If no `etag` is provided in the call to `setIamPolicy`, then the existing
/// policy is overwritten blindly.
/// **Important:** If you use IAM Conditions, you must include the `etag` field
/// whenever you call `setIamPolicy`. If you omit this field, then IAM allows
/// you to overwrite a version `3` policy with a version `1` policy, and all of
/// the conditions in the version `3` policy are lost.
pub etag: Option<String>,
/// Deprecated.
/// Specifies the format of the policy.
///
/// Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
/// are rejected.
///
/// Any operation that affects conditional role bindings must specify version
/// `3`. This requirement applies to the following operations:
///
/// * Getting a policy that includes a conditional role binding
/// * Adding a conditional role binding to a policy
/// * Changing a conditional role binding in a policy
/// * Removing any role binding, with or without a condition, from a policy
/// that includes conditions
///
/// **Important:** If you use IAM Conditions, you must include the `etag` field
/// whenever you call `setIamPolicy`. If you omit this field, then IAM allows
/// you to overwrite a version `3` policy with a version `1` policy, and all of
/// the conditions in the version `3` policy are lost.
///
/// If a policy does not include any conditions, operations on that policy may
/// specify any valid version or leave the field unset.
pub version: Option<i32>,
}
@@ -870,6 +1054,11 @@ impl ResponseResult for Policy {}
///
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct Task {
/// HTTP request that is sent to the worker.
///
/// An HTTP task is a task that has HttpRequest set.
#[serde(rename="httpRequest")]
pub http_request: Option<HttpRequest>,
/// HTTP request that is sent to the App Engine app handler.
///
/// An App Engine task is a task that has AppEngineHttpRequest set.
@@ -905,9 +1094,7 @@ pub struct Task {
/// * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
/// hyphens (-), or underscores (_). The maximum length is 500 characters.
pub name: Option<String>,
/// The time when the task is scheduled to be attempted.
///
/// For App Engine queues, this is when the task will be attempted or retried.
/// The time when the task is scheduled to be attempted or retried.
///
/// `schedule_time` will be truncated to the nearest microsecond.
#[serde(rename="scheduleTime")]
@@ -924,6 +1111,8 @@ pub struct Task {
///
/// The default and maximum values depend on the type of request:
///
/// * For HTTP tasks, the default is 10 minutes. The deadline
/// must be in the interval [15 seconds, 30 minutes].
///
/// * For App Engine tasks, 0 indicates that the
/// request has the default deadline. The default deadline depends on the
@@ -1186,7 +1375,7 @@ pub struct RateLimits {
/// value of
/// max_dispatches_per_second.
///
/// For App Engine queues that were created or updated using
/// For queues that were created or updated using
/// `queue.yaml/xml`, `max_burst_size` is equal to
/// [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size).
/// Since `max_burst_size` is output only, if
@@ -1205,8 +1394,7 @@ pub struct RateLimits {
/// If unspecified when the queue is created, Cloud Tasks will pick the
/// default.
///
/// * For App Engine queues, the maximum allowed value
/// is 500.
/// * The maximum allowed value is 500.
///
///
/// This field has the same meaning as
@@ -1219,25 +1407,30 @@ pub struct RateLimits {
impl Part for RateLimits {}
/// Request message for `SetIamPolicy` method.
/// Contains information needed for generating an
/// [OpenID Connect
/// token](https://developers.google.com/identity/protocols/OpenIDConnect).
/// This type of authorization can be used for many scenarios, including
/// calling Cloud Run, or endpoints where you intend to validate the token
/// yourself.
///
/// # Activities
///
/// This type is used in activities, which are methods you may call on this type or where this type is involved in.
/// The list links the activity name, along with information about where it is used (one of *request* and *response*).
///
/// * [locations queues set iam policy projects](struct.ProjectLocationQueueSetIamPolicyCall.html) (request)
/// This type is not used in any activity, and only used as *part* of another schema.
///
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct SetIamPolicyRequest {
/// REQUIRED: The complete policy to be applied to the `resource`. The size of
/// the policy is limited to a few 10s of KB. An empty policy is a
/// valid policy but certain Cloud Platform services (such as Projects)
/// might reject them.
pub policy: Option<Policy>,
pub struct OidcToken {
/// Audience to be used when generating OIDC token. If not specified, the URI
/// specified in target will be used.
pub audience: Option<String>,
/// [Service account email](https://cloud.google.com/iam/docs/service-accounts)
/// to be used for generating OIDC token.
/// The service account must be within the same project as the queue. The
/// caller must have iam.serviceAccounts.actAs permission for the service
/// account.
#[serde(rename="serviceAccountEmail")]
pub service_account_email: Option<String>,
}
impl RequestValue for SetIamPolicyRequest {}
impl Part for OidcToken {}
/// Associates `members` with a `role`.
@@ -1264,7 +1457,7 @@ pub struct Binding {
/// who is authenticated with a Google account or a service account.
///
/// * `user:{emailid}`: An email address that represents a specific Google
/// account. For example, `alice@gmail.com` .
/// account. For example, `alice@example.com` .
///
///
/// * `serviceAccount:{emailid}`: An email address that represents a service
@@ -1273,6 +1466,26 @@ pub struct Binding {
/// * `group:{emailid}`: An email address that represents a Google group.
/// For example, `admins@example.com`.
///
/// * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
/// identifier) representing a user that has been recently deleted. For
/// example, `alice@example.com?uid=123456789012345678901`. If the user is
/// recovered, this value reverts to `user:{emailid}` and the recovered user
/// retains the role in the binding.
///
/// * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
/// unique identifier) representing a service account that has been recently
/// deleted. For example,
/// `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
/// If the service account is undeleted, this value reverts to
/// `serviceAccount:{emailid}` and the undeleted service account retains the
/// role in the binding.
///
/// * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
/// identifier) representing a Google group that has been recently
/// deleted. For example, `admins@example.com?uid=123456789012345678901`. If
/// the group is recovered, this value reverts to `group:{emailid}` and the
/// recovered group retains the role in the binding.
///
///
/// * `domain:{domain}`: The G Suite domain (primary) that represents all the
/// users of that domain. For example, `google.com` or `example.com`.
@@ -1284,6 +1497,70 @@ pub struct Binding {
impl Part for Binding {}
/// Contains information needed for generating an
/// [OAuth token](https://developers.google.com/identity/protocols/OAuth2).
/// This type of authorization should generally only be used when calling Google
/// APIs hosted on *.googleapis.com.
///
/// This type is not used in any activity, and only used as *part* of another schema.
///
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct OAuthToken {
/// OAuth scope to be used for generating OAuth access token.
/// If not specified, "https://www.googleapis.com/auth/cloud-platform"
/// will be used.
pub scope: Option<String>,
/// [Service account email](https://cloud.google.com/iam/docs/service-accounts)
/// to be used for generating OAuth token.
/// The service account must be within the same project as the queue. The
/// caller must have iam.serviceAccounts.actAs permission for the service
/// account.
#[serde(rename="serviceAccountEmail")]
pub service_account_email: Option<String>,
}
impl Part for OAuthToken {}
/// Configuration options for writing logs to
/// [Stackdriver Logging](https://cloud.google.com/logging/docs/).
///
/// This type is not used in any activity, and only used as *part* of another schema.
///
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct StackdriverLoggingConfig {
/// Specifies the fraction of operations to write to
/// [Stackdriver Logging](https://cloud.google.com/logging/docs/).
/// This field may contain any value between 0.0 and 1.0, inclusive.
/// 0.0 is the default and means that no operations are logged.
#[serde(rename="samplingRatio")]
pub sampling_ratio: Option<f64>,
}
impl Part for StackdriverLoggingConfig {}
/// Encapsulates settings provided to GetIamPolicy.
///
/// This type is not used in any activity, and only used as *part* of another schema.
///
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct GetPolicyOptions {
/// Optional. The policy format version to be returned.
///
/// Valid values are 0, 1, and 3. Requests specifying an invalid value will be
/// rejected.
///
/// Requests for policies with any conditional bindings must specify version 3.
/// Policies without any conditional bindings may specify any valid value or
/// leave the field unset.
#[serde(rename="requestedPolicyVersion")]
pub requested_policy_version: Option<i32>,
}
impl Part for GetPolicyOptions {}
/// Request message for CreateTask.
///
/// # Activities
@@ -1309,9 +1586,7 @@ pub struct CreateTaskRequest {
/// permission on the Task resource.
#[serde(rename="responseView")]
pub response_view: Option<String>,
/// Required.
///
/// The task to add.
/// Required. The task to add.
///
/// Task names have the following format:
/// `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
@@ -1365,6 +1640,27 @@ pub struct ResumeQueueRequest { _never_set: Option<bool> }
impl RequestValue for ResumeQueueRequest {}
/// Request message for `SetIamPolicy` method.
///
/// # Activities
///
/// This type is used in activities, which are methods you may call on this type or where this type is involved in.
/// The list links the activity name, along with information about where it is used (one of *request* and *response*).
///
/// * [locations queues set iam policy projects](struct.ProjectLocationQueueSetIamPolicyCall.html) (request)
///
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct SetIamPolicyRequest {
/// REQUIRED: The complete policy to be applied to the `resource`. The size of
/// the policy is limited to a few 10s of KB. An empty policy is a
/// valid policy but certain Cloud Platform services (such as Projects)
/// might reject them.
pub policy: Option<Policy>,
}
impl RequestValue for SetIamPolicyRequest {}
/// Response message for ListQueues.
///
/// # Activities
@@ -1409,6 +1705,13 @@ impl ResponseResult for ListQueuesResponse {}
/// and [App Engine Flex request
/// routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
///
/// Using AppEngineRouting requires
/// [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/access-control)
/// Google IAM permission for the project
/// and the following scope:
///
/// `https://www.googleapis.com/auth/cloud-platform`
///
/// This type is not used in any activity, and only used as *part* of another schema.
///
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
@@ -1663,8 +1966,7 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
/// # Arguments
///
/// * `request` - No description provided.
/// * `name` - Required.
/// The task name. For example:
/// * `name` - Required. The task name. For example:
/// `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
pub fn locations_queues_tasks_run(&self, request: RunTaskRequest, name: &str) -> ProjectLocationQueueTaskRunCall<'a, C, A> {
ProjectLocationQueueTaskRunCall {
@@ -1690,8 +1992,7 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
/// # Arguments
///
/// * `request` - No description provided.
/// * `name` - Required.
/// The queue name. For example:
/// * `name` - Required. The queue name. For example:
/// `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
pub fn locations_queues_pause(&self, request: PauseQueueRequest, name: &str) -> ProjectLocationQueuePauseCall<'a, C, A> {
ProjectLocationQueuePauseCall {
@@ -1710,8 +2011,7 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
///
/// # Arguments
///
/// * `name` - Required.
/// The task name. For example:
/// * `name` - Required. The task name. For example:
/// `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
pub fn locations_queues_tasks_get(&self, name: &str) -> ProjectLocationQueueTaskGetCall<'a, C, A> {
ProjectLocationQueueTaskGetCall {
@@ -1738,8 +2038,7 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
///
/// # Arguments
///
/// * `parent` - Required.
/// The queue name. For example:
/// * `parent` - Required. The queue name. For example:
/// `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
pub fn locations_queues_tasks_list(&self, parent: &str) -> ProjectLocationQueueTaskListCall<'a, C, A> {
ProjectLocationQueueTaskListCall {
@@ -1773,8 +2072,7 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
/// # Arguments
///
/// * `request` - No description provided.
/// * `name` - Required.
/// The queue name. For example:
/// * `name` - Required. The queue name. For example:
/// `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
pub fn locations_queues_resume(&self, request: ResumeQueueRequest, name: &str) -> ProjectLocationQueueResumeCall<'a, C, A> {
ProjectLocationQueueResumeCall {
@@ -1912,8 +2210,7 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
/// # Arguments
///
/// * `request` - No description provided.
/// * `parent` - Required.
/// The location name in which the queue will be created.
/// * `parent` - Required. The location name in which the queue will be created.
/// For example: `projects/PROJECT_ID/locations/LOCATION_ID`
/// The list of allowed locations can be obtained by calling Cloud
/// Tasks' implementation of
@@ -1947,8 +2244,7 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
///
/// # Arguments
///
/// * `name` - Required.
/// The queue name. For example:
/// * `name` - Required. The queue name. For example:
/// `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
pub fn locations_queues_delete(&self, name: &str) -> ProjectLocationQueueDeleteCall<'a, C, A> {
ProjectLocationQueueDeleteCall {
@@ -1988,8 +2284,7 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
///
/// # Arguments
///
/// * `parent` - Required.
/// The location name.
/// * `parent` - Required. The location name.
/// For example: `projects/PROJECT_ID/locations/LOCATION_ID`
pub fn locations_queues_list(&self, parent: &str) -> ProjectLocationQueueListCall<'a, C, A> {
ProjectLocationQueueListCall {
@@ -2053,8 +2348,7 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
///
/// # Arguments
///
/// * `name` - Required.
/// The resource name of the queue. For example:
/// * `name` - Required. The resource name of the queue. For example:
/// `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
pub fn locations_queues_get(&self, name: &str) -> ProjectLocationQueueGetCall<'a, C, A> {
ProjectLocationQueueGetCall {
@@ -2078,8 +2372,7 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
/// # Arguments
///
/// * `request` - No description provided.
/// * `name` - Required.
/// The queue name. For example:
/// * `name` - Required. The queue name. For example:
/// `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
pub fn locations_queues_purge(&self, request: PurgeQueueRequest, name: &str) -> ProjectLocationQueuePurgeCall<'a, C, A> {
ProjectLocationQueuePurgeCall {
@@ -2103,8 +2396,7 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
/// # Arguments
///
/// * `request` - No description provided.
/// * `parent` - Required.
/// The queue name. For example:
/// * `parent` - Required. The queue name. For example:
/// `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
/// The queue must already exist.
pub fn locations_queues_tasks_create(&self, request: CreateTaskRequest, parent: &str) -> ProjectLocationQueueTaskCreateCall<'a, C, A> {
@@ -2128,8 +2420,7 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
///
/// # Arguments
///
/// * `name` - Required.
/// The task name. For example:
/// * `name` - Required. The task name. For example:
/// `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
pub fn locations_queues_tasks_delete(&self, name: &str) -> ProjectLocationQueueTaskDeleteCall<'a, C, A> {
ProjectLocationQueueTaskDeleteCall {
@@ -2379,9 +2670,7 @@ impl<'a, C, A> ProjectLocationQueueTaskRunCall<'a, C, A> where C: BorrowMut<hype
self._request = new_value;
self
}
/// Required.
///
/// The task name. For example:
/// Required. The task name. For example:
/// `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
///
/// Sets the *name* path property to the given value.
@@ -2667,9 +2956,7 @@ impl<'a, C, A> ProjectLocationQueuePauseCall<'a, C, A> where C: BorrowMut<hyper:
self._request = new_value;
self
}
/// Required.
///
/// The queue name. For example:
/// Required. The queue name. For example:
/// `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
///
/// Sets the *name* path property to the given value.
@@ -2923,9 +3210,7 @@ impl<'a, C, A> ProjectLocationQueueTaskGetCall<'a, C, A> where C: BorrowMut<hype
}
/// Required.
///
/// The task name. For example:
/// Required. The task name. For example:
/// `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
///
/// Sets the *name* path property to the given value.
@@ -3215,9 +3500,7 @@ impl<'a, C, A> ProjectLocationQueueTaskListCall<'a, C, A> where C: BorrowMut<hyp
}
/// Required.
///
/// The queue name. For example:
/// Required. The queue name. For example:
/// `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
///
/// Sets the *parent* path property to the given value.
@@ -3556,9 +3839,7 @@ impl<'a, C, A> ProjectLocationQueueResumeCall<'a, C, A> where C: BorrowMut<hyper
self._request = new_value;
self
}
/// Required.
///
/// The queue name. For example:
/// Required. The queue name. For example:
/// `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
///
/// Sets the *name* path property to the given value.
@@ -4752,9 +5033,7 @@ impl<'a, C, A> ProjectLocationQueueCreateCall<'a, C, A> where C: BorrowMut<hyper
self._request = new_value;
self
}
/// Required.
///
/// The location name in which the queue will be created.
/// Required. The location name in which the queue will be created.
/// For example: `projects/PROJECT_ID/locations/LOCATION_ID`
///
/// The list of allowed locations can be obtained by calling Cloud
@@ -5019,9 +5298,7 @@ impl<'a, C, A> ProjectLocationQueueDeleteCall<'a, C, A> where C: BorrowMut<hyper
}
/// Required.
///
/// The queue name. For example:
/// Required. The queue name. For example:
/// `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
///
/// Sets the *name* path property to the given value.
@@ -5571,9 +5848,7 @@ impl<'a, C, A> ProjectLocationQueueListCall<'a, C, A> where C: BorrowMut<hyper::
}
/// Required.
///
/// The location name.
/// Required. The location name.
/// For example: `projects/PROJECT_ID/locations/LOCATION_ID`
///
/// Sets the *parent* path property to the given value.
@@ -6400,9 +6675,7 @@ impl<'a, C, A> ProjectLocationQueueGetCall<'a, C, A> where C: BorrowMut<hyper::C
}
/// Required.
///
/// The resource name of the queue. For example:
/// Required. The resource name of the queue. For example:
/// `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
///
/// Sets the *name* path property to the given value.
@@ -6687,9 +6960,7 @@ impl<'a, C, A> ProjectLocationQueuePurgeCall<'a, C, A> where C: BorrowMut<hyper:
self._request = new_value;
self
}
/// Required.
///
/// The queue name. For example:
/// Required. The queue name. For example:
/// `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
///
/// Sets the *name* path property to the given value.
@@ -6973,9 +7244,7 @@ impl<'a, C, A> ProjectLocationQueueTaskCreateCall<'a, C, A> where C: BorrowMut<h
self._request = new_value;
self
}
/// Required.
///
/// The queue name. For example:
/// Required. The queue name. For example:
/// `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
///
/// The queue must already exist.
@@ -7230,9 +7499,7 @@ impl<'a, C, A> ProjectLocationQueueTaskDeleteCall<'a, C, A> where C: BorrowMut<h
}
/// Required.
///
/// The task name. For example:
/// Required. The task name. For example:
/// `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
///
/// Sets the *name* path property to the given value.