Compute Engine v1 API - Class MachineImagesClientImpl (2.15.0)

public sealed class MachineImagesClientImpl : MachineImagesClient

Reference documentation and code samples for the Compute Engine v1 API class MachineImagesClientImpl.

MachineImages client wrapper implementation, for convenient use.

Inheritance

object > MachineImagesClient > MachineImagesClientImpl

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The MachineImages API.

Constructors

MachineImagesClientImpl(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 MachineImagesMachineImagesClient

The underlying gRPC client.

settings MachineImagesSettings

The base MachineImagesSettings 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
Overrides

GrpcClient

public override MachineImages.MachineImagesClient GrpcClient { get; }

The underlying gRPC MachineImages client

Property Value
Type Description
MachineImagesMachineImagesClient
Overrides

InsertOperationsClient

public override OperationsClient InsertOperationsClient { get; }

The long-running operations client for Insert.

Property Value
Type Description
OperationsClient
Overrides

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 DeleteMachineImageRequest

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.

Overrides

DeleteAsync(DeleteMachineImageRequest, CallSettings)

public override 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 DeleteMachineImageRequest

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.

Overrides

Get(GetMachineImageRequest, CallSettings)

public override MachineImage Get(GetMachineImageRequest request, CallSettings callSettings = null)

Returns the specified machine image.

Parameters
Name Description
request GetMachineImageRequest

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
MachineImage

The RPC response.

Overrides

GetAsync(GetMachineImageRequest, CallSettings)

public override Task<MachineImage> GetAsync(GetMachineImageRequest request, CallSettings callSettings = null)

Returns the specified machine image.

Parameters
Name Description
request GetMachineImageRequest

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
TaskMachineImage

A Task containing the RPC response.

Overrides

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 GetIamPolicyMachineImageRequest

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.

Overrides

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 GetIamPolicyMachineImageRequest

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.

Overrides

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 InsertMachineImageRequest

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.

Overrides

InsertAsync(InsertMachineImageRequest, CallSettings)

public override 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 InsertMachineImageRequest

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.

Overrides

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 ListMachineImagesRequest

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
PagedEnumerableMachineImageListMachineImage

A pageable sequence of MachineImage resources.

Overrides

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 ListMachineImagesRequest

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
PagedAsyncEnumerableMachineImageListMachineImage

A pageable asynchronous sequence of MachineImage resources.

Overrides

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 SetIamPolicyMachineImageRequest

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.

Overrides

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 SetIamPolicyMachineImageRequest

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.

Overrides

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 TestIamPermissionsMachineImageRequest

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.

Overrides

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 TestIamPermissionsMachineImageRequest

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.

Overrides