Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit d0ea9a2

Browse files
authored
Merge branch 'main' into remove-unused-protobuf-dependency
2 parents 1030a2c + 17d6db5 commit d0ea9a2

39 files changed

Lines changed: 1172 additions & 1130 deletions

File tree

BUILD.bazel

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,44 @@ toolchain_type(
77
visibility = ["//visibility:public"],
88
)
99

10+
pandoc_toolchain(
11+
exec_compatible_with = [
12+
"@platforms//os:linux",
13+
"@platforms//cpu:arm64",
14+
],
15+
platform = "linux_arm_64",
16+
)
17+
1018
pandoc_toolchain(
1119
exec_compatible_with = [
1220
"@platforms//os:linux",
1321
"@platforms//cpu:x86_64",
1422
],
15-
platform = "linux",
23+
platform = "linux_x86_64",
24+
)
25+
26+
pandoc_toolchain(
27+
exec_compatible_with = [
28+
"@platforms//os:osx",
29+
"@platforms//cpu:arm64",
30+
],
31+
platform = "macOS_arm_64",
1632
)
1733

1834
pandoc_toolchain(
1935
exec_compatible_with = [
2036
"@platforms//os:osx",
2137
"@platforms//cpu:x86_64",
2238
],
23-
platform = "macOS",
39+
platform = "macOS_x86_64",
40+
)
41+
42+
pandoc_toolchain(
43+
exec_compatible_with = [
44+
"@platforms//os:windows",
45+
"@platforms//cpu:x86_64",
46+
],
47+
platform = "windows_x86_64",
2448
)
2549

