Compute Engine v1 API - Class Licenses.LicensesBase (3.2.0)

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

Reference documentation and code samples for the Compute Engine v1 API class Licenses.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
Name Description
request DeleteLicenseRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskOperation

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
Name Description
request GetLicenseRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskLicense

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
Name Description
request GetIamPolicyLicenseRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskPolicy

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
Name Description
request InsertLicenseRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskOperation

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
Name Description
request ListLicensesRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskLicensesListResponse

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
Name Description
request SetIamPolicyLicenseRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskPolicy

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
Name Description
request TestIamPermissionsLicenseRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskTestPermissionsResponse

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