Class LicenseCodes.LicenseCodesClient (2.1.0)

public class LicenseCodesClient : ClientBase<LicenseCodes.LicenseCodesClient>

Client for LicenseCodes

Inheritance

Object > ClientBase > ClientBase<LicenseCodes.LicenseCodesClient> > 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
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

LicenseCodesClient(ChannelBase)

public LicenseCodesClient(ChannelBase channel)

Creates a new client for LicenseCodes

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

LicenseCodesClient(ClientBase.ClientBaseConfiguration)

protected LicenseCodesClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

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
NameDescription
requestGetLicenseCodeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
LicenseCode

The response received from the server.

Get(GetLicenseCodeRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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 to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestGetLicenseCodeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<LicenseCode>

The call object.

GetAsync(GetLicenseCodeRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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 to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<LicenseCode>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
LicenseCodes.LicenseCodesClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.LicenseCodes.LicenseCodesClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

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
NameDescription
requestTestIamPermissionsLicenseCodeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
TestPermissionsResponse

The response received from the server.

TestIamPermissions(TestIamPermissionsLicenseCodeRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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 to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestTestIamPermissionsLicenseCodeRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<TestPermissionsResponse>

The call object.

TestIamPermissionsAsync(TestIamPermissionsLicenseCodeRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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 to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<TestPermissionsResponse>

The call object.