Skip to content

Commit

Permalink
feat(run): start generating apiv2 (#5825)
Browse files Browse the repository at this point in the history
  • Loading branch information
quartzmo committed Apr 1, 2022
1 parent 87ef2ea commit 2602a20
Show file tree
Hide file tree
Showing 16 changed files with 2,493 additions and 0 deletions.
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
1 change: 1 addition & 0 deletions run/CHANGES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Changes
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"
]
}
}
}
}
}
}
}

0 comments on commit 2602a20

Please sign in to comment.