Skip to content

Commit

Permalink
chore: remove use of googleapis-discovery (#1280)
Browse files Browse the repository at this point in the history
* chore: remove use of googleapis-discovery

* remove constant and method for googleapis-discovery

Co-authored-by: Anthonios Partheniou <partheniou@google.com>
  • Loading branch information
2 people authored and Lo Ferris committed Apr 19, 2022
1 parent 1144bd6 commit b3b46aa
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions synthtool/gcp/gapic_bazel.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@

GOOGLEAPIS_URL: str = git.make_repo_clone_url("googleapis/googleapis")
GOOGLEAPIS_PRIVATE_URL: str = git.make_repo_clone_url("googleapis/googleapis-private")
GOOGLEAPIS_DISCOVERY_URL: str = git.make_repo_clone_url(
"googleapis/googleapis-discovery"
)
DISCOVERY_ARTIFACT_MANAGER_URL: str = git.make_repo_clone_url(
"googleapis/discovery-artifact-manager"
)
Expand Down Expand Up @@ -94,9 +91,6 @@ def _generate_code(
if discogapic:
api_definitions_repo = self._clone_discovery_artifact_manager()
api_definitions_repo_name = "discovery-artifact-manager"
elif diregapic:
api_definitions_repo = self._clone_googleapis_discovery()
api_definitions_repo_name = "googleapis-discovery"
elif private:
api_definitions_repo = self._clone_googleapis_private()
api_definitions_repo_name = "googleapis_private"
Expand Down Expand Up @@ -296,22 +290,6 @@ def _clone_googleapis_private(self):

return self._googleapis_private

def _clone_googleapis_discovery(self):
if self._googleapis_discovery:
return self._googleapis_discovery

if LOCAL_GOOGLEAPIS_DISCOVERY:
self._googleapis_discovery = Path(LOCAL_GOOGLEAPIS_DISCOVERY).expanduser()
logger.debug(
f"Using local googleapis-discovery at {self._googleapis_discovery}"
)

else:
logger.debug("Cloning googleapis-discovery.")
self._googleapis_discovery = git.clone(GOOGLEAPIS_DISCOVERY_URL)

return self._googleapis_discovery

def _clone_discovery_artifact_manager(self):
if self._discovery_artifact_manager:
return self._discovery_artifact_manager
Expand Down

0 comments on commit b3b46aa

Please sign in to comment.