Class Licenses.LicensesBase (2.1.0)

[BindServiceMethod(typeof(Licenses), "BindService")]
public abstract class LicensesBase

Base class for server-side implementations of Licenses

Inheritance

Object > Licenses.LicensesBase

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Methods

Delete(DeleteLicenseRequest, ServerCallContext)

public virtual Task<Operation> Delete(DeleteLicenseRequest request, ServerCallContext context)

Deletes the specified license. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.

Parameters
NameDescription
requestDeleteLicenseRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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

Get(GetLicenseRequest, ServerCallContext)

public virtual Task<License> Get(GetLicenseRequest request, ServerCallContext context)

Returns the specified License resource. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.

Parameters
NameDescription
requestGetLicenseRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<License>

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

GetIamPolicy(GetIamPolicyLicenseRequest, ServerCallContext)

public virtual Task<Policy> GetIamPolicy(GetIamPolicyLicenseRequest request, ServerCallContext context)

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.

Parameters
NameDescription
requestGetIamPolicyLicenseRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Policy>

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

Insert(InsertLicenseRequest, ServerCallContext)

public virtual Task<Operation> Insert(InsertLicenseRequest request, ServerCallContext context)

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.

Parameters
NameDescription
requestInsertLicenseRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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

List(ListLicensesRequest, ServerCallContext)

public virtual Task<LicensesListResponse> List(ListLicensesRequest request, ServerCallContext context)

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.

Parameters
NameDescription
requestListLicensesRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<LicensesListResponse>

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

SetIamPolicy(SetIamPolicyLicenseRequest, ServerCallContext)

public virtual Task<Policy> SetIamPolicy(SetIamPolicyLicenseRequest request, ServerCallContext context)

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.

Parameters
NameDescription
requestSetIamPolicyLicenseRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Policy>

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

TestIamPermissions(TestIamPermissionsLicenseRequest, ServerCallContext)

public virtual Task<TestPermissionsResponse> TestIamPermissions(TestIamPermissionsLicenseRequest 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
requestTestIamPermissionsLicenseRequest

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).