Struct gapi_grpc::google::cloud::tasks::v2beta2::RenewLeaseRequest[][src]

pub struct RenewLeaseRequest {
    pub name: String,
    pub schedule_time: Option<Timestamp>,
    pub lease_duration: Option<Duration>,
    pub response_view: i32,
}

Request message for renewing a lease using [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease].

Fields

name: String

Required. The task name. For example: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID

schedule_time: Option<Timestamp>

Required. The task’s current schedule time, available in the [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is to ensure that your worker currently holds the lease.

lease_duration: Option<Duration>

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.

response_view: i32

The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be returned.

By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.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][google.cloud.tasks.v2beta2.Task.View.FULL] requires cloudtasks.tasks.fullView Google IAM permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.

Implementations

impl RenewLeaseRequest[src]

pub fn response_view(&self) -> View[src]

Returns the enum value of response_view, or the default if the field is set to an invalid enum value.

pub fn set_response_view(&mut self, value: View)[src]

Sets response_view to the provided enum value.

Trait Implementations

impl Clone for RenewLeaseRequest[src]

impl Debug for RenewLeaseRequest[src]

impl Default for RenewLeaseRequest[src]

impl Message for RenewLeaseRequest[src]

impl PartialEq<RenewLeaseRequest> for RenewLeaseRequest[src]

impl StructuralPartialEq for RenewLeaseRequest[src]

Auto Trait Implementations

impl RefUnwindSafe for RenewLeaseRequest

impl Send for RenewLeaseRequest

impl Sync for RenewLeaseRequest

impl Unpin for RenewLeaseRequest

impl UnwindSafe for RenewLeaseRequest

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]