Skip to content

Commit

Permalink
feat: add update_mask to UpdateBuildTriggerRequest proto (#421)
Browse files Browse the repository at this point in the history
* chore: Update gapic-generator-python to v1.11.4

PiperOrigin-RevId: 547897126

Source-Link: googleapis/googleapis@c09c75e

Source-Link: googleapis/googleapis-gen@45e0ec4
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDVlMGVjNDM0MzUxN2NkMGFhNjZiNWNhNjQyMzJhMTgwMmMyZjk0NSJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* feat: add git_file_source and git_repo_source to build_trigger

PiperOrigin-RevId: 550012872

Source-Link: googleapis/googleapis@f90d153

Source-Link: googleapis/googleapis-gen@7682e23
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzY4MmUyMzFiNjA1OGFhNDM5YjRiNGY2ZGYyMzYyNDBiZjg4YjNlMiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* feat: Add automap_substitutions flag to use substitutions as envs in Cloud Build

PiperOrigin-RevId: 551218480

Source-Link: googleapis/googleapis@f823915

Source-Link: googleapis/googleapis-gen@5979eec
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTk3OWVlY2Q4ZDJiMGZjMTU4ZmU3MTUyYTRkYTQzY2VkMjkyOTc4MCJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* feat: add update_mask to UpdateBuildTriggerRequest proto

PiperOrigin-RevId: 552479161

Source-Link: googleapis/googleapis@f8415bd

Source-Link: googleapis/googleapis-gen@4ac7667
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGFjNzY2N2M3ZGVhMzg3MzhkOWUyMTc2MzA1YTgwNGRlMjI1OGJlMSJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* fix docs build. Issue filed upstream here googleapis/gapic-generator-python#1724

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
  • Loading branch information
3 people authored Aug 8, 2023
1 parent 8d16687 commit e635c0f
Show file tree
Hide file tree
Showing 11 changed files with 541 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@
from google.cloud.devtools.cloudbuild_v1.types.cloudbuild import GetBuildRequest
from google.cloud.devtools.cloudbuild_v1.types.cloudbuild import GetBuildTriggerRequest
from google.cloud.devtools.cloudbuild_v1.types.cloudbuild import GetWorkerPoolRequest
from google.cloud.devtools.cloudbuild_v1.types.cloudbuild import GitFileSource
from google.cloud.devtools.cloudbuild_v1.types.cloudbuild import GitHubEnterpriseConfig
from google.cloud.devtools.cloudbuild_v1.types.cloudbuild import GitHubEnterpriseSecrets
from google.cloud.devtools.cloudbuild_v1.types.cloudbuild import GitHubEventsConfig
from google.cloud.devtools.cloudbuild_v1.types.cloudbuild import GitRepoSource
from google.cloud.devtools.cloudbuild_v1.types.cloudbuild import GitSource
from google.cloud.devtools.cloudbuild_v1.types.cloudbuild import Hash
from google.cloud.devtools.cloudbuild_v1.types.cloudbuild import InlineSecret
Expand Down Expand Up @@ -135,7 +139,11 @@
"GetBuildRequest",
"GetBuildTriggerRequest",
"GetWorkerPoolRequest",
"GitFileSource",
"GitHubEnterpriseConfig",
"GitHubEnterpriseSecrets",
"GitHubEventsConfig",
"GitRepoSource",
"GitSource",
"Hash",
"InlineSecret",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@
from .types.cloudbuild import GetBuildRequest
from .types.cloudbuild import GetBuildTriggerRequest
from .types.cloudbuild import GetWorkerPoolRequest
from .types.cloudbuild import GitFileSource
from .types.cloudbuild import GitHubEnterpriseConfig
from .types.cloudbuild import GitHubEnterpriseSecrets
from .types.cloudbuild import GitHubEventsConfig
from .types.cloudbuild import GitRepoSource
from .types.cloudbuild import GitSource
from .types.cloudbuild import Hash
from .types.cloudbuild import InlineSecret
Expand Down Expand Up @@ -111,7 +115,11 @@
"GetBuildRequest",
"GetBuildTriggerRequest",
"GetWorkerPoolRequest",
"GitFileSource",
"GitHubEnterpriseConfig",
"GitHubEnterpriseSecrets",
"GitHubEventsConfig",
"GitRepoSource",
"GitSource",
"Hash",
"InlineSecret",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ class CloudBuildAsyncClient:
parse_build_trigger_path = staticmethod(CloudBuildClient.parse_build_trigger_path)
crypto_key_path = staticmethod(CloudBuildClient.crypto_key_path)
parse_crypto_key_path = staticmethod(CloudBuildClient.parse_crypto_key_path)
github_enterprise_config_path = staticmethod(
CloudBuildClient.github_enterprise_config_path
)
parse_github_enterprise_config_path = staticmethod(
CloudBuildClient.parse_github_enterprise_config_path
)
network_path = staticmethod(CloudBuildClient.network_path)
parse_network_path = staticmethod(CloudBuildClient.parse_network_path)
repository_path = staticmethod(CloudBuildClient.repository_path)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,25 @@ def parse_crypto_key_path(path: str) -> Dict[str, str]:
)
return m.groupdict() if m else {}

@staticmethod
def github_enterprise_config_path(
project: str,
config: str,
) -> str:
"""Returns a fully-qualified github_enterprise_config string."""
return "projects/{project}/githubEnterpriseConfigs/{config}".format(
project=project,
config=config,
)

@staticmethod
def parse_github_enterprise_config_path(path: str) -> Dict[str, str]:
"""Parses a github_enterprise_config path into its component segments."""
m = re.match(
r"^projects/(?P<project>.+?)/githubEnterpriseConfigs/(?P<config>.+?)$", path
)
return m.groupdict() if m else {}

@staticmethod
def network_path(
project: str,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@
GetBuildRequest,
GetBuildTriggerRequest,
GetWorkerPoolRequest,
GitFileSource,
GitHubEnterpriseConfig,
GitHubEnterpriseSecrets,
GitHubEventsConfig,
GitRepoSource,
GitSource,
Hash,
InlineSecret,
Expand Down Expand Up @@ -103,7 +107,11 @@
"GetBuildRequest",
"GetBuildTriggerRequest",
"GetWorkerPoolRequest",
"GitFileSource",
"GitHubEnterpriseConfig",
"GitHubEnterpriseSecrets",
"GitHubEventsConfig",
"GitRepoSource",
"GitSource",
"Hash",
"InlineSecret",
Expand Down
Loading

0 comments on commit e635c0f

Please sign in to comment.