target.apidocs.com.google.api.services.osconfig.v1.OSConfig.Projects.PatchJobs.html Maven / Gradle / Ivy
The newest version!
OSConfig.Projects.PatchJobs (OS Config API v1-rev20240901-2.0.0)
com.google.api.services.osconfig.v1
Class OSConfig.Projects.PatchJobs
- java.lang.Object
-
- com.google.api.services.osconfig.v1.OSConfig.Projects.PatchJobs
-
- Enclosing class:
- OSConfig.Projects
public class OSConfig.Projects.PatchJobs
extends Object
The "patchJobs" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
OSConfig.Projects.PatchJobs.Cancel
class
OSConfig.Projects.PatchJobs.Execute
class
OSConfig.Projects.PatchJobs.Get
class
OSConfig.Projects.PatchJobs.InstanceDetails
The "instanceDetails" collection of methods.
class
OSConfig.Projects.PatchJobs.List
-
Constructor Summary
Constructors
Constructor and Description
PatchJobs()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
OSConfig.Projects.PatchJobs.Cancel
cancel(String name,
CancelPatchJobRequest content)
Cancel a patch job.
OSConfig.Projects.PatchJobs.Execute
execute(String parent,
ExecutePatchJobRequest content)
Patch VM instances by creating and running a patch job.
OSConfig.Projects.PatchJobs.Get
get(String name)
Get the patch job.
OSConfig.Projects.PatchJobs.InstanceDetails
instanceDetails()
An accessor for creating requests from the InstanceDetails collection.
OSConfig.Projects.PatchJobs.List
list(String parent)
Get a list of patch jobs.
-
-
Method Detail
-
cancel
public OSConfig.Projects.PatchJobs.Cancel cancel(String name,
CancelPatchJobRequest content)
throws IOException
Cancel a patch job. The patch job must be active. Canceled patch jobs cannot be restarted.
Create a request for the method "patchJobs.cancel".
This request holds the parameters needed by the osconfig server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. Name of the patch in the form `projects/patchJobs`
content
- the CancelPatchJobRequest
- Returns:
- the request
- Throws:
IOException
-
execute
public OSConfig.Projects.PatchJobs.Execute execute(String parent,
ExecutePatchJobRequest content)
throws IOException
Patch VM instances by creating and running a patch job.
Create a request for the method "patchJobs.execute".
This request holds the parameters needed by the osconfig server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
parent
- Required. The project in which to run this patch in the form `projects`
content
- the ExecutePatchJobRequest
- Returns:
- the request
- Throws:
IOException
-
get
public OSConfig.Projects.PatchJobs.Get get(String name)
throws IOException
Get the patch job. This can be used to track the progress of an ongoing patch job or review the
details of completed jobs.
Create a request for the method "patchJobs.get".
This request holds the parameters needed by the osconfig server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. Name of the patch in the form `projects/patchJobs`
- Returns:
- the request
- Throws:
IOException
-
list
public OSConfig.Projects.PatchJobs.List list(String parent)
throws IOException
Get a list of patch jobs.
Create a request for the method "patchJobs.list".
This request holds the parameters needed by the osconfig server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
parent
- Required. In the form of `projects`
- Returns:
- the request
- Throws:
IOException
-
instanceDetails
public OSConfig.Projects.PatchJobs.InstanceDetails instanceDetails()
An accessor for creating requests from the InstanceDetails collection.
The typical use is:
OSConfig osconfig = new OSConfig(...);
OSConfig.InstanceDetails.List request = osconfig.instanceDetails().list(parameters ...)
- Returns:
- the resource collection
Copyright © 2011–2024 Google. All rights reserved.