target.apidocs.com.google.api.services.compute.Compute.InstanceTemplates.html Maven / Gradle / Ivy
Compute.InstanceTemplates (Compute Engine API alpha-rev20200526-1.30.9)
com.google.api.services.compute
Class Compute.InstanceTemplates
- java.lang.Object
-
- com.google.api.services.compute.Compute.InstanceTemplates
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Compute.InstanceTemplates.Delete
class
Compute.InstanceTemplates.Get
class
Compute.InstanceTemplates.GetIamPolicy
class
Compute.InstanceTemplates.Insert
class
Compute.InstanceTemplates.List
class
Compute.InstanceTemplates.SetIamPolicy
class
Compute.InstanceTemplates.TestIamPermissions
-
Constructor Summary
Constructors
Constructor and Description
InstanceTemplates()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Compute.InstanceTemplates.Delete
delete(String project,
String instanceTemplate)
Deletes the specified instance template.
Compute.InstanceTemplates.Get
get(String project,
String instanceTemplate)
Returns the specified instance template.
Compute.InstanceTemplates.GetIamPolicy
getIamPolicy(String project,
String resource)
Gets the access control policy for a resource.
Compute.InstanceTemplates.Insert
insert(String project,
InstanceTemplate content)
Creates an instance template in the specified project using the data that is included in the
request.
Compute.InstanceTemplates.List
list(String project)
Retrieves a list of instance templates that are contained within the specified project.
Compute.InstanceTemplates.SetIamPolicy
setIamPolicy(String project,
String resource,
GlobalSetPolicyRequest content)
Sets the access control policy on the specified resource.
Compute.InstanceTemplates.TestIamPermissions
testIamPermissions(String project,
String resource,
TestPermissionsRequest content)
Returns permissions that a caller has on the specified resource.
-
-
Method Detail
-
delete
public Compute.InstanceTemplates.Delete delete(String project,
String instanceTemplate)
throws IOException
Deletes the specified instance template. Deleting an instance template is permanent and cannot be
undone. It is not possible to delete templates that are already in use by a managed instance
group.
Create a request for the method "instanceTemplates.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.
instanceTemplate
- The name of the instance template to delete.
- Returns:
- the request
- Throws:
IOException
-
get
public Compute.InstanceTemplates.Get get(String project,
String instanceTemplate)
throws IOException
Returns the specified instance template. Gets a list of available instance templates by making a
list() request.
Create a request for the method "instanceTemplates.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.
instanceTemplate
- The name of the instance template.
- Returns:
- the request
- Throws:
IOException
-
getIamPolicy
public Compute.InstanceTemplates.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 "instanceTemplates.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.InstanceTemplates.Insert insert(String project,
InstanceTemplate content)
throws IOException
Creates an instance template in the specified project using the data that is included in the
request. If you are creating a new template to update an existing instance group, your new
instance template must use the same network or, if applicable, the same subnetwork as the
original template.
Create a request for the method "instanceTemplates.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 InstanceTemplate
- Returns:
- the request
- Throws:
IOException
-
list
public Compute.InstanceTemplates.List list(String project)
throws IOException
Retrieves a list of instance templates that are contained within the specified project.
Create a request for the method "instanceTemplates.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.InstanceTemplates.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 "instanceTemplates.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.InstanceTemplates.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 "instanceTemplates.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–2020 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy