def METHOD_NAME(self):
    if self.project != "":
        logger.debug(f"Setting project to {self.project}")
        result = subprocess.run(
            ["gcloud", "config", "set", "project", self.project],
            capture_output=True,
        )
        if result.returncode != 0:
            sys.exit(
                "Unable to configure project %s: %s"
                % (self.project, result.stderr.decode("utf-8"))
            )
    if self.region != "":
        logger.debug(f"Setting region to {self.region}")
        result = subprocess.run(
            ["gcloud", "config", "set", "compute/region", self.region],
            capture_output=True,
        )
        if result.returncode != 0:
            sys.exit(
                "Unable to configure region %s: %s"
                % (self.region, result.stderr.decode("utf-8"))
            )