Compute Engine v1 API - Class Licenses.LicensesBase (2.7.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

GoogleCloudGoogle.Cloud.ComputeV1

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
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
NameDescription
requestGetLicenseRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
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
NameDescription
requestGetIamPolicyLicenseRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
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
NameDescription
requestInsertLicenseRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
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
NameDescription
requestListLicensesRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
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
NameDescription
requestSetIamPolicyLicenseRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
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
NameDescription
requestTestIamPermissionsLicenseRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskTestPermissionsResponse

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