Compute Engine v1 API - Class LicenseCodesClientImpl (2.3.0)

public sealed class LicenseCodesClientImpl : LicenseCodesClient

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

LicenseCodes client wrapper implementation, for convenient use.

Inheritance

Object > LicenseCodesClient > LicenseCodesClientImpl

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The LicenseCodes API.

Constructors

LicenseCodesClientImpl(LicenseCodes.LicenseCodesClient, LicenseCodesSettings, ILogger)

public LicenseCodesClientImpl(LicenseCodes.LicenseCodesClient grpcClient, LicenseCodesSettings settings, ILogger logger)

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

Parameters
NameDescription
grpcClientLicenseCodes.LicenseCodesClient

The underlying gRPC client.

settingsLicenseCodesSettings

The base LicenseCodesSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override LicenseCodes.LicenseCodesClient GrpcClient { get; }

The underlying gRPC LicenseCodes client

Property Value
TypeDescription
LicenseCodes.LicenseCodesClient
Overrides

Methods

Get(GetLicenseCodeRequest, CallSettings)

public override LicenseCode Get(GetLicenseCodeRequest request, CallSettings callSettings = null)

Return a specified license code. License codes are mirrored across all projects that have permissions to read the License Code. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.

Parameters
NameDescription
requestGetLicenseCodeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
LicenseCode

The RPC response.

Overrides

GetAsync(GetLicenseCodeRequest, CallSettings)

public override Task<LicenseCode> GetAsync(GetLicenseCodeRequest request, CallSettings callSettings = null)

Return a specified license code. License codes are mirrored across all projects that have permissions to read the License Code. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.

Parameters
NameDescription
requestGetLicenseCodeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<LicenseCode>

A Task containing the RPC response.

Overrides

TestIamPermissions(TestIamPermissionsLicenseCodeRequest, CallSettings)

public override TestPermissionsResponse TestIamPermissions(TestIamPermissionsLicenseCodeRequest 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
requestTestIamPermissionsLicenseCodeRequest

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(TestIamPermissionsLicenseCodeRequest, CallSettings)

public override Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsLicenseCodeRequest 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
requestTestIamPermissionsLicenseCodeRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<TestPermissionsResponse>

A Task containing the RPC response.

Overrides