Class: Google::Cloud::Tasks::V2beta2::RenewLeaseRequest
- Inherits:
-
Object
- Object
- Google::Cloud::Tasks::V2beta2::RenewLeaseRequest
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/tasks/v2beta2/cloudtasks.rb
Overview
Request message for renewing a lease using RenewLease.
Instance Attribute Summary collapse
-
#lease_duration ⇒ ::Google::Protobuf::Duration
Required.
-
#name ⇒ ::String
Required.
-
#response_view ⇒ ::Google::Cloud::Tasks::V2beta2::Task::View
The response_view specifies which subset of the Task will be returned.
-
#schedule_time ⇒ ::Google::Protobuf::Timestamp
Required.
Instance Attribute Details
#lease_duration ⇒ ::Google::Protobuf::Duration
Returns 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.
542 543 544 545 |
# File 'proto_docs/google/cloud/tasks/v2beta2/cloudtasks.rb', line 542 class RenewLeaseRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#name ⇒ ::String
Returns Required. The task name. For example:
projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID
.
542 543 544 545 |
# File 'proto_docs/google/cloud/tasks/v2beta2/cloudtasks.rb', line 542 class RenewLeaseRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#response_view ⇒ ::Google::Cloud::Tasks::V2beta2::Task::View
Returns 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.
542 543 544 545 |
# File 'proto_docs/google/cloud/tasks/v2beta2/cloudtasks.rb', line 542 class RenewLeaseRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#schedule_time ⇒ ::Google::Protobuf::Timestamp
Returns 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.
542 543 544 545 |
# File 'proto_docs/google/cloud/tasks/v2beta2/cloudtasks.rb', line 542 class RenewLeaseRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |