Compute Engine v1 API - Class LicenseCodesClientImpl (3.28.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(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
Name Description
grpcClient LicenseCodesLicenseCodesClient

The underlying gRPC client.

settings LicenseCodesSettings

The base LicenseCodesSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override LicenseCodes.LicenseCodesClient GrpcClient { get; }

The underlying gRPC LicenseCodes client

Property Value
Type Description
LicenseCodesLicenseCodesClient
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 creatingCloud Marketplace images.

Parameters
Name Description
request GetLicenseCodeRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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 creatingCloud Marketplace images.

Parameters
Name Description
request GetLicenseCodeRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLicenseCode

A Task containing the RPC response.

Overrides

GetIamPolicy(GetIamPolicyLicenseCodeRequest, CallSettings)

public override Policy GetIamPolicy(GetIamPolicyLicenseCodeRequest 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 creatingCloud Marketplace images.

Parameters
Name Description
request GetIamPolicyLicenseCodeRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Policy

The RPC response.

Overrides

GetIamPolicyAsync(GetIamPolicyLicenseCodeRequest, CallSettings)

public override Task<Policy> GetIamPolicyAsync(GetIamPolicyLicenseCodeRequest 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 creatingCloud Marketplace images.

Parameters
Name Description
request GetIamPolicyLicenseCodeRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPolicy

A Task containing the RPC response.

Overrides

SetIamPolicy(SetIamPolicyLicenseCodeRequest, CallSettings)

public override Policy SetIamPolicy(SetIamPolicyLicenseCodeRequest 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 creatingCloud Marketplace images.

Parameters
Name Description
request SetIamPolicyLicenseCodeRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Policy

The RPC response.

Overrides

SetIamPolicyAsync(SetIamPolicyLicenseCodeRequest, CallSettings)

public override Task<Policy> SetIamPolicyAsync(SetIamPolicyLicenseCodeRequest 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 creatingCloud Marketplace images.

Parameters
Name Description
request SetIamPolicyLicenseCodeRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPolicy

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 creatingCloud Marketplace images.

Parameters
Name Description
request TestIamPermissionsLicenseCodeRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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 creatingCloud Marketplace images.

Parameters
Name Description
request TestIamPermissionsLicenseCodeRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskTestPermissionsResponse

A Task containing the RPC response.

Overrides