![JAR search and dependency download from the Maven repository](/logo.png)
target.apidocs.com.google.api.services.compute.Compute.Licenses.html Maven / Gradle / Ivy
Compute.Licenses (Compute Engine API beta-rev20220726-2.0.0)
com.google.api.services.compute
Class Compute.Licenses
- java.lang.Object
-
- com.google.api.services.compute.Compute.Licenses
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Compute.Licenses.Delete
class
Compute.Licenses.Get
class
Compute.Licenses.GetIamPolicy
class
Compute.Licenses.Insert
class
Compute.Licenses.List
class
Compute.Licenses.SetIamPolicy
class
Compute.Licenses.TestIamPermissions
-
Constructor Summary
Constructors
Constructor and Description
Licenses()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Compute.Licenses.Delete
delete(String project,
String license)
Deletes the specified license.
Compute.Licenses.Get
get(String project,
String license)
Returns the specified License resource.
Compute.Licenses.GetIamPolicy
getIamPolicy(String project,
String resource)
Gets the access control policy for a resource.
Compute.Licenses.Insert
insert(String project,
License content)
Create a License resource in the specified project.
Compute.Licenses.List
list(String project)
Retrieves the list of licenses available in the specified project.
Compute.Licenses.SetIamPolicy
setIamPolicy(String project,
String resource,
GlobalSetPolicyRequest content)
Sets the access control policy on the specified resource.
Compute.Licenses.TestIamPermissions
testIamPermissions(String project,
String resource,
TestPermissionsRequest content)
Returns permissions that a caller has on the specified resource.
-
-
Method Detail
-
delete
public Compute.Licenses.Delete delete(String project,
String license)
throws IOException
Deletes the specified license. *Caution* This resource is intended for use only by third-party
partners who are creating Cloud Marketplace images.
Create a request for the method "licenses.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.
license
- Name of the license resource to delete.
- Returns:
- the request
- Throws:
IOException
-
get
public Compute.Licenses.Get get(String project,
String license)
throws IOException
Returns the specified License resource. *Caution* This resource is intended for use only by
third-party partners who are creating Cloud Marketplace images.
Create a request for the method "licenses.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.
license
- Name of the License resource to return.
- Returns:
- the request
- Throws:
IOException
-
getIamPolicy
public Compute.Licenses.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.
*Caution* This resource is intended for use only by third-party partners who are creating Cloud
Marketplace images.
Create a request for the method "licenses.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.Licenses.Insert insert(String project,
License content)
throws IOException
Create a License resource in the specified project. *Caution* This resource is intended for use
only by third-party partners who are creating Cloud Marketplace images.
Create a request for the method "licenses.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 License
- Returns:
- the request
- Throws:
IOException
-
list
public Compute.Licenses.List list(String project)
throws IOException
Retrieves the list of licenses available in the specified project. This method does not get any
licenses that belong to other projects, including licenses attached to publicly-available images,
like Debian 9. If you want to get a list of publicly-available licenses, use this method to make
a request to the respective image project, such as debian-cloud or windows-cloud. *Caution* This
resource is intended for use only by third-party partners who are creating Cloud Marketplace
images.
Create a request for the method "licenses.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.Licenses.SetIamPolicy setIamPolicy(String project,
String resource,
GlobalSetPolicyRequest content)
throws IOException
Sets the access control policy on the specified resource. Replaces any existing policy. *Caution*
This resource is intended for use only by third-party partners who are creating Cloud Marketplace
images.
Create a request for the method "licenses.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.Licenses.TestIamPermissions testIamPermissions(String project,
String resource,
TestPermissionsRequest content)
throws IOException
Returns permissions that a caller has on the specified resource. *Caution* This resource is
intended for use only by third-party partners who are creating Cloud Marketplace images.
Create a request for the method "licenses.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