Esempio n. 1
0
# Copyright 2021 Google LLC
#
# 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 = 'devtools-cloudprofiler'
versions = ['v2']

for version in versions:
    java.pregenerated_library(
        service=service,
        version=version,
        path=f'google/devtools/cloudprofiler/{version}',
        destination_name='profiler',
    )

java.common_templates()
Esempio n. 2
0
service = 'orgpolicy'
versions = ['v1']

gapic = gcp.GAPICBazel()

library = gapic.java_library(
    service=service,
    version='v1',
    proto_path=f'google/cloud/orgpolicy/v1',
    bazel_target=f'//google/cloud/orgpolicy/v1:google-cloud-orgpolicy-v1-java',
)
library = library / f"google-cloud-orgpolicy-v1-java"
java.fix_proto_headers(library / f"proto-google-cloud-orgpolicy-v1-java")
s.copy(
    [library / f"proto-google-cloud-orgpolicy-v1-java/src"],
    f"proto-google-cloud-orgpolicy-v1/src",
    required=True,
)
java.format_code(f"proto-google-cloud-orgpolicy-v1/src")

java.pregenerated_library(
    service=service,
    version='v2',
    path=f'google/cloud/{service}/v2',
)
java.common_templates(excludes=[
    'README.md',
    'samples/*',
    '.github/workflows/samples.yaml',
])
Esempio n. 3
0
# Copyright 2021 Google LLC
#
# 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 = 'policytroubleshooter'
versions = ['v1']

for version in versions:
    java.pregenerated_library(
        service=service,
        version=version,
        path=f'google/cloud/policytroubleshooter/{version}',
        destination_name='policy-troubleshooter',
    )

java.common_templates()
Esempio n. 4
0
# Copyright 2020 Google LLC
#
# 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 = 'gkehub'
versions = ['v1beta1']

for version in versions:
    java.pregenerated_library(
        service=service,
        version=version,
        path=f'google/cloud/gkehub/{version}',
    )

java.common_templates()
Esempio n. 5
0
# Copyright 2021 Google LLC
#
# 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 = 'api-servicemanagement'
versions = ['v1']

for version in versions:
    java.pregenerated_library(
        service=service,
        version=version,
        path=f'google/api/servicemanagement/{version}',
        destination_name='service-management',
    )

java.common_templates()
Esempio n. 6
0
# Copyright 2020 Google LLC
#
# 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 = 'analytics-data'
versions = ['v1alpha', 'v1beta']

for version in versions:
    java.pregenerated_library(
        service=service,
        version=version,
        path=f'google/analytics/data/{version}',
        cloud_api=False,
    )

java.common_templates()
# Copyright 2021 Google LLC
#
# 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 = 'managedidentities'
versions = ['v1']

for version in versions:
    java.pregenerated_library(
        service=service,
        version=version,
        path=f'google/cloud/managedidentities/{version}',
        destination_name='managed-identities',
    )

java.common_templates()