Interface BareMetalSolutionGrpc.AsyncService (0.53.0)

public static interface BareMetalSolutionGrpc.AsyncService

Performs management operations on Bare Metal Solution servers. The baremetalsolution.googleapis.com service provides management capabilities for Bare Metal Solution servers. To access the API methods, you must assign Bare Metal Solution IAM roles containing the desired permissions to your staff in your Google Cloud project. You must also enable the Bare Metal Solution API. Once enabled, the methods act upon specific servers in your Bare Metal Solution environment.

Methods

createNfsShare(CreateNfsShareRequest request, StreamObserver<Operation> responseObserver)

public default void createNfsShare(CreateNfsShareRequest request, StreamObserver<Operation> responseObserver)

Create an NFS share.

Parameters
Name Description
request CreateNfsShareRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

createProvisioningConfig(CreateProvisioningConfigRequest request, StreamObserver<ProvisioningConfig> responseObserver)

public default void createProvisioningConfig(CreateProvisioningConfigRequest request, StreamObserver<ProvisioningConfig> responseObserver)

Create new ProvisioningConfig.

Parameters
Name Description
request CreateProvisioningConfigRequest
responseObserver io.grpc.stub.StreamObserver<ProvisioningConfig>

createSSHKey(CreateSSHKeyRequest request, StreamObserver<SSHKey> responseObserver)

public default void createSSHKey(CreateSSHKeyRequest request, StreamObserver<SSHKey> responseObserver)

Register a public SSH key in the specified project for use with the interactive serial console feature.

Parameters
Name Description
request CreateSSHKeyRequest
responseObserver io.grpc.stub.StreamObserver<SSHKey>

createVolumeSnapshot(CreateVolumeSnapshotRequest request, StreamObserver<VolumeSnapshot> responseObserver)

public default void createVolumeSnapshot(CreateVolumeSnapshotRequest request, StreamObserver<VolumeSnapshot> responseObserver)

Takes a snapshot of a boot volume. Returns INVALID_ARGUMENT if called for a non-boot volume.

Parameters
Name Description
request CreateVolumeSnapshotRequest
responseObserver io.grpc.stub.StreamObserver<VolumeSnapshot>

deleteNfsShare(DeleteNfsShareRequest request, StreamObserver<Operation> responseObserver)

public default void deleteNfsShare(DeleteNfsShareRequest request, StreamObserver<Operation> responseObserver)

Delete an NFS share. The underlying volume is automatically deleted.

Parameters
Name Description
request DeleteNfsShareRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

deleteSSHKey(DeleteSSHKeyRequest request, StreamObserver<Empty> responseObserver)

public default void deleteSSHKey(DeleteSSHKeyRequest request, StreamObserver<Empty> responseObserver)

Deletes a public SSH key registered in the specified project.

Parameters
Name Description
request DeleteSSHKeyRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

deleteVolumeSnapshot(DeleteVolumeSnapshotRequest request, StreamObserver<Empty> responseObserver)

public default void deleteVolumeSnapshot(DeleteVolumeSnapshotRequest request, StreamObserver<Empty> responseObserver)

Deletes a volume snapshot. Returns INVALID_ARGUMENT if called for a non-boot volume.

Parameters
Name Description
request DeleteVolumeSnapshotRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

detachLun(DetachLunRequest request, StreamObserver<Operation> responseObserver)

public default void detachLun(DetachLunRequest request, StreamObserver<Operation> responseObserver)

Detach LUN from Instance.

Parameters
Name Description
request DetachLunRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

disableInteractiveSerialConsole(DisableInteractiveSerialConsoleRequest request, StreamObserver<Operation> responseObserver)

public default void disableInteractiveSerialConsole(DisableInteractiveSerialConsoleRequest request, StreamObserver<Operation> responseObserver)

Disable the interactive serial console feature on an instance.

Parameters
Name Description
request DisableInteractiveSerialConsoleRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

enableInteractiveSerialConsole(EnableInteractiveSerialConsoleRequest request, StreamObserver<Operation> responseObserver)

public default void enableInteractiveSerialConsole(EnableInteractiveSerialConsoleRequest request, StreamObserver<Operation> responseObserver)

Enable the interactive serial console feature on an instance.

Parameters
Name Description
request EnableInteractiveSerialConsoleRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

evictLun(EvictLunRequest request, StreamObserver<Operation> responseObserver)

public default void evictLun(EvictLunRequest request, StreamObserver<Operation> responseObserver)

Skips lun's cooloff and deletes it now. Lun must be in cooloff state.

Parameters
Name Description
request EvictLunRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

evictVolume(EvictVolumeRequest request, StreamObserver<Operation> responseObserver)

public default void evictVolume(EvictVolumeRequest request, StreamObserver<Operation> responseObserver)

Skips volume's cooloff and deletes it now. Volume must be in cooloff state.

Parameters
Name Description
request EvictVolumeRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

getInstance(GetInstanceRequest request, StreamObserver<Instance> responseObserver)

public default void getInstance(GetInstanceRequest request, StreamObserver<Instance> responseObserver)

Get details about a single server.

Parameters
Name Description
request GetInstanceRequest
responseObserver io.grpc.stub.StreamObserver<Instance>

getLun(GetLunRequest request, StreamObserver<Lun> responseObserver)

public default void getLun(GetLunRequest request, StreamObserver<Lun> responseObserver)

Get details of a single storage logical unit number(LUN).

Parameters
Name Description
request GetLunRequest
responseObserver io.grpc.stub.StreamObserver<Lun>

getNetwork(GetNetworkRequest request, StreamObserver<Network> responseObserver)

public default void getNetwork(GetNetworkRequest request, StreamObserver<Network> responseObserver)

Get details of a single network.

Parameters
Name Description
request GetNetworkRequest
responseObserver io.grpc.stub.StreamObserver<Network>

getNfsShare(GetNfsShareRequest request, StreamObserver<NfsShare> responseObserver)

public default void getNfsShare(GetNfsShareRequest request, StreamObserver<NfsShare> responseObserver)

Get details of a single NFS share.

Parameters
Name Description
request GetNfsShareRequest
responseObserver io.grpc.stub.StreamObserver<NfsShare>

getProvisioningConfig(GetProvisioningConfigRequest request, StreamObserver<ProvisioningConfig> responseObserver)

public default void getProvisioningConfig(GetProvisioningConfigRequest request, StreamObserver<ProvisioningConfig> responseObserver)

Get ProvisioningConfig by name.

Parameters
Name Description
request GetProvisioningConfigRequest
responseObserver io.grpc.stub.StreamObserver<ProvisioningConfig>

getVolume(GetVolumeRequest request, StreamObserver<Volume> responseObserver)

public default void getVolume(GetVolumeRequest request, StreamObserver<Volume> responseObserver)

Get details of a single storage volume.

Parameters
Name Description
request GetVolumeRequest
responseObserver io.grpc.stub.StreamObserver<Volume>

getVolumeSnapshot(GetVolumeSnapshotRequest request, StreamObserver<VolumeSnapshot> responseObserver)

public default void getVolumeSnapshot(GetVolumeSnapshotRequest request, StreamObserver<VolumeSnapshot> responseObserver)

Returns the specified snapshot resource. Returns INVALID_ARGUMENT if called for a non-boot volume.

Parameters
Name Description
request GetVolumeSnapshotRequest
responseObserver io.grpc.stub.StreamObserver<VolumeSnapshot>

listInstances(ListInstancesRequest request, StreamObserver<ListInstancesResponse> responseObserver)

public default void listInstances(ListInstancesRequest request, StreamObserver<ListInstancesResponse> responseObserver)

List servers in a given project and location.

Parameters
Name Description
request ListInstancesRequest
responseObserver io.grpc.stub.StreamObserver<ListInstancesResponse>

listLuns(ListLunsRequest request, StreamObserver<ListLunsResponse> responseObserver)

public default void listLuns(ListLunsRequest request, StreamObserver<ListLunsResponse> responseObserver)

List storage volume luns for given storage volume.

Parameters
Name Description
request ListLunsRequest
responseObserver io.grpc.stub.StreamObserver<ListLunsResponse>

listNetworkUsage(ListNetworkUsageRequest request, StreamObserver<ListNetworkUsageResponse> responseObserver)

public default void listNetworkUsage(ListNetworkUsageRequest request, StreamObserver<ListNetworkUsageResponse> responseObserver)

List all Networks (and used IPs for each Network) in the vendor account associated with the specified project.

