Skip to content

Commit 6b78856

Browse files
Google APIscopybara-github
authored andcommitted
feat: Introduce new services for data collection (ApiHubCollect) and curation (ApiHubCurate)
feat: Add full lifecycle management for API Operations within API Versions (Create, Update, Delete) feat: Significantly expand Plugin and Plugin Instance management capabilities, including creation, execution, and lifecycle control feat: Enable Deletion of ApiHub Instances via the Provisioning service feat: Enhance list filtering options across various resources (APIs, Versions, Specs, Operations, Deployments) with support for user-defined attributes feat: Add new fields and enums to resources to support richer metadata, including source tracking (SourceMetadata), plugin configurations (AuthConfig, ConfigVariable), new attributes, and additional deployment details feat: Make CMEK configuration optional for ApiHub Instances, defaulting to GMEK docs: Update field descriptions, comments, and links in existing services PiperOrigin-RevId: 805646287
1 parent 9978d43 commit 6b78856

11 files changed

Lines changed: 2827 additions & 81 deletions

google/cloud/apihub/v1/BUILD.bazel

Lines changed: 13 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ proto_library(
2525
name = "apihub_proto",
2626
srcs = [
2727
"apihub_service.proto",
28+
"collect_service.proto",
2829
"common_fields.proto",
30+
"curate_service.proto",
31+
"discovery_service.proto",
2932
"host_project_registration_service.proto",
3033
"linting_service.proto",
3134
"plugin_service.proto",
@@ -57,13 +60,11 @@ proto_library_with_info(
5760
# Java
5861
##############################################################################
5962
# buildifier: disable=same-origin-load
60-
6163
load(
6264
"@com_google_googleapis_imports//:imports.bzl",
6365
"java_gapic_assembly_gradle_pkg",
6466
"java_gapic_library",
6567
"java_gapic_test",
66-
"java_grpc_library",
6768
"java_proto_library",
6869
)
6970

@@ -72,12 +73,6 @@ java_proto_library(
7273
deps = [":apihub_proto"],
7374
)
7475

75-
java_grpc_library(
76-
name = "apihub_java_grpc",
77-
srcs = [":apihub_proto"],
78-
deps = [":apihub_java_proto"],
79-
)
80-
8176
java_gapic_library(
8277
name = "apihub_java_gapic",
8378
srcs = [":apihub_proto_with_info"],
@@ -86,8 +81,6 @@ java_gapic_library(
8681
rest_numeric_enums = True,
8782
service_yaml = "apihub_v1.yaml",
8883
test_deps = [
89-
"//google/cloud/location:location_java_grpc",
90-
":apihub_java_grpc",
9184
],
9285
transport = "rest",
9386
deps = [
@@ -100,19 +93,15 @@ java_gapic_library(
10093
java_gapic_test(
10194
name = "apihub_java_gapic_test_suite",
10295
test_classes = [
103-
#"com.google.cloud.apihub.v1.ApiHubClientHttpJsonTest",
10496
"com.google.cloud.apihub.v1.ApiHubClientTest",
105-
#"com.google.cloud.apihub.v1.ApiHubDependenciesClientHttpJsonTest",
97+
"com.google.cloud.apihub.v1.ApiHubCollectClientTest",
98+
"com.google.cloud.apihub.v1.ApiHubCurateClientTest",
10699
"com.google.cloud.apihub.v1.ApiHubDependenciesClientTest",
107-
#"com.google.cloud.apihub.v1.ApiHubPluginClientHttpJsonTest",
100+
"com.google.cloud.apihub.v1.ApiHubDiscoveryClientTest",
108101
"com.google.cloud.apihub.v1.ApiHubPluginClientTest",
109-
#"com.google.cloud.apihub.v1.HostProjectRegistrationServiceClientHttpJsonTest",
110102
"com.google.cloud.apihub.v1.HostProjectRegistrationServiceClientTest",
111-
#"com.google.cloud.apihub.v1.LintingServiceClientHttpJsonTest",
112103
"com.google.cloud.apihub.v1.LintingServiceClientTest",
113-
#"com.google.cloud.apihub.v1.ProvisioningClientHttpJsonTest",
114104
"com.google.cloud.apihub.v1.ProvisioningClientTest",
115-
#"com.google.cloud.apihub.v1.RuntimeProjectAttachmentServiceClientHttpJsonTest",
116105
"com.google.cloud.apihub.v1.RuntimeProjectAttachmentServiceClientTest",
117106
],
118107
runtime_deps = [":apihub_java_gapic_test"],
@@ -121,14 +110,13 @@ java_gapic_test(
121110
# Open Source Packages
122111
java_gapic_assembly_gradle_pkg(
123112
name = "google-cloud-apihub-v1-java",
113+
include_samples = True,
124114
transport = "rest",
125115
deps = [
126116
":apihub_java_gapic",
127-
":apihub_java_grpc",
128117
":apihub_java_proto",
129118
":apihub_proto",
130119
],
131-
include_samples = True,
132120
)
133121

134122
##############################################################################
@@ -139,11 +127,12 @@ load(
139127
"@com_google_googleapis_imports//:imports.bzl",
140128
"go_gapic_assembly_pkg",
141129
"go_gapic_library",
142-
"go_grpc_library",
130+
"go_proto_library",
143131
)
144132

145-
go_grpc_library(
133+
go_proto_library(
146134
name = "apihub_go_proto",
135+
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
147136
importpath = "cloud.google.com/go/apihub/apiv1/apihubpb",
148137
protos = [":apihub_proto"],
149138
deps = [
@@ -201,7 +190,8 @@ py_gapic_library(
201190
rest_numeric_enums = True,
202191
service_yaml = "apihub_v1.yaml",
203192
transport = "rest",
204-
deps = [],
193+
deps = [
194+
],
205195
)
206196

207197
py_test(
@@ -317,9 +307,7 @@ ruby_grpc_library(
317307
ruby_cloud_gapic_library(
318308
name = "apihub_ruby_gapic",
319309
srcs = [":apihub_proto_with_info"],
320-
extra_protoc_parameters = [
321-
"ruby-cloud-gem-name=google-cloud-api_hub-v1",
322-
],
310+
extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-api_hub-v1"],
323311
grpc_service_config = "apihub_v1_grpc_service_config.json",
324312
rest_numeric_enums = True,
325313
service_yaml = "apihub_v1.yaml",
@@ -354,7 +342,6 @@ load(
354342

355343
csharp_proto_library(
356344
name = "apihub_csharp_proto",
357-
extra_opts = [],
358345
deps = [":apihub_proto"],
359346
)
360347

0 commit comments

Comments
 (0)