Package com.google.cloud.storage
Class StorageRoles
java.lang.Object
com.google.cloud.storage.StorageRoles
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 TypeMethodDescriptionstatic com.google.cloud.Role
admin()
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.deletestatic com.google.cloud.Role
Grants the following permissions: storage.buckets.get storage.objects.liststatic com.google.cloud.Role
Grants the following permissions: storage.buckets.get storage.objects.list storage.objects.create storage.objects.deletestatic com.google.cloud.Role
Grants the following permissions: storage.objects.get storage.objects.update storage.objects.getIamPolicy storage.objects.setIamPolicystatic com.google.cloud.Role
Grants the following permissions: storage.objects.getstatic com.google.cloud.Role
Grants the following permissions: storage.objects.*static com.google.cloud.Role
Grants the following permissions: storage.objects.createstatic com.google.cloud.Role
Grants the following permissions: storage.objects.list storage.objects.get
-
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
-