Compute Engine v1 API - Class LicenseCodes.LicenseCodesBase (2.5.0)

[BindServiceMethod(typeof(LicenseCodes), "BindService")]
public abstract class LicenseCodesBase

Reference documentation and code samples for the Compute Engine v1 API class LicenseCodes.LicenseCodesBase.

Base class for server-side implementations of LicenseCodes

Inheritance

Object > LicenseCodes.LicenseCodesBase

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Methods

Get(GetLicenseCodeRequest, ServerCallContext)

public virtual Task<LicenseCode> Get(GetLicenseCodeRequest request, ServerCallContext context)

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.

Parameters
NameDescription
requestGetLicenseCodeRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<LicenseCode>

The response to send back to the client (wrapped by a task).

TestIamPermissions(TestIamPermissionsLicenseCodeRequest, ServerCallContext)

public virtual Task<TestPermissionsResponse> TestIamPermissions(TestIamPermissionsLicenseCodeRequest request, ServerCallContext context)

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.

Parameters
NameDescription
requestTestIamPermissionsLicenseCodeRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<TestPermissionsResponse>

The response to send back to the client (wrapped by a task).