Reference documentation and code samples for the Cloud Tasks V2beta2 API class Google::Cloud::Tasks::V2beta2::RenewLeaseRequest.
Request message for renewing a lease using RenewLease.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#lease_duration
def lease_duration() -> ::Google::Protobuf::Duration
-
(::Google::Protobuf::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.
#lease_duration=
def lease_duration=(value) -> ::Google::Protobuf::Duration
-
value (::Google::Protobuf::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.
-
(::Google::Protobuf::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.
#name
def name() -> ::String
-
(::String) — Required. The task name. For example:
projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID
#name=
def name=(value) -> ::String
-
value (::String) — Required. The task name. For example:
projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID
-
(::String) — Required. The task name. For example:
projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID
#response_view
def response_view() -> ::Google::Cloud::Tasks::V2beta2::Task::View
-
(::Google::Cloud::Tasks::V2beta2::Task::View) — 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.
#response_view=
def response_view=(value) -> ::Google::Cloud::Tasks::V2beta2::Task::View
-
value (::Google::Cloud::Tasks::V2beta2::Task::View) — 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.
-
(::Google::Cloud::Tasks::V2beta2::Task::View) — 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.
#schedule_time
def schedule_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — 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.
#schedule_time=
def schedule_time=(value) -> ::Google::Protobuf::Timestamp
- value (::Google::Protobuf::Timestamp) — 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.
- (::Google::Protobuf::Timestamp) — 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.