Struct google_cloudtasks2_beta2::RenewLeaseRequest[][src]

pub struct RenewLeaseRequest {
    pub schedule_time: Option<String>,
    pub response_view: Option<String>,
    pub lease_duration: Option<String>,
}

Request message for renewing a lease using RenewLease.

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).

Fields

Required.

The task's current schedule time, available in the schedule_time returned by LeaseTasks response or RenewLease response. This restriction is to ensure that your worker currently holds the lease.

The response_view specifies which subset of the Task will be returned.

By default response_view is BASIC; not all information is retrieved by default because some data, such as payloads, might be desirable to return only when needed because of its large size or because of the sensitivity of data that it contains.

Authorization for FULL requires cloudtasks.tasks.fullView Google IAM permission on the Task resource.

Required.

The desired new lease duration, starting from now.

The maximum lease duration is 1 week. lease_duration will be truncated to the nearest second.

Trait Implementations

impl Default for RenewLeaseRequest
[src]

Returns the "default value" for a type. Read more

impl Clone for RenewLeaseRequest
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for RenewLeaseRequest
[src]

Formats the value using the given formatter. Read more

impl RequestValue for RenewLeaseRequest
[src]

Auto Trait Implementations