Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion third_party/googleapis/.bazeliskrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# See https://github.com/bazelbuild/bazelisk
USE_BAZEL_VERSION=3.0.0
USE_BAZEL_VERSION=4.0.0
16 changes: 16 additions & 0 deletions third_party/googleapis/.github/mistaken-pull-closer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# The JSONPath filter expression used to identify which PRs to close.
# The data filtered is the pull request data along with other metadata passed in
# by probot.
# Default behavior: Close all PRs.
filters:
- true

# The message to post to the closed PR.
commentBody: |
Thanks for your contribution! Unfortunately, we don't use GitHub pull
requests to manage code contributions to this repository. Instead, please
see [CONTRIBUTING.md](../blob/master/CONTRIBUTING.md) which provides full
instructions on how to get involved.

# Whether to add a label to the closed PR.
addLabel: false
30 changes: 30 additions & 0 deletions third_party/googleapis/.github/workflows/generate_api_index.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Generate API Index
on: # yamllint disable-line rule:truthy
push:
branches: [master]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v1.8.0
- name: Checkout googleapis (this repository)
uses: actions/checkout@v2
- name: Checkout index generator
uses: actions/checkout@v2
with:
repository: googleapis/googleapis-api-index-generator
path: gen
- name: Generate API index
run: |
gen/scripts/generate-schema.sh
gen/scripts/generate-index.sh $PWD
cp gen/tmp/api-index-v1.json $PWD
- name: Commit API index
run: |
[[ ! $(git diff --exit-code api-index-v1.json) ]] && echo "Nothing to commit." && exit 0
git config user.name "Google APIs"
git add api-index-v1.json
git commit -m "chore: regenerate API index"
git push
3 changes: 1 addition & 2 deletions third_party/googleapis/.kokoro/.bazelrc
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
build --extra_toolchains=@gapic_generator_python//:pyenv3_toolchain --define=gapic_gen_python=3.6
test --extra_toolchains=@gapic_generator_python//:pyenv3_toolchain --define=gapic_gen_python=3.6

27 changes: 27 additions & 0 deletions third_party/googleapis/.kokoro/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM python:3.8

RUN apt-get update

RUN apt-get install -y \
zip \
build-essential \
python-dev \
python3-dev \
openjdk-11-jdk

RUN mkdir -p /tools
WORKDIR /tools
RUN curl -L https://github.com/bazelbuild/bazelisk/releases/download/v1.8.0/bazelisk-linux-amd64 -o bazelisk
RUN chmod +x bazelisk
RUN curl -L https://github.com/bazelbuild/bazel/releases/download/4.0.0/bazel-4.0.0-linux-x86_64 -o bazel
RUN chmod +x bazel
WORKDIR /

ENV PATH="/tools:${PATH}"

ENV BAZELISK_BIN=/tools/bazelisk
ENV BAZEL_BIN=/tools/bazelisk

RUN apt-get clean

ENTRYPOINT [ "/bin/bash" ]
3 changes: 0 additions & 3 deletions third_party/googleapis/.kokoro/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ set -e
cd ${KOKORO_ARTIFACTS_DIR}/github/googleapis
cp .kokoro/.bazelrc $HOME/.bazelrc

# shellcheck source=/dev/null
source .kokoro/setup.sh

#
# Run build and tests
#
Expand Down
2 changes: 1 addition & 1 deletion third_party/googleapis/.kokoro/continuous.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Format: //devtools/kokoro/config/proto/build.proto

build_file: "googleapis/.kokoro/build.sh"
build_file: "googleapis/.kokoro/start.sh"
2 changes: 1 addition & 1 deletion third_party/googleapis/.kokoro/presubmit.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Format: //devtools/kokoro/config/proto/build.proto

build_file: "googleapis/.kokoro/build.sh"
build_file: "googleapis/.kokoro/start.sh"
34 changes: 0 additions & 34 deletions third_party/googleapis/.kokoro/setup.sh

This file was deleted.

14 changes: 14 additions & 0 deletions third_party/googleapis/.kokoro/start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

set -e

export BAZEL_ROOT=/bazel_root

docker container run \
--env KOKORO_ROOT --env KOKORO_ARTIFACTS_DIR --env KOKORO_PIPER_DIR --env BAZEL_ROOT \
--volume ${KOKORO_ROOT}:${KOKORO_ROOT} \
--tmpfs ${BAZEL_ROOT}:exec \
--workdir ${KOKORO_ROOT} \
--ipc=host \
--entrypoint ${KOKORO_ARTIFACTS_DIR}/github/googleapis/.kokoro/build.sh \
gcr.io/gapic-images/googleapis:20210423
43 changes: 43 additions & 0 deletions third_party/googleapis/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Contributor Code of Conduct

As contributors and maintainers of this project,
and in the interest of fostering an open and welcoming community,
we pledge to respect all people who contribute through reporting issues,
posting feature requests, updating documentation,
submitting pull requests or patches, and other activities.

We are committed to making participation in this project
a harassment-free experience for everyone,
regardless of level of experience, gender, gender identity and expression,
sexual orientation, disability, personal appearance,
body size, race, ethnicity, age, religion, or nationality.

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery
* Personal attacks
* Trolling or insulting/derogatory comments
* Public or private harassment
* Publishing other's private information,
such as physical or electronic
addresses, without explicit permission
* Other unethical or unprofessional conduct.

Project maintainers have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct.
By adopting this Code of Conduct,
project maintainers commit themselves to fairly and consistently
applying these principles to every aspect of managing this project.
Project maintainers who do not follow or enforce the Code of Conduct
may be permanently removed from the project team.

This code of conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community.

Instances of abusive, harassing, or otherwise unacceptable behavior
may be reported by opening an issue
or contacting one or more of the project maintainers.

This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.2.0,
available at [http://contributor-covenant.org/version/1/2/0/](http://contributor-covenant.org/version/1/2/0/)
7 changes: 7 additions & 0 deletions third_party/googleapis/SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Security Policy

To report a security issue, please use [g.co/vulnz](https://g.co/vulnz).

The Google Security Team will respond within 5 working days of your report on g.co/vulnz.

We use g.co/vulnz for our intake, and do coordination and disclosure here using GitHub Security Advisory to privately discuss and fix the issue.
99 changes: 58 additions & 41 deletions third_party/googleapis/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ rules_proto_toolchains()
# section
http_archive(
name = "com_google_api_codegen",
strip_prefix = "gapic-generator-2.10.4",
urls = ["https://github.com/googleapis/gapic-generator/archive/v2.10.4.zip"],
strip_prefix = "gapic-generator-2.11.0",
urls = ["https://github.com/googleapis/gapic-generator/archive/v2.11.0.zip"],
)

# rules_go (support Golang under bazel)
Expand Down Expand Up @@ -128,7 +128,7 @@ go_register_toolchains()

gazelle_dependencies()

_rules_gapic_version = "0.5.0"
_rules_gapic_version = "0.5.3"

http_archive(
name = "rules_gapic",
Expand All @@ -154,9 +154,8 @@ rules_gapic_repositories()

http_archive(
name = "com_github_grpc_grpc",
sha256 = "0f330e4734f49d2bfdb9ad195b021720b5dd2e2a534cdf21c7ddc7f7eb42e170",
strip_prefix = "grpc-1.33.1",
urls = ["https://github.com/grpc/grpc/archive/v1.33.1.zip"],
strip_prefix = "grpc-1.36.4",
urls = ["https://github.com/grpc/grpc/archive/v1.36.4.zip"],
)

load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
Expand All @@ -178,27 +177,7 @@ apple_support_dependencies()
##############################################################################
# Java
##############################################################################
# Java microgenerator.
_gapic_generator_java_version = "1.0.1"

http_archive(
name = "gapic_generator_java",
strip_prefix = "gapic-generator-java-%s" % _gapic_generator_java_version,
urls = ["https://github.com/googleapis/gapic-generator-java/archive/v%s.zip" % _gapic_generator_java_version],
)

load("@gapic_generator_java//:repository_rules.bzl", "gapic_generator_java_properties")

gapic_generator_java_properties(
name = "gapic_generator_java_properties",
file = "@gapic_generator_java//:dependencies.properties",
)

load("@gapic_generator_java//:repositories.bzl", "gapic_generator_java_repositories")

gapic_generator_java_repositories()

_gax_java_version = "1.62.0"
_gax_java_version = "1.63.3"

http_archive(
name = "com_google_api_gax_java",
Expand All @@ -221,6 +200,27 @@ load("@io_grpc_grpc_java//:repositories.bzl", "grpc_java_repositories")

grpc_java_repositories()

# Java microgenerator.
# Must go AFTER java-gax, since both java gax and gapic-generator are written in java and may conflict.
_gapic_generator_java_version = "1.0.9"

http_archive(
name = "gapic_generator_java",
strip_prefix = "gapic-generator-java-%s" % _gapic_generator_java_version,
urls = ["https://github.com/googleapis/gapic-generator-java/archive/v%s.zip" % _gapic_generator_java_version],
)

load("@gapic_generator_java//:repository_rules.bzl", "gapic_generator_java_properties")

gapic_generator_java_properties(
name = "gapic_generator_java_properties",
file = "@gapic_generator_java//:dependencies.properties",
)

load("@gapic_generator_java//:repositories.bzl", "gapic_generator_java_repositories")

gapic_generator_java_repositories()

# gapic-generator transitive
# (goes AFTER java-gax, since both java gax and gapic-generator are written in java and may conflict)
load("@com_google_api_codegen//:repository_rules.bzl", "com_google_api_codegen_properties")
Expand Down Expand Up @@ -278,8 +278,8 @@ pip_repositories()

http_archive(
name = "gapic_generator_python",
strip_prefix = "gapic-generator-python-0.42.2",
urls = ["https://github.com/googleapis/gapic-generator-python/archive/v0.42.2.zip"],
strip_prefix = "gapic-generator-python-0.46.3",
urls = ["https://github.com/googleapis/gapic-generator-python/archive/v0.46.3.zip"],
)

load(
Expand All @@ -296,10 +296,12 @@ gapic_generator_register_toolchains()
# Go
##############################################################################

_gapic_generator_go_version = "0.20.0"

http_archive(
name = "com_googleapis_gapic_generator_go",
strip_prefix = "gapic-generator-go-0.18.4",
urls = ["https://github.com/googleapis/gapic-generator-go/archive/v0.18.4.tar.gz"],
strip_prefix = "gapic-generator-go-%s" % _gapic_generator_go_version,
urls = ["https://github.com/googleapis/gapic-generator-go/archive/v%s.tar.gz" % _gapic_generator_go_version],
)

load("@com_googleapis_gapic_generator_go//:repositories.bzl", "com_googleapis_gapic_generator_go_repositories")
Expand All @@ -314,9 +316,9 @@ go_gapic_repositories()
# TypeScript
##############################################################################

_gapic_generator_typescript_version = "1.2.11"
_gapic_generator_typescript_version = "1.4.0"

_gapic_generator_typescript_sha256 = "cefde7dc7c1b7150c9eb237cafb778f2430a5416c8ee6fa706537437d2a517ea"
_gapic_generator_typescript_sha256 = "34718494b0696706ccfa46c8ed360f1999d7e33d5121aa86bb302af402b72d46"

### TypeScript generator
http_archive(
Expand Down Expand Up @@ -358,11 +360,12 @@ php(
php_gapic_repositories()

# PHP micro-generator (beta)
_gapic_generator_php_version = "0.1.6"

http_archive(
name = "gapic_generator_php",
strip_prefix = "gapic-generator-php-1.0.0-beta04",
urls = ["https://github.com/googleapis/gapic-generator-php/archive/v1.0.0-beta04.zip"],
strip_prefix = "gapic-generator-php-%s" % _gapic_generator_php_version,
urls = ["https://github.com/googleapis/gapic-generator-php/archive/v%s.zip" % _gapic_generator_php_version],
)

load("@gapic_generator_php//:repositories.bzl", "gapic_generator_php_repositories")
Expand All @@ -374,17 +377,27 @@ gapic_generator_php_repositories()
##############################################################################

# Required to access the C#-specific common resources config.
_gax_dotnet_version = "Google.Api.Gax-3.3.0"

_gax_dotnet_sha256 = "c4d31345a226987e8551cb81afa685c9322d3f806077d9f02011676cf00c15d9"

http_archive(
name = "gax_dotnet",
build_file_content = "exports_files([\"Google.Api.Gax/ResourceNames/CommonResourcesConfig.json\"])",
strip_prefix = "gax-dotnet-b4bf8c3e67a89e558f06af60f777bd12abe84392",
urls = ["https://github.com/googleapis/gax-dotnet/archive/b4bf8c3e67a89e558f06af60f777bd12abe84392.zip"],
sha256 = _gax_dotnet_sha256,
strip_prefix = "gax-dotnet-%s" % _gax_dotnet_version,
urls = ["https://github.com/googleapis/gax-dotnet/archive/refs/tags/%s.tar.gz" % _gax_dotnet_version],
)

_gapic_generator_csharp_version = "1.3.6"

_gapic_generator_csharp_sha256 = "6340309dc6b86bfd0dc2c9fca41cf991c7163eda2f48a7062fe4da5bd62c99d6"

http_archive(
name = "gapic_generator_csharp",
strip_prefix = "gapic-generator-csharp-1.3.1",
urls = ["https://github.com/googleapis/gapic-generator-csharp/archive/v1.3.1.zip"],
sha256 = _gapic_generator_csharp_sha256,
strip_prefix = "gapic-generator-csharp-%s" % _gapic_generator_csharp_version,
urls = ["https://github.com/googleapis/gapic-generator-csharp/archive/refs/tags/v%s.tar.gz" % _gapic_generator_csharp_version],
)

load("@gapic_generator_csharp//:repositories.bzl", "gapic_generator_csharp_repositories")
Expand All @@ -394,11 +407,15 @@ gapic_generator_csharp_repositories()
##############################################################################
# Ruby
##############################################################################
_gapic_generator_ruby_version = "e10d40afa96a28036da03bb9b0af17d702715886"

_gapic_generator_ruby_sha256 = "a560f2f0d12411b2b4f76ba087f6fcf4d517ef1e9abec1b5a517dfe348e67f3b"

http_archive(
name = "gapic_generator_ruby",
strip_prefix = "gapic-generator-ruby-56da7d96565f670ceaaa64d6489431f13e60574e",
urls = ["https://github.com/googleapis/gapic-generator-ruby/archive/56da7d96565f670ceaaa64d6489431f13e60574e.zip"],
sha256 = _gapic_generator_ruby_sha256,
strip_prefix = "gapic-generator-ruby-%s" % _gapic_generator_ruby_version,
urls = ["https://github.com/googleapis/gapic-generator-ruby/archive/%s.tar.gz" % _gapic_generator_ruby_version],
)

load("@gapic_generator_ruby//rules_ruby_gapic:repositories.bzl", "gapic_generator_ruby_repositories")
Expand Down
Loading