Reference documentation and code samples for the Cloud Tasks V2beta3 API class Google::Cloud::Tasks::V2beta3::CloudTasks::Rest::ServiceStub.
REST service stub for the CloudTasks service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Inherits
- Object
Methods
#create_queue
def create_queue(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Tasks::V2beta3::Queue
Baseline implementation for the create_queue REST call
- request_pb (::Google::Cloud::Tasks::V2beta3::CreateQueueRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Tasks::V2beta3::Queue)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Tasks::V2beta3::Queue) — A result object deserialized from the server's reply
- (::ArgumentError)
#create_task
def create_task(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Tasks::V2beta3::Task
Baseline implementation for the create_task REST call
- request_pb (::Google::Cloud::Tasks::V2beta3::CreateTaskRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Tasks::V2beta3::Task)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Tasks::V2beta3::Task) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_queue
def delete_queue(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the delete_queue REST call
- request_pb (::Google::Cloud::Tasks::V2beta3::DeleteQueueRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_task
def delete_task(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the delete_task REST call
- request_pb (::Google::Cloud::Tasks::V2beta3::DeleteTaskRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::ArgumentError)
#endpoint
def endpoint() -> String
The effective endpoint
- (String)
#get_iam_policy
def get_iam_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Iam::V1::Policy
Baseline implementation for the get_iam_policy REST call
- request_pb (::Google::Iam::V1::GetIamPolicyRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Iam::V1::Policy)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Iam::V1::Policy) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_queue
def get_queue(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Tasks::V2beta3::Queue
Baseline implementation for the get_queue REST call
- request_pb (::Google::Cloud::Tasks::V2beta3::GetQueueRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Tasks::V2beta3::Queue)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Tasks::V2beta3::Queue) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_task
def get_task(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Tasks::V2beta3::Task
Baseline implementation for the get_task REST call
- request_pb (::Google::Cloud::Tasks::V2beta3::GetTaskRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Tasks::V2beta3::Task)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Tasks::V2beta3::Task) — A result object deserialized from the server's reply
- (::ArgumentError)
#initialize
def initialize(endpoint:, endpoint_template:, universe_domain:, credentials:) -> ServiceStub
- (ServiceStub) — a new instance of ServiceStub
#list_queues
def list_queues(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Tasks::V2beta3::ListQueuesResponse
Baseline implementation for the list_queues REST call
- request_pb (::Google::Cloud::Tasks::V2beta3::ListQueuesRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Tasks::V2beta3::ListQueuesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Tasks::V2beta3::ListQueuesResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_tasks
def list_tasks(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Tasks::V2beta3::ListTasksResponse
Baseline implementation for the list_tasks REST call
- request_pb (::Google::Cloud::Tasks::V2beta3::ListTasksRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Tasks::V2beta3::ListTasksResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Tasks::V2beta3::ListTasksResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#pause_queue
def pause_queue(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Tasks::V2beta3::Queue
Baseline implementation for the pause_queue REST call
- request_pb (::Google::Cloud::Tasks::V2beta3::PauseQueueRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Tasks::V2beta3::Queue)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Tasks::V2beta3::Queue) — A result object deserialized from the server's reply
- (::ArgumentError)
#purge_queue
def purge_queue(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Tasks::V2beta3::Queue
Baseline implementation for the purge_queue REST call
- request_pb (::Google::Cloud::Tasks::V2beta3::PurgeQueueRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Tasks::V2beta3::Queue)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Tasks::V2beta3::Queue) — A result object deserialized from the server's reply
- (::ArgumentError)
#resume_queue
def resume_queue(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Tasks::V2beta3::Queue
Baseline implementation for the resume_queue REST call
- request_pb (::Google::Cloud::Tasks::V2beta3::ResumeQueueRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Tasks::V2beta3::Queue)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Tasks::V2beta3::Queue) — A result object deserialized from the server's reply
- (::ArgumentError)
#run_task
def run_task(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Tasks::V2beta3::Task
Baseline implementation for the run_task REST call
- request_pb (::Google::Cloud::Tasks::V2beta3::RunTaskRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Tasks::V2beta3::Task)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Tasks::V2beta3::Task) — A result object deserialized from the server's reply
- (::ArgumentError)
#set_iam_policy
def set_iam_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Iam::V1::Policy
Baseline implementation for the set_iam_policy REST call
- request_pb (::Google::Iam::V1::SetIamPolicyRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Iam::V1::Policy)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Iam::V1::Policy) — A result object deserialized from the server's reply
- (::ArgumentError)
#test_iam_permissions
def test_iam_permissions(request_pb, options = nil) { |result, operation| ... } -> ::Google::Iam::V1::TestIamPermissionsResponse
Baseline implementation for the test_iam_permissions REST call
- request_pb (::Google::Iam::V1::TestIamPermissionsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Iam::V1::TestIamPermissionsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Iam::V1::TestIamPermissionsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#universe_domain
def universe_domain() -> String
The effective universe domain
- (String)
#update_queue
def update_queue(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Tasks::V2beta3::Queue
Baseline implementation for the update_queue REST call
- request_pb (::Google::Cloud::Tasks::V2beta3::UpdateQueueRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Tasks::V2beta3::Queue)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Tasks::V2beta3::Queue) — A result object deserialized from the server's reply
- (::ArgumentError)