Skip to content

Commit

Permalink
feat: Updated Client Libraries for Cloud Scheduler
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 495092454
  • Loading branch information
Google APIs authored and copybara-github committed Dec 13, 2022
1 parent 1d8a76d commit 3fbdb93
Show file tree
Hide file tree
Showing 7 changed files with 358 additions and 123 deletions.
26 changes: 23 additions & 3 deletions google/cloud/scheduler/v1/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
# This file was automatically generated by BuildFileGenerator
# https://github.com/googleapis/rules_gapic/tree/master/bazel

# Most of the manual changes to this file will be overwritten.
# It's **only** allowed to change the following rule attribute values:
# - names of *_gapic_assembly_* rules
# - certain parameters of *_gapic_library rules, including but not limited to:
# * extra_protoc_parameters
# * 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"])
Expand Down Expand Up @@ -63,14 +72,17 @@ java_grpc_library(
java_gapic_library(
name = "scheduler_java_gapic",
srcs = [":scheduler_proto_with_info"],
gapic_yaml = None,
grpc_service_config = "cloudscheduler_grpc_service_config.json",
rest_numeric_enums = True,
service_yaml = "cloudscheduler_v1.yaml",
test_deps = [
":scheduler_java_grpc",
],
transport = "grpc+rest",
deps = [
":scheduler_java_proto",
"//google/api:api_java_proto",
],
)

Expand Down Expand Up @@ -123,11 +135,13 @@ go_gapic_library(
srcs = [":scheduler_proto_with_info"],
grpc_service_config = "cloudscheduler_grpc_service_config.json",
importpath = "cloud.google.com/go/scheduler/apiv1;scheduler",
metadata = True,
rest_numeric_enums = True,
service_yaml = "cloudscheduler_v1.yaml",
transport = "grpc+rest",
deps = [
":scheduler_go_proto",
"@io_bazel_rules_go//proto/wkt:duration_go_proto",
],
)

Expand All @@ -143,6 +157,7 @@ go_gapic_assembly_pkg(
name = "gapi-cloud-scheduler-v1-go",
deps = [
":scheduler_go_gapic",
":scheduler_go_gapic_srcjar-metadata.srcjar",
":scheduler_go_gapic_srcjar-test.srcjar",
":scheduler_go_proto",
],
Expand All @@ -163,7 +178,10 @@ py_gapic_library(
srcs = [":scheduler_proto"],
grpc_service_config = "cloudscheduler_grpc_service_config.json",
rest_numeric_enums = True,
service_yaml = "cloudscheduler_v1.yaml",
transport = "grpc",
deps = [
],
)

py_test(
Expand Down Expand Up @@ -211,6 +229,7 @@ php_gapic_library(
srcs = [":scheduler_proto_with_info"],
grpc_service_config = "cloudscheduler_grpc_service_config.json",
rest_numeric_enums = True,
service_yaml = "cloudscheduler_v1.yaml",
transport = "grpc+rest",
deps = [
":scheduler_php_grpc",
Expand Down Expand Up @@ -285,16 +304,17 @@ ruby_cloud_gapic_library(
name = "scheduler_ruby_gapic",
srcs = [":scheduler_proto_with_info"],
extra_protoc_parameters = [
"ruby-cloud-gem-name=google-cloud-scheduler-v1",
"ruby-cloud-env-prefix=SCHEDULER",
"ruby-cloud-product-url=https://cloud.google.com/scheduler",
"ruby-cloud-api-id=cloudscheduler.googleapis.com",
"ruby-cloud-api-shortname=cloudscheduler",
"ruby-cloud-env-prefix=SCHEDULER",
"ruby-cloud-gem-name=google-cloud-scheduler-v1",
"ruby-cloud-product-url=https://cloud.google.com/scheduler",
],
grpc_service_config = "cloudscheduler_grpc_service_config.json",
rest_numeric_enums = True,
ruby_cloud_description = "Cloud Scheduler is a fully managed enterprise-grade cron job scheduler. It allows you to schedule virtually any job, including batch, big data jobs, cloud infrastructure operations, and more. You can automate everything, including retries in case of failure to reduce manual toil and intervention. Cloud Scheduler even acts as a single pane of glass, allowing you to manage all your automation tasks from one place.",
ruby_cloud_title = "Cloud Scheduler V1",
service_yaml = "cloudscheduler_v1.yaml",
deps = [
":scheduler_ruby_grpc",
":scheduler_ruby_proto",
Expand Down
48 changes: 44 additions & 4 deletions google/cloud/scheduler/v1beta1/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
# This file was automatically generated by BuildFileGenerator
# https://github.com/googleapis/rules_gapic/tree/master/bazel

# Most of the manual changes to this file will be overwritten.
# It's **only** allowed to change the following rule attribute values:
# - names of *_gapic_assembly_* rules
# - certain parameters of *_gapic_library rules, including but not limited to:
# * extra_protoc_parameters
# * 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"])
Expand Down Expand Up @@ -34,6 +43,7 @@ proto_library_with_info(
deps = [
":scheduler_proto",
"//google/cloud:common_resources_proto",
"//google/cloud/location:location_proto",
],
)

Expand Down Expand Up @@ -63,14 +73,19 @@ java_grpc_library(
java_gapic_library(
name = "scheduler_java_gapic",
srcs = [":scheduler_proto_with_info"],
gapic_yaml = None,
grpc_service_config = "cloudscheduler_grpc_service_config.json",
rest_numeric_enums = True,
service_yaml = "cloudscheduler_v1beta1.yaml",
test_deps = [
":scheduler_java_grpc",
"//google/cloud/location:location_java_grpc",
],
transport = "grpc+rest",
deps = [
":scheduler_java_proto",
"//google/api:api_java_proto",
"//google/cloud/location:location_java_proto",
],
)

Expand Down Expand Up @@ -123,11 +138,14 @@ go_gapic_library(
srcs = [":scheduler_proto_with_info"],
grpc_service_config = "cloudscheduler_grpc_service_config.json",
importpath = "cloud.google.com/go/scheduler/apiv1beta1;scheduler",
metadata = True,
rest_numeric_enums = True,
service_yaml = "cloudscheduler_v1beta1.yaml",
transport = "grpc+rest",
deps = [
":scheduler_go_proto",
"//google/cloud/location:location_go_proto",
"@io_bazel_rules_go//proto/wkt:duration_go_proto",
],
)

Expand All @@ -143,6 +161,7 @@ go_gapic_assembly_pkg(
name = "gapi-cloud-scheduler-v1beta1-go",
deps = [
":scheduler_go_gapic",
":scheduler_go_gapic_srcjar-metadata.srcjar",
":scheduler_go_gapic_srcjar-test.srcjar",
":scheduler_go_proto",
],
Expand All @@ -163,7 +182,10 @@ py_gapic_library(
srcs = [":scheduler_proto"],
grpc_service_config = "cloudscheduler_grpc_service_config.json",
rest_numeric_enums = True,
service_yaml = "cloudscheduler_v1beta1.yaml",
transport = "grpc",
deps = [
],
)

py_test(
Expand Down Expand Up @@ -211,6 +233,7 @@ php_gapic_library(
srcs = [":scheduler_proto_with_info"],
grpc_service_config = "cloudscheduler_grpc_service_config.json",
rest_numeric_enums = True,
service_yaml = "cloudscheduler_v1beta1.yaml",
transport = "grpc+rest",
deps = [
":scheduler_php_grpc",
Expand Down Expand Up @@ -285,16 +308,17 @@ ruby_cloud_gapic_library(
name = "scheduler_ruby_gapic",
srcs = [":scheduler_proto_with_info"],
extra_protoc_parameters = [
"ruby-cloud-gem-name=google-cloud-scheduler-v1beta1",
"ruby-cloud-env-prefix=SCHEDULER",
"ruby-cloud-product-url=https://cloud.google.com/scheduler",
"ruby-cloud-api-id=cloudscheduler.googleapis.com",
"ruby-cloud-api-shortname=cloudscheduler",
"ruby-cloud-env-prefix=SCHEDULER",
"ruby-cloud-gem-name=google-cloud-scheduler-v1beta1",
"ruby-cloud-product-url=https://cloud.google.com/scheduler",
],
grpc_service_config = "cloudscheduler_grpc_service_config.json",
rest_numeric_enums = True,
ruby_cloud_description = "Cloud Scheduler is a fully managed enterprise-grade cron job scheduler. It allows you to schedule virtually any job, including batch, big data jobs, cloud infrastructure operations, and more. You can automate everything, including retries in case of failure to reduce manual toil and intervention. Cloud Scheduler even acts as a single pane of glass, allowing you to manage all your automation tasks from one place.",
ruby_cloud_title = "Cloud Scheduler V1beta1",
service_yaml = "cloudscheduler_v1beta1.yaml",
deps = [
":scheduler_ruby_grpc",
":scheduler_ruby_proto",
Expand Down Expand Up @@ -359,4 +383,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 = "scheduler_cc_proto",
deps = [":scheduler_proto"],
)

cc_grpc_library(
name = "scheduler_cc_grpc",
srcs = [":scheduler_proto"],
grpc_only = True,
deps = [":scheduler_cc_proto"],
)
Loading

0 comments on commit 3fbdb93

Please sign in to comment.