Class BareMetalSolutionGrpc.BareMetalSolutionStub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<BareMetalSolutionGrpc.BareMetalSolutionStub>
com.google.cloud.baremetalsolution.v2.BareMetalSolutionGrpc.BareMetalSolutionStub
Enclosing class:
BareMetalSolutionGrpc

public static final class BareMetalSolutionGrpc.BareMetalSolutionStub extends io.grpc.stub.AbstractAsyncStub<BareMetalSolutionGrpc.BareMetalSolutionStub>
A stub to allow clients to do asynchronous 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.BareMetalSolutionStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<BareMetalSolutionGrpc.BareMetalSolutionStub>
    • listInstances

      public void listInstances(ListInstancesRequest request, io.grpc.stub.StreamObserver<ListInstancesResponse> responseObserver)
       List servers in a given project and location.
       
    • getInstance

      public void getInstance(GetInstanceRequest request, io.grpc.stub.StreamObserver<Instance> responseObserver)
       Get details about a single server.
       
    • updateInstance

      public void updateInstance(UpdateInstanceRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Update details of a single server.
       
    • renameInstance

      public void renameInstance(RenameInstanceRequest request, io.grpc.stub.StreamObserver<Instance> responseObserver)
       RenameInstance sets a new name for an instance.
       Use with caution, previous names become immediately invalidated.
       
    • resetInstance

      public void resetInstance(ResetInstanceRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Perform an ungraceful, hard reset on a server. Equivalent to shutting the
       power off and then turning it back on.
       
    • startInstance

      public void startInstance(StartInstanceRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Starts a server that was shutdown.
       
    • stopInstance

      public void stopInstance(StopInstanceRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Stop a running server.
       
    • enableInteractiveSerialConsole

      public void enableInteractiveSerialConsole(EnableInteractiveSerialConsoleRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Enable the interactive serial console feature on an instance.
       
    • disableInteractiveSerialConsole

      public void disableInteractiveSerialConsole(DisableInteractiveSerialConsoleRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Disable the interactive serial console feature on an instance.
       
    • detachLun

      public void detachLun(DetachLunRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Detach LUN from Instance.
       
    • listSSHKeys

      public void listSSHKeys(ListSSHKeysRequest request, io.grpc.stub.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.
       
    • createSSHKey

      public void createSSHKey(CreateSSHKeyRequest request, io.grpc.stub.StreamObserver<SSHKey> responseObserver)
       Register a public SSH key in the specified project for use with the
       interactive serial console feature.
       
    • deleteSSHKey

      public void deleteSSHKey(DeleteSSHKeyRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
       Deletes a public SSH key registered in the specified project.
       
    • listVolumes

      public void listVolumes(ListVolumesRequest request, io.grpc.stub.StreamObserver<ListVolumesResponse> responseObserver)
       List storage volumes in a given project and location.
       
    • getVolume

      public void getVolume(GetVolumeRequest request, io.grpc.stub.StreamObserver<Volume> responseObserver)
       Get details of a single storage volume.
       
    • updateVolume

      public void updateVolume(UpdateVolumeRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Update details of a single storage volume.
       
    • renameVolume

      public void renameVolume(RenameVolumeRequest request, io.grpc.stub.StreamObserver<Volume> responseObserver)
       RenameVolume sets a new name for a volume.
       Use with caution, previous names become immediately invalidated.
       
    • evictVolume

      public void evictVolume(EvictVolumeRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Skips volume's cooloff and deletes it now.
       Volume must be in cooloff state.
       
    • resizeVolume

      public void resizeVolume(ResizeVolumeRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Emergency Volume resize.
       
    • listNetworks

      public void listNetworks(ListNetworksRequest request, io.grpc.stub.StreamObserver<ListNetworksResponse> responseObserver)
       List network in a given project and location.
       
    • listNetworkUsage

      public void listNetworkUsage(ListNetworkUsageRequest request, io.grpc.stub.StreamObserver<ListNetworkUsageResponse> responseObserver)
       List all Networks (and used IPs for each Network) in the vendor account
       associated with the specified project.
       
    • getNetwork

      public void getNetwork(GetNetworkRequest request, io.grpc.stub.StreamObserver<Network> responseObserver)
       Get details of a single network.
       
    • updateNetwork

      public void updateNetwork(UpdateNetworkRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Update details of a single network.
       
    • createVolumeSnapshot

      public void createVolumeSnapshot(CreateVolumeSnapshotRequest request, io.grpc.stub.StreamObserver<VolumeSnapshot> responseObserver)
       Takes a snapshot of a boot volume.
       Returns INVALID_ARGUMENT if called for a non-boot volume.
       
    • restoreVolumeSnapshot

      public void restoreVolumeSnapshot(RestoreVolumeSnapshotRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Uses the specified snapshot to restore its parent volume.
       Returns INVALID_ARGUMENT if called for a non-boot volume.
       
    • deleteVolumeSnapshot

      public void deleteVolumeSnapshot(DeleteVolumeSnapshotRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
       Deletes a volume snapshot.
       Returns INVALID_ARGUMENT if called for a non-boot volume.
       
    • getVolumeSnapshot

      public void getVolumeSnapshot(GetVolumeSnapshotRequest request, io.grpc.stub.StreamObserver<VolumeSnapshot> responseObserver)
       Returns the specified snapshot resource.
       Returns INVALID_ARGUMENT if called for a non-boot volume.
       
    • listVolumeSnapshots

      public void listVolumeSnapshots(ListVolumeSnapshotsRequest request, io.grpc.stub.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.
       
    • getLun

      public void getLun(GetLunRequest request, io.grpc.stub.StreamObserver<Lun> responseObserver)
       Get details of a single storage logical unit number(LUN).
       
    • listLuns

      public void listLuns(ListLunsRequest request, io.grpc.stub.StreamObserver<ListLunsResponse> responseObserver)
       List storage volume luns for given storage volume.
       
    • evictLun

      public void evictLun(EvictLunRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Skips lun's cooloff and deletes it now.
       Lun must be in cooloff state.
       
    • getNfsShare

      public void getNfsShare(GetNfsShareRequest request, io.grpc.stub.StreamObserver<NfsShare> responseObserver)
       Get details of a single NFS share.
       
    • listNfsShares

      public void listNfsShares(ListNfsSharesRequest request, io.grpc.stub.StreamObserver<ListNfsSharesResponse> responseObserver)
       List NFS shares.
       
    • updateNfsShare

      public void updateNfsShare(UpdateNfsShareRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Update details of a single NFS share.
       
    • createNfsShare

      public void createNfsShare(CreateNfsShareRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Create an NFS share.
       
    • renameNfsShare

      public void renameNfsShare(RenameNfsShareRequest request, io.grpc.stub.StreamObserver<NfsShare> responseObserver)
       RenameNfsShare sets a new name for an nfsshare.
       Use with caution, previous names become immediately invalidated.
       
    • deleteNfsShare

      public void deleteNfsShare(DeleteNfsShareRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
       Delete an NFS share. The underlying volume is automatically deleted.
       
    • listProvisioningQuotas

      public void listProvisioningQuotas(ListProvisioningQuotasRequest request, io.grpc.stub.StreamObserver<ListProvisioningQuotasResponse> responseObserver)
       List the budget details to provision resources on a given project.
       
    • submitProvisioningConfig

      public void submitProvisioningConfig(SubmitProvisioningConfigRequest request, io.grpc.stub.StreamObserver<SubmitProvisioningConfigResponse> responseObserver)
       Submit a provisiong configuration for a given project.
       
    • getProvisioningConfig

      public void getProvisioningConfig(GetProvisioningConfigRequest request, io.grpc.stub.StreamObserver<ProvisioningConfig> responseObserver)
       Get ProvisioningConfig by name.
       
    • createProvisioningConfig

      public void createProvisioningConfig(CreateProvisioningConfigRequest request, io.grpc.stub.StreamObserver<ProvisioningConfig> responseObserver)
       Create new ProvisioningConfig.
       
    • updateProvisioningConfig

      public void updateProvisioningConfig(UpdateProvisioningConfigRequest request, io.grpc.stub.StreamObserver<ProvisioningConfig> responseObserver)
       Update existing ProvisioningConfig.
       
    • renameNetwork

      public void renameNetwork(RenameNetworkRequest request, io.grpc.stub.StreamObserver<Network> responseObserver)
       RenameNetwork sets a new name for a network.
       Use with caution, previous names become immediately invalidated.
       
    • listOSImages

      public void listOSImages(ListOSImagesRequest request, io.grpc.stub.StreamObserver<ListOSImagesResponse> responseObserver)
       Retrieves the list of OS images which are currently approved.