Compute Engine v1 API - Class LicenseCodes.LicenseCodesClient (2.15.0)

public class LicenseCodes.LicenseCodesClient : ClientBase<LicenseCodes.LicenseCodesClient>

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

Client for LicenseCodes

Inheritance

object > ClientBase > ClientBaseLicenseCodesLicenseCodesClient > LicenseCodes.LicenseCodesClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

LicenseCodesClient()

protected LicenseCodesClient()

Protected parameterless constructor to allow creation of test doubles.

LicenseCodesClient(CallInvoker)

public LicenseCodesClient(CallInvoker callInvoker)

Creates a new client for LicenseCodes that uses a custom CallInvoker.

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

LicenseCodesClient(ChannelBase)

public LicenseCodesClient(ChannelBase channel)

Creates a new client for LicenseCodes

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

LicenseCodesClient(ClientBaseConfiguration)

protected LicenseCodesClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

Get(GetLicenseCodeRequest, CallOptions)

public virtual LicenseCode Get(GetLicenseCodeRequest request, CallOptions options)

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
Name Description
request GetLicenseCodeRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
LicenseCode

The response received from the server.

Get(GetLicenseCodeRequest, Metadata, DateTime?, CancellationToken)

public virtual LicenseCode Get(GetLicenseCodeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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
Name Description
request GetLicenseCodeRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
LicenseCode

The response received from the server.

GetAsync(GetLicenseCodeRequest, CallOptions)

public virtual AsyncUnaryCall<LicenseCode> GetAsync(GetLicenseCodeRequest request, CallOptions options)

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
Name Description
request GetLicenseCodeRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallLicenseCode

The call object.

GetAsync(GetLicenseCodeRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<LicenseCode> GetAsync(GetLicenseCodeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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
Name Description
request GetLicenseCodeRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallLicenseCode

The call object.

NewInstance(ClientBaseConfiguration)

protected override LicenseCodes.LicenseCodesClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
LicenseCodesLicenseCodesClient
Overrides

TestIamPermissions(TestIamPermissionsLicenseCodeRequest, CallOptions)

public virtual TestPermissionsResponse TestIamPermissions(TestIamPermissionsLicenseCodeRequest request, CallOptions options)

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 TestIamPermissionsLicenseCodeRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
TestPermissionsResponse

The response received from the server.

TestIamPermissions(TestIamPermissionsLicenseCodeRequest, Metadata, DateTime?, CancellationToken)

public virtual TestPermissionsResponse TestIamPermissions(TestIamPermissionsLicenseCodeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 TestIamPermissionsLicenseCodeRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
TestPermissionsResponse

The response received from the server.

TestIamPermissionsAsync(TestIamPermissionsLicenseCodeRequest, CallOptions)

public virtual AsyncUnaryCall<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsLicenseCodeRequest request, CallOptions options)

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 TestIamPermissionsLicenseCodeRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallTestPermissionsResponse

The call object.

TestIamPermissionsAsync(TestIamPermissionsLicenseCodeRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsLicenseCodeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 TestIamPermissionsLicenseCodeRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallTestPermissionsResponse

The call object.