Class CloudSchedulerConnection (2.30.0)

This interface defines virtual methods for each of the user-facing overload sets in CloudSchedulerClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type CloudSchedulerClient.

To create a concrete instance, see MakeCloudSchedulerConnection().

For mocking, see scheduler_v1_mocks::MockCloudSchedulerConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ListJobs(google::cloud::scheduler::v1::ListJobsRequest)

Parameter
Name Description
request google::cloud::scheduler::v1::ListJobsRequest
Returns
Type Description
StreamRange< google::cloud::scheduler::v1::Job >

virtual GetJob(google::cloud::scheduler::v1::GetJobRequest const &)

Parameter
Name Description
request google::cloud::scheduler::v1::GetJobRequest const &
Returns
Type Description
StatusOr< google::cloud::scheduler::v1::Job >

virtual CreateJob(google::cloud::scheduler::v1::CreateJobRequest const &)

Parameter
Name Description
request google::cloud::scheduler::v1::CreateJobRequest const &
Returns
Type Description
StatusOr< google::cloud::scheduler::v1::Job >

virtual UpdateJob(google::cloud::scheduler::v1::UpdateJobRequest const &)

Parameter
Name Description
request google::cloud::scheduler::v1::UpdateJobRequest const &
Returns
Type Description
StatusOr< google::cloud::scheduler::v1::Job >

virtual DeleteJob(google::cloud::scheduler::v1::DeleteJobRequest const &)

Parameter
Name Description
request google::cloud::scheduler::v1::DeleteJobRequest const &
Returns
Type Description
Status

virtual PauseJob(google::cloud::scheduler::v1::PauseJobRequest const &)

Parameter
Name Description
request google::cloud::scheduler::v1::PauseJobRequest const &
Returns
Type Description
StatusOr< google::cloud::scheduler::v1::Job >

virtual ResumeJob(google::cloud::scheduler::v1::ResumeJobRequest const &)

Parameter
Name Description
request google::cloud::scheduler::v1::ResumeJobRequest const &
Returns
Type Description
StatusOr< google::cloud::scheduler::v1::Job >

virtual RunJob(google::cloud::scheduler::v1::RunJobRequest const &)

Parameter
Name Description
request google::cloud::scheduler::v1::RunJobRequest const &
Returns
Type Description
StatusOr< google::cloud::scheduler::v1::Job >