Debian Codegraph @

gkemulticloud/apiv1/doc.go

raw symbols SCIP
1 // Copyright 2025 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 // https://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 // Code generated by protoc-gen-go_gapic. DO NOT EDIT.
16
17 // Package gkemulticloud is an auto-generated package for the
18 // GKE Multi-Cloud API.
19 //
20 // GKE Multi-Cloud provides a way to manage Kubernetes clusters that run on
21 // AWS and Azure infrastructure using the GKE Multi-Cloud API. Combined with
22 // Connect, you can manage Kubernetes clusters on Google Cloud, AWS, and
23 // Azure from the Google Cloud Console. When you create a cluster with GKE
24 // Multi-Cloud, Google creates the resources needed and brings up a cluster
25 // on your behalf. You can deploy workloads with the GKE Multi-Cloud API or
26 // the gcloud and kubectl command-line tools.
27 //
28 // # General documentation
29 //
30 // For information that is relevant for all client libraries please reference
31 // https://pkg.go.dev/cloud.google.com/go#pkg-overview. Some information on this
32 // page includes:
33 //
34 // - [Authentication and Authorization]
35 // - [Timeouts and Cancellation]
36 // - [Testing against Client Libraries]
37 // - [Debugging Client Libraries]
38 // - [Inspecting errors]
39 //
40 // # Example usage
41 //
42 // To get started with this package, create a client.
43 //
44 // // go get cloud.google.com/go/gkemulticloud/apiv1@latest
45 // ctx := context.Background()
46 // // This snippet has been automatically generated and should be regarded as a code template only.
47 // // It will require modifications to work:
48 // // - It may require correct/in-range values for request initialization.
49 // // - It may require specifying regional endpoints when creating the service client as shown in:
50 // // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
51 // c, err := gkemulticloud.NewAttachedClustersClient(ctx)
52 // if err != nil {
53 // // TODO: Handle error.
54 // }
55 // defer c.Close()
56 //
57 // The client will use your default application credentials. Clients should be reused instead of created as needed.
58 // The methods of Client are safe for concurrent use by multiple goroutines.
59 // The returned client must be Closed when it is done being used.
60 //
61 // # Using the Client
62 //
63 // The following is an example of making an API call with the newly created client, mentioned above.
64 //
65 // req := &gkemulticloudpb.CreateAttachedClusterRequest{
66 // // TODO: Fill request struct fields.
67 // // See https://pkg.go.dev/cloud.google.com/go/gkemulticloud/apiv1/gkemulticloudpb#CreateAttachedClusterRequest.
68 // }
69 // op, err := c.CreateAttachedCluster(ctx, req)
70 // if err != nil {
71 // // TODO: Handle error.
72 // }
73 //
74 // resp, err := op.Wait(ctx)
75 // if err != nil {
76 // // TODO: Handle error.
77 // }
78 // // TODO: Use resp.
79 // _ = resp
80 //
81 // # Use of Context
82 //
83 // The ctx passed to NewAttachedClustersClient is used for authentication requests and
84 // for creating the underlying connection, but is not used for subsequent calls.
85 // Individual methods on the client use the ctx given to them.
86 //
87 // To close the open connection, use the Close() method.
88 //
89 // [Authentication and Authorization]: https://pkg.go.dev/cloud.google.com/go#hdr-Authentication_and_Authorization
90 // [Timeouts and Cancellation]: https://pkg.go.dev/cloud.google.com/go#hdr-Timeouts_and_Cancellation
91 // [Testing against Client Libraries]: https://pkg.go.dev/cloud.google.com/go#hdr-Testing
92 // [Debugging Client Libraries]: https://pkg.go.dev/cloud.google.com/go#hdr-Debugging
93 // [Inspecting errors]: https://pkg.go.dev/cloud.google.com/go#hdr-Inspecting_errors
94 package gkemulticloud // import "cloud.google.com/go/gkemulticloud/apiv1"