Пример #1
0
 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
Пример #2
0
 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
Пример #3
0
 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
Пример #4
0
 def GetAndCreateDaisyBucket(self):
     bucket_name = daisy_utils.GetDaisyBucketName()
     self.storage_client.CreateBucketIfNotExists(bucket_name)
     return bucket_name