Пример #1
0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""This script is used to synthesize generated parts of this library."""

import synthtool as s
import synthtool.gcp as gcp
import synthtool.languages.ruby as ruby
import logging

logging.basicConfig(level=logging.DEBUG)

gapic = gcp.GAPICBazel()
library = gapic.ruby_library(
    "dialogflow",
    "v2",
    proto_path="google/cloud/dialogflow/v2",
    bazel_target="//google/cloud/dialogflow/v2:google-cloud-dialogflow-v2-ruby",
)

s.copy(library, merge=ruby.global_merge)
Пример #2
0
import synthtool as s
import synthtool.gcp as gcp
import synthtool.languages.node as node
import logging
import os
import subprocess

logging.basicConfig(level=logging.DEBUG)

AUTOSYNTH_MULTIPLE_COMMITS = True


gapic_bazel = gcp.GAPICBazel()

v1_admin_library = gapic_bazel.node_library(
    "firestore-admin", "v1", proto_path="/google/firestore/admin/v1"
)
v1beta1_library = gapic_bazel.node_library(
    "firestore", "v1beta1", proto_path="/google/firestore/v1beta1"
)
v1_library = gapic_bazel.node_library(
    "firestore", "v1", proto_path="/google/firestore/v1"
)

# skip index, protos, package.json, and README.md
s.copy(v1_admin_library, "dev", excludes=["package.json", "README.md", "src/index.ts", "src/v1/index.ts",
    "tsconfig.json", "linkinator.config.json", "webpack.config.js"])
s.copy(v1beta1_library, "dev", excludes=["package.json", "README.md", "src/index.ts", "src/v1beta1/index.ts",
    "tsconfig.json", "linkinator.config.json", "webpack.config.js"])
s.copy(v1_library, "dev", excludes=["package.json", "README.md", "src/index.ts", "src/v1/index.ts",
    "tsconfig.json", "linkinator.config.json", "webpack.config.js"])