Skip to content

Commit af2246e

Browse files
authored
feat(connectors): generate library (#10221)
1 parent 2e1c08c commit af2246e

48 files changed

Lines changed: 5307 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ GA_LIBRARIES = [
5050
"channel",
5151
"cloudbuild",
5252
"composer",
53+
"connectors",
5354
"contactcenterinsights",
5455
"container",
5556
"containeranalysis",

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,13 @@ may elicit a deprecation warning. See [#9086] for more details.
118118

119119
## v2.5.0 - TBD
120120

121+
### New Libraries
122+
123+
We are happy to announce the following GA library. Unless specifically noted,
124+
the APIs in these libraries are stable, and are ready for production use.
125+
126+
- [Connectors API](/google/cloud/connectors/README.md)
127+
121128
## v2.4.0 - 2022-11
122129

123130
### New Libraries

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ This repository contains idiomatic C++ client libraries for the following
7878
- [Cloud Composer](google/cloud/composer/README.md)
7979
[\[quickstart\]](google/cloud/composer/quickstart/README.md)
8080
[\[reference\]](https://googleapis.dev/cpp/google-cloud-composer/latest)
81+
- [Connectors API](google/cloud/connectors/README.md)
82+
[\[quickstart\]](google/cloud/connectors/quickstart/README.md)
83+
[\[reference\]](https://googleapis.dev/cpp/google-cloud-connectors/latest)
8184
- [Contact Center AI Insights API](google/cloud/contactcenterinsights/README.md)
8285
[\[quickstart\]](google/cloud/contactcenterinsights/quickstart/README.md)
8386
[\[reference\]](https://googleapis.dev/cpp/google-cloud-contactcenterinsights/latest)

ci/etc/expected_install_directories

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@
121121
./include/google/cloud/composer
122122
./include/google/cloud/composer/internal
123123
./include/google/cloud/composer/mocks
124+
./include/google/cloud/connectors
125+
./include/google/cloud/connectors/internal
126+
./include/google/cloud/connectors/mocks
127+
./include/google/cloud/connectors/v1
124128
./include/google/cloud/contactcenterinsights
125129
./include/google/cloud/contactcenterinsights/internal
126130
./include/google/cloud/contactcenterinsights/mocks
@@ -489,6 +493,7 @@
489493
./lib64/cmake/google_cloud_cpp_channel
490494
./lib64/cmake/google_cloud_cpp_cloudbuild
491495
./lib64/cmake/google_cloud_cpp_composer
496+
./lib64/cmake/google_cloud_cpp_connectors
492497
./lib64/cmake/google_cloud_cpp_contactcenterinsights
493498
./lib64/cmake/google_cloud_cpp_container
494499
./lib64/cmake/google_cloud_cpp_containeranalysis

ci/etc/full_feature_list

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ certificatemanager
1919
channel
2020
cloudbuild
2121
composer
22+
connectors
2223
contactcenterinsights
2324
container
2425
containeranalysis
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@com_google_googleapis//google/api:annotations_proto
2+
@com_google_googleapis//google/api:client_proto
3+
@com_google_googleapis//google/api:field_behavior_proto
4+
@com_google_googleapis//google/api:http_proto
5+
@com_google_googleapis//google/api:resource_proto
6+
@com_google_googleapis//google/longrunning:operations_proto
7+
@com_google_googleapis//google/rpc:status_proto
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@com_google_googleapis//google/cloud/connectors/v1:authconfig.proto
2+
@com_google_googleapis//google/cloud/connectors/v1:common.proto
3+
@com_google_googleapis//google/cloud/connectors/v1:connection.proto
4+
@com_google_googleapis//google/cloud/connectors/v1:connector.proto
5+
@com_google_googleapis//google/cloud/connectors/v1:connector_version.proto
6+
@com_google_googleapis//google/cloud/connectors/v1:connectors_service.proto
7+
@com_google_googleapis//google/cloud/connectors/v1:destination_config.proto
8+
@com_google_googleapis//google/cloud/connectors/v1:provider.proto
9+
@com_google_googleapis//google/cloud/connectors/v1:runtime.proto

external/googleapis/update_libraries.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ declare -A -r LIBRARIES=(
7777
["cloudbuild"]="@com_google_googleapis//google/devtools/cloudbuild/v1:cloudbuild_cc_grpc"
7878
["common"]="@com_google_googleapis//google/cloud/common:common_cc_grpc"
7979
["composer"]="@com_google_googleapis//google/cloud/orchestration/airflow/service/v1:service_cc_grpc"
80+
["connectors"]="@com_google_googleapis//google/cloud/connectors/v1:connectors_cc_grpc"
8081
["contactcenterinsights"]="@com_google_googleapis//google/cloud/contactcenterinsights/v1:contactcenterinsights_cc_grpc"
8182
["container"]="@com_google_googleapis//google/container/v1:container_cc_grpc"
8283
["containeranalysis"]="@com_google_googleapis//google/devtools/containeranalysis/v1:containeranalysis_cc_grpc"

generator/generator_config.textproto

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,14 @@ service {
349349
retryable_status_codes: ["kUnavailable"]
350350
}
351351

352+
# Connectors
353+
service {
354+
service_proto_path: "google/cloud/connectors/v1/connectors_service.proto"
355+
product_path: "google/cloud/connectors"
356+
initial_copyright_year: "2022"
357+
retryable_status_codes: ["kUnavailable"]
358+
}
359+
352360
# Contact Center AI Insights
353361
service {
354362
service_proto_path: "google/cloud/contactcenterinsights/v1/contact_center_insights.proto"
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Copyright 2022 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
package(default_visibility = ["//visibility:private"])
16+
17+
licenses(["notice"]) # Apache 2.0
18+
19+
filegroup(
20+
name = "srcs",
21+
srcs = glob([
22+
"*.cc",
23+
"internal/*.cc",
24+
]),
25+
)
26+
27+
filegroup(
28+
name = "hdrs",
29+
srcs = glob([
30+
"*.h",
31+
"internal/*.h",
32+
]),
33+
)
34+
35+
filegroup(
36+
name = "mocks",
37+
srcs = glob(["mocks/*.h"]),
38+
)
39+
40+
cc_library(
41+
name = "google_cloud_cpp_connectors",
42+
srcs = [":srcs"],
43+
hdrs = [":hdrs"],
44+
visibility = ["//:__pkg__"],
45+
deps = [
46+
"//:common",
47+
"//:grpc_utils",
48+
"@com_google_googleapis//google/cloud/connectors/v1:connectors_cc_grpc",
49+
],
50+
)
51+
52+
cc_library(
53+
name = "google_cloud_cpp_connectors_mocks",
54+
hdrs = [":mocks"],
55+
visibility = ["//:__pkg__"],
56+
deps = [
57+
":google_cloud_cpp_connectors",
58+
"@com_google_googletest//:gtest",
59+
],
60+
)

0 commit comments

Comments
 (0)