mirror of
https://github.com/googleapis/googleapis.git
synced 2026-08-18 13:08:24 +02:00
feat:Add v1alpha version to Merchant reports endpoint
PiperOrigin-RevId: 778658049
This commit is contained in:
parent
acb0511f2c
commit
c19012aaff
4 changed files with 1871 additions and 0 deletions
402
google/shopping/merchant/reports/v1alpha/BUILD.bazel
Normal file
402
google/shopping/merchant/reports/v1alpha/BUILD.bazel
Normal file
|
|
@ -0,0 +1,402 @@
|
|||
# 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.
|
||||
|
||||
# buildifier: disable=load-on-top
|
||||
|
||||
# This is an API workspace, having public visibility by default makes perfect sense.
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
##############################################################################
|
||||
# Common
|
||||
##############################################################################
|
||||
# buildifier: disable=same-origin-load
|
||||
load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
|
||||
load("@rules_proto//proto:defs.bzl", "proto_library")
|
||||
|
||||
proto_library(
|
||||
name = "reports_proto",
|
||||
srcs = [
|
||||
"reports.proto",
|
||||
],
|
||||
deps = [
|
||||
"//google/api:annotations_proto",
|
||||
"//google/api:client_proto",
|
||||
"//google/api:field_behavior_proto",
|
||||
"//google/shopping/type:type_proto", # Manual fix. Original :types_proto
|
||||
"//google/type:date_proto",
|
||||
"@com_google_protobuf//:timestamp_proto",
|
||||
],
|
||||
)
|
||||
|
||||
proto_library_with_info(
|
||||
name = "reports_proto_with_info",
|
||||
deps = [
|
||||
":reports_proto",
|
||||
"//google/cloud:common_resources_proto",
|
||||
],
|
||||
)
|
||||
|
||||
##############################################################################
|
||||
# Java
|
||||
##############################################################################
|
||||
# buildifier: disable=same-origin-load
|
||||
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 = "reports_java_proto",
|
||||
deps = [":reports_proto"],
|
||||
)
|
||||
|
||||
java_grpc_library(
|
||||
name = "reports_java_grpc",
|
||||
srcs = [":reports_proto"],
|
||||
deps = [":reports_java_proto"],
|
||||
)
|
||||
|
||||
java_gapic_library(
|
||||
name = "reports_java_gapic",
|
||||
srcs = [":reports_proto_with_info"],
|
||||
gapic_yaml = None,
|
||||
grpc_service_config = "reports_grpc_service_config.json",
|
||||
rest_numeric_enums = True,
|
||||
service_yaml = "merchantapi_v1alpha.yaml",
|
||||
test_deps = [
|
||||
":reports_java_grpc",
|
||||
],
|
||||
transport = "grpc+rest",
|
||||
deps = [
|
||||
":reports_java_proto",
|
||||
"//google/api:api_java_proto",
|
||||
"//google/shopping/type:type_java_proto", # Added manually
|
||||
],
|
||||
)
|
||||
|
||||
java_gapic_test(
|
||||
name = "reports_java_gapic_test_suite",
|
||||
test_classes = [
|
||||
"com.google.shopping.merchant.reports.v1alpha.ReportServiceClientHttpJsonTest",
|
||||
"com.google.shopping.merchant.reports.v1alpha.ReportServiceClientTest",
|
||||
],
|
||||
runtime_deps = [":reports_java_gapic_test"],
|
||||
)
|
||||
|
||||
# Open Source Packages
|
||||
java_gapic_assembly_gradle_pkg(
|
||||
name = "google-cloud-merchant-reports-v1alpha-java",
|
||||
include_samples = True,
|
||||
transport = "grpc+rest",
|
||||
deps = [
|
||||
":reports_java_gapic",
|
||||
":reports_java_grpc",
|
||||
":reports_java_proto",
|
||||
":reports_proto",
|
||||
],
|
||||
)
|
||||
|
||||
##############################################################################
|
||||
# Go
|
||||
##############################################################################
|
||||
# buildifier: disable=same-origin-load
|
||||
load(
|
||||
"@com_google_googleapis_imports//:imports.bzl",
|
||||
"go_gapic_assembly_pkg",
|
||||
"go_gapic_library",
|
||||
"go_grpc_library",
|
||||
)
|
||||
|
||||
go_grpc_library( # Manual edit.
|
||||
name = "reports_go_proto",
|
||||
importpath = "cloud.google.com/go/shopping/merchant/reports/apiv1alpha/reportspb",
|
||||
protos = [":reports_proto"],
|
||||
deps = [
|
||||
"//google/api:annotations_go_proto",
|
||||
"//google/shopping/type:type_go_proto", # Manual fix. Original :types_go_proto
|
||||
"//google/type:date_go_proto",
|
||||
],
|
||||
)
|
||||
|
||||
go_gapic_library(
|
||||
name = "reports_go_gapic",
|
||||
srcs = [":reports_proto_with_info"],
|
||||
grpc_service_config = "reports_grpc_service_config.json",
|
||||
importpath = "cloud.google.com/go/shopping/merchant/reports/apiv1alpha;reports",
|
||||
metadata = True,
|
||||
release_level = "alpha",
|
||||
rest_numeric_enums = True,
|
||||
service_yaml = "merchantapi_v1alpha.yaml",
|
||||
transport = "grpc+rest",
|
||||
deps = [
|
||||
":reports_go_proto",
|
||||
],
|
||||
)
|
||||
|
||||
# Open Source Packages
|
||||
go_gapic_assembly_pkg(
|
||||
name = "gapi-cloud-merchant-reports-v1alpha-go",
|
||||
deps = [
|
||||
":reports_go_gapic",
|
||||
":reports_go_gapic_srcjar-metadata.srcjar",
|
||||
":reports_go_gapic_srcjar-snippets.srcjar",
|
||||
":reports_go_gapic_srcjar-test.srcjar",
|
||||
":reports_go_proto",
|
||||
],
|
||||
)
|
||||
|
||||
##############################################################################
|
||||
# Python
|
||||
##############################################################################
|
||||
# buildifier: disable=same-origin-load
|
||||
load(
|
||||
"@com_google_googleapis_imports//:imports.bzl",
|
||||
"py_gapic_assembly_pkg",
|
||||
"py_gapic_library",
|
||||
"py_import",
|
||||
)
|
||||
|
||||
py_import(
|
||||
name = "shopping_type",
|
||||
srcs = [
|
||||
"//google/shopping/type:type_py_gapic",
|
||||
],
|
||||
)
|
||||
|
||||
py_gapic_library(
|
||||
name = "reports_py_gapic",
|
||||
srcs = [":reports_proto"],
|
||||
grpc_service_config = "reports_grpc_service_config.json",
|
||||
opt_args = [
|
||||
# Manual fix.
|
||||
"proto-plus-deps=google.shopping.type",
|
||||
"python-gapic-name=merchant_reports",
|
||||
"python-gapic-namespace=google.shopping",
|
||||
],
|
||||
rest_numeric_enums = True,
|
||||
service_yaml = "merchantapi_v1alpha.yaml",
|
||||
transport = "grpc+rest",
|
||||
deps = [
|
||||
":shopping_type",
|
||||
],
|
||||
)
|
||||
|
||||
py_test(
|
||||
name = "reports_py_gapic_test",
|
||||
srcs = [
|
||||
"reports_py_gapic_pytest.py",
|
||||
"reports_py_gapic_test.py",
|
||||
],
|
||||
legacy_create_init = False,
|
||||
deps = [":reports_py_gapic"],
|
||||
)
|
||||
|
||||
# Open Source Packages
|
||||
py_gapic_assembly_pkg(
|
||||
name = "merchant-reports-v1alpha-py",
|
||||
deps = [
|
||||
":reports_py_gapic",
|
||||
],
|
||||
)
|
||||
|
||||
##############################################################################
|
||||
# PHP
|
||||
##############################################################################
|
||||
# buildifier: disable=same-origin-load
|
||||
load(
|
||||
"@com_google_googleapis_imports//:imports.bzl",
|
||||
"php_gapic_assembly_pkg",
|
||||
"php_gapic_library",
|
||||
"php_proto_library",
|
||||
)
|
||||
|
||||
php_proto_library(
|
||||
name = "reports_php_proto",
|
||||
deps = [":reports_proto"],
|
||||
)
|
||||
|
||||
php_gapic_library(
|
||||
name = "reports_php_gapic",
|
||||
srcs = [":reports_proto_with_info"],
|
||||
grpc_service_config = "reports_grpc_service_config.json",
|
||||
migration_mode = "NEW_SURFACE_ONLY",
|
||||
rest_numeric_enums = True,
|
||||
service_yaml = "merchantapi_v1alpha.yaml",
|
||||
transport = "grpc+rest",
|
||||
deps = [
|
||||
":reports_php_proto",
|
||||
],
|
||||
)
|
||||
|
||||
# Open Source Packages
|
||||
php_gapic_assembly_pkg(
|
||||
name = "google-cloud-merchant-reports-v1alpha-php",
|
||||
deps = [
|
||||
":reports_php_gapic",
|
||||
":reports_php_proto",
|
||||
],
|
||||
)
|
||||
|
||||
##############################################################################
|
||||
# Node.js
|
||||
##############################################################################
|
||||
# buildifier: disable=same-origin-load
|
||||
load(
|
||||
"@com_google_googleapis_imports//:imports.bzl",
|
||||
"nodejs_gapic_assembly_pkg",
|
||||
"nodejs_gapic_library",
|
||||
)
|
||||
|
||||
nodejs_gapic_library(
|
||||
name = "reports_nodejs_gapic",
|
||||
package_name = "@google-shopping/reports",
|
||||
src = ":reports_proto_with_info",
|
||||
extra_protoc_parameters = ["metadata"],
|
||||
grpc_service_config = "reports_grpc_service_config.json",
|
||||
package = "google.shopping.merchant.reports.v1alpha",
|
||||
rest_numeric_enums = True,
|
||||
service_yaml = "merchantapi_v1alpha.yaml",
|
||||
transport = "grpc+rest",
|
||||
deps = [],
|
||||
)
|
||||
|
||||
nodejs_gapic_assembly_pkg(
|
||||
name = "merchant-reports-v1alpha-nodejs",
|
||||
deps = [
|
||||
":reports_nodejs_gapic",
|
||||
":reports_proto",
|
||||
"//google/shopping/type:type_proto",
|
||||
],
|
||||
)
|
||||
|
||||
##############################################################################
|
||||
# Ruby
|
||||
##############################################################################
|
||||
# buildifier: disable=same-origin-load
|
||||
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 = "reports_ruby_proto",
|
||||
deps = [":reports_proto"],
|
||||
)
|
||||
|
||||
ruby_grpc_library(
|
||||
name = "reports_ruby_grpc",
|
||||
srcs = [":reports_proto"],
|
||||
deps = [":reports_ruby_proto"],
|
||||
)
|
||||
|
||||
ruby_cloud_gapic_library(
|
||||
name = "reports_ruby_gapic",
|
||||
srcs = [":reports_proto_with_info"],
|
||||
extra_protoc_parameters = [
|
||||
"ruby-cloud-extra-dependencies=google-shopping-type=>0.0+<2.a",
|
||||
"ruby-cloud-gem-name=google-shopping-merchant-reports-v1alpha", # Manual fix.
|
||||
],
|
||||
grpc_service_config = "reports_grpc_service_config.json",
|
||||
rest_numeric_enums = True,
|
||||
service_yaml = "merchantapi_v1alpha.yaml",
|
||||
transport = "grpc+rest",
|
||||
deps = [
|
||||
":reports_ruby_grpc",
|
||||
":reports_ruby_proto",
|
||||
],
|
||||
)
|
||||
|
||||
# Open Source Packages
|
||||
ruby_gapic_assembly_pkg(
|
||||
name = "google-cloud-merchant-reports-v1alpha-ruby",
|
||||
deps = [
|
||||
":reports_ruby_gapic",
|
||||
":reports_ruby_grpc",
|
||||
":reports_ruby_proto",
|
||||
],
|
||||
)
|
||||
|
||||
##############################################################################
|
||||
# C#
|
||||
##############################################################################
|
||||
# buildifier: disable=same-origin-load
|
||||
load(
|
||||
"@com_google_googleapis_imports//:imports.bzl",
|
||||
"csharp_gapic_assembly_pkg",
|
||||
"csharp_gapic_library",
|
||||
"csharp_grpc_library",
|
||||
"csharp_proto_library",
|
||||
)
|
||||
|
||||
csharp_proto_library(
|
||||
name = "reports_csharp_proto",
|
||||
extra_opts = [],
|
||||
deps = [":reports_proto"],
|
||||
)
|
||||
|
||||
csharp_grpc_library(
|
||||
name = "reports_csharp_grpc",
|
||||
srcs = [":reports_proto"],
|
||||
deps = [":reports_csharp_proto"],
|
||||
)
|
||||
|
||||
csharp_gapic_library(
|
||||
name = "reports_csharp_gapic",
|
||||
srcs = [":reports_proto_with_info"],
|
||||
common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
|
||||
grpc_service_config = "reports_grpc_service_config.json",
|
||||
rest_numeric_enums = True,
|
||||
service_yaml = "merchantapi_v1alpha.yaml",
|
||||
transport = "grpc+rest",
|
||||
deps = [
|
||||
":reports_csharp_grpc",
|
||||
":reports_csharp_proto",
|
||||
],
|
||||
)
|
||||
|
||||
# Open Source Packages
|
||||
csharp_gapic_assembly_pkg(
|
||||
name = "google-cloud-merchant-reports-v1alpha-csharp",
|
||||
deps = [
|
||||
":reports_csharp_gapic",
|
||||
":reports_csharp_grpc",
|
||||
":reports_csharp_proto",
|
||||
],
|
||||
)
|
||||
|
||||
##############################################################################
|
||||
# C++
|
||||
##############################################################################
|
||||
# buildifier: disable=same-origin-load
|
||||
load(
|
||||
"@com_google_googleapis_imports//:imports.bzl",
|
||||
"cc_grpc_library",
|
||||
"cc_proto_library",
|
||||
)
|
||||
|
||||
cc_proto_library(
|
||||
name = "reports_cc_proto",
|
||||
deps = [":reports_proto"],
|
||||
)
|
||||
|
||||
cc_grpc_library(
|
||||
name = "reports_cc_grpc",
|
||||
srcs = [":reports_proto"],
|
||||
grpc_only = True,
|
||||
deps = [":reports_cc_proto"],
|
||||
)
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
type: google.api.Service
|
||||
config_version: 3
|
||||
name: merchantapi.googleapis.com
|
||||
title: Merchant API
|
||||
|
||||
apis:
|
||||
- name: google.shopping.merchant.reports.v1alpha.ReportService
|
||||
|
||||
documentation:
|
||||
summary: Programmatically manage your Merchant Center accounts.
|
||||
|
||||
authentication:
|
||||
rules:
|
||||
- selector: google.shopping.merchant.reports.v1alpha.ReportService.Search
|
||||
oauth:
|
||||
canonical_scopes: |-
|
||||
https://www.googleapis.com/auth/content
|
||||
|
||||
publishing:
|
||||
new_issue_uri: https://issuetracker.google.com/issues/new?component=171084&template=555201
|
||||
documentation_uri: https://developers.google.com/merchant/api
|
||||
api_short_name: merchantapi
|
||||
github_label: 'api: merchantapi'
|
||||
doc_tag_prefix: merchantapi
|
||||
organization: SHOPPING
|
||||
library_settings:
|
||||
- version: google.shopping.merchant.reports.v1alpha
|
||||
launch_stage: ALPHA
|
||||
java_settings:
|
||||
common:
|
||||
destinations:
|
||||
- PACKAGE_MANAGER
|
||||
php_settings:
|
||||
common:
|
||||
destinations:
|
||||
- PACKAGE_MANAGER
|
||||
python_settings:
|
||||
common:
|
||||
destinations:
|
||||
- PACKAGE_MANAGER
|
||||
node_settings:
|
||||
common:
|
||||
destinations:
|
||||
- PACKAGE_MANAGER
|
||||
dotnet_settings:
|
||||
common:
|
||||
destinations:
|
||||
- PACKAGE_MANAGER
|
||||
ruby_settings:
|
||||
common:
|
||||
destinations:
|
||||
- PACKAGE_MANAGER
|
||||
go_settings:
|
||||
common:
|
||||
destinations:
|
||||
- PACKAGE_MANAGER
|
||||
1398
google/shopping/merchant/reports/v1alpha/reports.proto
Normal file
1398
google/shopping/merchant/reports/v1alpha/reports.proto
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"methodConfig": [{
|
||||
"name": [
|
||||
{ "service": "google.shopping.merchant.reports.v1alpha.ReportService" }
|
||||
],
|
||||
"timeout": "60s",
|
||||
"retryPolicy": {
|
||||
"maxAttempts": 5,
|
||||
"initialBackoff": "1s",
|
||||
"maxBackoff": "10s",
|
||||
"backoffMultiplier": 1.3,
|
||||
"retryableStatusCodes": ["UNAVAILABLE"]
|
||||
}
|
||||
}]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue