[BindServiceMethod(typeof(Licenses), "BindService")]
public abstract class Licenses.LicensesBaseReference documentation and code samples for the Compute Engine v1 API class Licenses.LicensesBase.
Base class for server-side implementations of Licenses
Namespace
Google.Cloud.Compute.V1Assembly
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 |
DeleteLicenseRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
GetLicenseRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
GetIamPolicyLicenseRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
InsertLicenseRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
ListLicensesRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
SetIamPolicyLicenseRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
TestIamPermissionsLicenseRequestThe request received from the client. |
context |
ServerCallContextThe 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). |
Update(UpdateLicenseRequest, ServerCallContext)
public virtual Task<Operation> Update(UpdateLicenseRequest request, ServerCallContext context)Updates 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 |
UpdateLicenseRequestThe request received from the client. |
context |
ServerCallContextThe 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). |