![JAR search and dependency download from the Maven repository](/logo.png)
target.apidocs.com.google.api.services.compute.Compute.MachineImages.html Maven / Gradle / Ivy
Compute.MachineImages (Compute Engine API beta-rev20220726-2.0.0)
com.google.api.services.compute
Class Compute.MachineImages
- java.lang.Object
-
- com.google.api.services.compute.Compute.MachineImages
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Compute.MachineImages.Delete
class
Compute.MachineImages.Get
class
Compute.MachineImages.GetIamPolicy
class
Compute.MachineImages.Insert
class
Compute.MachineImages.List
class
Compute.MachineImages.SetIamPolicy
class
Compute.MachineImages.TestIamPermissions
-
Constructor Summary
Constructors
Constructor and Description
MachineImages()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Compute.MachineImages.Delete
delete(String project,
String machineImage)
Deletes the specified machine image.
Compute.MachineImages.Get
get(String project,
String machineImage)
Returns the specified machine image.
Compute.MachineImages.GetIamPolicy
getIamPolicy(String project,
String resource)
Gets the access control policy for a resource.
Compute.MachineImages.Insert
insert(String project,
MachineImage content)
Creates a machine image in the specified project using the data that is included in the request.
Compute.MachineImages.List
list(String project)
Retrieves a list of machine images that are contained within the specified project.
Compute.MachineImages.SetIamPolicy
setIamPolicy(String project,
String resource,
GlobalSetPolicyRequest content)
Sets the access control policy on the specified resource.
Compute.MachineImages.TestIamPermissions
testIamPermissions(String project,
String resource,
TestPermissionsRequest content)
Returns permissions that a caller has on the specified resource.
-
-
Method Detail
-
delete
public Compute.MachineImages.Delete delete(String project,
String machineImage)
throws IOException
Deletes the specified machine image. Deleting a machine image is permanent and cannot be undone.
Create a request for the method "machineImages.delete".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
machineImage
- The name of the machine image to delete.
- Returns:
- the request
- Throws:
IOException
-
get
public Compute.MachineImages.Get get(String project,
String machineImage)
throws IOException
Returns the specified machine image. Gets a list of available machine images by making a list()
request.
Create a request for the method "machineImages.get".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
machineImage
- The name of the machine image.
- Returns:
- the request
- Throws:
IOException
-
getIamPolicy
public Compute.MachineImages.GetIamPolicy getIamPolicy(String project,
String resource)
throws IOException
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
Create a request for the method "machineImages.getIamPolicy".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
resource
- Name or id of the resource for this request.
- Returns:
- the request
- Throws:
IOException
-
insert
public Compute.MachineImages.Insert insert(String project,
MachineImage content)
throws IOException
Creates a machine image in the specified project using the data that is included in the request.
If you are creating a new machine image to update an existing instance, your new machine image
should use the same network or, if applicable, the same subnetwork as the original instance.
Create a request for the method "machineImages.insert".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
content
- the MachineImage
- Returns:
- the request
- Throws:
IOException
-
list
public Compute.MachineImages.List list(String project)
throws IOException
Retrieves a list of machine images that are contained within the specified project.
Create a request for the method "machineImages.list".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
- Returns:
- the request
- Throws:
IOException
-
setIamPolicy
public Compute.MachineImages.SetIamPolicy setIamPolicy(String project,
String resource,
GlobalSetPolicyRequest content)
throws IOException
Sets the access control policy on the specified resource. Replaces any existing policy.
Create a request for the method "machineImages.setIamPolicy".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
resource
- Name or id of the resource for this request.
content
- the GlobalSetPolicyRequest
- Returns:
- the request
- Throws:
IOException
-
testIamPermissions
public Compute.MachineImages.TestIamPermissions testIamPermissions(String project,
String resource,
TestPermissionsRequest content)
throws IOException
Returns permissions that a caller has on the specified resource.
Create a request for the method "machineImages.testIamPermissions".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
resource
- Name or id of the resource for this request.
content
- the TestPermissionsRequest
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2022 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy