Compute Engine v1 API - Class LicensesClientImpl (2.14.0)

public sealed class LicensesClientImpl : LicensesClient

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

Licenses client wrapper implementation, for convenient use.

Inheritance

object > LicensesClient > LicensesClientImpl

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The Licenses API.

Constructors

LicensesClientImpl(LicensesClient, LicensesSettings, ILogger)

public LicensesClientImpl(Licenses.LicensesClient grpcClient, LicensesSettings settings, ILogger logger)

Constructs a client wrapper for the Licenses service, with the specified gRPC client and settings.

Parameters
NameDescription
grpcClientLicensesLicensesClient

The underlying gRPC client.

settingsLicensesSettings

The base LicensesSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

DeleteOperationsClient

public override OperationsClient DeleteOperationsClient { get; }

The long-running operations client for Delete.

Property Value
TypeDescription
OperationsClient
Overrides

GrpcClient

public override Licenses.LicensesClient GrpcClient { get; }

The underlying gRPC Licenses client

Property Value
TypeDescription
LicensesLicensesClient
Overrides

InsertOperationsClient

public override OperationsClient InsertOperationsClient { get; }

The long-running operations client for Insert.

Property Value
TypeDescription
OperationsClient
Overrides

Methods

Delete(DeleteLicenseRequest, CallSettings)

public override Operation<Operation, Operation> Delete(DeleteLicenseRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Overrides

DeleteAsync(DeleteLicenseRequest, CallSettings)

public override Task<Operation<Operation, Operation>> DeleteAsync(DeleteLicenseRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

Get(GetLicenseRequest, CallSettings)

public override License Get(GetLicenseRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
License

The RPC response.

Overrides

GetAsync(GetLicenseRequest, CallSettings)

public override Task<License> GetAsync(GetLicenseRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskLicense

A Task containing the RPC response.

Overrides

GetIamPolicy(GetIamPolicyLicenseRequest, CallSettings)

public override Policy GetIamPolicy(GetIamPolicyLicenseRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Policy

The RPC response.

Overrides

GetIamPolicyAsync(GetIamPolicyLicenseRequest, CallSettings)

public override Task<Policy> GetIamPolicyAsync(GetIamPolicyLicenseRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Overrides

Insert(InsertLicenseRequest, CallSettings)

public override Operation<Operation, Operation> Insert(InsertLicenseRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Overrides

InsertAsync(InsertLicenseRequest, CallSettings)

public override Task<Operation<Operation, Operation>> InsertAsync(InsertLicenseRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

List(ListLicensesRequest, CallSettings)

public override PagedEnumerable<LicensesListResponse, License> List(ListLicensesRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableLicensesListResponseLicense

A pageable sequence of License resources.

Overrides

ListAsync(ListLicensesRequest, CallSettings)

public override PagedAsyncEnumerable<LicensesListResponse, License> ListAsync(ListLicensesRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableLicensesListResponseLicense

A pageable asynchronous sequence of License resources.

Overrides

SetIamPolicy(SetIamPolicyLicenseRequest, CallSettings)

public override Policy SetIamPolicy(SetIamPolicyLicenseRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Policy

The RPC response.

Overrides

SetIamPolicyAsync(SetIamPolicyLicenseRequest, CallSettings)

public override Task<Policy> SetIamPolicyAsync(SetIamPolicyLicenseRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Overrides

TestIamPermissions(TestIamPermissionsLicenseRequest, CallSettings)

public override TestPermissionsResponse TestIamPermissions(TestIamPermissionsLicenseRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TestPermissionsResponse

The RPC response.

Overrides

TestIamPermissionsAsync(TestIamPermissionsLicenseRequest, CallSettings)

public override Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsLicenseRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskTestPermissionsResponse

A Task containing the RPC response.

Overrides