Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(locations): add service yaml, BUILD.bazel, and update proto
PiperOrigin-RevId: 354631133
- Loading branch information
Google APIs
authored and
Copybara-Service
committed
Jan 30, 2021
1 parent
c71a9c4
commit aa23780
Showing
3 changed files
with
206 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,166 @@ | ||
# This file was automatically generated by BuildFileGenerator | ||
|
||
# This is an API workspace, having public visibility by default makes perfect sense. | ||
package(default_visibility = ["//visibility:public"]) | ||
|
||
############################################################################## | ||
# Common | ||
############################################################################## | ||
load("@rules_proto//proto:defs.bzl", "proto_library") | ||
|
||
proto_library( | ||
name = "location_proto", | ||
srcs = [ | ||
"locations.proto", | ||
], | ||
deps = [ | ||
"//google/api:annotations_proto", | ||
"//google/api:client_proto", | ||
"@com_google_protobuf//:any_proto", | ||
], | ||
) | ||
|
||
############################################################################## | ||
# Java | ||
############################################################################## | ||
load( | ||
"@com_google_googleapis_imports//:imports.bzl", | ||
"java_grpc_library", | ||
"java_proto_library", | ||
) | ||
|
||
java_proto_library( | ||
name = "location_java_proto", | ||
deps = [":location_proto"], | ||
) | ||
|
||
java_grpc_library( | ||
name = "location_java_grpc", | ||
srcs = [":location_proto"], | ||
deps = [":location_java_proto"], | ||
) | ||
|
||
############################################################################## | ||
# Go | ||
############################################################################## | ||
load( | ||
"@com_google_googleapis_imports//:imports.bzl", | ||
"go_proto_library", | ||
) | ||
|
||
go_proto_library( | ||
name = "location_go_proto", | ||
compilers = ["@io_bazel_rules_go//proto:go_grpc"], | ||
importpath = "google.golang.org/genproto/googleapis/cloud/location", | ||
protos = [":location_proto"], | ||
deps = [ | ||
"//google/api:annotations_go_proto", | ||
], | ||
) | ||
|
||
############################################################################## | ||
# Python | ||
############################################################################## | ||
load( | ||
"@com_google_googleapis_imports//:imports.bzl", | ||
"moved_proto_library", | ||
"py_grpc_library", | ||
"py_proto_library", | ||
) | ||
|
||
moved_proto_library( | ||
name = "location_moved_proto", | ||
srcs = [":location_proto"], | ||
deps = [ | ||
"//google/api:annotations_proto", | ||
"//google/api:client_proto", | ||
"@com_google_protobuf//:any_proto", | ||
], | ||
) | ||
|
||
py_proto_library( | ||
name = "location_py_proto", | ||
plugin = "@protoc_docs_plugin//:docs_plugin", | ||
deps = [":location_moved_proto"], | ||
) | ||
|
||
py_grpc_library( | ||
name = "location_py_grpc", | ||
srcs = [":location_moved_proto"], | ||
deps = [":location_py_proto"], | ||
) | ||
|
||
############################################################################## | ||
# PHP | ||
############################################################################## | ||
load( | ||
"@com_google_googleapis_imports//:imports.bzl", | ||
"php_grpc_library", | ||
"php_proto_library", | ||
) | ||
|
||
php_proto_library( | ||
name = "location_php_proto", | ||
deps = [":location_proto"], | ||
) | ||
|
||
php_grpc_library( | ||
name = "location_php_grpc", | ||
srcs = [":location_proto"], | ||
deps = [":location_php_proto"], | ||
) | ||
|
||
############################################################################## | ||
# Node.js | ||
############################################################################## | ||
load( | ||
"@com_google_googleapis_imports//:imports.bzl", | ||
"nodejs_gapic_assembly_pkg", | ||
"nodejs_gapic_library", | ||
) | ||
|
||
|
||
############################################################################## | ||
# Ruby | ||
############################################################################## | ||
load( | ||
"@com_google_googleapis_imports//:imports.bzl", | ||
"ruby_grpc_library", | ||
"ruby_proto_library", | ||
) | ||
|
||
ruby_proto_library( | ||
name = "location_ruby_proto", | ||
deps = [":location_proto"], | ||
) | ||
|
||
ruby_grpc_library( | ||
name = "location_ruby_grpc", | ||
srcs = [":location_proto"], | ||
deps = [":location_ruby_proto"], | ||
) | ||
|
||
############################################################################## | ||
# C# | ||
############################################################################## | ||
load( | ||
"@com_google_googleapis_imports//:imports.bzl", | ||
"csharp_grpc_library", | ||
"csharp_proto_library", | ||
) | ||
|
||
csharp_proto_library( | ||
name = "location_csharp_proto", | ||
deps = [":location_proto"], | ||
) | ||
|
||
csharp_grpc_library( | ||
name = "location_csharp_grpc", | ||
srcs = [":location_proto"], | ||
deps = [":location_csharp_proto"], | ||
) | ||
|
||
############################################################################## | ||
# C++ | ||
############################################################################## | ||
# Put your C++ code here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
type: google.api.Service | ||
config_version: 3 | ||
name: cloud.googleapis.com | ||
title: Cloud Metadata API | ||
|
||
apis: | ||
- name: google.cloud.location.Locations | ||
|
||
documentation: | ||
summary: |- | ||
This API provides static metadata about Google Cloud Platform. Currently, | ||
it only provides basic information about Google Cloud locations, such as | ||
zones, regions, and countries. | ||
authentication: | ||
rules: | ||
- selector: google.cloud.location.Locations.GetLocation | ||
oauth: | ||
canonical_scopes: |- | ||
https://www.googleapis.com/auth/cloud-platform | ||
- selector: google.cloud.location.Locations.ListLocations | ||
oauth: | ||
canonical_scopes: |- | ||
https://www.googleapis.com/auth/cloud-platform |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters