Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit 12ade64

Browse files
committed
feat: add source code
1 parent b7b1db3 commit 12ade64

File tree

115 files changed

+82857
-27
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+82857
-27
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ Thank you for opening a Pull Request! Before submitting your PR, there are a few
55
- [ ] Appropriate docs were updated (if necessary)
66

77
Fixes #<issue_number_goes_here> ☕️
8+
9+
If you write sample code, please follow the [samples format](
10+
https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md).

.github/auto-label.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
requestsize:
15+
enabled: true

.github/workflows/approve-readme.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# Copyright 2022 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
# Github action job to test core java library features on
15+
# downstream client libraries before they are released.
116
on:
217
pull_request:
318
name: auto-merge-readme
@@ -6,7 +21,7 @@ jobs:
621
runs-on: ubuntu-latest
722
if: github.repository_owner == 'googleapis' && github.head_ref == 'autosynth-readme'
823
steps:
9-
- uses: actions/github-script@v5
24+
- uses: actions/github-script@v6
1025
with:
1126
github-token: ${{secrets.YOSHI_APPROVER_TOKEN}}
1227
script: |

.github/workflows/auto-release.yaml

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# Copyright 2022 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
# Github action job to test core java library features on
15+
# downstream client libraries before they are released.
116
on:
217
pull_request:
318
name: auto-release
@@ -6,7 +21,7 @@ jobs:
621
runs-on: ubuntu-latest
722
if: contains(github.head_ref, 'release-please')
823
steps:
9-
- uses: actions/github-script@v5
24+
- uses: actions/github-script@v6
1025
with:
1126
github-token: ${{secrets.YOSHI_APPROVER_TOKEN}}
1227
debug: true
@@ -16,13 +31,13 @@ jobs:
1631
return;
1732
}
1833
19-
// only approve PRs like "chore: release <release version>"
20-
if ( !context.payload.pull_request.title.startsWith("chore: release") ) {
34+
// only approve PRs like "chore(main): release <release version>"
35+
if ( !context.payload.pull_request.title.startsWith("chore(main): release") ) {
2136
return;
2237
}
2338
2439
// only approve PRs with pom.xml and versions.txt changes
25-
const filesPromise = github.pulls.listFiles.endpoint({
40+
const filesPromise = github.rest.pulls.listFiles.endpoint({
2641
owner: context.repo.owner,
2742
repo: context.repo.repo,
2843
pull_number: context.payload.pull_request.number,
@@ -54,7 +69,7 @@ jobs:
5469
return;
5570
}
5671
57-
const promise = github.pulls.list.endpoint({
72+
const promise = github.rest.pulls.list.endpoint({
5873
owner: context.repo.owner,
5974
repo: context.repo.repo,
6075
state: 'open'
@@ -71,7 +86,7 @@ jobs:
7186
}
7287
7388
// approve release PR
74-
await github.pulls.createReview({
89+
await github.rest.pulls.createReview({
7590
owner: context.repo.owner,
7691
repo: context.repo.repo,
7792
body: 'Rubber stamped release!',
@@ -80,7 +95,7 @@ jobs:
8095
});
8196
8297
// attach kokoro:force-run and automerge labels
83-
await github.issues.addLabels({
98+
await github.rest.issues.addLabels({
8499
owner: context.repo.owner,
85100
repo: context.repo.repo,
86101
issue_number: context.payload.pull_request.number,

.github/workflows/ci.yaml

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# Copyright 2022 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
# Github action job to test core java library features on
15+
# downstream client libraries before they are released.
116
on:
217
push:
318
branches:
@@ -12,8 +27,8 @@ jobs:
1227
matrix:
1328
java: [8, 11, 17]
1429
steps:
15-
- uses: actions/checkout@v2
16-
- uses: actions/setup-java@v2
30+
- uses: actions/checkout@v3
31+
- uses: actions/setup-java@v3
1732
with:
1833
distribution: zulu
1934
java-version: ${{matrix.java}}
@@ -24,8 +39,8 @@ jobs:
2439
windows:
2540
runs-on: windows-latest
2641
steps:
27-
- uses: actions/checkout@v2
28-
- uses: actions/setup-java@v2
42+
- uses: actions/checkout@v3
43+
- uses: actions/setup-java@v3
2944
with:
3045
distribution: zulu
3146
java-version: 8
@@ -39,8 +54,8 @@ jobs:
3954
matrix:
4055
java: [8, 11, 17]
4156
steps:
42-
- uses: actions/checkout@v2
43-
- uses: actions/setup-java@v2
57+
- uses: actions/checkout@v3
58+
- uses: actions/setup-java@v3
4459
with:
4560
distribution: zulu
4661
java-version: ${{matrix.java}}
@@ -49,8 +64,8 @@ jobs:
4964
lint:
5065
runs-on: ubuntu-latest
5166
steps:
52-
- uses: actions/checkout@v2
53-
- uses: actions/setup-java@v2
67+
- uses: actions/checkout@v3
68+
- uses: actions/setup-java@v3
5469
with:
5570
distribution: zulu
5671
java-version: 11
@@ -61,8 +76,8 @@ jobs:
6176
clirr:
6277
runs-on: ubuntu-latest
6378
steps:
64-
- uses: actions/checkout@v2
65-
- uses: actions/setup-java@v2
79+
- uses: actions/checkout@v3
80+
- uses: actions/setup-java@v3
6681
with:
6782
distribution: zulu
6883
java-version: 8

.github/workflows/samples.yaml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,29 @@
1+
# Copyright 2022 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
# Github action job to test core java library features on
15+
# downstream client libraries before they are released.
116
on:
217
pull_request:
318
name: samples
419
jobs:
520
checkstyle:
621
runs-on: ubuntu-latest
722
steps:
8-
- uses: actions/checkout@v2
9-
- uses: actions/setup-java@v1
23+
- uses: actions/checkout@v3
24+
- uses: actions/setup-java@v3
1025
with:
26+
distribution: zulu
1127
java-version: 8
1228
- name: Run checkstyle
1329
run: mvn -P lint --quiet --batch-mode checkstyle:check

.kokoro/build.bat

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
:: Copyright 2022 Google LLC
2+
::
3+
:: Licensed under the Apache License, Version 2.0 (the "License");
4+
:: you may not use this file except in compliance with the License.
5+
:: You may obtain a copy of the License at
6+
::
7+
:: http://www.apache.org/licenses/LICENSE-2.0
8+
::
9+
:: Unless required by applicable law or agreed to in writing, software
10+
:: distributed under the License is distributed on an "AS IS" BASIS,
11+
:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
:: See the License for the specific language governing permissions and
13+
:: limitations under the License.
14+
:: Github action job to test core java library features on
15+
:: downstream client libraries before they are released.
116
:: See documentation in type-shell-output.bat
217

318
"C:\Program Files\Git\bin\bash.exe" %~dp0build.sh

.kokoro/nightly/integration.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ env_vars: {
1313
# TODO: remove this after we've migrated all tests and scripts
1414
env_vars: {
1515
key: "GCLOUD_PROJECT"
16-
value: "gcloud-devel"
16+
value: "java-docs-samples-testing"
1717
}
1818

1919
env_vars: {
2020
key: "GOOGLE_CLOUD_PROJECT"
21-
value: "gcloud-devel"
21+
value: "java-docs-samples-testing"
2222
}
2323

2424
env_vars: {
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Configure the docker image for kokoro-trampoline.
4+
env_vars: {
5+
key: "TRAMPOLINE_IMAGE"
6+
value: "gcr.io/cloud-devrel-public-resources/java11014"
7+
}
8+
9+
env_vars: {
10+
key: "JOB_TYPE"
11+
value: "integration"
12+
}
13+
# TODO: remove this after we've migrated all tests and scripts
14+
env_vars: {
15+
key: "GCLOUD_PROJECT"
16+
value: "gcloud-devel"
17+
}
18+
19+
env_vars: {
20+
key: "GOOGLE_CLOUD_PROJECT"
21+
value: "gcloud-devel"
22+
}
23+
24+
env_vars: {
25+
key: "ENABLE_FLAKYBOT"
26+
value: "true"
27+
}
28+
29+
env_vars: {
30+
key: "GOOGLE_APPLICATION_CREDENTIALS"
31+
value: "secret_manager/java-it-service-account"
32+
}
33+
34+
env_vars: {
35+
key: "SECRET_MANAGER_KEYS"
36+
value: "java-it-service-account"
37+
}

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file:
2222
<dependency>
2323
<groupId>com.google.cloud</groupId>
2424
<artifactId>google-cloud-live-stream</artifactId>
25-
<version>0.0.0</version>
25+
<version>0.2.1</version>
2626
</dependency>
2727
```
2828

2929
If you are using Gradle without BOM, add this to your dependencies
3030

3131
```Groovy
32-
implementation 'com.google.cloud:google-cloud-live-stream:0.0.0'
32+
implementation 'com.google.cloud:google-cloud-live-stream:0.2.1'
3333
```
3434

3535
If you are using SBT, add this to your dependencies
3636

3737
```Scala
38-
libraryDependencies += "com.google.cloud" % "google-cloud-live-stream" % "0.0.0"
38+
libraryDependencies += "com.google.cloud" % "google-cloud-live-stream" % "0.2.1"
3939
```
4040

4141
## Authentication

0 commit comments

Comments
 (0)