Skip to content

Commit 0115c31

Browse files
authored
Add synthtool scripts (#3765)
* Add assets synth script * Add automl synth script * Add BigQueryDataTransfer synth * Add BigTable synth * Add BigTableAdmin synth * Add container synth * Add containeranalysis synth * Add dataproc synth * Add datastore synth * Add dialogflow synth * Add dlp synth * Add errorreporting synth * Add firestore synth * Add iot synth * Add kms synth * Add language synth * Add logging synth * Add monitoring synth * Add oslogin synth * Add pubsub synth * Add redis synth * Add spanner synth * Add speech synth * Add tasks synth * Add texttospeech synth * Add trace synth * Add videointelligence synth * Add vision synth * Add websecurityscanner synth * Add compute synth * Remove unnecessary import * Remove compute synth and remove excess logging statements
1 parent 3ff4f47 commit 0115c31

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

google-cloud-logging/synth.py

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Copyright 2018 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
"""This script is used to synthesize generated parts of this library."""
16+
17+
import synthtool as s
18+
import synthtool.gcp as gcp
19+
20+
gapic = gcp.GAPICGenerator()
21+
common_templates = gcp.CommonTemplates()
22+
23+
library = gapic.java_library(
24+
service='logging',
25+
version='v2',
26+
config_path='/google/logging/artman_logging.yaml',
27+
artman_output_name='')
28+
29+
s.copy(library / 'gapic-google-cloud-logging-v2/src', 'src')
30+
s.copy(library / 'grpc-google-cloud-logging-v2/src', '../../google-api-grpc/grpc-google-cloud-logging-v2/src')
31+
s.copy(library / 'proto-google-cloud-logging-v2/src', '../../google-api-grpc/proto-google-cloud-logging-v2/src')

0 commit comments

Comments
 (0)