Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Sep 16, 2023. It is now read-only.
/java-redisPublic archive

Commitb9fefd3

Browse files
authored
chore: update repo-metadata and regenerate README from templates (#50)
1 parentb80c0fc commitb9fefd3

File tree

4 files changed

+126
-108
lines changed

4 files changed

+126
-108
lines changed

‎.repo-metadata.json‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@
22
"name": "redis",
33
"name_pretty": "Cloud Redis",
44
"product_documentation": "https://cloud.google.com/memorystore/docs/redis/",
5-
"client_documentation": "https://googleapis.dev/java/google-cloud-clients/latest/index.html?com/google/cloud/redis/v1/package-summary.html",
5+
"client_documentation": "https://googleapis.dev/java/google-cloud-redis/latest/",
66
"issue_tracker": "https://issuetracker.google.com/savedsearches/5169231",
77
"release_level": "beta",
88
"language": "java",
99
"repo": "googleapis/java-redis",
1010
"repo_short": "java-redis",
1111
"distribution_name": "com.google.cloud:google-cloud-redis",
12-
"api_id": "redis.googleapis.com"
12+
"api_id": "redis.googleapis.com",
13+
"transport": "grpc",
14+
"requires_billing": true,
15+
"api_description": "is a fully managed Redis service for the Google Cloud. Applications running on Google Cloud can achieve extreme performance by leveraging the highly scalable, available, secure Redis service without the burden of managing complex Redis deployments."
1316
}

‎README.md‎

Lines changed: 105 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,52 @@
1-
Google Cloud Java Client for Redis
2-
==================================
1+
# Google Cloud Redis Client for Java
32

4-
Java idiomatic client for [CloudMemorystore forRedis][cloud-redis].
3+
Java idiomatic client for [Cloud Redis][product-docs].
54

