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.LicenseCodesClientNamespace
Google.Cloud.Compute.V1Assembly
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 | CallInvokerThe callInvoker to use to make remote calls. | 
LicenseCodesClient(ChannelBase)
public LicenseCodesClient(ChannelBase channel)Creates a new client for LicenseCodes
| Parameter | |
|---|---|
| Name | Description | 
| channel | ChannelBaseThe 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 | ClientBaseClientBaseConfigurationThe 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 | GetLicenseCodeRequestThe request to send to the server. | 
| options | CallOptionsThe 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 | GetLicenseCodeRequestThe request to send to the server. | 
| headers | MetadataThe initial metadata to send with the call. This parameter is optional. | 
| deadline | System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. | 
| cancellationToken | CancellationTokenAn 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 | GetLicenseCodeRequestThe request to send to the server. | 
| options | CallOptionsThe 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 | GetLicenseCodeRequestThe request to send to the server. | 
| headers | MetadataThe initial metadata to send with the call. This parameter is optional. | 
| deadline | System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. | 
| cancellationToken | CancellationTokenAn 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 | |
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 | TestIamPermissionsLicenseCodeRequestThe request to send to the server. | 
| options | CallOptionsThe 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 | TestIamPermissionsLicenseCodeRequestThe request to send to the server. | 
| headers | MetadataThe initial metadata to send with the call. This parameter is optional. | 
| deadline | System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. | 
| cancellationToken | CancellationTokenAn 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 | TestIamPermissionsLicenseCodeRequestThe request to send to the server. | 
| options | CallOptionsThe 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 | TestIamPermissionsLicenseCodeRequestThe request to send to the server. | 
| headers | MetadataThe initial metadata to send with the call. This parameter is optional. | 
| deadline | System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. | 
| cancellationToken | CancellationTokenAn optional token for canceling the call. | 
| Returns | |
|---|---|
| Type | Description | 
| AsyncUnaryCallTestPermissionsResponse | The call object. |