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 com.google.cloud.Role
    Grants the following permissions: storage.buckets.* storage.objects.*
    static com.google.cloud.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 com.google.cloud.Role
    Grants the following permissions: storage.buckets.get storage.objects.list
    static com.google.cloud.Role
    Grants the following permissions: storage.buckets.get storage.objects.list storage.objects.create storage.objects.delete
    static com.google.cloud.Role
    Grants the following permissions: storage.objects.get storage.objects.update storage.objects.getIamPolicy storage.objects.setIamPolicy
    static com.google.cloud.Role
    Grants the following permissions: storage.objects.get
    static com.google.cloud.Role
    Grants the following permissions: storage.objects.*
    static com.google.cloud.Role
    Grants the following permissions: storage.objects.create
    static com.google.cloud.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 com.google.cloud.Role admin()
      Grants the following permissions:
      • storage.buckets.*
      • storage.objects.*
    • objectViewer

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

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

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

      public static com.google.cloud.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 com.google.cloud.Role legacyBucketWriter()
      Grants the following permissions:
      • storage.buckets.get
      • storage.objects.list
      • storage.objects.create
      • storage.objects.delete
    • legacyBucketReader

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

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

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