6-
[![Kokoro CI](http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/master.svg)](http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/master.html)
7-
[![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-redis.svg)]( https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-redis.svg)
8-
[![Codacy Badge](https://api.codacy.com/project/badge/grade/9da006ad7c3a4fe1abd142e77c003917)](https://www.codacy.com/app/mziccard/google-cloud-java)
5+
[![Maven][maven-version-image]][maven-version-link]
6+
![Stability][stability-image]
97

10-
- [Product Documentation][redis-product-docs]
11-
- [Client Library Documentation][redis-client-lib-docs]
8+
- [Product Documentation][product-docs]
9+
- [Client Library Documentation][javadocs]
1210

1311
> Note: This client is a work-in-progress, and may occasionally
1412
> make backwards-incompatible changes.
1513

16-
Quickstart
17-
----------
18-
If you are using Maven withaBOM, add this to your pom.xml file.
14+
##Quickstart
15+
16+
If you are using Maven with[BOM][libraries-bom], add this to your pom.xml file
1917
```xml
2018
<dependencyManagement>
21-
<dependencies>
22-
<dependency>
23-
<groupId>com.google.cloud</groupId>
24-
<artifactId>libraries-bom</artifactId>
25-
<version>2.8.0</version>
26-
<type>pom</type>
27-
<scope>import</scope>
28-
</dependency>
29-
</dependencies>
19+
<dependencies>
20+
<dependency>
21+
<groupId>com.google.cloud</groupId>
22+
<artifactId>libraries-bom</artifactId>
23+
<version>3.5.0</version>
24+
<type>pom</type>
25+
<scope>import</scope>
26+
</dependency>
27+
</dependencies>
3028
</dependencyManagement>
3129

32-
<dependency>
33-
<groupId>com.google.cloud</groupId>
34-
<artifactId>google-cloud-redis</artifactId>
35-
</dependency>
30+
<dependencies>
31+
<dependency>
32+
<groupId>com.google.cloud</groupId>
33+
<artifactId>google-cloud-redis</artifactId>
34+
</dependency>
35+
</dependencies>
3636
```
37+
3738
[//]: # ({x-version-update-start:google-cloud-redis:released})
38-
If you are using Maven without a BOM, add this to your dependencies.
39+
40+
If you are using Maven without BOM, add this to your dependencies:
41+
3942
```xml
4043
<dependency>
4144
<groupId>com.google.cloud</groupId>
4245
<artifactId>google-cloud-redis</artifactId>
4346
<version>0.118.0</version>
4447
</dependency>
4548
```
49+
4650
If you are using Gradle, add this to your dependencies
4751
```Groovy
4852
compile 'com.google.cloud:google-cloud-redis:0.118.0'
@@ -53,81 +57,105 @@ libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "0.118.0"
5357
```
5458
[//]: # ({x-version-update-end})
5559

56-
Authentication
57-
--------------
60+
## Authentication
5861

59-
See the [Authentication](https://github.com/googleapis/google-cloud-java#authentication) section in the base directory's README.
62+
See the [Authentication][authentication] section in the base directory's README.
6063

61-
About Cloud Memorystore for Redis
62-
--------------------------
64+
## Getting Started
6365

64-
[Cloud Memorystore for Redis API][cloud-redis] transfers data from partner
65-
SaaS applications to Google BigQuery on a scheduled, managed basis.
66+
### Prerequisites
6667

67-
See the [Cloud Memorystore for Redis client library docs][redis-client-lib-docs] to learn how to interact with the
68-
Cloud Redis using this Client Library.
69-
70-
Getting Started
71-
---------------
72-
#### Prerequisites
73-
For this tutorial, you will need a
74-
[Google Developers Console](https://console.developers.google.com/) project with the Cloud Memorystore for Redis API
75-
enabled. You will need to [enable billing](https://support.google.com/cloud/answer/6158867?hl=en) to
76-
use Google Cloud Redis.
77-
[Follow these instructions](https://cloud.google.com/resource-manager/docs/creating-managing-projects) to get your
78-
project set up. You will also need to set up the local development environment by [installing the
79-
Google Cloud SDK](https://cloud.google.com/sdk/) and running the following commands in command line:
68+
You will need a [Google Cloud Platform Console][developer-console] project with the Cloud Redis [API enabled][enable-api].
69+
You will need to [enable billing][enable-billing] to use Google Cloud Redis.
70+
[Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by
71+
[installing the Google Cloud SDK][cloud-sdk] and running the following commands in command line:
8072
`gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`.
8173

82-
#### Installation and setup
74+
### Installation and setup
75+
8376
You'll need to obtain the `google-cloud-redis` library. See the [Quickstart](#quickstart) section
8477
to add `google-cloud-redis` as a dependency in your code.
8578

86-
Transport
87-
---------
88-
Cloud Memorystore for Redis uses gRPC for the transport layer.
79+
## About Cloud Redis
8980

90-
Java Versions
91-
-------------
9281

93-
Java 7 or above is requiredforusing this client.
82+
[Cloud Redis][product-docs] is a fully managed Redis serviceforthe Google Cloud. Applications running on Google Cloud can achieve extreme performance by leveraging the highly scalable, available, secure Redis service without the burden of managing complex Redis deployments.
9483

95-
Testing
96-
-------
84+
See the [Cloud Redis client library docs][javadocs] to learn how to
85+
use this Cloud Redis Client Library.
9786

98-
This library has tools to help make tests for code using Cloud Memorystore for Redis.
9987

100-
See [TESTING] to read more about testing.
10188

102-
Versioning
103-
----------
10489

105-
This library follows [Semantic Versioning](http://semver.org/).
90+
## Troubleshooting
10691

107-
It is currently in major version zero (``0.y.z``), which means that anything
108-
may change at any time and the public API should not be considered
109-
stable.
92+
To get help, follow the instructions in the [shared Troubleshooting document][troubleshooting].
11093

111-
Contributing
112-
------------
94+
## Transport
11395

114-
Contributions to this library are always welcome and highly encouraged.
96+
Cloud Redis uses gRPC for the transport layer.
97+
98+
## Java Versions
99+
100+
Java 7 or above is required for using this client.
101+
102+
## Versioning
103+
104+
This library follows [Semantic Versioning](http://semver.org/).
115105

116-
See `google-cloud`'s [CONTRIBUTING] documentation and the [shared documentation](https://github.com/googleapis/google-cloud-common/blob/master/contributing/readme.md#how-to-contribute-to-gcloud) for more information on how to get started.
117106

118-
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more information.
107+
It is currently in major version zero (``0.y.z``), which means that anything may change at any time
108+
and the public API should not be considered stable.
119109

120-
License
121-
-------
122110

123-
Apache 2.0 - See [LICENSE] for more information.
111+
## Contributing
124112

125113

126-
[CONTRIBUTING]:https://github.com/googleapis/google-cloud-java/blob/master/CONTRIBUTING.md
127-
[code-of-conduct]:https://github.com/googleapis/google-cloud-java/blob/master/CODE_OF_CONDUCT.md#contributor-code-of-conduct
128-
[LICENSE]: https://github.com/googleapis/google-cloud-java/blob/master/LICENSE
129-
[TESTING]: https://github.com/googleapis/google-cloud-java/blob/master/TESTING.md#testing-code-that-uses-redis
114+
Contributions to this library are always welcome and highly encouraged.
130115

131-
[cloud-redis]: https://cloud.google.com/memorystore/
132-
[redis-product-docs]: https://cloud.google.com/memorystore/docs/redis/
133-
[redis-client-lib-docs]: https://googleapis.dev/java/google-cloud-clients/latest/index.html?com/google/cloud/redis/v1/package-summary.html
116+
See [CONTRIBUTING][contributing] for more information how to get started.
117+
118+
Please note that this project is released with a Contributor Code of Conduct. By participating in
119+
this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more
120+
information.
121+
122+
## License
123+
124+
Apache 2.0 - See [LICENSE][license] for more information.
125+
126+
## CI Status
127+
128+
Java Version | Status
129+
------------ | ------
130+
Java 7 | [![Kokoro CI][kokoro-badge-image-1]][kokoro-badge-link-1]
131+
Java 8 | [![Kokoro CI][kokoro-badge-image-2]][kokoro-badge-link-2]
132+
Java 8 OSX | [![Kokoro CI][kokoro-badge-image-3]][kokoro-badge-link-3]
133+
Java 8 Windows | [![Kokoro CI][kokoro-badge-image-4]][kokoro-badge-link-4]
134+
Java 11 | [![Kokoro CI][kokoro-badge-image-5]][kokoro-badge-link-5]
135+
136+
[product-docs]: https://cloud.google.com/memorystore/docs/redis/
137+
[javadocs]: https://googleapis.dev/java/google-cloud-redis/latest/
138+
[kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-redis/java7.svg
139+
[kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-redis/java7.html
140+
[kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-redis/java8.svg
141+
[kokoro-badge-link-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-redis/java8.html
142+
[kokoro-badge-image-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-redis/java8-osx.svg
143+
[kokoro-badge-link-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-redis/java8-osx.html
144+
[kokoro-badge-image-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-redis/java8-win.svg
145+
[kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-redis/java8-win.html
146+
[kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-redis/java11.svg
147+
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-redis/java11.html
148+
[stability-image]: https://img.shields.io/badge/stability-beta-yellow
149+
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-redis.svg
150+
[maven-version-link]: https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-redis&core=gav
151+
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
152+
[developer-console]: https://console.developers.google.com/
153+
[create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects
154+
[cloud-sdk]: https://cloud.google.com/sdk/
155+
[troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/master/troubleshooting/readme.md#troubleshooting
156+
[contributing]: https://github.com/googleapis/java-redis/blob/master/CONTRIBUTING.md
157+
[code-of-conduct]: https://github.com/googleapis/java-redis/blob/master/CODE_OF_CONDUCT.md#contributor-code-of-conduct
158+
[license]: https://github.com/googleapis/java-redis/blob/master/LICENSE
159+
[enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing
160+
[enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=redis.googleapis.com
161+
[libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM

‎synth.metadata‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"updateTime": "2020-02-01T08:58:24.011830Z",
2+
"updateTime": "2020-02-03T23:20:17.869807Z",
33
"sources": [
44
{
55
"generator": {
@@ -12,9 +12,9 @@
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "b5cbe4a4ba64ab19e6627573ff52057a1657773d",
16-
"internalRef": "292647187",
17-
"log": "b5cbe4a4ba64ab19e6627573ff52057a1657773d\nSecurityCenter v1p1beta1: move file-level option on top to workaround protobuf.js bug.\n\nPiperOrigin-RevId: 292647187\n\nb224b317bf20c6a4fbc5030b4a969c3147f27ad3\nAdds API definitions for bigqueryreservation v1beta1.\n\nPiperOrigin-RevId: 292634722\n\nc1468702f9b17e20dd59007c0804a089b83197d2\nSynchronize new proto/yaml changes.\n\nPiperOrigin-RevId: 292626173\n\nffdfa4f55ab2f0afc11d0eb68f125ccbd5e404bd\nvision: v1p3beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292605599\n\n78f61482cd028fc1d9892aa5d89d768666a954cd\nvision: v1p1beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292605125\n\n60bb5a294a604fd1778c7ec87b265d13a7106171\nvision: v1p2beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292604980\n\n3bcf7aa79d45eb9ec29ab9036e9359ea325a7fc3\nvision: v1p4beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292604656\n\n2717b8a1c762b26911b45ecc2e4ee01d98401b28\nFix dataproc artman client library generation.\n\nPiperOrigin-RevId: 292555664\n\n"
15+
"sha": "29d40b78e3dc1579b0b209463fbcb76e5767f72a",
16+
"internalRef": "292979741",
17+
"log": "29d40b78e3dc1579b0b209463fbcb76e5767f72a\nExpose managedidentities/v1beta1/ API for client library usage.\n\nPiperOrigin-RevId: 292979741\n\na22129a1fb6e18056d576dfb7717aef74b63734a\nExpose managedidentities/v1/ API for client library usage.\n\nPiperOrigin-RevId: 292968186\n\n"
1818
}
1919
},
2020
{

‎synth.py‎

Lines changed: 12 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -25,29 +25,16 @@
2525
config_pattern = '/google/cloud/redis/artman_redis_{version}.yaml'
2626

2727
for version in versions:
28-
library = gapic.java_library(
29-
service=service,
30-
version=version,
31-
config_path=config_pattern.format(version=version),
32-
artman_output_name='')
33-
34-
package_name = f'com.google.cloud.{service}.{version}'
35-
java.fix_proto_headers(library / f'proto-google-cloud-{service}-{version}')
36-
java.fix_grpc_headers(library / f'grpc-google-cloud-{service}-{version}', package_name)
37-
38-
s.copy(library / f'gapic-google-cloud-{service}-{version}/src', f'google-cloud-{service}/src')
39-
s.copy(library / f'grpc-google-cloud-{service}-{version}/src', f'grpc-google-cloud-{service}-{version}/src')
40-
s.copy(library / f'proto-google-cloud-{service}-{version}/src', f'proto-google-cloud-{service}-{version}/src')
41-
42-
java.format_code(f'google-cloud-{service}/src')
43-
java.format_code(f'grpc-google-cloud-{service}-{version}/src')
44-
java.format_code(f'proto-google-cloud-{service}-{version}/src')
45-
46-
common_templates = gcp.CommonTemplates()
47-
templates = common_templates.java_library()
48-
s.copy(templates, excludes=[
49-
'README.md',
50-
'.kokoro/continuous/integration.cfg',
51-
'.kokoro/nightly/integration.cfg',
52-
'.kokoro/presubmit/integration.cfg'
28+
java.gapic_library(
29+
service=service,
30+
version=version,
31+
config_pattern=config_pattern,
32+
package_pattern='com.google.cloud.{service}.{version}',
33+
gapic=gapic,
34+
)
35+
36+
java.common_templates(excludes=[
37+
'.kokoro/continuous/integration.cfg',
38+
'.kokoro/nightly/integration.cfg',
39+
'.kokoro/presubmit/integration.cfg'
5340
])

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp