• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2022 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 /**
18  * A client to Cloud Memorystore for Memcached API
19  *
20  * <p>The interfaces provided are listed below, along with usage samples.
21  *
22  * <p>======================= CloudMemcacheClient =======================
23  *
24  * <p>Service Description: Configures and manages Cloud Memorystore for Memcached instances.
25  *
26  * <p>The `memcache.googleapis.com` service implements the Google Cloud Memorystore for Memcached
27  * API and defines the following resource model for managing Memorystore Memcached (also called
28  * Memcached below) instances:
29  *
30  * <ul>
31  *   <li>The service works with a collection of cloud projects, named: `/projects/&#42;`
32  *   <li>Each project has a collection of available locations, named: `/locations/&#42;`
33  *   <li>Each location has a collection of Memcached instances, named: `/instances/&#42;`
34  *   <li>As such, Memcached instances are resources of the form:
35  *       `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
36  * </ul>
37  *
38  * <p>Note that location_id must be a GCP `region`; for example:
39  *
40  * <ul>
41  *   <li>`projects/my-memcached-project/locations/us-central1/instances/my-memcached`
42  * </ul>
43  *
44  * <p>Sample for CloudMemcacheClient:
45  *
46  * <pre>{@code
47  * // This snippet has been automatically generated and should be regarded as a code template only.
48  * // It will require modifications to work:
49  * // - It may require correct/in-range values for request initialization.
50  * // - It may require specifying regional endpoints when creating the service client as shown in
51  * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
52  * try (CloudMemcacheClient cloudMemcacheClient = CloudMemcacheClient.create()) {
53  *   InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
54  *   Instance response = cloudMemcacheClient.getInstance(name);
55  * }
56  * }</pre>
57  */
58 @Generated("by gapic-generator-java")
59 package com.google.cloud.memcache.v1beta2;
60 
61 import javax.annotation.Generated;
62