• 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 GKE Hub API
19  *
20  * <p>The interfaces provided are listed below, along with usage samples.
21  *
22  * <p>======================= GkeHubMembershipServiceClient =======================
23  *
24  * <p>Service Description: The GKE Hub MembershipService handles the registration of many Kubernetes
25  * clusters to Google Cloud, represented with the
26  * [Membership][google.cloud.gkehub.v1beta1.Membership] resource.
27  *
28  * <p>GKE Hub is currently available in the global region and all regions in
29  * https://cloud.google.com/compute/docs/regions-zones.
30  *
31  * <p>&#42;&#42;Membership management may be non-trivial:&#42;&#42; it is recommended to use one of
32  * the Google-provided client libraries or tools where possible when working with Membership
33  * resources.
34  *
35  * <p>Sample for GkeHubMembershipServiceClient:
36  *
37  * <pre>{@code
38  * // This snippet has been automatically generated and should be regarded as a code template only.
39  * // It will require modifications to work:
40  * // - It may require correct/in-range values for request initialization.
41  * // - It may require specifying regional endpoints when creating the service client as shown in
42  * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
43  * try (GkeHubMembershipServiceClient gkeHubMembershipServiceClient =
44  *     GkeHubMembershipServiceClient.create()) {
45  *   MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
46  *   Membership response = gkeHubMembershipServiceClient.getMembership(name);
47  * }
48  * }</pre>
49  */
50 @Generated("by gapic-generator-java")
51 package com.google.cloud.gkehub.v1beta1;
52 
53 import javax.annotation.Generated;
54