Beispiel #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.languages.java as java

service = 'iam-credentials'
versions = ['v1']

for version in versions:
  java.bazel_library(
      service=service,
      version=version,
      proto_path=f'/google/iam/credentials/{version}',
      bazel_target=f'//google/iam/credentials/{version}:google-cloud-{service}-{version}-java',
      destination_name='iamcredentials',
  )

java.common_templates()
# 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.java as java

service = 'assuredworkloads'
versions = ['v1beta1']

for version in versions:
    java.bazel_library(
        service=service,
        version=version,
        proto_path=f'google/cloud/assuredworkloads/{version}',
        bazel_target=
        f'//google/cloud/assuredworkloads/{version}:google-cloud-{service}-{version}-java',
        destination_name='assured-workloads',
    )

java.common_templates()
Beispiel #3
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.java as java

gapic = gcp.GAPICGenerator()

service = 'automl'
versions = ['v1beta1', 'v1']

for version in versions:
    library = java.bazel_library(
        service=service,
        version=version,
        bazel_target=
        f'//google/cloud/{service}/{version}:google-cloud-{service}-{version}-java',
    )

java.common_templates()
Beispiel #4
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.java as java

service = 'aiplatform'
versions = ['v1beta1']

for version in versions:
    java.bazel_library(
        service=service,
        version=version,
        proto_path=f'google/cloud/aiplatform/{version}',
        bazel_target=
        f'//google/cloud/aiplatform/{version}:google-cloud-{service}-{version}-java',
    )

java.common_templates()
# 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.java as java

service = 'bigquery-reservation'
versions = ['v1']

for version in versions:
    java.bazel_library(
        service=service,
        version=version,
        package_pattern='com.google.cloud.{service}.{version}',
        proto_path=f'google/cloud/bigquery/reservation/{version}',
        bazel_target=
        f'//google/cloud/bigquery/reservation/{version}:google-cloud-bigquery-reservation-{version}-java',
        destination_name='bigqueryreservation')

java.common_templates()
Beispiel #6
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.gcp as gcp
import synthtool.languages.java as java

AUTOSYNTH_MULTIPLE_COMMITS = True

gapic = gcp.GAPICBazel()

service = 'videointelligence'
versions = ['v1', 'v1beta2', 'v1p1beta1', 'v1p2beta1', 'v1p3beta1']

for version in versions:
    java.bazel_library(service=service,
                       version=version,
                       gapic=gapic,
                       destination_name="video-intelligence")

java.common_templates()
#
# 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.java as java

AUTOSYNTH_MULTIPLE_COMMITS = True

gapic = gcp.GAPICBazel()

service = 'monitoring-dashboard'
versions = ['v1']

for version in versions:
    library = java.bazel_library(
        service=service,
        version=version,
        package_pattern='com.google.monitoring.dashboard.{version}',
        gapic=gapic,
        proto_path=f'google/monitoring/dashboard/{version}',
        bazel_target=
        f'//google/monitoring/dashboard/{version}:google-cloud-monitoring-dashboard-{version}-java',
    )

java.common_templates()
Beispiel #8
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.java as java

AUTOSYNTH_MULTIPLE_COMMITS = True

gapic = gcp.GAPICGenerator()
service = 'bigquerystorage'
versions = ['v1beta1', 'v1beta2', 'v1alpha2', 'v1']

for version in versions:
  java.bazel_library(
      service='bigquery-storage',
      version=version,
      package_pattern='com.google.cloud.bigquery.storage.{version}',
      proto_path=f'google/cloud/bigquery/storage/{version}',
      bazel_target=f'//google/cloud/bigquery/storage/{version}:google-cloud-bigquery-storage-{version}-java',
      destination_name='bigquerystorage',
  )

java.common_templates()
Beispiel #9
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.java as java

service = 'area120-tables'
versions = ['v1alpha1']

for version in versions:
    java.bazel_library(
        service=service,
        version=version,
        proto_path=f'google/area120/tables/{version}',
        bazel_target=
        f'//google/area120/tables/{version}:google-{service}-{version}-java',
        cloud_api=False,
    )

java.common_templates()
Beispiel #10
0
# 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.gcp as gcp
import synthtool.languages.java as java

AUTOSYNTH_MULTIPLE_COMMITS = True

service = 'billing-budgets'
versions = ['v1beta1', 'v1']

for version in versions:
    java.bazel_library(
        service=service,
        version=version,
        proto_path=f'google/cloud/billing/budgets/{version}',
        bazel_target=
        f'//google/cloud/billing/budgets/{version}:google-cloud-{service}-{version}-java',
        destination_name='billingbudgets',
    )

java.common_templates()
Beispiel #11
0
# 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.gcp as gcp
import synthtool.languages.java as java

gapic = gcp.GAPICGenerator()
common_templates = gcp.CommonTemplates()

versions = ['v1beta1']
service = 'webrisk'
config_pattern = '/google/cloud/webrisk/artman_webrisk_{version}.yaml'

