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.
 
  • Method Details

    • build

      protected BareMetalSolutionGrpc.BareMetalSolutionBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.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

      public Instance getInstance(GetInstanceRequest request) throws io.grpc.StatusException
       Get details about a single server.
       
      Throws:
      io.grpc.StatusException
    • updateInstance

      public Operation updateInstance(UpdateInstanceRequest request) throws io.grpc.StatusException
       Update details of a single server.
       
      Throws:
      io.grpc.StatusException
    • renameInstance

      public Instance renameInstance(RenameInstanceRequest request) throws io.grpc.StatusException
       RenameInstance sets a new name for an instance.
       Use with caution, previous names become immediately invalidated.
       
      Throws:
      io.grpc.StatusException
    • resetInstance

      public Operation resetInstance(ResetInstanceRequest request) throws io.grpc.StatusException
       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

      public Operation startInstance(StartInstanceRequest request) throws io.grpc.StatusException
       Starts a server that was shutdown.
       
      Throws:
      io.grpc.StatusException
    • stopInstance

      public Operation stopInstance(StopInstanceRequest request) throws io.grpc.StatusException
       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

      public Operation detachLun(DetachLunRequest request) throws io.grpc.StatusException
       Detach LUN from Instance.
       
      Throws:
      io.grpc.StatusException
    • listSSHKeys

      public ListSSHKeysResponse listSSHKeys(ListSSHKeysRequest request) throws io.grpc.StatusException
       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

      public SSHKey createSSHKey(CreateSSHKeyRequest request) throws io.grpc.StatusException
       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

      public ListVolumesResponse listVolumes(ListVolumesRequest request) throws io.grpc.StatusException
       List storage volumes in a given project and location.
       
      Throws:
      io.grpc.StatusException
    • getVolume

      public Volume getVolume(GetVolumeRequest request) throws io.grpc.StatusException
       Get details of a single storage volume.
       
      Throws:
      io.grpc.StatusException
    • updateVolume

      public Operation updateVolume(UpdateVolumeRequest request) throws io.grpc.StatusException
       Update details of a single storage volume.
       
      Throws:
      io.grpc.StatusException
    • renameVolume

      public Volume renameVolume(RenameVolumeRequest request) throws io.grpc.StatusException
       RenameVolume sets a new name for a volume.
       Use with caution, previous names become immediately invalidated.
       
      Throws:
      io.grpc.StatusException
    • evictVolume

      public Operation evictVolume(EvictVolumeRequest request) throws io.grpc.StatusException
       Skips volume's cooloff and deletes it now.
       Volume must be in cooloff state.
       
      Throws:
      io.grpc.StatusException
    • resizeVolume

      public Operation resizeVolume(ResizeVolumeRequest request) throws io.grpc.StatusException
       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

      public Network getNetwork(GetNetworkRequest request) throws io.grpc.StatusException
       Get details of a single network.
       
      Throws:
      io.grpc.StatusException
    • updateNetwork

      public Operation updateNetwork(UpdateNetworkRequest request) throws io.grpc.StatusException
       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

      public Lun getLun(GetLunRequest request) throws io.grpc.StatusException
       Get details of a single storage logical unit number(LUN).
       
      Throws:
      io.grpc.StatusException
    • listLuns

      public ListLunsResponse listLuns(ListLunsRequest request) throws io.grpc.StatusException
       List storage volume luns for given storage volume.
       
      Throws:
      io.grpc.StatusException
    • evictLun

      public Operation evictLun(EvictLunRequest request) throws io.grpc.StatusException
       Skips lun's cooloff and deletes it now.
       Lun must be in cooloff state.
       
      Throws:
      io.grpc.StatusException
    • getNfsShare

      public NfsShare getNfsShare(GetNfsShareRequest request) throws io.grpc.StatusException
       Get details of a single NFS share.
       
      Throws:
      io.grpc.StatusException
    • listNfsShares

      public ListNfsSharesResponse listNfsShares(ListNfsSharesRequest request) throws io.grpc.StatusException
       List NFS shares.
       
      Throws:
      io.grpc.StatusException
    • updateNfsShare

      public Operation updateNfsShare(UpdateNfsShareRequest request) throws io.grpc.StatusException
       Update details of a single NFS share.
       
      Throws:
      io.grpc.StatusException
    • createNfsShare

      public Operation createNfsShare(CreateNfsShareRequest request) throws io.grpc.StatusException
       Create an NFS share.
       
      Throws:
      io.grpc.StatusException
    • renameNfsShare

      public NfsShare renameNfsShare(RenameNfsShareRequest request) throws io.grpc.StatusException
       RenameNfsShare sets a new name for an nfsshare.
       Use with caution, previous names become immediately invalidated.
       
      Throws:
      io.grpc.StatusException
    • deleteNfsShare

      public Operation deleteNfsShare(DeleteNfsShareRequest request) throws io.grpc.StatusException
       Delete an NFS share. The underlying volume is automatically deleted.
       
      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

      public Network renameNetwork(RenameNetworkRequest request) throws io.grpc.StatusException
       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