class LicenseCodes extends Resource (View source)

The "licenseCodes" collection of methods.

Typical usage is:

 $computeService = new Google\Service\Compute(...);
 $licenseCodes = $computeService->licenseCodes;

Methods

get(string $project, string $licenseCode, array $optParams = [])

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. (licenseCodes.get)

testIamPermissions(string $project, string $resource, TestPermissionsRequest $postBody, array $optParams = [])

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. (licenseCodes.testIamPermissions)

Details

LicenseCode get(string $project, string $licenseCode, array $optParams = [])

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. (licenseCodes.get)

Parameters

string $project

Project ID for this request.

string $licenseCode

Number corresponding to the License code resource to return.

array $optParams

Optional parameters.

Return Value

LicenseCode

Exceptions

Exception

TestPermissionsResponse testIamPermissions(string $project, string $resource, TestPermissionsRequest $postBody, array $optParams = [])

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. (licenseCodes.testIamPermissions)

Parameters

string $project

Project ID for this request.

string $resource

Name or id of the resource for this request.

TestPermissionsRequest $postBody
array $optParams

Optional parameters.

Return Value

TestPermissionsResponse

Exceptions

Exception