Skip to content

Commit 2602a20

Browse files
authored
feat(run): start generating apiv2 (#5825)
1 parent 87ef2ea commit 2602a20

16 files changed

Lines changed: 2493 additions & 0 deletions

.release-please-manifest-submodules.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
"resourcemanager": "1.2.0",
7676
"resourcesettings": "1.2.0",
7777
"retail": "1.2.0",
78+
"run": "0.0.0",
7879
"scheduler": "1.2.0",
7980
"secretmanager": "1.3.0",
8081
"security": "1.3.0",

internal/.repo-metadata-full.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,6 +1223,15 @@
12231223
"release_level": "ga",
12241224
"library_type": "OTHER"
12251225
},
1226+
"cloud.google.com/go/run/apiv2": {
1227+
"distribution_name": "cloud.google.com/go/run/apiv2",
1228+
"description": "Cloud Run Admin API",
1229+
"language": "Go",
1230+
"client_library_type": "generated",
1231+
"docs_url": "https://cloud.google.com/go/docs/reference/cloud.google.com/go/run/latest/apiv2",
1232+
"release_level": "beta",
1233+
"library_type": ""
1234+
},
12261235
"cloud.google.com/go/scheduler/apiv1": {
12271236
"distribution_name": "cloud.google.com/go/scheduler/apiv1",
12281237
"description": "Cloud Scheduler API",

internal/gapicgen/generator/config.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,6 +1383,15 @@ var MicrogenGapicConfigs = []*MicrogenConfig{
13831383
// GA after 2022/04/16
13841384
ReleaseLevel: "beta",
13851385
},
1386+
{
1387+
InputDirectoryPath: "google/cloud/run/v2",
1388+
Pkg: "run",
1389+
ImportPath: "cloud.google.com/go/run/apiv2",
1390+
GRPCServiceConfigPath: "run_grpc_service_config.json",
1391+
ApiServiceConfigPath: "run_v2.yaml",
1392+
// GA after 2022/04/30
1393+
ReleaseLevel: "beta",
1394+
},
13861395

13871396
// Non-Cloud APIs
13881397
{

release-please-config-yoshi-submodules.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,9 @@
231231
"retail": {
232232
"component": "retail"
233233
},
234+
"run": {
235+
"component": "run"
236+
},
234237
"scheduler": {
235238
"component": "scheduler"
236239
},

run/CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Changes

run/README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Cloud Run Admin API
2+
3+
[![Go Reference](https://pkg.go.dev/badge/cloud.google.com/go/run.svg)](https://pkg.go.dev/cloud.google.com/go/run)
4+
5+
Go Client Library for Cloud Run Admin API.
6+
7+
## Install
8+
9+
```bash
10+
go get cloud.google.com/go/run
11+
```
12+
13+
## Stability
14+
15+
The stability of this module is indicated by SemVer.
16+
17+
However, a `v1+` module may have breaking changes in two scenarios:
18+
19+
* Packages with `alpha` or `beta` in the import path
20+
* The GoDoc has an explicit stability disclaimer (for example, for an experimental feature).
21+
22+
## Go Version Support
23+
24+
See the [Go Versions Supported](https://github.com/googleapis/google-cloud-go#go-versions-supported)
25+
section in the root directory's README.
26+
27+
## Authorization
28+
29+
See the [Authorization](https://github.com/googleapis/google-cloud-go#authorization)
30+
section in the root directory's README.
31+
32+
## Contributing
33+
34+
Contributions are welcome. Please, see the [CONTRIBUTING](https://github.com/GoogleCloudPlatform/google-cloud-go/blob/main/CONTRIBUTING.md)
35+
document for details.
36+
37+
Please note that this project is released with a Contributor Code of Conduct.
38+
By participating in this project you agree to abide by its terms. See
39+
[Contributor Code of Conduct](https://github.com/GoogleCloudPlatform/google-cloud-go/blob/main/CONTRIBUTING.md#contributor-code-of-conduct)
40+
for more information.

run/apiv2/doc.go

Lines changed: 159 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

run/apiv2/gapic_metadata.json

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
{
2+
"schema": "1.0",
3+
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods.",
4+
"language": "go",
5+
"protoPackage": "google.cloud.run.v2",
6+
"libraryPackage": "cloud.google.com/go/run/apiv2",
7+
"services": {
8+
"Revisions": {
9+
"clients": {
10+
"grpc": {
11+
"libraryClient": "RevisionsClient",
12+
"rpcs": {
13+
"DeleteRevision": {
14+
"methods": [
15+
"DeleteRevision"
16+
]
17+
},
18+
"GetRevision": {
19+
"methods": [
20+
"GetRevision"
21+
]
22+
},
23+
"ListRevisions": {
24+
"methods": [
25+
"ListRevisions"
26+
]
27+
}
28+
}
29+
}
30+
}
31+
},
32+
"Services": {
33+
"clients": {
34+
"grpc": {
35+
"libraryClient": "ServicesClient",
36+
"rpcs": {
37+
"CreateService": {
38+
"methods": [
39+
"CreateService"
40+
]
41+
},
42+
"DeleteService": {
43+
"methods": [
44+
"DeleteService"
45+
]
46+
},
47+
"GetIamPolicy": {
48+
"methods": [
49+
"GetIamPolicy"
50+
]
51+
},
52+
"GetService": {
53+
"methods": [
54+
"GetService"
55+
]
56+
},
57+
"ListServices": {
58+
"methods": [
59+
"ListServices"
60+
]
61+
},
62+
"SetIamPolicy": {
63+
"methods": [
64+
"SetIamPolicy"
65+
]
66+
},
67+
"TestIamPermissions": {
68+
"methods": [
69+
"TestIamPermissions"
70+
]
71+
},
72+
"UpdateService": {
73+
"methods": [
74+
"UpdateService"
75+
]
76+
}
77+
}
78+
}
79+
}
80+
}
81+
}
82+
}

0 commit comments

Comments
 (0)