GeezerVison is showing github.com — chore: regenerate gapic yaml and service yaml for config by augmentat… · googleapis/googleapis@1cfbbd2
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboard +21Lines changed: 21 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +module( | | 2 | + name = "googleapis", | | 3 | + version = "{GOOGLEAPIS_VERSION}", | | 4 | + repo_name = "com_google_googleapis", | | 5 | + bazel_compatibility = [">=7.2.1"], | | 6 | +) | | 7 | + | | 8 | +# Only needed for well-known protos. | | 9 | +bazel_dep(name = "protobuf", version = "{PROTOBUF_VERSION}", repo_name = "com_google_protobuf") | | 10 | + | | 11 | +# Only needed for proto_library. | | 12 | +bazel_dep(name = "rules_proto", version = "5.3.0-21.7") | | 13 | + | | 14 | +bazel_dep(name = "googleapis-rules-registry", version = "1.0.0") | | 15 | + | | 16 | +rules_registry = use_extension("@googleapis-rules-registry//private/extensions:rules_registry.bzl", "rules_registry") | | 17 | +use_repo( | | 18 | + rules_registry, | | 19 | + "com_google_googleapis_imports", | | 20 | + "io_bazel_rules_go", | | 21 | +) |
Collapse file Copy file name to clipboard +34Lines changed: 34 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +""" | | 2 | +Extends the bazel module with the ability to enable and disable groups of build rules | | 3 | +""" | | 4 | + | | 5 | +_use_languages_tag = tag_class( | | 6 | + attrs = { | | 7 | + "cc": attr.bool(default = False), | | 8 | + "upb_c": attr.bool(default = False), | | 9 | + "csharp": attr.bool(default = False), | | 10 | + "gapic": attr.bool(default = False), | | 11 | + "go": attr.bool(default = False), | | 12 | + "go_test": attr.bool(default = False), | | 13 | + "grpc": attr.bool(default = False), | | 14 | + "java": attr.bool(default = False), | | 15 | + "nodejs": attr.bool(default = False), | | 16 | + "php": attr.bool(default = False), | | 17 | + "python": attr.bool(default = False), | | 18 | + "ruby": attr.bool(default = False), | | 19 | + }, | | 20 | +) | | 21 | + | | 22 | +def _switched_rules_impl(_ctx): | | 23 | + # This extension is no longer used, but provided for compatibility. | | 24 | + # Since only googleapis used to 'use_repo' a repository from this extension, | | 25 | + # it is no longer being evaluated except possibly by 'bazel mod'. For this | | 26 | + # reason, showing an error or warning here is pointless. | | 27 | + pass | | 28 | + | | 29 | +switched_rules = module_extension( | | 30 | + implementation = _switched_rules_impl, | | 31 | + tag_classes = { | | 32 | + "use_languages": _use_languages_tag, | | 33 | + }, | | 34 | +) |
Collapse file Copy file name to clipboard +5Lines changed: 5 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +common --java_runtime_version=remotejdk_11 | | 2 | + | | 3 | +# Disable warnings for external dependencies. | | 4 | +common --per_file_copt=external/.*@-w | | 5 | +common --host_per_file_copt=external/.*@-w |
Collapse file Copy file name to clipboard +13Lines changed: 13 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +bazel_dep(name = "bazel_skylib", version = "1.7.1") | | 2 | +bazel_dep(name = "googleapis") | | 3 | +bazel_dep(name = "googleapis-cc", version = "1.0.0") | | 4 | +bazel_dep(name = "googleapis-go", version = "1.0.0") | | 5 | +bazel_dep(name = "googleapis-java", version = "1.0.0") | | 6 | +bazel_dep(name = "googleapis-python", version = "1.0.0") | | 7 | +bazel_dep(name = "googleapis-grpc-cc", version = "1.0.0") | | 8 | +bazel_dep(name = "googleapis-grpc-java", version = "1.0.0") | | 9 | + | | 10 | +local_path_override( | | 11 | + module_name = "googleapis", | | 12 | + path = "../..", | | 13 | +) |
Collapse file Copy file name to clipboard +15Lines changed: 15 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +""" | | 2 | +Confirms php proto libraries are not supported by bzlmod | | 3 | +""" | | 4 | + | | 5 | +load("@bazel_skylib//lib:unittest.bzl", "analysistest", "asserts") | | 6 | + | | 7 | +def _php_proto_library_fails_with_message_test_impl(ctx): | | 8 | + env = analysistest.begin(ctx) | | 9 | + asserts.expect_failure(env, """php_proto_library targets in googleapis are not supported with Bzlmod. If you need them, please file an issue at https://github.com/bazelbuild/bazel-central-registry.""") | | 10 | + return analysistest.end(env) | | 11 | + | | 12 | +php_proto_library_fails_with_message_test = analysistest.make( | | 13 | + _php_proto_library_fails_with_message_test_impl, | | 14 | + expect_failure = True, | | 15 | +) |
Collapse file Copy file name to clipboard +124Lines changed: 124 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +diff --git google/api/expr/v1alpha1/BUILD.bazel google/api/expr/v1alpha1/BUILD.bazel | | 2 | +index 9bed46809..197e5249c 100644 | | 3 | +--- google/api/expr/v1alpha1/BUILD.bazel | | 4 | ++++ google/api/expr/v1alpha1/BUILD.bazel | | 5 | +@@ -233,32 +233,32 @@ cc_proto_library( | | 6 | + ############################################################################## | | 7 | + # upb | | 8 | + ############################################################################## | | 9 | +-load( | | 10 | +- "@com_google_googleapis_imports//:imports.bzl", | | 11 | +- "upb_c_proto_library", | | 12 | +-) | | 13 | +- | | 14 | +-upb_c_proto_library( | | 15 | +- name = "checked_upb_proto", | | 16 | +- deps = [":checked_proto"], | | 17 | +-) | | 18 | +- | | 19 | +-upb_c_proto_library( | | 20 | +- name = "eval_upb_proto", | | 21 | +- deps = [":eval_proto"], | | 22 | +-) | | 23 | +- | | 24 | +-upb_c_proto_library( | | 25 | +- name = "explain_upb_proto", | | 26 | +- deps = [":explain_proto"], | | 27 | +-) | | 28 | +- | | 29 | +-upb_c_proto_library( | | 30 | +- name = "syntax_upb_proto", | | 31 | +- deps = [":syntax_proto"], | | 32 | +-) | | 33 | +- | | 34 | +-upb_c_proto_library( | | 35 | +- name = "value_upb_proto", | | 36 | +- deps = [":value_proto"], | | 37 | +-) | | 38 | ++#load( | | 39 | ++ #"@com_google_googleapis_imports//:imports.bzl", | | 40 | ++ #"upb_c_proto_library", | | 41 | ++#) | | 42 | ++# | | 43 | ++#upb_c_proto_library( | | 44 | ++ #name = "checked_upb_proto", | | 45 | ++ #deps = [":checked_proto"], | | 46 | ++#) | | 47 | ++# | | 48 | ++#upb_c_proto_library( | | 49 | ++ #name = "eval_upb_proto", | | 50 | ++ #deps = [":eval_proto"], | | 51 | ++#) | | 52 | ++# | | 53 | ++#upb_c_proto_library( | | 54 | ++ #name = "explain_upb_proto", | | 55 | ++ #deps = [":explain_proto"], | | 56 | ++#) | | 57 | ++# | | 58 | ++#upb_c_proto_library( | | 59 | ++ #name = "syntax_upb_proto", | | 60 | ++ #deps = [":syntax_proto"], | | 61 | ++#) | | 62 | ++# | | 63 | ++#upb_c_proto_library( | | 64 | ++ #name = "value_upb_proto", | | 65 | ++ #deps = [":value_proto"], | | 66 | ++#) | | 67 | +diff --git google/rpc/BUILD.bazel google/rpc/BUILD.bazel | | 68 | +index 31fd6457d..c38f00c46 100644 | | 69 | +--- google/rpc/BUILD.bazel | | 70 | ++++ google/rpc/BUILD.bazel | | 71 | +@@ -11,7 +11,7 @@ load( | | 72 | + "php_proto_library", | | 73 | + "py_gapic_assembly_pkg", | | 74 | + "py_proto_library", | | 75 | +- "upb_c_proto_library", | | 76 | ++ #"upb_c_proto_library", | | 77 | + ) | | 78 | + load("@rules_proto//proto:defs.bzl", "proto_library") | | 79 | + | | 80 | +@@ -104,15 +104,15 @@ cc_proto_library( | | 81 | + deps = [":status_proto"], | | 82 | + ) | | 83 | + | | 84 | +-upb_c_proto_library( | | 85 | +- name = "code_upb_proto", | | 86 | +- deps = [":code_proto"], | | 87 | +-) | | 88 | ++#upb_c_proto_library( | | 89 | ++ #name = "code_upb_proto", | | 90 | ++ #deps = [":code_proto"], | | 91 | ++#) | | 92 | + | | 93 | +-upb_c_proto_library( | | 94 | +- name = "status_upb_proto", | | 95 | +- deps = [":status_proto"], | | 96 | +-) | | 97 | ++#upb_c_proto_library( | | 98 | ++ #name = "status_upb_proto", | | 99 | ++ #deps = [":status_proto"], | | 100 | ++#) | | 101 | + | | 102 | + py_proto_library( | | 103 | + name = "code_py_proto", | | 104 | +diff --git repository_rules.bzl repository_rules.bzl | | 105 | +index 2f87ad682..2ab3bd054 100644 | | 106 | +--- repository_rules.bzl | | 107 | ++++ repository_rules.bzl | | 108 | +@@ -224,11 +224,11 @@ def switched_rules_by_language( | | 109 | + # | | 110 | + # upb | | 111 | + # | | 112 | +- rules["upb_c_proto_library"] = _switch( | | 113 | +- upb, | | 114 | +- "@com_google_protobuf//bazel:upb_c_proto_library.bzl", | | 115 | +- "upb_c_proto_library", | | 116 | +- ) | | 117 | ++ #rules["upb_c_proto_library"] = _switch( | | 118 | ++ # upb, | | 119 | ++ # "@com_google_protobuf//bazel:upb_c_proto_library.bzl", | | 120 | ++ # "upb_c_proto_library", | | 121 | ++ #) | | 122 | + | | 123 | + # | | 124 | + # PHP |
Collapse file Copy file name to clipboard +14Lines changed: 14 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +bcr_test_module: | | 2 | + module_path: "tests/bcr" | | 3 | + matrix: | | 4 | + platform: ["debian10", "macos", "ubuntu2004", "windows"] | | 5 | + bazel: ["7.x", "8.x"] | | 6 | + tasks: | | 7 | + run_tests: | | 8 | + name: "Run test module" | | 9 | + bazel: ${{ bazel }} | | 10 | + platform: ${{ platform }} | | 11 | + build_targets: | | 12 | + - "//..." | | 13 | + test_targets: | | 14 | + - "//..." |
Collapse file Copy file name to clipboard +11-8Lines changed: 11 additions & 8 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +# Generated by the PublicProtoGen Gapic Yaml Generator. DO NOT EDIT. | | 2 | +# Any manual changes will be overwritten by the publication process. | | 3 | + | 1 | 4 | type: com.google.api.codegen.ConfigProto | 2 | 5 | config_schema_version: 2.0.0 | 3 | 6 | interfaces: | @@ -6,30 +9,30 @@ interfaces: | 6 | 9 | - name: CreateDeployment | 7 | 10 | long_running: | 8 | 11 | initial_poll_delay_millis: 300000 | 9 | | - max_poll_delay_millis: 3600000 | 10 | 12 | poll_delay_multiplier: 1.25 | | 13 | + max_poll_delay_millis: 3600000 | 11 | 14 | total_poll_timeout_millis: 43200000 | 12 | | - - name: UpdateDeployment | | 15 | + - name: CreatePreview | 13 | 16 | long_running: | 14 | 17 | initial_poll_delay_millis: 300000 | 15 | | - max_poll_delay_millis: 3600000 | 16 | 18 | poll_delay_multiplier: 1.25 | | 19 | + max_poll_delay_millis: 3600000 | 17 | 20 | total_poll_timeout_millis: 43200000 | 18 | 21 | - name: DeleteDeployment | 19 | 22 | long_running: | 20 | 23 | initial_poll_delay_millis: 300000 | 21 | | - max_poll_delay_millis: 3600000 | 22 | 24 | poll_delay_multiplier: 1.25 | | 25 | + max_poll_delay_millis: 3600000 | 23 | 26 | total_poll_timeout_millis: 43200000 | 24 | | - - name: CreatePreview | | 27 | + - name: DeletePreview | 25 | 28 | long_running: | 26 | 29 | initial_poll_delay_millis: 300000 | 27 | | - max_poll_delay_millis: 3600000 | 28 | 30 | poll_delay_multiplier: 1.25 | | 31 | + max_poll_delay_millis: 3600000 | 29 | 32 | total_poll_timeout_millis: 43200000 | 30 | | - - name: DeletePreview | | 33 | + - name: UpdateDeployment | 31 | 34 | long_running: | 32 | 35 | initial_poll_delay_millis: 300000 | 33 | | - max_poll_delay_millis: 3600000 | 34 | 36 | poll_delay_multiplier: 1.25 | | 37 | + max_poll_delay_millis: 3600000 | 35 | 38 | total_poll_timeout_millis: 43200000 |
Collapse file Copy file name to clipboardExpand all lines: google/cloud/config/v1/config_v1.yaml +31Lines changed: 31 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -92,6 +92,37 @@ authentication: | 92 | 92 | https://www.googleapis.com/auth/cloud-platform | 93 | 93 |
| 94 | 94 | publishing: | | 95 | + method_settings: | | 96 | + - selector: google.cloud.config.v1.Config.CreateDeployment | | 97 | + long_running: | | 98 | + initial_poll_delay: 300s | | 99 | + poll_delay_multiplier: 1.25 | | 100 | + max_poll_delay: 3600s | | 101 | + total_poll_timeout: 43200s | | 102 | + - selector: google.cloud.config.v1.Config.UpdateDeployment | | 103 | + long_running: | | 104 | + initial_poll_delay: 300s | | 105 | + poll_delay_multiplier: 1.25 | | 106 | + max_poll_delay: 3600s | | 107 | + total_poll_timeout: 43200s | | 108 | + - selector: google.cloud.config.v1.Config.DeleteDeployment | | 109 | + long_running: | | 110 | + initial_poll_delay: 300s | | 111 | + poll_delay_multiplier: 1.25 | | 112 | + max_poll_delay: 3600s | | 113 | + total_poll_timeout: 43200s | | 114 | + - selector: google.cloud.config.v1.Config.CreatePreview | | 115 | + long_running: | | 116 | + initial_poll_delay: 300s | | 117 | + poll_delay_multiplier: 1.25 | | 118 | + max_poll_delay: 3600s | | 119 | + total_poll_timeout: 43200s | | 120 | + - selector: google.cloud.config.v1.Config.DeletePreview | | 121 | + long_running: | | 122 | + initial_poll_delay: 300s | | 123 | + poll_delay_multiplier: 1.25 | | 124 | + max_poll_delay: 3600s | | 125 | + total_poll_timeout: 43200s | 95 | 126 | new_issue_uri: https://issuetracker.google.com/issues/new?component=536700 | 96 | 127 | documentation_uri: https://cloud.google.com/infrastructure-manager/docs/overview | 97 | 128 | api_short_name: infra-manager | |
|