Skip to content

Commit

Permalink
feat: enable "rest" transport in Python for services supporting numer…
Browse files Browse the repository at this point in the history
…ic enums

PiperOrigin-RevId: 508143576
  • Loading branch information
Google APIs authored and Copybara-Service committed Feb 8, 2023
1 parent e42829f commit 7a702a9
Show file tree
Hide file tree
Showing 200 changed files with 211 additions and 209 deletions.
2 changes: 1 addition & 1 deletion google/api/servicecontrol/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ py_gapic_library(
"warehouse-package-name=google-cloud-service-control",
],
rest_numeric_enums = True,
transport = "grpc",
transport = "grpc+rest",
)

py_test(
Expand Down
2 changes: 1 addition & 1 deletion google/api/servicecontrol/v2/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ py_gapic_library(
"warehouse-package-name=google-cloud-service-control",
],
rest_numeric_enums = True,
transport = "grpc",
transport = "grpc+rest",
)

py_test(
Expand Down
2 changes: 1 addition & 1 deletion google/api/servicemanagement/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ py_gapic_library(
"warehouse-package-name=google-cloud-service-management",
],
rest_numeric_enums = True,
transport = "grpc",
transport = "grpc+rest",
)

py_test(
Expand Down
2 changes: 1 addition & 1 deletion google/api/serviceusage/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ py_gapic_library(
"python-gapic-name=service_usage",
],
rest_numeric_enums = True,
transport = "grpc",
transport = "grpc+rest",
)

py_test(
Expand Down
2 changes: 1 addition & 1 deletion google/api/serviceusage/v1beta1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ py_gapic_library(
srcs = [":serviceusage_proto"],
grpc_service_config = "serviceusage_grpc_service_config.json",
rest_numeric_enums = True,
transport = "grpc",
transport = "grpc+rest",
)

# Uncomment once https://github.com/googleapis/gapic-generator-python/issues/1376 is fixed
Expand Down
2 changes: 1 addition & 1 deletion google/appengine/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ py_gapic_library(
"python-gapic-name=appengine_admin",
],
rest_numeric_enums = True,
transport = "grpc",
transport = "grpc+rest",
)

