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(serviceusage): start generating apiv1 #4120

Merged
merged 3 commits into from
May 19, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
9 changes: 9 additions & 0 deletions internal/.repo-metadata-full.json
Original file line number Diff line number Diff line change
Expand Up @@ -1088,6 +1088,15 @@
"release_level": "ga",
"library_type": ""
},
"cloud.google.com/go/serviceusage/apiv1": {
"distribution_name": "cloud.google.com/go/serviceusage/apiv1",
"description": "Service Usage API",
"language": "Go",
"client_library_type": "generated",
"docs_url": "https://cloud.google.com/go/docs/reference/cloud.google.com/go/latest/serviceusage/apiv1",
"release_level": "beta",
"library_type": ""
},
"cloud.google.com/go/spanner": {
"distribution_name": "cloud.google.com/go/spanner",
"description": "Cloud Spanner",
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 @@ -1073,6 +1073,15 @@ var microgenGapicConfigs = []*microgenConfig{
// GA after 2021/06/10
releaseLevel: "beta",
},
{
inputDirectoryPath: "google/api/serviceusage/v1",
pkg: "serviceusage",
importPath: "cloud.google.com/go/serviceusage/apiv1",
gRPCServiceConfigPath: "google/api/serviceusage/v1/serviceusage_grpc_service_config.json",
apiServiceConfigPath: "google/api/serviceusage/v1/serviceusage_v1.yaml",
// GA after 2021/06/18
releaseLevel: "beta",
},

// Non-Cloud APIs
{
Expand Down
120 changes: 120 additions & 0 deletions serviceusage/apiv1/doc.go

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

48 changes: 48 additions & 0 deletions serviceusage/apiv1/gapic_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"schema": "1.0",
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods.",
"language": "go",
"protoPackage": "google.api.serviceusage.v1",
"libraryPackage": "cloud.google.com/go/serviceusage/apiv1",
"services": {
"ServiceUsage": {
"clients": {
"grpc": {
"libraryClient": "Client",
"rpcs": {
"BatchEnableServices": {
"methods": [
"BatchEnableServices"
]
},
"BatchGetServices": {
"methods": [
"BatchGetServices"
]
},
"DisableService": {
"methods": [
"DisableService"
]
},
"EnableService": {
"methods": [
"EnableService"
]
},
"GetService": {
"methods": [
"GetService"
]
},
"ListServices": {
"methods": [
"ListServices"
]
}
}
}
}
}
}
}
Loading