Class StorageRoles

java.lang.Object
com.google.cloud.storage.StorageRoles

public class StorageRoles extends Object
IAM roles specific to Storage. An overview of the permissions available to Storage and the capabilities they grant can be found in the Google Cloud Storage IAM documentation.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Role
    Grants the following permissions: storage.buckets.* storage.objects.*
    static Role
    Grants the following permissions: storage.buckets.get storage.buckets.update storage.buckets.setIamPolicy storage.buckets.getIamPolicy storage.objects.list storage.objects.create storage.objects.delete
    static Role
    Grants the following permissions: storage.buckets.get storage.objects.list
    static Role
    Grants the following permissions: storage.buckets.get storage.objects.list storage.objects.create storage.objects.delete
    static Role
    Grants the following permissions: storage.objects.get storage.objects.update storage.objects.getIamPolicy storage.objects.setIamPolicy
    static Role
    Grants the following permissions: storage.objects.get
    static Role
    Grants the following permissions: storage.objects.*
    static Role
    Grants the following permissions: storage.objects.create
    static Role
    Grants the following permissions: storage.objects.list storage.objects.get

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • admin

      public static Role admin()
      Grants the following permissions:
      • storage.buckets.*
      • storage.objects.*
    • objectViewer

      public static Role objectViewer()
      Grants the following permissions:
      • storage.objects.list
      • storage.objects.get
    • objectCreator

      public static Role objectCreator()
      Grants the following permissions:
      • storage.objects.create
    • objectAdmin

      public static Role objectAdmin()
      Grants the following permissions:
      • storage.objects.*
    • legacyBucketOwner

      public static Role legacyBucketOwner()
      Grants the following permissions:
      • storage.buckets.get
      • storage.buckets.update
      • storage.buckets.setIamPolicy
      • storage.buckets.getIamPolicy
      • storage.objects.list
      • storage.objects.create
      • storage.objects.delete
    • legacyBucketWriter

      public static Role legacyBucketWriter()
      Grants the following permissions:
      • storage.buckets.get
      • storage.objects.list
      • storage.objects.create
      • storage.objects.delete
    • legacyBucketReader

      public static Role legacyBucketReader()
      Grants the following permissions:
      • storage.buckets.get
      • storage.objects.list
    • legacyObjectOwner

      public static Role legacyObjectOwner()
      Grants the following permissions:
      • storage.objects.get
      • storage.objects.update
      • storage.objects.getIamPolicy
      • storage.objects.setIamPolicy
    • legacyObjectReader

      public static Role legacyObjectReader()
      Grants the following permissions:
      • storage.objects.get