Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(run): start generating apiv2 #5825

Merged
merged 4 commits into from
Apr 1, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .release-please-manifest-submodules.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"resourcemanager": "1.2.0",
"resourcesettings": "1.2.0",
"retail": "1.2.0",
"run": "0.0.0",
"scheduler": "1.2.0",
"secretmanager": "1.3.0",
"security": "1.3.0",
Expand Down
9 changes: 9 additions & 0 deletions internal/.repo-metadata-full.json
Original file line number Diff line number Diff line change
Expand Up @@ -1223,6 +1223,15 @@
"release_level": "ga",
"library_type": "OTHER"
},
"cloud.google.com/go/run/apiv2": {
"distribution_name": "cloud.google.com/go/run/apiv2",
"description": "Cloud Run Admin API",
"language": "Go",
"client_library_type": "generated",
"docs_url": "https://cloud.google.com/go/docs/reference/cloud.google.com/go/run/latest/apiv2",
"release_level": "beta",
"library_type": ""
},
"cloud.google.com/go/scheduler/apiv1": {
"distribution_name": "cloud.google.com/go/scheduler/apiv1",
"description": "Cloud Scheduler API",
Expand Down
9 changes: 9 additions & 0 deletions internal/gapicgen/generator/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -1383,6 +1383,15 @@ var MicrogenGapicConfigs = []*MicrogenConfig{
// GA after 2022/04/16
ReleaseLevel: "beta",
},
{
InputDirectoryPath: "google/cloud/run/v2",
Pkg: "run",
ImportPath: "cloud.google.com/go/run/apiv2",
GRPCServiceConfigPath: "run_grpc_service_config.json",
ApiServiceConfigPath: "run_v2.yaml",
// GA after 2022/04/30
ReleaseLevel: "beta",
},

// Non-Cloud APIs
{
Expand Down
3 changes: 3 additions & 0 deletions release-please-config-yoshi-submodules.json
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,9 @@
"retail": {
"component": "retail"
},
"run": {
"component": "run"
},
"scheduler": {
"component": "scheduler"
},
Expand Down
5 changes: 5 additions & 0 deletions run/CHANGES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changes

## v0.1.0
quartzmo marked this conversation as resolved.
Show resolved Hide resolved

- feat(run): start generating clients
40 changes: 40 additions & 0 deletions run/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Cloud Run Admin API

[![Go Reference](https://pkg.go.dev/badge/cloud.google.com/go/run.svg)](https://pkg.go.dev/cloud.google.com/go/run)

Go Client Library for Cloud Run Admin API.

## Install

```bash
go get cloud.google.com/go/run
```

## Stability

The stability of this module is indicated by SemVer.

However, a `v1+` module may have breaking changes in two scenarios:

* Packages with `alpha` or `beta` in the import path
* The GoDoc has an explicit stability disclaimer (for example, for an experimental feature).

## Go Version Support

See the [Go Versions Supported](https://github.com/googleapis/google-cloud-go#go-versions-supported)
section in the root directory's README.

## Authorization

See the [Authorization](https://github.com/googleapis/google-cloud-go#authorization)
section in the root directory's README.

## Contributing

Contributions are welcome. Please, see the [CONTRIBUTING](https://github.com/GoogleCloudPlatform/google-cloud-go/blob/main/CONTRIBUTING.md)
document for details.

Please note that this project is released with a Contributor Code of Conduct.
By participating in this project you agree to abide by its terms. See
[Contributor Code of Conduct](https://github.com/GoogleCloudPlatform/google-cloud-go/blob/main/CONTRIBUTING.md#contributor-code-of-conduct)
for more information.
159 changes: 159 additions & 0 deletions run/apiv2/doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

82 changes: 82 additions & 0 deletions run/apiv2/gapic_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{
"schema": "1.0",
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods.",
"language": "go",
"protoPackage": "google.cloud.run.v2",
"libraryPackage": "cloud.google.com/go/run/apiv2",
"services": {
"Revisions": {
"clients": {
"grpc": {
"libraryClient": "RevisionsClient",
"rpcs": {
"DeleteRevision": {
"methods": [
"DeleteRevision"
]
},
"GetRevision": {
"methods": [
"GetRevision"
]
},
"ListRevisions": {
"methods": [
"ListRevisions"
]
}
}
}
}
},
"Services": {
"clients": {
"grpc": {
"libraryClient": "ServicesClient",
"rpcs": {
"CreateService": {
"methods": [
"CreateService"
]
},
"DeleteService": {
"methods": [
"DeleteService"
]
},
"GetIamPolicy": {
"methods": [
"GetIamPolicy"
]
},
"GetService": {
"methods": [
"GetService"
]
},
"ListServices": {
"methods": [
"ListServices"
]
},
"SetIamPolicy": {
"methods": [
"SetIamPolicy"
]
},
"TestIamPermissions": {
"methods": [
"TestIamPermissions"
]
},
"UpdateService": {
"methods": [
"UpdateService"
]
}
}
}
}
}
}
}
Loading