2650
pandoc_binary(

repositories.bzl

Lines changed: 35 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,42 @@ def gapic_generator_python():
2828

2929
_maybe(
3030
http_archive,
31-
name = "pandoc_linux",
31+
name = "pandoc_linux_arm_64",
3232
build_file_content = _PANDOC_BUILD_FILE,
33-
strip_prefix = "pandoc-2.2.1",
34-
url = "https://github.com/jgm/pandoc/releases/download/2.2.1/pandoc-2.2.1-linux.tar.gz",
33+
strip_prefix = "pandoc-3.7.0.2",
34+
url = "https://github.com/jgm/pandoc/releases/download/3.7.0.2/pandoc-3.7.0.2-linux-arm64.tar.gz",
3535
)
3636

3737
_maybe(
3838
http_archive,
39-
name = "pandoc_macOS",
39+
name = "pandoc_linux_x86_64",
4040
build_file_content = _PANDOC_BUILD_FILE,
41-
strip_prefix = "pandoc-2.2.1",
42-
url = "https://github.com/jgm/pandoc/releases/download/2.2.1/pandoc-2.2.1-macOS.zip",
41+
strip_prefix = "pandoc-3.7.0.2",
42+
url = "https://github.com/jgm/pandoc/releases/download/3.7.0.2/pandoc-3.7.0.2-linux-amd64.tar.gz",
43+
)
44+
45+
_maybe(
46+
http_archive,
47+
name = "pandoc_macOS_arm_64",
48+
build_file_content = _PANDOC_BUILD_FILE,
49+
strip_prefix = "pandoc-3.7.0.2",
50+
url = "https://github.com/jgm/pandoc/releases/download/3.7.0.2/pandoc-3.7.0.2-arm64-macOS.zip",
51+
)
52+
53+
_maybe(
54+
http_archive,
55+
name = "pandoc_macOS_x86_64",
56+
build_file_content = _PANDOC_BUILD_FILE,
57+
strip_prefix = "pandoc-3.7.0.2",
58+
url = "https://github.com/jgm/pandoc/releases/download/3.7.0.2/pandoc-3.7.0.2-x86_64-macOS.zip",
59+
)
60+
61+
_maybe(
62+
http_archive,
63+
name = "pandoc_windows_x86_64",
64+
build_file_content = _PANDOC_BUILD_FILE,
65+
strip_prefix = "pandoc-3.7.0.2",
66+
url = "https://github.com/jgm/pandoc/releases/download/3.7.0.2/pandoc-3.7.0.2-windows-x86_64.zip",
4367
)
4468

4569
_rules_gapic_version = "0.5.4"
@@ -59,8 +83,11 @@ def gapic_generator_python():
5983

6084
def gapic_generator_register_toolchains():
6185
native.register_toolchains(
62-
"@gapic_generator_python//:pandoc_toolchain_linux",
63-
"@gapic_generator_python//:pandoc_toolchain_macOS",
86+
"@gapic_generator_python//:pandoc_toolchain_linux_arm_64",
87+
"@gapic_generator_python//:pandoc_toolchain_linux_x86_64",
88+
"@gapic_generator_python//:pandoc_toolchain_macOS_arm_64",
89+
"@gapic_generator_python//:pandoc_toolchain_macOS_x86_64",
90+
"@gapic_generator_python//:pandoc_toolchain_windows_x86_64",
6491
)
6592

6693
def _maybe(repo_rule, name, strip_repo_prefix = "", **kwargs):

tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/async_client.py

Lines changed: 135 additions & 137 deletions
Large diffs are not rendered by default.

tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/client.py

Lines changed: 135 additions & 137 deletions
Large diffs are not rendered by default.

tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/transports/grpc.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -976,16 +976,16 @@ def analyze_org_policy_governed_assets(self) -> Callable[
976976
resources or policies) under a scope. This RPC supports custom
977977
constraints and the following 10 canned constraints:
978978
979-
- storage.uniformBucketLevelAccess
980-
- iam.disableServiceAccountKeyCreation
981-
- iam.allowedPolicyMemberDomains
982-
- compute.vmExternalIpAccess
983-
- appengine.enforceServiceAccountActAsCheck
984-
- gcp.resourceLocations
985-
- compute.trustedImageProjects
986-
- compute.skipDefaultNetworkCreation
987-
- compute.requireOsLogin
988-
- compute.disableNestedVirtualization
979+
- storage.uniformBucketLevelAccess
980+
- iam.disableServiceAccountKeyCreation
981+
- iam.allowedPolicyMemberDomains
982+
- compute.vmExternalIpAccess
983+
- appengine.enforceServiceAccountActAsCheck
984+
- gcp.resourceLocations
985+
- compute.trustedImageProjects
986+
- compute.skipDefaultNetworkCreation
987+
- compute.requireOsLogin
988+
- compute.disableNestedVirtualization
989989
990990
This RPC only returns either resources of types supported by
991991
`searchable asset

tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/transports/grpc_asyncio.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -982,16 +982,16 @@ def analyze_org_policy_governed_assets(self) -> Callable[
982982
resources or policies) under a scope. This RPC supports custom
983983
constraints and the following 10 canned constraints:
984984
985-
- storage.uniformBucketLevelAccess
986-
- iam.disableServiceAccountKeyCreation
987-
- iam.allowedPolicyMemberDomains
988-
- compute.vmExternalIpAccess
989-
- appengine.enforceServiceAccountActAsCheck
990-
- gcp.resourceLocations
991-
- compute.trustedImageProjects
992-
- compute.skipDefaultNetworkCreation
993-
- compute.requireOsLogin
994-
- compute.disableNestedVirtualization
985+
- storage.uniformBucketLevelAccess
986+
- iam.disableServiceAccountKeyCreation
987+
- iam.allowedPolicyMemberDomains
988+
- compute.vmExternalIpAccess
989+
- appengine.enforceServiceAccountActAsCheck
990+
- gcp.resourceLocations
991+
- compute.trustedImageProjects
992+
- compute.skipDefaultNetworkCreation
993+
- compute.requireOsLogin
994+
- compute.disableNestedVirtualization
995995
996996
This RPC only returns either resources of types supported by
997997
`searchable asset

0 commit comments

Comments
 (0)