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
NameDescription
grpcClientMachineImagesMachineImagesClient

The underlying gRPC client.

settingsMachineImagesSettings

The base MachineImagesSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

DeleteOperationsClient

public override OperationsClient DeleteOperationsClient { get; }

The long-running operations client for Delete.

Property Value
TypeDescription
OperationsClient
Overrides

GrpcClient

public override MachineImages.MachineImagesClient GrpcClient { get; }

The underlying gRPC MachineImages client

Property Value
TypeDescription
MachineImagesMachineImagesClient
Overrides

InsertOperationsClient

public override OperationsClient InsertOperationsClient { get; }

The long-running operations client for Insert.

Property Value
TypeDescription
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
NameDescription
requestDeleteMachineImageRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteMachineImageRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetMachineImageRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
MachineImage

The RPC response.

Overrides

GetAsync(GetMachineImageRequest, CallSettings)

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

Returns the specified machine image.

Parameters
NameDescription
requestGetMachineImageRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetIamPolicyMachineImageRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetIamPolicyMachineImageRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestInsertMachineImageRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestInsertMachineImageRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListMachineImagesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListMachineImagesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSetIamPolicyMachineImageRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSetIamPolicyMachineImageRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestTestIamPermissionsMachineImageRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestTestIamPermissionsMachineImageRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskTestPermissionsResponse

A Task containing the RPC response.

Overrides