Skip to content

Commit

Permalink
chore(java): update release_type choices to stable and preview (#1331)
Browse files Browse the repository at this point in the history
* chore(java): update release_type choices to stable and preview

* chore: update badge names
  • Loading branch information
Neenu1995 authored Jan 17, 2022
1 parent 3df0de4 commit d10357a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions synthtool/gcp/templates/java_library/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Java idiomatic client for [{{metadata['repo']['name_pretty']}}][product-docs].
- [Client Library Documentation][javadocs]
{% if 'partials' in metadata and metadata['partials']['deprecation_warning'] -%}
{{ metadata['partials']['deprecation_warning'] }}
{% elif metadata['repo']['release_level'] in ['alpha', 'beta'] %}
{% elif metadata['repo']['release_level'] in ['preview'] %}
> Note: This client is a work-in-progress, and may occasionally
> make backwards-incompatible changes.
{% endif %}
Expand Down Expand Up @@ -182,7 +182,7 @@ and on [google-cloud-java][g-c-j].
{% else %}
This library follows [Semantic Versioning](http://semver.org/).

{% if metadata['repo']['release_level'] in ['alpha', 'beta'] %}
{% if metadata['repo']['release_level'] in ['preview'] %}
It is currently in major version zero (``0.y.z``), which means that anything may change at any time
and the public API should not be considered stable.
{% endif %}{% endif %}
Expand Down Expand Up @@ -229,7 +229,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/{{ repo_short }}/java8-win.html
[kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/{{ repo_short }}/java11.svg
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/{{ repo_short }}/java11.html
[stability-image]: https://img.shields.io/badge/stability-{% if metadata['repo']['release_level'] == 'ga' %}ga-green{% elif metadata['repo']['release_level'] == 'beta' %}beta-yellow{% elif metadata['repo']['release_level'] == 'alpha' %}alpha-orange{% else %}unknown-red{% endif %}
[stability-image]: https://img.shields.io/badge/stability-{% if metadata['repo']['release_level'] == 'stable' %}stable-green{% elif metadata['repo']['release_level'] == 'preview' %}preview-yellow{% else %}unknown-red{% endif %}
[maven-version-image]: https://img.shields.io/maven-central/v/{{ group_id }}/{{ artifact_id }}.svg
[maven-version-link]: https://search.maven.org/search?q=g:{{ group_id }}%20AND%20a:{{ artifact_id }}&core=gav
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
"api_description": "provides inventory services based on a time series database. This database keeps a five week history of Google Cloud asset metadata. The Cloud Asset Inventory export service allows you to export all asset metadata at a certain timestamp or export event change history during a timeframe.",
"client_documentation": "https://googleapis.dev/java/google-cloud-asset/latest/index.html",
"issue_tracker": "https://issuetracker.google.com/issues/new?component=187210&template=0",
"release_level": "ga",
"release_level": "stable",
"transport": "grpc",
"requires_billing": true,
"language": "java",
"repo": "googleapis/java-asset",
"repo_short": "java-asset",
"distribution_name": "com.google.cloud:google-cloud-asset",
"library_type": "GAPIC_AUTO",
"api_id": "cloudasset.googleapis.com"
}
3 changes: 2 additions & 1 deletion tests/fixtures/java_templates/standard/.repo-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
"api_description": "provides inventory services based on a time series database. This database keeps a five week history of Google Cloud asset metadata. The Cloud Asset Inventory export service allows you to export all asset metadata at a certain timestamp or export event change history during a timeframe.",
"client_documentation": "https://googleapis.dev/java/google-cloud-asset/latest/index.html",
"issue_tracker": "https://issuetracker.google.com/issues/new?component=187210&template=0",
"release_level": "ga",
"release_level": "stable",
"transport": "grpc",
"requires_billing": true,
"language": "java",
"repo": "googleapis/java-asset",
"repo_short": "java-asset",
"distribution_name": "com.google.cloud:google-cloud-asset",
"library_type": "GAPIC_AUTO",
"api_id": "cloudasset.googleapis.com"
}

0 comments on commit d10357a

Please sign in to comment.