Parameters
Name Description
request ListNetworkUsageRequest
responseObserver io.grpc.stub.StreamObserver<ListNetworkUsageResponse>

listNetworks(ListNetworksRequest request, StreamObserver<ListNetworksResponse> responseObserver)

public default void listNetworks(ListNetworksRequest request, StreamObserver<ListNetworksResponse> responseObserver)

List network in a given project and location.

Parameters
Name Description
request ListNetworksRequest
responseObserver io.grpc.stub.StreamObserver<ListNetworksResponse>

listNfsShares(ListNfsSharesRequest request, StreamObserver<ListNfsSharesResponse> responseObserver)

public default void listNfsShares(ListNfsSharesRequest request, StreamObserver<ListNfsSharesResponse> responseObserver)

List NFS shares.

Parameters
Name Description
request ListNfsSharesRequest
responseObserver io.grpc.stub.StreamObserver<ListNfsSharesResponse>

listOSImages(ListOSImagesRequest request, StreamObserver<ListOSImagesResponse> responseObserver)

public default void listOSImages(ListOSImagesRequest request, StreamObserver<ListOSImagesResponse> responseObserver)

Retrieves the list of OS images which are currently approved.

Parameters
Name Description
request ListOSImagesRequest
responseObserver io.grpc.stub.StreamObserver<ListOSImagesResponse>

listProvisioningQuotas(ListProvisioningQuotasRequest request, StreamObserver<ListProvisioningQuotasResponse> responseObserver)

public default void listProvisioningQuotas(ListProvisioningQuotasRequest request, StreamObserver<ListProvisioningQuotasResponse> responseObserver)

List the budget details to provision resources on a given project.

Parameters
Name Description
request ListProvisioningQuotasRequest
responseObserver io.grpc.stub.StreamObserver<ListProvisioningQuotasResponse>

listSSHKeys(ListSSHKeysRequest request, StreamObserver<ListSSHKeysResponse> responseObserver)

public default void listSSHKeys(ListSSHKeysRequest request, StreamObserver<ListSSHKeysResponse> responseObserver)

Lists the public SSH keys registered for the specified project. These SSH keys are used only for the interactive serial console feature.

Parameters
Name Description
request ListSSHKeysRequest
responseObserver io.grpc.stub.StreamObserver<ListSSHKeysResponse>

listVolumeSnapshots(ListVolumeSnapshotsRequest request, StreamObserver<ListVolumeSnapshotsResponse> responseObserver)

public default void listVolumeSnapshots(ListVolumeSnapshotsRequest request, StreamObserver<ListVolumeSnapshotsResponse> responseObserver)

Retrieves the list of snapshots for the specified volume. Returns a response with an empty list of snapshots if called for a non-boot volume.

Parameters
Name Description
request ListVolumeSnapshotsRequest
responseObserver io.grpc.stub.StreamObserver<ListVolumeSnapshotsResponse>

listVolumes(ListVolumesRequest request, StreamObserver<ListVolumesResponse> responseObserver)

public default void listVolumes(ListVolumesRequest request, StreamObserver<ListVolumesResponse> responseObserver)

List storage volumes in a given project and location.

Parameters
Name Description
request ListVolumesRequest
responseObserver io.grpc.stub.StreamObserver<ListVolumesResponse>

renameInstance(RenameInstanceRequest request, StreamObserver<Instance> responseObserver)

public default void renameInstance(RenameInstanceRequest request, StreamObserver<Instance> responseObserver)

RenameInstance sets a new name for an instance. Use with caution, previous names become immediately invalidated.

Parameters
Name Description
request RenameInstanceRequest
responseObserver io.grpc.stub.StreamObserver<Instance>

renameNetwork(RenameNetworkRequest request, StreamObserver<Network> responseObserver)

public default void renameNetwork(RenameNetworkRequest request, StreamObserver<Network> responseObserver)

RenameNetwork sets a new name for a network. Use with caution, previous names become immediately invalidated.

Parameters
Name Description
request RenameNetworkRequest
responseObserver io.grpc.stub.StreamObserver<Network>

renameNfsShare(RenameNfsShareRequest request, StreamObserver<NfsShare> responseObserver)

public default void renameNfsShare(RenameNfsShareRequest request, StreamObserver<NfsShare> responseObserver)

RenameNfsShare sets a new name for an nfsshare. Use with caution, previous names become immediately invalidated.

