Skip to content

Commit

Permalink
Merge branch 'google:master' into shorebird/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanoltman authored Apr 22, 2024
2 parents 647f96d + bf977cc commit 8213043
Show file tree
Hide file tree
Showing 529 changed files with 189,998 additions and 78,502 deletions.
72 changes: 36 additions & 36 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable"
Expand All @@ -34,7 +34,7 @@ jobs:
sdk: stable
- id: checkout
name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- name: mono_repo self validate
run: dart pub global activate mono_repo 6.6.1
- name: mono_repo self validate
Expand All @@ -44,7 +44,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.0.0;packages:_test-_test_package-discoveryapis_commons-discoveryapis_generator-generated/googleapis-generated/googleapis_beta-generator;commands:analyze_1"
Expand All @@ -59,7 +59,7 @@ jobs:
sdk: "3.0.0"
- id: checkout
name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- id: _test_pub_upgrade
name: _test; dart pub upgrade
run: dart pub upgrade
Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.2.0;packages:googleapis_auth-test_integration;commands:analyze_1"
Expand All @@ -143,7 +143,7 @@ jobs:
sdk: "3.2.0"
- id: checkout
name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- id: googleapis_auth_pub_upgrade
name: googleapis_auth; dart pub upgrade
run: dart pub upgrade
Expand All @@ -167,7 +167,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:_test-_test_package-discoveryapis_commons-discoveryapis_generator-generated/googleapis-generated/googleapis_beta-generator-googleapis_auth-test_integration;commands:format-analyze_0"
Expand All @@ -182,7 +182,7 @@ jobs:
sdk: dev
- id: checkout
name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- id: _test_pub_upgrade
name: _test; dart pub upgrade
run: dart pub upgrade
Expand Down Expand Up @@ -305,7 +305,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.0.0;packages:_test_package;commands:test_0"
Expand All @@ -320,7 +320,7 @@ jobs:
sdk: "3.0.0"
- id: checkout
name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- id: _test_package_pub_upgrade
name: _test_package; dart pub upgrade
run: dart pub upgrade
Expand All @@ -340,7 +340,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.0.0;packages:discoveryapis_commons;commands:test_0"
Expand All @@ -355,7 +355,7 @@ jobs:
sdk: "3.0.0"
- id: checkout
name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- id: discoveryapis_commons_pub_upgrade
name: discoveryapis_commons; dart pub upgrade
run: dart pub upgrade
Expand All @@ -375,7 +375,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.0.0;packages:discoveryapis_generator;commands:test_0"
Expand All @@ -390,7 +390,7 @@ jobs:
sdk: "3.0.0"
- id: checkout
name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- id: discoveryapis_generator_pub_upgrade
name: discoveryapis_generator; dart pub upgrade
run: dart pub upgrade
Expand All @@ -410,7 +410,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.0.0;packages:generated/googleapis;commands:test_0"
Expand All @@ -425,7 +425,7 @@ jobs:
sdk: "3.0.0"
- id: checkout
name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- id: generated_googleapis_pub_upgrade
name: generated/googleapis; dart pub upgrade
run: dart pub upgrade
Expand All @@ -445,7 +445,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.0.0;packages:generated/googleapis_beta;commands:test_0"
Expand All @@ -460,7 +460,7 @@ jobs:
sdk: "3.0.0"
- id: checkout
name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- id: generated_googleapis_beta_pub_upgrade
name: generated/googleapis_beta; dart pub upgrade
run: dart pub upgrade
Expand All @@ -480,7 +480,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.2.0;packages:googleapis_auth;commands:test_2"
Expand All @@ -495,7 +495,7 @@ jobs:
sdk: "3.2.0"
- id: checkout
name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- id: googleapis_auth_pub_upgrade
name: googleapis_auth; dart pub upgrade
run: dart pub upgrade
Expand All @@ -515,7 +515,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.2.0;packages:googleapis_auth;commands:test_1"
Expand All @@ -530,7 +530,7 @@ jobs:
sdk: "3.2.0"
- id: checkout
name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- id: googleapis_auth_pub_upgrade
name: googleapis_auth; dart pub upgrade
run: dart pub upgrade
Expand All @@ -550,7 +550,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:_test_package;commands:test_0"
Expand All @@ -565,7 +565,7 @@ jobs:
sdk: dev
- id: checkout
name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- id: _test_package_pub_upgrade
name: _test_package; dart pub upgrade
run: dart pub upgrade
Expand All @@ -585,7 +585,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:discoveryapis_commons;commands:test_0"
Expand All @@ -600,7 +600,7 @@ jobs:
sdk: dev
- id: checkout
name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- id: discoveryapis_commons_pub_upgrade
name: discoveryapis_commons; dart pub upgrade
run: dart pub upgrade
Expand All @@ -620,7 +620,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:discoveryapis_generator;commands:test_0"
Expand All @@ -635,7 +635,7 @@ jobs:
sdk: dev
- id: checkout
name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- id: discoveryapis_generator_pub_upgrade
name: discoveryapis_generator; dart pub upgrade
run: dart pub upgrade
Expand All @@ -655,7 +655,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:generated/googleapis;commands:test_0"
Expand All @@ -670,7 +670,7 @@ jobs:
sdk: dev
- id: checkout
name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- id: generated_googleapis_pub_upgrade
name: generated/googleapis; dart pub upgrade
run: dart pub upgrade
Expand All @@ -690,7 +690,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:generated/googleapis_beta;commands:test_0"
Expand All @@ -705,7 +705,7 @@ jobs:
sdk: dev
- id: checkout
name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- id: generated_googleapis_beta_pub_upgrade
name: generated/googleapis_beta; dart pub upgrade
run: dart pub upgrade
Expand All @@ -725,7 +725,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:googleapis_auth;commands:test_2"
Expand All @@ -740,7 +740,7 @@ jobs:
sdk: dev
- id: checkout
name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- id: googleapis_auth_pub_upgrade
name: googleapis_auth; dart pub upgrade
run: dart pub upgrade
Expand All @@ -760,7 +760,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:googleapis_auth;commands:test_1"
Expand All @@ -775,7 +775,7 @@ jobs:
sdk: dev
- id: checkout
name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- id: googleapis_auth_pub_upgrade
name: googleapis_auth; dart pub upgrade
run: dart pub upgrade
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/verify_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;dart:dev;packages:${{ matrix.example_directory }}"
Expand All @@ -29,7 +29,7 @@ jobs:
- uses: dart-lang/setup-dart@fedb1266e91cf51be2fdb382869461a434b920a3
with:
sdk: dev
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- run: |
pushd discoveryapis_generator
dart pub upgrade
Expand Down
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ or [prediction](https://cloud.google.com/prediction/docs/developer-guide).
* Update `config.yaml` with a new version number and generate again.

```console
$ dart bin/generate.dart run_config generate
$ dart generator/bin/generate.dart run_config generate
```

* Run the tests.
Expand All @@ -548,6 +548,19 @@ or [prediction](https://cloud.google.com/prediction/docs/developer-guide).

* Commit the downloaded discovery documents and generated packages.

### Overrides

If you ever need to ignore a specific API method or make a manual change to anything inside `discovery/`,
you should add the relevant diff to the `overrides/` directory.

* Make changes to the `overrides/<desired-api>.json` file.
* Run `git diff overrides/<desired-api>.json > overrides/<name>.diff` to create a diff file.

**Note:**
The name of the diff file is not important, but if possible, it is advised to associate the name
with the relevant GitHub issue. For example, if your manual change is related to issue #123,
then the diff file should be named `i123.diff`.

## What next?

* Read the README and the code for the packages on pub.dev:
Expand Down
Loading

0 comments on commit 8213043

Please sign in to comment.