Class BareMetalSolutionGrpc.BareMetalSolutionBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<BareMetalSolutionGrpc.BareMetalSolutionBlockingV2Stub>
com.google.cloud.baremetalsolution.v2.BareMetalSolutionGrpc.BareMetalSolutionBlockingV2Stub
- Enclosing class:
- BareMetalSolutionGrpc
public static final class BareMetalSolutionGrpc.BareMetalSolutionBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<BareMetalSolutionGrpc.BareMetalSolutionBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service BareMetalSolution.
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) createNfsShare(CreateNfsShareRequest request) Create an NFS share.Create new ProvisioningConfig.createSSHKey(CreateSSHKeyRequest request) Register a public SSH key in the specified project for use with the interactive serial console feature.Takes a snapshot of a boot volume.deleteNfsShare(DeleteNfsShareRequest request) Delete an NFS share.com.google.protobuf.EmptydeleteSSHKey(DeleteSSHKeyRequest request) Deletes a public SSH key registered in the specified project.com.google.protobuf.EmptyDeletes a volume snapshot.detachLun(DetachLunRequest request) Detach LUN from Instance.Disable the interactive serial console feature on an instance.Enable the interactive serial console feature on an instance.evictLun(EvictLunRequest request) Skips lun's cooloff and deletes it now.evictVolume(EvictVolumeRequest request) Skips volume's cooloff and deletes it now.getInstance(GetInstanceRequest request) Get details about a single server.getLun(GetLunRequest request) Get details of a single storage logical unit number(LUN).getNetwork(GetNetworkRequest request) Get details of a single network.getNfsShare(GetNfsShareRequest request) Get details of a single NFS share.Get ProvisioningConfig by name.getVolume(GetVolumeRequest request) Get details of a single storage volume.Returns the specified snapshot resource.listInstances(ListInstancesRequest request) List servers in a given project and location.listLuns(ListLunsRequest request) List storage volume luns for given storage volume.listNetworks(ListNetworksRequest request) List network in a given project and location.listNetworkUsage(ListNetworkUsageRequest request) List all Networks (and used IPs for each Network) in the vendor account associated with the specified project.listNfsShares(ListNfsSharesRequest request) List NFS shares.listOSImages(ListOSImagesRequest request) Retrieves the list of OS images which are currently approved.List the budget details to provision resources on a given project.listSSHKeys(ListSSHKeysRequest request) Lists the public SSH keys registered for the specified project.listVolumes(ListVolumesRequest request) List storage volumes in a given project and location.Retrieves the list of snapshots for the specified volume.renameInstance(RenameInstanceRequest request) RenameInstance sets a new name for an instance.renameNetwork(RenameNetworkRequest request) RenameNetwork sets a new name for a network.renameNfsShare(RenameNfsShareRequest request) RenameNfsShare sets a new name for an nfsshare.renameVolume(RenameVolumeRequest request) RenameVolume sets a new name for a volume.resetInstance(ResetInstanceRequest request) Perform an ungraceful, hard reset on a server.resizeVolume(ResizeVolumeRequest request) Emergency Volume resize.Uses the specified snapshot to restore its parent volume.startInstance(StartInstanceRequest request) Starts a server that was shutdown.stopInstance(StopInstanceRequest request) Stop a running server.Submit a provisiong configuration for a given project.updateInstance(UpdateInstanceRequest request) Update details of a single server.updateNetwork(UpdateNetworkRequest request) Update details of a single network.updateNfsShare(UpdateNfsShareRequest request) Update details of a single NFS share.Update existing ProvisioningConfig.updateVolume(UpdateVolumeRequest request) Update details of a single storage volume.Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected BareMetalSolutionGrpc.BareMetalSolutionBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<BareMetalSolutionGrpc.BareMetalSolutionBlockingV2Stub>
-
listInstances
public ListInstancesResponse listInstances(ListInstancesRequest request) throws io.grpc.StatusException List servers in a given project and location.
- Throws:
io.grpc.StatusException
-
getInstance
Get details about a single server.
- Throws:
io.grpc.StatusException
-
updateInstance
Update details of a single server.
- Throws:
io.grpc.StatusException
-
renameInstance
RenameInstance sets a new name for an instance. Use with caution, previous names become immediately invalidated.
- Throws:
io.grpc.StatusException
-
resetInstance
Perform an ungraceful, hard reset on a server. Equivalent to shutting the power off and then turning it back on.
- Throws:
io.grpc.StatusException
-
startInstance
Starts a server that was shutdown.
- Throws:
io.grpc.StatusException
-
stopInstance
Stop a running server.
- Throws:
io.grpc.StatusException
-
enableInteractiveSerialConsole
public Operation enableInteractiveSerialConsole(EnableInteractiveSerialConsoleRequest request) throws io.grpc.StatusException Enable the interactive serial console feature on an instance.
- Throws:
io.grpc.StatusException
-
disableInteractiveSerialConsole
public Operation disableInteractiveSerialConsole(DisableInteractiveSerialConsoleRequest request) throws io.grpc.StatusException Disable the interactive serial console feature on an instance.
- Throws:
io.grpc.StatusException
-
detachLun
Detach LUN from Instance.
- Throws:
io.grpc.StatusException
-
listSSHKeys
Lists the public SSH keys registered for the specified project. These SSH keys are used only for the interactive serial console feature.
- Throws:
io.grpc.StatusException
-
createSSHKey
Register a public SSH key in the specified project for use with the interactive serial console feature.
- Throws:
io.grpc.StatusException
-
deleteSSHKey
public com.google.protobuf.Empty deleteSSHKey(DeleteSSHKeyRequest request) throws io.grpc.StatusException Deletes a public SSH key registered in the specified project.
- Throws:
io.grpc.StatusException
-
listVolumes
List storage volumes in a given project and location.
- Throws:
io.grpc.StatusException
-
getVolume
Get details of a single storage volume.
- Throws:
io.grpc.StatusException
-
updateVolume
Update details of a single storage volume.
- Throws:
io.grpc.StatusException
-
renameVolume
RenameVolume sets a new name for a volume. Use with caution, previous names become immediately invalidated.
- Throws:
io.grpc.StatusException
-
evictVolume
Skips volume's cooloff and deletes it now. Volume must be in cooloff state.
- Throws:
io.grpc.StatusException
-
resizeVolume
Emergency Volume resize.
- Throws:
io.grpc.StatusException
-
listNetworks
public ListNetworksResponse listNetworks(ListNetworksRequest request) throws io.grpc.StatusException List network in a given project and location.
- Throws:
io.grpc.StatusException
-
listNetworkUsage
public ListNetworkUsageResponse listNetworkUsage(ListNetworkUsageRequest request) throws io.grpc.StatusException List all Networks (and used IPs for each Network) in the vendor account associated with the specified project.
- Throws:
io.grpc.StatusException
-
getNetwork
Get details of a single network.
- Throws:
io.grpc.StatusException
-
updateNetwork
Update details of a single network.
- Throws:
io.grpc.StatusException
-
createVolumeSnapshot
public VolumeSnapshot createVolumeSnapshot(CreateVolumeSnapshotRequest request) throws io.grpc.StatusException Takes a snapshot of a boot volume. Returns INVALID_ARGUMENT if called for a non-boot volume.
- Throws:
io.grpc.StatusException
-
restoreVolumeSnapshot
public Operation restoreVolumeSnapshot(RestoreVolumeSnapshotRequest request) throws io.grpc.StatusException Uses the specified snapshot to restore its parent volume. Returns INVALID_ARGUMENT if called for a non-boot volume.
- Throws:
io.grpc.StatusException
-
deleteVolumeSnapshot
public com.google.protobuf.Empty deleteVolumeSnapshot(DeleteVolumeSnapshotRequest request) throws io.grpc.StatusException Deletes a volume snapshot. Returns INVALID_ARGUMENT if called for a non-boot volume.
- Throws:
io.grpc.StatusException
-
getVolumeSnapshot
public VolumeSnapshot getVolumeSnapshot(GetVolumeSnapshotRequest request) throws io.grpc.StatusException Returns the specified snapshot resource. Returns INVALID_ARGUMENT if called for a non-boot volume.
- Throws:
io.grpc.StatusException
-
listVolumeSnapshots
public ListVolumeSnapshotsResponse listVolumeSnapshots(ListVolumeSnapshotsRequest request) throws io.grpc.StatusException 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.
- Throws:
io.grpc.StatusException
-
getLun
Get details of a single storage logical unit number(LUN).
- Throws:
io.grpc.StatusException
-
listLuns
List storage volume luns for given storage volume.
- Throws:
io.grpc.StatusException
-
evictLun
Skips lun's cooloff and deletes it now. Lun must be in cooloff state.
- Throws:
io.grpc.StatusException
-
listProvisioningQuotas
public ListProvisioningQuotasResponse listProvisioningQuotas(ListProvisioningQuotasRequest request) throws io.grpc.StatusException List the budget details to provision resources on a given project.
- Throws:
io.grpc.StatusException
-
submitProvisioningConfig
public SubmitProvisioningConfigResponse submitProvisioningConfig(SubmitProvisioningConfigRequest request) throws io.grpc.StatusException Submit a provisiong configuration for a given project.
- Throws:
io.grpc.StatusException
-
getProvisioningConfig
public ProvisioningConfig getProvisioningConfig(GetProvisioningConfigRequest request) throws io.grpc.StatusException Get ProvisioningConfig by name.
- Throws:
io.grpc.StatusException
-
createProvisioningConfig
public ProvisioningConfig createProvisioningConfig(CreateProvisioningConfigRequest request) throws io.grpc.StatusException Create new ProvisioningConfig.
- Throws:
io.grpc.StatusException
-
updateProvisioningConfig
public ProvisioningConfig updateProvisioningConfig(UpdateProvisioningConfigRequest request) throws io.grpc.StatusException Update existing ProvisioningConfig.
- Throws:
io.grpc.StatusException
-
renameNetwork
RenameNetwork sets a new name for a network. Use with caution, previous names become immediately invalidated.
- Throws:
io.grpc.StatusException
-
listOSImages
public ListOSImagesResponse listOSImages(ListOSImagesRequest request) throws io.grpc.StatusException Retrieves the list of OS images which are currently approved.
- Throws:
io.grpc.StatusException
-