Debian Codegraph @

alloydb/apiv1/doc.go

raw
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 alloydb is an auto-generated package for the
18 // AlloyDB API.
19 //
20 // AlloyDB for PostgreSQL is an open source-compatible database service that
21 // provides a powerful option for migrating, modernizing, or building
22 // commercial-grade applications. It offers full compatibility with standard
23 // PostgreSQL, and is more than 4x faster for transactional workloads and up
24 // to 100x faster for analytical queries than standard PostgreSQL in our
25 // performance tests. AlloyDB for PostgreSQL offers a 99.99 percent
26 // availability SLA inclusive of maintenance. AlloyDB is optimized for the
27 // most demanding use cases, allowing you to build new applications that
28 // require high transaction throughput, large database sizes, or multiple
29 // read resources; scale existing PostgreSQL workloads with no application
30 // changes; and modernize legacy proprietary databases.
31 //
32 // # General documentation
33 //
34 // For information that is relevant for all client libraries please reference
35 // https://pkg.go.dev/cloud.google.com/go#pkg-overview. Some information on this
36 // page includes:
37 //
38 // - [Authentication and Authorization]
39 // - [Timeouts and Cancellation]
40 // - [Testing against Client Libraries]
41 // - [Debugging Client Libraries]
42 // - [Inspecting errors]
43 //
44 // # Example usage
45 //
46 // To get started with this package, create a client.
47 //
48 // // go get cloud.google.com/go/alloydb/apiv1@latest
49 // ctx := context.Background()
50 // // This snippet has been automatically generated and should be regarded as a code template only.
51 // // It will require modifications to work:
52 // // - It may require correct/in-range values for request initialization.
53 // // - It may require specifying regional endpoints when creating the service client as shown in:
54 // // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
55 // c, err := alloydb.NewAlloyDBAdminClient(ctx)
56 // if err != nil {
57 // // TODO: Handle error.
58 // }
59 // defer c.Close()
60 //
61 // The client will use your default application credentials. Clients should be reused instead of created as needed.
62 // The methods of Client are safe for concurrent use by multiple goroutines.
63 // The returned client must be Closed when it is done being used.
64 //
65 // # Using the Client
66 //
67 // The following is an example of making an API call with the newly created client, mentioned above.
68 //
69 // req := &alloydbpb.BatchCreateInstancesRequest{
70 // // TODO: Fill request struct fields.
71 // // See https://pkg.go.dev/cloud.google.com/go/alloydb/apiv1/alloydbpb#BatchCreateInstancesRequest.
72 // }
73 // op, err := c.BatchCreateInstances(ctx, req)
74 // if err != nil {
75 // // TODO: Handle error.
76 // }
77 //
78 // resp, err := op.Wait(ctx)
79 // if err != nil {
80 // // TODO: Handle error.
81 // }
82 // // TODO: Use resp.
83 // _ = resp
84 //
85 // # Use of Context
86 //
87 // The ctx passed to NewAlloyDBAdminClient is used for authentication requests and
88 // for creating the underlying connection, but is not used for subsequent calls.
89 // Individual methods on the client use the ctx given to them.
90 //
91 // To close the open connection, use the Close() method.
92 //
93 // [Authentication and Authorization]: https://pkg.go.dev/cloud.google.com/go#hdr-Authentication_and_Authorization
94 // [Timeouts and Cancellation]: https://pkg.go.dev/cloud.google.com/go#hdr-Timeouts_and_Cancellation
95 // [Testing against Client Libraries]: https://pkg.go.dev/cloud.google.com/go#hdr-Testing
96 // [Debugging Client Libraries]: https://pkg.go.dev/cloud.google.com/go#hdr-Debugging
97 // [Inspecting errors]: https://pkg.go.dev/cloud.google.com/go#hdr-Inspecting_errors
98 package alloydb // import "cloud.google.com/go/alloydb/apiv1"