I'm able to create storage buckets on Google Cloud, but I'm not able to choose the storage class {Multi-regional, Regional, Nearline, Coldline} or the location {'us-west1', etc}.
from google.cloud import storage
def CreateBucket(name):
try:
storageClient = storage.Client()
bucket = storageClient.create_bucket(name)
print(f'Bucket {bucket.name} created.')
except Exception as ex:
print(f'exception!\n{ex}')
name = 'my_globally_unique_bucket_name'
CreateBucket(name)
The current documentation does not show any parameters beyond bucket_name in Python; however, Go, Java, Node.JS, and Ruby all show parameters for the storage class and location options.