Skip to content

Commit 6546f6d

Browse files
cloud-java-botJoeWang1127
authored andcommitted
feat: [memorystore] new module for memorystore (#11356)
* feat: [memorystore] new module for memorystore * chore: generate libraries at Mon Dec 16 14:46:47 UTC 2024 * add v1 * chore: generate libraries at Mon Dec 16 14:51:36 UTC 2024 * change to valkey * chore: generate libraries at Mon Dec 16 15:59:04 UTC 2024 * chore: generate libraries at Mon Dec 16 16:02:22 UTC 2024 * remove generated module --------- Co-authored-by: Joe Wang <[email protected]>
1 parent de39743 commit 6546f6d

File tree

187 files changed

+96405
-16
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

187 files changed

+96405
-16
lines changed

gapic-libraries-bom/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,6 +1158,13 @@
11581158
<type>pom</type>
11591159
<scope>import</scope>
11601160
</dependency>
1161+
<dependency>
1162+
<groupId>com.google.cloud</groupId>
1163+
<artifactId>google-cloud-valkey-bom</artifactId>
1164+
<version>0.0.1-SNAPSHOT</version><!-- {x-version-update:google-cloud-valkey:current} -->
1165+
<type>pom</type>
1166+
<scope>import</scope>
1167+
</dependency>
11611168
<dependency>
11621169
<groupId>com.google.cloud</groupId>
11631170
<artifactId>google-cloud-vertexai-bom</artifactId>

generation_config.yaml

Lines changed: 34 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1434,6 +1434,24 @@ libraries:
14341434
- proto_path: google/cloud/memcache/v1
14351435
- proto_path: google/cloud/memcache/v1beta2
14361436

1437+
- api_shortname: memorystore
1438+
name_pretty: Memorystore API
1439+
product_documentation: https://cloud.google.com/memorystore/docs/valkey
1440+
api_description: Memorystore for Valkey is a fully managed Valkey Cluster service
1441+
for Google Cloud.
1442+
client_documentation:
1443+
https://cloud.google.com/java/docs/reference/google-cloud-memorystore/latest/overview
1444+
release_level: stable
1445+
api_id: memorystore.googleapis.com
1446+
library_type: GAPIC_AUTO
1447+
group_id: com.google.cloud
1448+
cloud_api: true
1449+
library_name: valkey
1450+
GAPICs:
1451+
- proto_path: google/cloud/memorystore/v1
1452+
- proto_path: google/cloud/memorystore/v1beta
1453+
requires_billing: true
1454+
rest_documentation: https://cloud.google.com/memorystore/docs/valkey/reference/rest
14371455
- api_shortname: migrationcenter
14381456
name_pretty: Migration Center API
14391457
product_documentation: https://cloud.google.com/migration-center/docs/migration-center-overview
@@ -2119,22 +2137,6 @@ libraries:
21192137
- proto_path: google/shopping/merchant/lfp/v1beta
21202138
requires_billing: true
21212139

2122-
- api_shortname: merchantapi
2123-
name_pretty: Merchant API
2124-
product_documentation: https://developers.google.com/merchant/api
2125-
api_description: Programmatically manage your Merchant Center Accounts.
2126-
client_documentation:
2127-
https://cloud.google.com/java/docs/reference/google-shopping-merchant-reviews/latest/overview
2128-
release_level: preview
2129-
distribution_name: com.google.shopping:google-shopping-merchant-reviews
2130-
library_type: GAPIC_AUTO
2131-
group_id: com.google.shopping
2132-
cloud_api: false
2133-
GAPICs:
2134-
- proto_path: google/shopping/merchant/reviews/v1beta
2135-
requires_billing: true
2136-
library_name: shopping-merchant-reviews
2137-
21382140
- api_shortname: merchantapi
21392141
name_pretty: Merchant API
21402142
product_documentation: https://developers.google.com/merchant/api
@@ -2192,6 +2194,22 @@ libraries:
21922194
GAPICs:
21932195
- proto_path: google/shopping/merchant/reports/v1beta
21942196

2197+
- api_shortname: merchantapi
2198+
name_pretty: Merchant API
2199+
product_documentation: https://developers.google.com/merchant/api
2200+
api_description: Programmatically manage your Merchant Center Accounts.
2201+
client_documentation:
2202+
https://cloud.google.com/java/docs/reference/google-shopping-merchant-reviews/latest/overview
2203+
release_level: preview
2204+
distribution_name: com.google.shopping:google-shopping-merchant-reviews
2205+
library_type: GAPIC_AUTO
2206+
group_id: com.google.shopping
2207+
cloud_api: false
2208+
GAPICs:
2209+
- proto_path: google/shopping/merchant/reviews/v1beta
2210+
requires_billing: true
2211+
library_name: shopping-merchant-reviews
2212+
21952213
- api_shortname: speech
21962214
name_pretty: Cloud Speech
21972215
product_documentation: https://cloud.google.com/speech-to-text/docs/

java-valkey/.OwlBot-hermetic.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Copyright 2024 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
16+
deep-remove-regex:
17+
- "/java-valkey/grpc-google-.*/src"
18+
- "/java-valkey/proto-google-.*/src"
19+
- "/java-valkey/google-.*/src"
20+
- "/java-valkey/samples/snippets/generated"
21+
22+
deep-preserve-regex:
23+
- "/java-valkey/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java"
24+
25+
deep-copy-regex:
26+
- source: "/google/cloud/memorystore/(v.*)/.*-java/proto-google-.*/src"
27+
dest: "/owl-bot-staging/java-valkey/$1/proto-google-cloud-valkey-$1/src"
28+
- source: "/google/cloud/memorystore/(v.*)/.*-java/grpc-google-.*/src"
29+
dest: "/owl-bot-staging/java-valkey/$1/grpc-google-cloud-valkey-$1/src"
30+
- source: "/google/cloud/memorystore/(v.*)/.*-java/gapic-google-.*/src"
31+
dest: "/owl-bot-staging/java-valkey/$1/google-cloud-valkey/src"
32+
- source: "/google/cloud/memorystore/(v.*)/.*-java/samples/snippets/generated"
33+
dest: "/owl-bot-staging/java-valkey/$1/samples/snippets/generated"
34+
35+
api-name: memorystore

java-valkey/.repo-metadata.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"api_shortname": "memorystore",
3+
"name_pretty": "Memorystore API",
4+
"product_documentation": "https://cloud.google.com/memorystore/docs/valkey",
5+
"api_description": "Memorystore for Valkey is a fully managed Valkey Cluster service for Google Cloud.",
6+
"client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-memorystore/latest/overview",
7+
"release_level": "stable",
8+
"transport": "http",
9+
"language": "java",
10+
"repo": "googleapis/google-cloud-java",
11+
"repo_short": "java-valkey",
12+
"distribution_name": "com.google.cloud:google-cloud-valkey",
13+
"api_id": "memorystore.googleapis.com",
14+
"library_type": "GAPIC_AUTO",
15+
"requires_billing": true,
16+
"rest_documentation": "https://cloud.google.com/memorystore/docs/valkey/reference/rest"
17+
}

java-valkey/README.md

Lines changed: 218 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,218 @@
1+
# Google Memorystore API Client for Java
2+
3+
Java idiomatic client for [Memorystore API][product-docs].
4+
5+
[![Maven][maven-version-image]][maven-version-link]
6+
![Stability][stability-image]
7+
8+
- [Product Documentation][product-docs]
9+
- [Client Library Documentation][javadocs]
10+
11+
12+
## Quickstart
13+
14+
15+
If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
16+
17+
```xml
18+
<dependencyManagement>
19+
<dependencies>
20+
<dependency>
21+
<groupId>com.google.cloud</groupId>
22+
<artifactId>libraries-bom</artifactId>
23+
<version>26.51.0</version>
24+
<type>pom</type>
25+
<scope>import</scope>
26+
</dependency>
27+
</dependencies>
28+
</dependencyManagement>
29+
30+
<dependencies>
31+
<dependency>
32+
<groupId>com.google.cloud</groupId>
33+
<artifactId>google-cloud-valkey</artifactId>
34+
</dependency>
35+
</dependencies>
36+
```
37+
38+
If you are using Maven without the BOM, add this to your dependencies:
39+
40+
41+
```xml
42+
<dependency>
43+
<groupId>com.google.cloud</groupId>
44+
<artifactId>google-cloud-valkey</artifactId>
45+
<version>0.0.0</version>
46+
</dependency>
47+
```
48+
49+
If you are using Gradle without BOM, add this to your dependencies:
50+
51+
```Groovy
52+
implementation 'com.google.cloud:google-cloud-valkey:0.0.0'
53+
```
54+
55+
If you are using SBT, add this to your dependencies:
56+
57+
```Scala
58+
libraryDependencies += "com.google.cloud" % "google-cloud-valkey" % "0.0.0"
59+
```
60+
61+
## Authentication
62+
63+
See the [Authentication][authentication] section in the base directory's README.
64+
65+
## Authorization
66+
67+
The client application making API calls must be granted [authorization scopes][auth-scopes] required for the desired Memorystore API APIs, and the authenticated principal must have the [IAM role(s)][predefined-iam-roles] required to access GCP resources using the Memorystore API API calls.
68+
69+
## Getting Started
70+
71+
### Prerequisites
72+
73+
You will need a [Google Cloud Platform Console][developer-console] project with the Memorystore API [API enabled][enable-api].
74+
You will need to [enable billing][enable-billing] to use Google Memorystore API.
75+
[Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by
76+
[installing the Google Cloud Command Line Interface][cloud-cli] and running the following commands in command line:
77+
`gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`.
78+
79+
### Installation and setup
80+
81+
You'll need to obtain the `google-cloud-valkey` library. See the [Quickstart](#quickstart) section
82+
to add `google-cloud-valkey` as a dependency in your code.
83+
84+
## About Memorystore API
85+
86+
87+
[Memorystore API][product-docs] Memorystore for Valkey is a fully managed Valkey Cluster service for Google Cloud.
88+
89+
See the [Memorystore API client library docs][javadocs] to learn how to
90+
use this Memorystore API Client Library.
91+
92+
93+
94+
95+
96+
97+
## Troubleshooting
98+
99+
To get help, follow the instructions in the [shared Troubleshooting document][troubleshooting].
100+
101+
## Transport
102+
103+
Memorystore API uses HTTP/JSON for the transport layer.
104+
105+
## Supported Java Versions
106+
107+
Java 8 or above is required for using this client.
108+
109+
Google's Java client libraries,
110+
[Google Cloud Client Libraries][cloudlibs]
111+
and
112+
[Google Cloud API Libraries][apilibs],
113+
follow the
114+
[Oracle Java SE support roadmap][oracle]
115+
(see the Oracle Java SE Product Releases section).
116+
117+
### For new development
118+
119+
In general, new feature development occurs with support for the lowest Java
120+
LTS version covered by Oracle's Premier Support (which typically lasts 5 years
121+
from initial General Availability). If the minimum required JVM for a given
122+
library is changed, it is accompanied by a [semver][semver] major release.
123+
124+
Java 11 and (in September 2021) Java 17 are the best choices for new
125+
development.
126+
127+
### Keeping production systems current
128+
129+
Google tests its client libraries with all current LTS versions covered by
130+
Oracle's Extended Support (which typically lasts 8 years from initial
131+
General Availability).
132+
133+
#### Legacy support
134+
135+
Google's client libraries support legacy versions of Java runtimes with long
136+
term stable libraries that don't receive feature updates on a best efforts basis
137+
as it may not be possible to backport all patches.
138+
139+
Google provides updates on a best efforts basis to apps that continue to use
140+
Java 7, though apps might need to upgrade to current versions of the library
141+
that supports their JVM.
142+
143+
#### Where to find specific information
144+
145+
The latest versions and the supported Java versions are identified on
146+
the individual GitHub repository `github.com/GoogleAPIs/java-SERVICENAME`
147+
and on [google-cloud-java][g-c-j].
148+
149+
## Versioning
150+
151+
152+
This library follows [Semantic Versioning](http://semver.org/).
153+
154+
155+
156+
## Contributing
157+
158+
159+
Contributions to this library are always welcome and highly encouraged.
160+
161+
See [CONTRIBUTING][contributing] for more information how to get started.
162+
163+
Please note that this project is released with a Contributor Code of Conduct. By participating in
164+
this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more
165+
information.
166+
167+
168+
## License
169+
170+
Apache 2.0 - See [LICENSE][license] for more information.
171+
172+
## CI Status
173+
174+
Java Version | Status
175+
------------ | ------
176+
Java 8 | [![Kokoro CI][kokoro-badge-image-2]][kokoro-badge-link-2]
177+
Java 8 OSX | [![Kokoro CI][kokoro-badge-image-3]][kokoro-badge-link-3]
178+
Java 8 Windows | [![Kokoro CI][kokoro-badge-image-4]][kokoro-badge-link-4]
179+
Java 11 | [![Kokoro CI][kokoro-badge-image-5]][kokoro-badge-link-5]
180+
181+
Java is a registered trademark of Oracle and/or its affiliates.
182+
183+
[product-docs]: https://cloud.google.com/memorystore/docs/valkey
184+
[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-memorystore/latest/overview
185+
[kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java7.svg
186+
[kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java7.html
187+
[kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8.svg
188+
[kokoro-badge-link-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8.html
189+
[kokoro-badge-image-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-osx.svg
190+
[kokoro-badge-link-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-osx.html
191+
[kokoro-badge-image-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-win.svg
192+
[kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-win.html
193+
[kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.svg
194+
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
195+
[stability-image]: https://img.shields.io/badge/stability-stable-green
196+
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-valkey.svg
197+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-valkey/0.0.0
198+
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
199+
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
200+
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
201+
[iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy
202+
[developer-console]: https://console.developers.google.com/
203+
[create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects
204+
[cloud-cli]: https://cloud.google.com/cli
205+
[troubleshooting]: https://github.com/googleapis/google-cloud-java/blob/main/TROUBLESHOOTING.md
206+
[contributing]: https://github.com/googleapis/google-cloud-java/blob/main/CONTRIBUTING.md
207+
[code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct
208+
[license]: https://github.com/googleapis/google-cloud-java/blob/main/LICENSE
209+
[enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing
210+
[enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=memorystore.googleapis.com
211+
[libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM
212+
[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
213+
214+
[semver]: https://semver.org/
215+
[cloudlibs]: https://cloud.google.com/apis/docs/client-libraries-explained
216+
[apilibs]: https://cloud.google.com/apis/docs/client-libraries-explained#google_api_client_libraries
217+
[oracle]: https://www.oracle.com/java/technologies/java-se-support-roadmap.html
218+
[g-c-j]: http://github.com/googleapis/google-cloud-java

0 commit comments

Comments
 (0)