
target.apidocs.com.google.api.services.compute.Compute.LicenseCodes.html Maven / Gradle / Ivy
Compute.LicenseCodes (Compute Engine API alpha-rev20200526-1.30.9)
com.google.api.services.compute
Class Compute.LicenseCodes
- java.lang.Object
-
- com.google.api.services.compute.Compute.LicenseCodes
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Compute.LicenseCodes.Get
class
Compute.LicenseCodes.GetIamPolicy
class
Compute.LicenseCodes.SetIamPolicy
class
Compute.LicenseCodes.TestIamPermissions
-
Constructor Summary
Constructors
Constructor and Description
LicenseCodes()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Compute.LicenseCodes.Get
get(String project,
String licenseCode)
Return a specified license code.
Compute.LicenseCodes.GetIamPolicy
getIamPolicy(String project,
String resource)
Gets the access control policy for a resource.
Compute.LicenseCodes.SetIamPolicy
setIamPolicy(String project,
String resource,
GlobalSetPolicyRequest content)
Sets the access control policy on the specified resource.
Compute.LicenseCodes.TestIamPermissions
testIamPermissions(String project,
String resource,
TestPermissionsRequest content)
Returns permissions that a caller has on the specified resource.
-
-
Method Detail
-
get
public Compute.LicenseCodes.Get get(String project,
String licenseCode)
throws IOException
Return a specified license code. License codes are mirrored across all projects that have
permissions to read the License Code. Caution This resource is intended for use only by third-
party partners who are creating Cloud Marketplace images.
Create a request for the method "licenseCodes.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.
licenseCode
- Number corresponding to the License code resource to return.
- Returns:
- the request
- Throws:
IOException
-
getIamPolicy
public Compute.LicenseCodes.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 "licenseCodes.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
-
setIamPolicy
public Compute.LicenseCodes.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 "licenseCodes.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.LicenseCodes.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 "licenseCodes.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