Using Console
Using CLI
Using Python
GOOGLE_APPLICATION_CREDENTIALS
environment variable to the path of your service account key file:
google-cloud-storage
library to get a list of all the buckets in your project:
get_iam_policy
method and checking if the uniformBucketLevelAccess
key is present in the returned policy: