Skip to content

Commit

Permalink
feat(serviceusage): start generating apiv1 (#4120)
Browse files Browse the repository at this point in the history
  • Loading branch information
codyoss authored May 19, 2021
1 parent 8ad471f commit e4531f9
Show file tree
Hide file tree
Showing 6 changed files with 960 additions and 0 deletions.
9 changes: 9 additions & 0 deletions internal/.repo-metadata-full.json
Original file line number Diff line number Diff line change
Expand Up @@ -1097,6 +1097,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 @@ -1081,6 +1081,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

0 comments on commit e4531f9

Please sign in to comment.