def GetAndCreateDaisyBucket(self): bucket_location = self.storage_client.GetBucketLocationForFile( self.source_file_gcs_uri) bucket_name = daisy_utils.GetDaisyBucketName(bucket_location) self.storage_client.CreateBucketIfNotExists(bucket_name, location=bucket_location) return bucket_name
def _GetDaisyBucket(self, args): storage_client = storage_api.StorageClient() bucket_location = storage_client.GetBucketLocationForFile( args.destination_uri) bucket_name = daisy_utils.GetDaisyBucketName(bucket_location) storage_client.CreateBucketIfNotExists(bucket_name) return bucket_name
def GetAndCreateDaisyBucket(self): bucket_location = self.GetBucketLocation() bucket_name = daisy_utils.GetDaisyBucketName(bucket_location) self.storage_client.CreateBucketIfNotExists(bucket_name, location=bucket_location) return bucket_name
def GetAndCreateDaisyBucket(self): bucket_name = daisy_utils.GetDaisyBucketName() self.storage_client.CreateBucketIfNotExists(bucket_name) return bucket_name