public sealed class MachineImagesClientImpl : MachineImagesClientMachineImages client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Remarks
The MachineImages API.
Constructors
MachineImagesClientImpl(MachineImages.MachineImagesClient, MachineImagesSettings, ILogger)
public MachineImagesClientImpl(MachineImages.MachineImagesClient grpcClient, MachineImagesSettings settings, ILogger logger)Constructs a client wrapper for the MachineImages service, with the specified gRPC client and settings.
| Parameters | |
|---|---|
| Name | Description |
grpcClient |
MachineImages.MachineImagesClientThe underlying gRPC client. |
settings |
MachineImagesSettingsThe base MachineImagesSettings used within this client. |
logger |
ILoggerOptional 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 MachineImages.MachineImagesClient GrpcClient { get; }The underlying gRPC MachineImages client
| Property Value | |
|---|---|
| Type | Description |
MachineImages.MachineImagesClient |
|
InsertOperationsClient
public override OperationsClient InsertOperationsClient { get; }The long-running operations client for Insert.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
Methods
Delete(DeleteMachineImageRequest, CallSettings)
public override Operation<Operation, Operation> Delete(DeleteMachineImageRequest request, CallSettings callSettings = null)Deletes the specified machine image. Deleting a machine image is permanent and cannot be undone.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteMachineImageRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Operation<Operation, Operation> |
The RPC response. |
DeleteAsync(DeleteMachineImageRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> DeleteAsync(DeleteMachineImageRequest request, CallSettings callSettings = null)Deletes the specified machine image. Deleting a machine image is permanent and cannot be undone.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteMachineImageRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Operation<Operation, Operation>> |
A Task containing the RPC response. |
Get(GetMachineImageRequest, CallSettings)
public override MachineImage Get(GetMachineImageRequest request, CallSettings callSettings = null)Returns the specified machine image. Gets a list of available machine images by making a list() request.
| Parameters | |
|---|---|
| Name | Description |
request |
GetMachineImageRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
MachineImage |
The RPC response. |
GetAsync(GetMachineImageRequest, CallSettings)
public override Task<MachineImage> GetAsync(GetMachineImageRequest request, CallSettings callSettings = null)Returns the specified machine image. Gets a list of available machine images by making a list() request.
| Parameters | |
|---|---|
| Name | Description |
request |
GetMachineImageRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<MachineImage> |
A Task containing the RPC response. |
GetIamPolicy(GetIamPolicyMachineImageRequest, CallSettings)
public override Policy GetIamPolicy(GetIamPolicyMachineImageRequest request, CallSettings callSettings = null)Gets the access control policy for a resource. May be empty if no such policy or resource exists.
| Parameters | |
|---|---|
| Name | Description |
request |
GetIamPolicyMachineImageRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Policy |
The RPC response. |
GetIamPolicyAsync(GetIamPolicyMachineImageRequest, CallSettings)
public override Task<Policy> GetIamPolicyAsync(GetIamPolicyMachineImageRequest request, CallSettings callSettings = null)Gets the access control policy for a resource. May be empty if no such policy or resource exists.
| Parameters | |
|---|---|
| Name | Description |
request |
GetIamPolicyMachineImageRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Policy> |
A Task containing the RPC response. |
Insert(InsertMachineImageRequest, CallSettings)
public override Operation<Operation, Operation> Insert(InsertMachineImageRequest request, CallSettings callSettings = null)Creates a machine image in the specified project using the data that is included in the request. If you are creating a new machine image to update an existing instance, your new machine image should use the same network or, if applicable, the same subnetwork as the original instance.
| Parameters | |
|---|---|
| Name | Description |
request |
InsertMachineImageRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Operation<Operation, Operation> |
The RPC response. |
InsertAsync(InsertMachineImageRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> InsertAsync(InsertMachineImageRequest request, CallSettings callSettings = null)Creates a machine image in the specified project using the data that is included in the request. If you are creating a new machine image to update an existing instance, your new machine image should use the same network or, if applicable, the same subnetwork as the original instance.
| Parameters | |
|---|---|
| Name | Description |
request |
InsertMachineImageRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Operation<Operation, Operation>> |
A Task containing the RPC response. |
List(ListMachineImagesRequest, CallSettings)
public override PagedEnumerable<MachineImageList, MachineImage> List(ListMachineImagesRequest request, CallSettings callSettings = null)Retrieves a list of machine images that are contained within the specified project.
| Parameters | |
|---|---|
| Name | Description |
request |
ListMachineImagesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerable<MachineImageList, MachineImage> |
A pageable sequence of MachineImage resources. |
ListAsync(ListMachineImagesRequest, CallSettings)
public override PagedAsyncEnumerable<MachineImageList, MachineImage> ListAsync(ListMachineImagesRequest request, CallSettings callSettings = null)Retrieves a list of machine images that are contained within the specified project.
| Parameters | |
|---|---|
| Name | Description |
request |
ListMachineImagesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerable<MachineImageList, MachineImage> |
A pageable asynchronous sequence of MachineImage resources. |
SetIamPolicy(SetIamPolicyMachineImageRequest, CallSettings)
public override Policy SetIamPolicy(SetIamPolicyMachineImageRequest request, CallSettings callSettings = null)Sets the access control policy on the specified resource. Replaces any existing policy.
| Parameters | |
|---|---|
| Name | Description |
request |
SetIamPolicyMachineImageRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Policy |
The RPC response. |
SetIamPolicyAsync(SetIamPolicyMachineImageRequest, CallSettings)
public override Task<Policy> SetIamPolicyAsync(SetIamPolicyMachineImageRequest request, CallSettings callSettings = null)Sets the access control policy on the specified resource. Replaces any existing policy.
| Parameters | |
|---|---|
| Name | Description |
request |
SetIamPolicyMachineImageRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<Policy> |
A Task containing the RPC response. |
TestIamPermissions(TestIamPermissionsMachineImageRequest, CallSettings)
public override TestPermissionsResponse TestIamPermissions(TestIamPermissionsMachineImageRequest request, CallSettings callSettings = null)Returns permissions that a caller has on the specified resource.
| Parameters | |
|---|---|
| Name | Description |
request |
TestIamPermissionsMachineImageRequestThe 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(TestIamPermissionsMachineImageRequest, CallSettings)
public override Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsMachineImageRequest request, CallSettings callSettings = null)Returns permissions that a caller has on the specified resource.
| Parameters | |
|---|---|
| Name | Description |
request |
TestIamPermissionsMachineImageRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<TestPermissionsResponse> |
A Task containing the RPC response. |