Example #1
0
# 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 = 'billingbudgets'
versions = ['v1beta1']
config_pattern = '/google/cloud/billing/budgets/artman_{service}_{version}.yaml'

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

common_templates = gcp.CommonTemplates()
templates = common_templates.java_library()
s.copy(templates, excludes=[
    'README.md',
])
Example #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 = 'iamcredentials'
versions = ['v1']
config_pattern = '/google/iam/credentials/artman_iamcredentials_{version}.yaml'

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

common_templates = gcp.CommonTemplates()
templates = common_templates.java_library()
s.copy(templates, excludes=[
    'README.md',
])
Example #3
0
import synthtool as s
import synthtool.gcp as gcp
import synthtool.languages.java as java

gapic = gcp.GAPICGenerator()

service = 'pubsub'
versions = ['v1']
config_pattern = '/google/pubsub/artman_pubsub.yaml'

for version in versions:
    java.gapic_library(
        service=service,
        version=version,
        config_pattern=config_pattern,
        package_pattern='com.google.{service}.{version}',
        gapic=gapic,
    )
    s.replace(
        '**/stub/SubscriberStubSettings.java',
        r'setMaxInboundMessageSize\(Integer.MAX_VALUE\)',
        'setMaxInboundMessageSize(20 << 20)'
    )
    s.replace(
        f"proto-google-cloud-{service}-{version}/src/**/*.java",
        java.BAD_LICENSE,
        java.GOOD_LICENSE,
    )

    java.format_code('google-cloud-pubsub/src')
Example #4
0
"""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 = 'asset'
versions = ['v1', 'v1beta1', 'v1p2beta1']
config_pattern = '/google/cloud/asset/artman_cloudasset_{version}.yaml'

for version in versions:
    java.gapic_library(
        service=service,
        version=version,
        config_pattern='/google/cloud/asset/artman_cloudasset_{version}.yaml',
        package_pattern='com.google.cloud.{service}.{version}',
        gapic=gapic,
    )

java.gapic_library(
    service=service,
    version='v1p1beta1',
    config_pattern=
    '/google/cloud/asset/{version}/artman_cloudasset_{version}.yaml',
    package_pattern='com.google.cloud.{service}.{version}',
    gapic=gapic,
)

java.common_templates()
# 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 = 'video-intelligence'
versions = ['v1', 'v1beta2', 'v1p1beta1', 'v1p2beta1', 'v1p3beta1']
config_pattern = '/google/cloud/videointelligence/artman_videointelligence_{version}.yaml'

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

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

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

versions = ['v1alpha']
service = 'gameservices'
config_pattern = "/google/cloud/gaming/artman_gameservices_{version}.yaml"

for version in versions:
    java.gapic_library(
        service=service,
        version=version,
        config_pattern=config_pattern,
        package_pattern="com.google.cloud.gaming.{version}",
        gapic=gapic,
        private=True,
    )

common_templates = gcp.CommonTemplates()
templates = common_templates.java_library()
s.copy(templates, excludes=[
    'README.md',
])
Example #7
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 = 'vision'
versions = ['v1']  #, 'v1p1beta1', 'v1p2beta1', 'v1p3beta1', 'v1p4beta1']
config_pattern = '/google/cloud/vision/artman_vision_{version}.yaml'

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

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

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

versions = ['v1beta1']
service = 'datacatalog'

for version in versions:
    java.gapic_library(
        service=service,
        version=version,
        config_pattern='v1beta1/artman_datacatalog_{version}.yaml',
        package_pattern='com.google.cloud.{service}.{version}',
        gapic=gapic,
    )

java.common_templates()
Example #9
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 = 'texttospeech'
versions = ['v1', 'v1beta1']

for version in versions:
    java.gapic_library(
        service=service,
        version=version,
        config_pattern=
        '/google/cloud/texttospeech/artman_texttospeech_{version}.yaml',
        package_pattern='com.google.cloud.{service}.{version}',
        gapic=gapic,
    )

common_templates = gcp.CommonTemplates()
templates = common_templates.java_library()
s.copy(templates, excludes=[
    'README.md',
])