py_test(
Expand Down
2 changes: 1 addition & 1 deletion google/apps/alertcenter/v1beta1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ py_gapic_library(
srcs = [":alertcenter_proto"],
grpc_service_config = "alertcenter_grpc_service_config.json",
rest_numeric_enums = True,
transport = "grpc",
transport = "grpc+rest",
)

py_test(
Expand Down
2 changes: 1 addition & 1 deletion google/apps/drive/activity/v2/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ py_gapic_library(
grpc_service_config = "driveactivity_grpc_service_config.json",
rest_numeric_enums = True,
service_yaml = "driveactivity_v2.yaml",
transport = "grpc",
transport = "grpc+rest",
deps = [
],
)
Expand Down
2 changes: 1 addition & 1 deletion google/apps/market/v2/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ py_gapic_library(
srcs = [":marketplace_proto"],
grpc_service_config = "service_grpc_service_config.json",
rest_numeric_enums = True,
transport = "grpc",
transport = "grpc+rest",
)

py_test(
Expand Down
2 changes: 1 addition & 1 deletion google/bigtable/admin/v2/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ py_gapic_library(
"autogen-snippets=False",
],
rest_numeric_enums = True,
transport = "grpc",
transport = "grpc+rest",
deps = [
"//google/iam/v1:iam_policy_py_proto",
],
Expand Down
2 changes: 1 addition & 1 deletion google/bigtable/v2/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ py_gapic_library(
"autogen-snippets=False",
],
rest_numeric_enums = True,
transport = "grpc",
transport = "grpc+rest",
)

py_test(
Expand Down
2 changes: 1 addition & 1 deletion google/chromeos/moblab/v1beta1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ py_gapic_library(
srcs = [":moblab_proto"],
grpc_service_config = "moblab_grpc_service_config.json",
rest_numeric_enums = True,
transport = "grpc",
transport = "grpc+rest",
)

py_test(
Expand Down
2 changes: 1 addition & 1 deletion google/chromeos/uidetection/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ py_gapic_library(
srcs = [":uidetection_proto"],
grpc_service_config = "ui_detection_grpc_service_config.json",
rest_numeric_enums = True,
transport = "grpc",
transport = "grpc+rest",
)

py_test(
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/accessapproval/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ py_gapic_library(
"warehouse-package-name=google-cloud-access-approval",
],
rest_numeric_enums = True,
transport = "grpc",
transport = "grpc+rest",
)

py_test(
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/apigateway/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ py_gapic_library(
grpc_service_config = "apigateway_grpc_service_config.json",
opt_args = ["warehouse-package-name=google-cloud-api-gateway"],
rest_numeric_enums = True,
transport = "grpc",
transport = "grpc+rest",
)

py_test(
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/asset/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ py_gapic_library(
srcs = [":asset_proto"],
grpc_service_config = "cloudasset_grpc_service_config.json",
rest_numeric_enums = True,
transport = "grpc",
transport = "grpc+rest",
deps = [
"//google/cloud/orgpolicy/v1:orgpolicy_py_original_proto",
"//google/cloud/osconfig/v1:osconfig_py_proto",
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/asset/v1p1beta1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ py_gapic_library(
srcs = [":asset_proto"],
grpc_service_config = "cloudasset_grpc_service_config.json",
rest_numeric_enums = True,
transport = "grpc",
transport = "grpc+rest",
deps = [
"//google/iam/v1:iam_policy_py_proto",
],
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/asset/v1p2beta1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ py_gapic_library(
srcs = [":asset_proto"],
grpc_service_config = "cloudasset_grpc_service_config.json",
rest_numeric_enums = True,
transport = "grpc",
transport = "grpc+rest",
deps = [
"//google/iam/v1:iam_policy_py_proto",
],
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/asset/v1p5beta1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ py_gapic_library(
srcs = [":asset_proto"],
grpc_service_config = "cloudasset_grpc_service_config.json",
rest_numeric_enums = True,
transport = "grpc",
transport = "grpc+rest",
deps = [
"//google/cloud/orgpolicy/v1:orgpolicy_py_original_proto",
"//google/iam/v1:iam_policy_py_proto",
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/assuredworkloads/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ py_gapic_library(
opt_args = ["warehouse-package-name=google-cloud-assured-workloads"],
rest_numeric_enums = True,
service_yaml = "assuredworkloads_v1.yaml",
transport = "grpc",
transport = "grpc+rest",
deps = [
],
)
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/assuredworkloads/v1beta1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ py_gapic_library(
opt_args = ["warehouse-package-name=google-cloud-assured-workloads"],
rest_numeric_enums = True,
service_yaml = "assuredworkloads_v1beta1.yaml",
transport = "grpc",
transport = "grpc+rest",
)

py_test(
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/automl/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ py_gapic_library(
srcs = [":automl_proto"],
grpc_service_config = "automl_grpc_service_config.json",
rest_numeric_enums = True,
transport = "grpc",
transport = "grpc+rest",
)

py_test(
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/automl/v1beta1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ py_gapic_library(
srcs = [":automl_proto"],
grpc_service_config = "automl_grpc_service_config.json",
rest_numeric_enums = True,
transport = "grpc",
transport = "grpc+rest",
)

py_test(
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/baremetalsolution/v2/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ py_gapic_library(
"python-gapic-name=bare_metal_solution",
],
rest_numeric_enums = True,
transport = "grpc",
transport = "grpc+rest",
)

py_test(
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/beyondcorp/clientgateways/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ py_gapic_library(
],
rest_numeric_enums = True,
service_yaml = "beyondcorp_v1.yaml",
transport = "grpc",
transport = "grpc+rest",
deps = [
"//google/iam/v1:iam_policy_py_proto",
],
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/bigquery/connection/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ py_gapic_library(
"python-gapic-name=bigquery_connection",
],
rest_numeric_enums = True,
transport = "grpc",
transport = "grpc+rest",
deps = [
"//google/iam/v1:iam_policy_py_proto",
],
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/bigquery/connection/v1beta1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ py_gapic_library(
srcs = [":connection_proto"],
grpc_service_config = "bigqueryconnection_grpc_service_config.json",
rest_numeric_enums = True,
transport = "grpc",
transport = "grpc+rest",
deps = [
"//google/iam/v1:iam_policy_py_proto",
],
Expand Down
6 changes: 3 additions & 3 deletions google/cloud/bigquery/datapolicies/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,14 @@ java_gapic_test(
# Open Source Packages
java_gapic_assembly_gradle_pkg(
name = "google-cloud-bigquery-datapolicies-v1-java",
include_samples = True,
transport = "grpc+rest",
deps = [
":datapolicies_java_gapic",
":datapolicies_java_grpc",
":datapolicies_java_proto",
":datapolicies_proto",
],
include_samples = True,
)

##############################################################################
Expand Down Expand Up @@ -157,8 +157,8 @@ go_gapic_assembly_pkg(
name = "gapi-cloud-bigquery-datapolicies-v1-go",
deps = [
":datapolicies_go_gapic",
":datapolicies_go_gapic_srcjar-test.srcjar",
":datapolicies_go_gapic_srcjar-metadata.srcjar",
":datapolicies_go_gapic_srcjar-test.srcjar",
":datapolicies_go_proto",
],
)
Expand Down Expand Up @@ -283,8 +283,8 @@ nodejs_gapic_assembly_pkg(
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"ruby_gapic_assembly_pkg",
"ruby_cloud_gapic_library",
"ruby_gapic_assembly_pkg",
"ruby_grpc_library",
"ruby_proto_library",
)
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/bigquery/datatransfer/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ py_gapic_library(
],
rest_numeric_enums = True,
service_yaml = "bigquerydatatransfer_v1.yaml",
transport = "grpc",
transport = "grpc+rest",
deps = [
],
)
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/bigquery/reservation/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ py_gapic_library(
"python-gapic-namespace=google.cloud",
],
rest_numeric_enums = True,
transport = "grpc",
transport = "grpc+rest",
)

py_test(
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/billing/budgets/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ py_gapic_library(
srcs = [":budgets_proto"],
grpc_service_config = "billingbudgets_grpc_service_config.json",
rest_numeric_enums = True,
transport = "grpc",
transport = "grpc+rest",
)

py_test(
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/billing/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ py_gapic_library(
grpc_service_config = "cloud_billing_grpc_service_config.json",
rest_numeric_enums = True,
service_yaml = "cloudbilling_v1.yaml",
transport = "grpc",
transport = "grpc+rest",
deps = [
"//google/iam/v1:iam_policy_py_proto",
],
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/binaryauthorization/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ py_gapic_library(
"warehouse-package-name=google-cloud-binary-authorization",
],
rest_numeric_enums = True,
transport = "grpc",
transport = "grpc+rest",
deps = [
"//grafeas/v1:grafeas_py_proto",
],
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/binaryauthorization/v1beta1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ py_gapic_library(
"warehouse-package-name=google-cloud-binary-authorization",
],
rest_numeric_enums = True,
transport = "grpc",
transport = "grpc+rest",
)

py_test(
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/certificatemanager/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ py_gapic_library(
],
rest_numeric_enums = True,
service_yaml = "certificatemanager_v1.yaml",
transport = "grpc",
transport = "grpc+rest",
deps = [
],
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ py_gapic_library(
grpc_service_config = "commerceconsumerprocurement_grpc_service_config.json",
rest_numeric_enums = True,
service_yaml = "cloudcommerceconsumerprocurement_v1alpha1.yaml",
transport = "grpc",
transport = "grpc+rest",
)

py_test(
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/connectors/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ py_gapic_library(
grpc_service_config = "connectors_grpc_service_config.json",
rest_numeric_enums = True,
service_yaml = "connectors_v1.yaml",
transport = "grpc",
transport = "grpc+rest",
deps = [
"//google/iam/v1:iam_policy_py_proto",
],
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/contactcenterinsights/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ py_gapic_library(
"python-gapic-name=contact_center_insights",
],
rest_numeric_enums = True,
transport = "grpc",
transport = "grpc+rest",
)

py_test(
Expand Down
1 change: 1 addition & 0 deletions google/cloud/contentwarehouse/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ py_gapic_library(
grpc_service_config = "contentwarehouse_grpc_service_config.json",
rest_numeric_enums = True,
service_yaml = "contentwarehouse_v1.yaml",
transport = "grpc+rest",
deps = [
"//google/cloud/documentai/v1:documentai_py_proto",
"//google/iam/v1:iam_policy_py_proto",
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/dataform/v1alpha2/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ py_gapic_library(
grpc_service_config = "dataform_grpc_service_config.json",
rest_numeric_enums = True,
service_yaml = "dataform_v1alpha2.yaml",
transport = "grpc",
transport = "grpc+rest",
deps = [
"//google/iam/v1:iam_policy_py_proto",
],
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/dataform/v1beta1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ py_gapic_library(
grpc_service_config = "dataform_grpc_service_config.json",
rest_numeric_enums = True,
service_yaml = "dataform_v1beta1.yaml",
transport = "grpc",
transport = "grpc+rest",
)

# Open Source Packages
Expand Down
Loading

0 comments on commit 7a702a9

Please sign in to comment.