for version in versions:
    java.gapic_library(
        service=service,
        version=version,
        config_pattern=config_pattern,
        package_pattern='com.google.webrisk.{version}',
        gapic=gapic,
    )

java.bazel_library(
    service=service,
    version='v1',
)

java.common_templates()
Beispiel #12
0
  /**
   * Returns a new GrafeasClient with the same configured settings.
   *
   * @throws IOException
   */
  public GrafeasClient getGrafeasClient() throws IOException {
    return GrafeasClient.create(GrafeasUtils.transformSettings(settings));
  }
"""


for version in versions:
  java.bazel_library(
      service=service,
      version=version,
      proto_path=f'google/devtools/containeranalysis/{version}',
      bazel_target=f'//google/devtools/containeranalysis/{version}:google-cloud-{service}-{version}-java',
      destination_name='containeranalysis',
  )

  if version == 'v1':
      # add GrafeasClient import
      s.replace(
          f'google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/{version}/ContainerAnalysisClient.java',
          'import com.google.iam.v1.TestIamPermissionsResponse;',
          'import com.google.iam.v1.TestIamPermissionsResponse;\nimport io.grafeas.v1.GrafeasClient;'
      )

      # add getGrafeasClient()
      s.replace(
          f'google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/{version}/ContainerAnalysisClient.java',
Beispiel #13
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.java as java

service = 'bigquery-connection'
versions = ['v1beta1', 'v1']

for version in versions:
    java.bazel_library(
        service=service,
        version=version,
        proto_path=f'google/cloud/bigquery/connection/{version}',
        bazel_target=
        f'//google/cloud/bigquery/connection/{version}:google-cloud-{service}-{version}-java',
        destination_name='bigqueryconnection',
    )

java.common_templates(excludes=[
    '.kokoro/build.sh', '.kokoro/nightly/samples.cfg',
    '.kokoro/presubmit/samples.cfg', '.kokoro/presubmit/integration.cfg',
    '.kokoro/nightly/integration.cfg'
])
Beispiel #14
0
"""This script is used to synthesize generated parts of this library."""

import synthtool as s
import synthtool.languages.java as java
import shutil

AUTOSYNTH_MULTIPLE_COMMITS = True

service = 'oslogin'
versions = ['v1']

for version in versions:
    library = java.bazel_library(
        service=service,
        version=version,
        bazel_target=
        f'//google/cloud/{service}/{version}:google-cloud-{service}-{version}-java',
        destination_name='os-login',
    )

    s.replace('**/OsLoginServiceClient.java', 'PosixAccountName',
              'ProjectName')
    s.replace('**/OsLoginServiceClient.java', 'SshPublicKeyName',
              'FingerprintName')
    s.replace('**/OsLoginServiceClientTest.java', 'PosixAccountName',
              'ProjectName')
    s.replace('**/OsLoginServiceClientTest.java', 'SshPublicKeyName',
              'FingerprintName')

    # Copy of Resource name helper classes from v1 and import replacements
    # Todo: remove before next major release(lines 36 - 60)
Beispiel #15
0
# 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.java as java

gapic = gcp.GAPICBazel()

service = 'secretmanager'
versions = ['v1beta1']

for version in versions:
    library = java.bazel_library(
        service=service,
        version=version,
        package_pattern='com.google.cloud.secrets.{version}',
        gapic=gapic,
        proto_path=f'google/cloud/secrets/{version}',
        bazel_target=
        f'//google/cloud/secrets/{version}:google-cloud-{service}-{version}-java',
    )

common_templates = gcp.CommonTemplates()
templates = common_templates.java_library()
s.copy(
    templates,
    excludes=[
        # 'README.md',
    ])
Beispiel #16
0
# 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.gcp as gcp
import synthtool.languages.java as java

gapic = gcp.GAPICGenerator()

service='devtools-cloudbuild'
versions = ['v1']

for version in versions:
    library = java.bazel_library(
        service=service,
        version=version,
        proto_path=f'google/devtools/cloudbuild/{version}',
        bazel_target=f'//google/devtools/cloudbuild/{version}:google-cloud-{service}-{version}-java',
        destination_name='build',
    )

java.common_templates()
Beispiel #17
0
# 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.java as java

gapic = gcp.GAPICBazel()

service = 'scheduler'
versions = ['v1beta1', 'v1']
config_pattern = '/google/cloud/scheduler/artman_cloudscheduler_{version}.yaml'

for version in versions:
  java.bazel_library(
    service=service,
    version=version,
    gapic=gapic,
  )

java.common_templates()
#
#     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.gcp as gcp
import synthtool.languages.java as java

gapic = gcp.GAPICGenerator()

service = 'bigquery-datatransfer'
destination_name = 'bigquerydatatransfer'
versions = ['v1']

for version in versions:
    java.bazel_library(
        service='bigquery-datatransfer',
        version=version,
        proto_path=f'google/cloud/bigquery/datatransfer/{version}',
        bazel_target=
        f'//google/cloud/bigquery/datatransfer/{version}:google-cloud-bigquery-datatransfer-{version}-java',
        destination_name='bigquerydatatransfer',
    )

java.common_templates()
Beispiel #19
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.java as java

service = 'security-privateca'
versions = ['v1beta1']

for version in versions:
    java.bazel_library(
        service=service,
        version=version,
        proto_path=f'google/cloud/security/privateca/{version}',
        bazel_target=
        f'//google/cloud/security/privateca/{version}:google-cloud-{service}-{version}-java',
        destination_name='security-private-ca',
    )

java.common_templates()
Beispiel #20
0
# 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.java as java

service = 'workflows-executions'
versions = ['v1beta']

for version in versions:
    java.bazel_library(
        service=service,
        version=version,
        proto_path=f'google/cloud/workflows/executions/{version}',
        bazel_target=
        f'//google/cloud/workflows/executions/{version}:google-cloud-{service}-{version}-java',
        destination_name='workflow-executions',
    )

java.common_templates()
Beispiel #21
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.java as java

AUTOSYNTH_MULTIPLE_COMMITS = True

service = 'gaming'
versions = ['v1beta', 'v1']

for version in versions:
    library = java.bazel_library(
        service=service,
        version=version,
        destination_name="game-servers",
    )

java.common_templates()
Beispiel #22
0
#
#     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.java as java

AUTOSYNTH_MULTIPLE_COMMITS = True

service = 'billing'
versions = ['v1']

for version in versions:
    java.bazel_library(
        service=service,
        version=version,
        package_pattern='com.google.cloud.{service}.{version}',
        proto_path=f'google/cloud/{service}/{version}',
        bazel_target=
        f'//google/cloud/{service}/{version}:google-cloud-{service}-{version}-java',
    )

java.common_templates()
Beispiel #23
0
# 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.languages.java as java

AUTOSYNTH_MULTIPLE_COMMITS = True

service = 'privacy-dlp'
versions = ['v2']

for version in versions:
    java.bazel_library(
        service=service,
        version=version,
        proto_path=f'/google/privacy/dlp/{version}',
        bazel_target=
        f'//google/privacy/dlp/{version}:google-cloud-{service}-{version}-java',
        destination_name='dlp',
    )

# TODO: remove this for the next semver major release
# remove ResourceName base parseList and toStringList for backward-compatibility with legacy
# resource name implementation
java.remove_method(
    "proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectTemplateName.java",
    "public static List<InspectTemplateName> parseList(List<String> formattedStrings)"
)
java.remove_method(
    "proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectTemplateName.java",
    "public static List<String> toStringList(List<InspectTemplateName> values)"
)
Beispiel #24
0
# 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.languages.java as java

AUTOSYNTH_MULTIPLE_COMMITS = True

service = 'translation'
versions = ['v3beta1', 'v3']

for version in versions:
    java.bazel_library(
        service=service,
        version=version,
        proto_path=f'google/cloud/translate/{version}',
        bazel_target=
        f'//google/cloud/translate/{version}:google-cloud-{service}-{version}-java',
        destination_name='translate',
    )

java.common_templates()
Beispiel #25
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.java as java

service = 'video-transcoder'
versions = ['v1beta1']

for version in versions:
    java.bazel_library(
        service=service,
        version=version,
        proto_path=f'google/cloud/video/transcoder/{version}',
        bazel_target=
        f'//google/cloud/video/transcoder/{version}:google-cloud-{service}-{version}-java',
    )

java.common_templates()
Beispiel #26
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.java as java

service = 'analytics-data'
versions = ['v1alpha']

for version in versions:
    java.bazel_library(
        service=service,
        version=version,
        proto_path=f'google/analytics/data/{version}',
        bazel_target=
        f'//google/analytics/data/{version}:google-analytics-data-{version}-java',
        cloud_api=False,
    )

java.common_templates()
Beispiel #27
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.java as java

service = 'dialogflow-cx'
versions = ['v3beta1']

for version in versions:
    java.bazel_library(
        service=service,
        version=version,
        proto_path=f'google/cloud/dialogflow/cx/{version}',
        bazel_target=
        f'//google/cloud/dialogflow/cx/{version}:google-cloud-{service}-{version}-java',
    )

java.common_templates()
Beispiel #28
0
# 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.languages.java as java

AUTOSYNTH_MULTIPLE_COMMITS = True

service = 'documentai'
versions = ['v1', 'v1beta1', 'v1beta2', 'v1beta3']

for version in versions:
    java.bazel_library(
        service=service,
        version=version,
        destination_name='document-ai',
    )

java.common_templates(exclude=[
    '.kokoro/nightly/samples.cfg',
    '.kokoro/presubmit/samples.cfg',
])
# 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.java as java

AUTOSYNTH_MULTIPLE_COMMITS = True

service = 'securitycenter-settings'
versions = ['v1beta1']

for version in versions:
    java.bazel_library(
        service=service,
        version=version,
        proto_path=f'google/cloud/securitycenter/settings/{version}',
        bazel_target=
        f'//google/cloud/securitycenter/settings/{version}:google-cloud-{service}-{version}-java',
    )

java.common_templates()