Class StorageRoles (2.46.0)

public class 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.

Inheritance

java.lang.Object > StorageRoles

Static Methods

admin()

public static Role admin()

Grants the following permissions:

  • storage.buckets.*
  • storage.objects.*
Returns
Type Description
com.google.cloud.Role

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
Returns
Type Description
com.google.cloud.Role

legacyBucketReader()

public static Role legacyBucketReader()

Grants the following permissions:

  • storage.buckets.get
  • storage.objects.list
Returns
Type Description
com.google.cloud.Role

legacyBucketWriter()

public static Role legacyBucketWriter()

Grants the following permissions:

  • storage.buckets.get
  • storage.objects.list
  • storage.objects.create
  • storage.objects.delete
Returns
Type Description
com.google.cloud.Role

legacyObjectOwner()

public static Role legacyObjectOwner()

Grants the following permissions:

  • storage.objects.get
  • storage.objects.update
  • storage.objects.getIamPolicy
  • storage.objects.setIamPolicy
Returns
Type Description
com.google.cloud.Role

legacyObjectReader()

public static Role legacyObjectReader()

Grants the following permissions:

  • storage.objects.get
Returns
Type Description
com.google.cloud.Role

objectAdmin()

public static Role objectAdmin()

Grants the following permissions:

  • storage.objects.*
Returns
Type Description
com.google.cloud.Role

objectCreator()

public static Role objectCreator()

Grants the following permissions:

  • storage.objects.create
Returns
Type Description
com.google.cloud.Role

objectViewer()

public static Role objectViewer()

Grants the following permissions:

  • storage.objects.list
  • storage.objects.get
Returns
Type Description
com.google.cloud.Role