Class CloudFilestoreManagerGrpc.CloudFilestoreManagerBlockingV2Stub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<CloudFilestoreManagerGrpc.CloudFilestoreManagerBlockingV2Stub>
com.google.cloud.filestore.v1beta1.CloudFilestoreManagerGrpc.CloudFilestoreManagerBlockingV2Stub
Enclosing class:
CloudFilestoreManagerGrpc

public static final class CloudFilestoreManagerGrpc.CloudFilestoreManagerBlockingV2Stub extends io.grpc.stub.AbstractBlockingStub<CloudFilestoreManagerGrpc.CloudFilestoreManagerBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service CloudFilestoreManager.
 Configures and manages Filestore resources.
 Filestore Manager v1beta1.
 The `file.googleapis.com` service implements the Filestore API and
 defines the following model for managing resources:
 * The service works with a collection of cloud projects, named: `/projects/*`
 * Each project has a collection of available locations, named: `/locations/*`
 * Each location has a collection of instances and backups, named:
 `/instances/*` and `/backups/*` respectively.
 * As such, Filestore instances are resources of the form:
   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
   backups are resources of the form:
   `/projects/{project_id}/locations/{location_id}/backup/{backup_id}`
 Note that location_id can represent a Google Cloud `zone` or `region`
 depending on the resource. for example: A zonal Filestore instance:
 * `projects/my-project/locations/us-central1-c/instances/my-basic-tier-filer`
 A regional Filestore instance:
 * `projects/my-project/locations/us-central1/instances/my-enterprise-filer`
 
  • Method Details

    • build

      protected CloudFilestoreManagerGrpc.CloudFilestoreManagerBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<CloudFilestoreManagerGrpc.CloudFilestoreManagerBlockingV2Stub>
    • listInstances

      public ListInstancesResponse listInstances(ListInstancesRequest request) throws io.grpc.StatusException
       Lists all instances in a project for either a specified location
       or for all locations.
       
      Throws:
      io.grpc.StatusException
    • getInstance

      public Instance getInstance(GetInstanceRequest request) throws io.grpc.StatusException
       Gets the details of a specific instance.
       
      Throws:
      io.grpc.StatusException
    • createInstance

      public Operation createInstance(CreateInstanceRequest request) throws io.grpc.StatusException
       Creates an instance.
       When creating from a backup, the capacity of the new instance needs to be
       equal to or larger than the capacity of the backup (and also equal to or
       larger than the minimum capacity of the tier).
       
      Throws:
      io.grpc.StatusException
    • updateInstance

      public Operation updateInstance(UpdateInstanceRequest request) throws io.grpc.StatusException
       Updates the settings of a specific instance.
       
      Throws:
      io.grpc.StatusException
    • restoreInstance

      public Operation restoreInstance(RestoreInstanceRequest request) throws io.grpc.StatusException
       Restores an existing instance's file share from a backup.
       The capacity of the instance needs to be equal to or larger than the
       capacity of the backup (and also equal to or larger than the minimum
       capacity of the tier).
       
      Throws:
      io.grpc.StatusException
    • revertInstance

      public Operation revertInstance(RevertInstanceRequest request) throws io.grpc.StatusException
       Revert an existing instance's file system to a specified snapshot.
       
      Throws:
      io.grpc.StatusException
    • promoteReplica

      public Operation promoteReplica(PromoteReplicaRequest request) throws io.grpc.StatusException
       Promote the standby instance (replica).
       
      Throws:
      io.grpc.StatusException
    • deleteInstance

      public Operation deleteInstance(DeleteInstanceRequest request) throws io.grpc.StatusException
       Deletes an instance.
       
      Throws:
      io.grpc.StatusException
    • listSnapshots

      public ListSnapshotsResponse listSnapshots(ListSnapshotsRequest request) throws io.grpc.StatusException
       Lists all snapshots in a project for either a specified location
       or for all locations.
       
      Throws:
      io.grpc.StatusException
    • getSnapshot

      public Snapshot getSnapshot(GetSnapshotRequest request) throws io.grpc.StatusException
       Gets the details of a specific snapshot.
       
      Throws:
      io.grpc.StatusException
    • createSnapshot

      public Operation createSnapshot(CreateSnapshotRequest request) throws io.grpc.StatusException
       Creates a snapshot.
       
      Throws:
      io.grpc.StatusException
    • deleteSnapshot

      public Operation deleteSnapshot(DeleteSnapshotRequest request) throws io.grpc.StatusException
       Deletes a snapshot.
       
      Throws:
      io.grpc.StatusException
    • updateSnapshot

      public Operation updateSnapshot(UpdateSnapshotRequest request) throws io.grpc.StatusException
       Updates the settings of a specific snapshot.
       
      Throws:
      io.grpc.StatusException
    • listBackups

      public ListBackupsResponse listBackups(ListBackupsRequest request) throws io.grpc.StatusException
       Lists all backups in a project for either a specified location or for all
       locations.
       
      Throws:
      io.grpc.StatusException
    • getBackup

      public Backup getBackup(GetBackupRequest request) throws io.grpc.StatusException
       Gets the details of a specific backup.
       
      Throws:
      io.grpc.StatusException
    • createBackup

      public Operation createBackup(CreateBackupRequest request) throws io.grpc.StatusException
       Creates a backup.
       
      Throws:
      io.grpc.StatusException
    • deleteBackup

      public Operation deleteBackup(DeleteBackupRequest request) throws io.grpc.StatusException
       Deletes a backup.
       
      Throws:
      io.grpc.StatusException
    • updateBackup

      public Operation updateBackup(UpdateBackupRequest request) throws io.grpc.StatusException
       Updates the settings of a specific backup.
       
      Throws:
      io.grpc.StatusException
    • listShares

      public ListSharesResponse listShares(ListSharesRequest request) throws io.grpc.StatusException
       Lists all shares for a specified instance.
       
      Throws:
      io.grpc.StatusException
    • getShare

      public Share getShare(GetShareRequest request) throws io.grpc.StatusException
       Gets the details of a specific share.
       
      Throws:
      io.grpc.StatusException
    • createShare

      public Operation createShare(CreateShareRequest request) throws io.grpc.StatusException
       Creates a share.
       
      Throws:
      io.grpc.StatusException
    • deleteShare

      public Operation deleteShare(DeleteShareRequest request) throws io.grpc.StatusException
       Deletes a share.
       
      Throws:
      io.grpc.StatusException
    • updateShare

      public Operation updateShare(UpdateShareRequest request) throws io.grpc.StatusException
       Updates the settings of a specific share.
       
      Throws:
      io.grpc.StatusException