build: regenerate BUILD.bazel, remove obsolete service YAML

PiperOrigin-RevId: 567372440
This commit is contained in:
Google APIs 2023-09-21 11:44:14 -07:00 committed by Copybara-Service
parent 50f45daf00
commit ada7a1fd11
2 changed files with 111 additions and 67 deletions

View file

@ -9,41 +9,14 @@
# * extra_protoc_file_parameters
# The complete list of preserved parameters can be found in the source code.
# 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")
load(
"@com_google_googleapis_imports//:imports.bzl",
"csharp_gapic_assembly_pkg",
"csharp_gapic_library",
"csharp_grpc_library",
"csharp_proto_library",
"go_gapic_assembly_pkg",
"go_gapic_library",
"go_proto_library",
"java_gapic_assembly_gradle_pkg",
"java_gapic_library",
"java_gapic_test",
"java_grpc_library",
"java_proto_library",
"nodejs_gapic_assembly_pkg",
"nodejs_gapic_library",
"php_gapic_assembly_pkg",
"php_gapic_library",
"php_proto_library",
"proto_library_with_info",
"py_gapic_assembly_pkg",
"py_gapic_library",
"py_test",
"ruby_cloud_gapic_library",
"ruby_gapic_assembly_pkg",
"ruby_grpc_library",
"ruby_proto_library",
)
# This is an API workspace, having public visibility by default makes perfect sense.
package(default_visibility = ["//visibility:public"])
load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
proto_library(
name = "alertcenter_proto",
@ -69,6 +42,18 @@ proto_library_with_info(
],
)
##############################################################################
# Java
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"java_gapic_assembly_gradle_pkg",
"java_gapic_library",
"java_gapic_test",
"java_grpc_library",
"java_proto_library",
)
java_proto_library(
name = "alertcenter_java_proto",
deps = [":alertcenter_proto"],
@ -83,15 +68,17 @@ java_grpc_library(
java_gapic_library(
name = "alertcenter_java_gapic",
srcs = [":alertcenter_proto_with_info"],
gapic_yaml = None,
grpc_service_config = "alertcenter_grpc_service_config.json",
rest_numeric_enums = True,
service_yaml = "alertcenter.yaml",
service_yaml = "alertcenter_v1beta1.yaml",
test_deps = [
":alertcenter_java_grpc",
],
transport = "grpc+rest",
deps = [
":alertcenter_java_proto",
"//google/api:api_java_proto",
],
)
@ -117,6 +104,16 @@ java_gapic_assembly_gradle_pkg(
],
)
##############################################################################
# Go
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"go_gapic_assembly_pkg",
"go_gapic_library",
"go_proto_library",
)
go_proto_library(
name = "alertcenter_go_proto",
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
@ -134,8 +131,9 @@ go_gapic_library(
grpc_service_config = "alertcenter_grpc_service_config.json",
importpath = "google.golang.org/google/apps/alertcenter/v1beta1;alertcenter",
metadata = True,
release_level = "beta",
rest_numeric_enums = True,
service_yaml = "alertcenter.yaml",
service_yaml = "alertcenter_v1beta1.yaml",
transport = "grpc+rest",
deps = [
":alertcenter_go_proto",
@ -154,13 +152,25 @@ go_gapic_assembly_pkg(
],
)
##############################################################################
# Python
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"py_gapic_assembly_pkg",
"py_gapic_library",
"py_test",
)
py_gapic_library(
name = "alertcenter_py_gapic",
srcs = [":alertcenter_proto"],
grpc_service_config = "alertcenter_grpc_service_config.json",
rest_numeric_enums = True,
service_yaml = "alertcenter.yaml",
service_yaml = "alertcenter_v1beta1.yaml",
transport = "grpc+rest",
deps = [
],
)
py_test(
@ -181,6 +191,16 @@ py_gapic_assembly_pkg(
],
)
##############################################################################
# PHP
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"php_gapic_assembly_pkg",
"php_gapic_library",
"php_proto_library",
)
php_proto_library(
name = "alertcenter_php_proto",
deps = [":alertcenter_proto"],
@ -190,10 +210,13 @@ php_gapic_library(
name = "alertcenter_php_gapic",
srcs = [":alertcenter_proto_with_info"],
grpc_service_config = "alertcenter_grpc_service_config.json",
migration_mode = "PRE_MIGRATION_SURFACE_ONLY",
rest_numeric_enums = True,
service_yaml = "alertcenter.yaml",
service_yaml = "alertcenter_v1beta1.yaml",
transport = "grpc+rest",
deps = [":alertcenter_php_proto"],
deps = [
":alertcenter_php_proto",
],
)
# Open Source Packages
@ -205,6 +228,15 @@ php_gapic_assembly_pkg(
],
)
##############################################################################
# Node.js
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"nodejs_gapic_assembly_pkg",
"nodejs_gapic_library",
)
nodejs_gapic_library(
name = "alertcenter_nodejs_gapic",
package_name = "@google-cloud/alertcenter",
@ -213,7 +245,7 @@ nodejs_gapic_library(
grpc_service_config = "alertcenter_grpc_service_config.json",
package = "google.apps.alertcenter.v1beta1",
rest_numeric_enums = True,
service_yaml = "alertcenter.yaml",
service_yaml = "alertcenter_v1beta1.yaml",
transport = "grpc+rest",
deps = [],
)
@ -226,6 +258,17 @@ nodejs_gapic_assembly_pkg(
],
)
##############################################################################
# Ruby
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"ruby_cloud_gapic_library",
"ruby_gapic_assembly_pkg",
"ruby_grpc_library",
"ruby_proto_library",
)
ruby_proto_library(
name = "alertcenter_ruby_proto",
deps = [":alertcenter_proto"],
@ -240,12 +283,10 @@ ruby_grpc_library(
ruby_cloud_gapic_library(
name = "alertcenter_ruby_gapic",
srcs = [":alertcenter_proto_with_info"],
extra_protoc_parameters = [
"ruby-cloud-gem-name=google-cloud-apps-alertcenter-v1beta1",
],
extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-apps-alertcenter-v1beta1"],
grpc_service_config = "alertcenter_grpc_service_config.json",
rest_numeric_enums = True,
service_yaml = "alertcenter.yaml",
service_yaml = "alertcenter_v1beta1.yaml",
transport = "grpc+rest",
deps = [
":alertcenter_ruby_grpc",
@ -263,6 +304,17 @@ ruby_gapic_assembly_pkg(
],
)
##############################################################################
# C#
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"csharp_gapic_assembly_pkg",
"csharp_gapic_library",
"csharp_grpc_library",
"csharp_proto_library",
)
csharp_proto_library(
name = "alertcenter_csharp_proto",
deps = [":alertcenter_proto"],
@ -280,7 +332,7 @@ csharp_gapic_library(
common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
grpc_service_config = "alertcenter_grpc_service_config.json",
rest_numeric_enums = True,
service_yaml = "alertcenter.yaml",
service_yaml = "alertcenter_v1beta1.yaml",
transport = "grpc+rest",
deps = [
":alertcenter_csharp_grpc",
@ -301,4 +353,20 @@ csharp_gapic_assembly_pkg(
##############################################################################
# C++
##############################################################################
# Put your C++ rules here
load(
"@com_google_googleapis_imports//:imports.bzl",
"cc_grpc_library",
"cc_proto_library",
)
cc_proto_library(
name = "alertcenter_cc_proto",
deps = [":alertcenter_proto"],
)
cc_grpc_library(
name = "alertcenter_cc_grpc",
srcs = [":alertcenter_proto"],
grpc_only = True,
deps = [":alertcenter_cc_proto"],
)

View file

@ -1,24 +0,0 @@
type: google.api.Service
config_version: 3
name: alertcenter.googleapis.com
title: Google Workspace Alert Center API
apis:
- name: google.apps.alertcenter.v1beta1.AlertCenterService
documentation:
summary: |-
Manages alerts on issues affecting your domain. Note: The current version
of this API (v1beta1) is available to all Google Workspace customers.
backend:
rules:
- selector: 'google.apps.alertcenter.v1beta1.AlertCenterService.*'
deadline: 60.0
authentication:
rules:
- selector: 'google.apps.alertcenter.v1beta1.AlertCenterService.*'
oauth:
canonical_scopes: |-
https://www.googleapis.com/auth/apps.alerts