class ProjectsPatchJobs extends Resource (View source)

The "patchJobs" collection of methods.

Typical usage is:

 $osconfigService = new Google\Service\OSConfig(...);
 $patchJobs = $osconfigService->projects_patchJobs;

Methods

cancel(string $name, CancelPatchJobRequest $postBody, array $optParams = [])

Cancel a patch job. The patch job must be active. Canceled patch jobs cannot be restarted. (patchJobs.cancel)

execute(string $parent, ExecutePatchJobRequest $postBody, array $optParams = [])

Patch VM instances by creating and running a patch job. (patchJobs.execute)

get(string $name, array $optParams = [])

Get the patch job. This can be used to track the progress of an ongoing patch job or review the details of completed jobs. (patchJobs.get)

listProjectsPatchJobs(string $parent, array $optParams = [])

Get a list of patch jobs. (patchJobs.listProjectsPatchJobs)

Details

PatchJob cancel(string $name, CancelPatchJobRequest $postBody, array $optParams = [])

Cancel a patch job. The patch job must be active. Canceled patch jobs cannot be restarted. (patchJobs.cancel)

Parameters

string $name

Required. Name of the patch in the form projects/patchJobs

CancelPatchJobRequest $postBody
array $optParams

Optional parameters.

Return Value

PatchJob

Exceptions

Exception

PatchJob execute(string $parent, ExecutePatchJobRequest $postBody, array $optParams = [])

Patch VM instances by creating and running a patch job. (patchJobs.execute)

Parameters

string $parent

Required. The project in which to run this patch in the form projects

ExecutePatchJobRequest $postBody
array $optParams

Optional parameters.

Return Value

PatchJob

Exceptions

Exception

PatchJob get(string $name, array $optParams = [])

Get the patch job. This can be used to track the progress of an ongoing patch job or review the details of completed jobs. (patchJobs.get)

Parameters

string $name

Required. Name of the patch in the form projects/patchJobs

array $optParams

Optional parameters.

Return Value

PatchJob

Exceptions

Exception

ListPatchJobsResponse listProjectsPatchJobs(string $parent, array $optParams = [])

Get a list of patch jobs. (patchJobs.listProjectsPatchJobs)

Parameters

string $parent

Required. In the form of projects

array $optParams

Optional parameters.

Return Value

ListPatchJobsResponse

Exceptions

Exception