Home
last modified time | relevance | path

Searched refs:bucket_name (Results 1 – 5 of 5) sorted by relevance

/tools/acloud/setup/
Dgcp_setup_runner.py411 def _BucketIsValid(self, bucket_name, gcloud_runner): argument
424 return (self._BucketExists(bucket_name, gcloud_runner) and
425 self._BucketInDefaultRegion(bucket_name, gcloud_runner))
441 bucket_name = self._GenerateBucketName(self.project)
442 if (self._BucketExists(bucket_name, gcloud_runner) and
443 not self._BucketInDefaultRegion(bucket_name, gcloud_runner)):
444 bucket_name += ("-" + _DEFAULT_BUCKET_REGION.lower())
445 if not self._BucketExists(bucket_name, gcloud_runner):
446 self._CreateBucket(bucket_name, gcloud_runner)
447 return bucket_name
[all …]
Dgcp_setup_runner_test.py134 bucket_name = self.gcp_env_runner._GenerateBucketName(
136 self.assertEqual(bucket_name, "acloud-fake_project")
140 bucket_name = self.gcp_env_runner._GenerateBucketName(
142 self.assertEqual(bucket_name, "acloud-fake_project")
145 bucket_name = self.gcp_env_runner._GenerateBucketName(
147 self.assertEqual(bucket_name,
151 bucket_name = self.gcp_env_runner._GenerateBucketName("fake_project__--")
152 self.assertEqual(bucket_name, "acloud-fake_project")
/tools/acloud/internal/lib/
Dgstorage_client.py43 def Get(self, bucket_name, object_name): argument
54 bucket=bucket_name, object=object_name)
57 def List(self, bucket_name, prefix=None): argument
69 logger.debug("Listing storage bucket: %s, prefix: %s", bucket_name,
73 bucket=bucket_name,
77 def Upload(self, local_src, bucket_name, object_name, mime_type): argument
90 local_src, bucket_name, object_name)
95 bucket=bucket_name, name=object_name, media_body=media)
103 def Delete(self, bucket_name, object_name): argument
110 logger.info("Deleting file: bucket: %s, object: %s", bucket_name,
[all …]
/tools/acloud/public/
Ddevice_driver.py147 bucket_name=self._cfg.storage_bucket_name,
560 items = storage_client.List(bucket_name=cfg.storage_bucket_name)
568 bucket_name=cfg.storage_bucket_name,
Ddevice_driver_test.py280 bucket_name=cfg.storage_bucket_name)
282 bucket_name=cfg.storage_bucket_name,