public sealed class LicensesClientImpl : LicensesClient
Reference documentation and code samples for the Compute Engine v1 API class LicensesClientImpl.
Licenses client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Remarks
The Licenses API.
Constructors
LicensesClientImpl(LicensesClient, LicensesSettings, ILogger)
public LicensesClientImpl(Licenses.LicensesClient grpcClient, LicensesSettings settings, ILogger logger)
Constructs a client wrapper for the Licenses service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient | LicensesLicensesClient The underlying gRPC client. |
settings | LicensesSettings The base LicensesSettings used within this client. |
logger | ILogger Optional ILogger to use within this client. |
Properties
DeleteOperationsClient
public override OperationsClient DeleteOperationsClient { get; }
The long-running operations client for Delete
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public override Licenses.LicensesClient GrpcClient { get; }
The underlying gRPC Licenses client
Property Value | |
---|---|
Type | Description |
LicensesLicensesClient |
InsertOperationsClient
public override OperationsClient InsertOperationsClient { get; }
The long-running operations client for Insert
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
Methods
Delete(DeleteLicenseRequest, CallSettings)
public override Operation<Operation, Operation> Delete(DeleteLicenseRequest request, CallSettings callSettings = null)
Deletes the specified license. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
Parameters | |
---|---|
Name | Description |
request | DeleteLicenseRequest 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 |
OperationOperationOperation | The RPC response. |
DeleteAsync(DeleteLicenseRequest, CallSettings)
public override Task<Operation<Operation, Operation>> DeleteAsync(DeleteLicenseRequest request, CallSettings callSettings = null)
Deletes the specified license. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
Parameters | |
---|---|
Name | Description |
request | DeleteLicenseRequest 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 |
TaskOperationOperationOperation | A Task containing the RPC response. |
Get(GetLicenseRequest, CallSettings)
public override License Get(GetLicenseRequest request, CallSettings callSettings = null)
Returns the specified License resource. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
Parameters | |
---|---|
Name | Description |
request | GetLicenseRequest 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 |
License | The RPC response. |
GetAsync(GetLicenseRequest, CallSettings)
public override Task<License> GetAsync(GetLicenseRequest request, CallSettings callSettings = null)
Returns the specified License resource. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
Parameters | |
---|---|
Name | Description |
request | GetLicenseRequest 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 |
TaskLicense | A Task containing the RPC response. |
GetIamPolicy(GetIamPolicyLicenseRequest, CallSettings)
public override Policy GetIamPolicy(GetIamPolicyLicenseRequest 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 creating Cloud Marketplace images.
Parameters | |
---|---|
Name | Description |
request | GetIamPolicyLicenseRequest 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. |
GetIamPolicyAsync(GetIamPolicyLicenseRequest, CallSettings)
public override Task<Policy> GetIamPolicyAsync(GetIamPolicyLicenseRequest 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 creating Cloud Marketplace images.
Parameters | |
---|---|
Name | Description |
request | GetIamPolicyLicenseRequest 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. |
Insert(InsertLicenseRequest, CallSettings)
public override Operation<Operation, Operation> Insert(InsertLicenseRequest request, CallSettings callSettings = null)
Create a License resource in the specified project. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
Parameters | |
---|---|
Name | Description |
request | InsertLicenseRequest 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 |
OperationOperationOperation | The RPC response. |
InsertAsync(InsertLicenseRequest, CallSettings)
public override Task<Operation<Operation, Operation>> InsertAsync(InsertLicenseRequest request, CallSettings callSettings = null)
Create a License resource in the specified project. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
Parameters | |
---|---|
Name | Description |
request | InsertLicenseRequest 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 |
TaskOperationOperationOperation | A Task containing the RPC response. |
List(ListLicensesRequest, CallSettings)
public override PagedEnumerable<LicensesListResponse, License> List(ListLicensesRequest request, CallSettings callSettings = null)
Retrieves the list of licenses available in the specified project. This method does not get any licenses that belong to other projects, including licenses attached to publicly-available images, like Debian 9. If you want to get a list of publicly-available licenses, use this method to make a request to the respective image project, such as debian-cloud or windows-cloud. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
Parameters | |
---|---|
Name | Description |
request | ListLicensesRequest 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 |
PagedEnumerableLicensesListResponseLicense | A pageable sequence of License resources. |
ListAsync(ListLicensesRequest, CallSettings)
public override PagedAsyncEnumerable<LicensesListResponse, License> ListAsync(ListLicensesRequest request, CallSettings callSettings = null)
Retrieves the list of licenses available in the specified project. This method does not get any licenses that belong to other projects, including licenses attached to publicly-available images, like Debian 9. If you want to get a list of publicly-available licenses, use this method to make a request to the respective image project, such as debian-cloud or windows-cloud. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
Parameters | |
---|---|
Name | Description |
request | ListLicensesRequest 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 |
PagedAsyncEnumerableLicensesListResponseLicense | A pageable asynchronous sequence of License resources. |
SetIamPolicy(SetIamPolicyLicenseRequest, CallSettings)
public override Policy SetIamPolicy(SetIamPolicyLicenseRequest 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 creating Cloud Marketplace images.
Parameters | |
---|---|
Name | Description |
request | SetIamPolicyLicenseRequest 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. |
SetIamPolicyAsync(SetIamPolicyLicenseRequest, CallSettings)
public override Task<Policy> SetIamPolicyAsync(SetIamPolicyLicenseRequest 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 creating Cloud Marketplace images.
Parameters | |
---|---|
Name | Description |
request | SetIamPolicyLicenseRequest 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. |
TestIamPermissions(TestIamPermissionsLicenseRequest, CallSettings)
public override TestPermissionsResponse TestIamPermissions(TestIamPermissionsLicenseRequest 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 | TestIamPermissionsLicenseRequest 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. |
TestIamPermissionsAsync(TestIamPermissionsLicenseRequest, CallSettings)
public override Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsLicenseRequest 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 | TestIamPermissionsLicenseRequest 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. |