public sealed class LicenseCodesClientImpl : LicenseCodesClientReference documentation and code samples for the Compute Engine v1 API class LicenseCodesClientImpl.
LicenseCodes client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Compute.V1Assembly
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 | 
        LicenseCodesLicenseCodesClientThe underlying gRPC client.  | 
      
settings | 
        LicenseCodesSettingsThe base LicenseCodesSettings used within this client.  | 
      
logger | 
        ILoggerOptional ILogger to use within this client.  | 
      
Properties
GrpcClient
public override LicenseCodes.LicenseCodesClient GrpcClient { get; }The underlying gRPC LicenseCodes client
| Property Value | |
|---|---|
| Type | Description | 
LicenseCodesLicenseCodesClient | 
        |
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 | |
|---|---|
| Name | Description | 
request | 
        GetLicenseCodeRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf not null, applies overrides to this RPC call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
LicenseCode | 
        The RPC response.  | 
      
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 | |
|---|---|
| Name | Description | 
request | 
        GetLicenseCodeRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf not null, applies overrides to this RPC call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
TaskLicenseCode | 
        A Task containing the RPC response.  | 
      
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 | |
|---|---|
| Name | Description | 
request | 
        TestIamPermissionsLicenseCodeRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf not null, applies overrides to this RPC call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
TestPermissionsResponse | 
        The RPC response.  | 
      
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 | |
|---|---|
| Name | Description | 
request | 
        TestIamPermissionsLicenseCodeRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf not null, applies overrides to this RPC call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
TaskTestPermissionsResponse | 
        A Task containing the RPC response.  |