Parameters
Name Description
request RenameNfsShareRequest
responseObserver io.grpc.stub.StreamObserver<NfsShare>

renameVolume(RenameVolumeRequest request, StreamObserver<Volume> responseObserver)

public default void renameVolume(RenameVolumeRequest request, StreamObserver<Volume> responseObserver)

RenameVolume sets a new name for a volume. Use with caution, previous names become immediately invalidated.

Parameters
Name Description
request RenameVolumeRequest
responseObserver io.grpc.stub.StreamObserver<Volume>

resetInstance(ResetInstanceRequest request, StreamObserver<Operation> responseObserver)

public default void resetInstance(ResetInstanceRequest request, StreamObserver<Operation> responseObserver)

Perform an ungraceful, hard reset on a server. Equivalent to shutting the power off and then turning it back on.

Parameters
Name Description
request ResetInstanceRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

resizeVolume(ResizeVolumeRequest request, StreamObserver<Operation> responseObserver)

public default void resizeVolume(ResizeVolumeRequest request, StreamObserver<Operation> responseObserver)

Emergency Volume resize.

Parameters
Name Description
request ResizeVolumeRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

restoreVolumeSnapshot(RestoreVolumeSnapshotRequest request, StreamObserver<Operation> responseObserver)

public default void restoreVolumeSnapshot(RestoreVolumeSnapshotRequest request, StreamObserver<Operation> responseObserver)

Uses the specified snapshot to restore its parent volume. Returns INVALID_ARGUMENT if called for a non-boot volume.

Parameters
Name Description
request RestoreVolumeSnapshotRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

startInstance(StartInstanceRequest request, StreamObserver<Operation> responseObserver)

public default void startInstance(StartInstanceRequest request, StreamObserver<Operation> responseObserver)

Starts a server that was shutdown.

Parameters
Name Description
request StartInstanceRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

stopInstance(StopInstanceRequest request, StreamObserver<Operation> responseObserver)

public default void stopInstance(StopInstanceRequest request, StreamObserver<Operation> responseObserver)

Stop a running server.

Parameters
Name Description
request StopInstanceRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

submitProvisioningConfig(SubmitProvisioningConfigRequest request, StreamObserver<SubmitProvisioningConfigResponse> responseObserver)

public default void submitProvisioningConfig(SubmitProvisioningConfigRequest request, StreamObserver<SubmitProvisioningConfigResponse> responseObserver)

Submit a provisiong configuration for a given project.

Parameters
Name Description
request SubmitProvisioningConfigRequest
responseObserver io.grpc.stub.StreamObserver<SubmitProvisioningConfigResponse>

updateInstance(UpdateInstanceRequest request, StreamObserver<Operation> responseObserver)

public default void updateInstance(UpdateInstanceRequest request, StreamObserver<Operation> responseObserver)

Update details of a single server.

Parameters
Name Description
request UpdateInstanceRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

updateNetwork(UpdateNetworkRequest request, StreamObserver<Operation> responseObserver)

public default void updateNetwork(UpdateNetworkRequest request, StreamObserver<Operation> responseObserver)

Update details of a single network.

Parameters
Name Description
request UpdateNetworkRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

updateNfsShare(UpdateNfsShareRequest request, StreamObserver<Operation> responseObserver)

public default void updateNfsShare(UpdateNfsShareRequest request, StreamObserver<Operation> responseObserver)

Update details of a single NFS share.

Parameters
Name Description
request UpdateNfsShareRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

updateProvisioningConfig(UpdateProvisioningConfigRequest request, StreamObserver<ProvisioningConfig> responseObserver)

public default void updateProvisioningConfig(UpdateProvisioningConfigRequest request, StreamObserver<ProvisioningConfig> responseObserver)

Update existing ProvisioningConfig.

Parameters
Name Description
request UpdateProvisioningConfigRequest
responseObserver io.grpc.stub.StreamObserver<ProvisioningConfig>

updateVolume(UpdateVolumeRequest request, StreamObserver<Operation> responseObserver)

public default void updateVolume(UpdateVolumeRequest request, StreamObserver<Operation> responseObserver)

Update details of a single storage volume.

Parameters
Name Description
request UpdateVolumeRequest
responseObserver io.grpc.stub.StreamObserver<Operation>