google-cloud-alloy_db-v1alpha 0.7.2 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +31 -21
  3. data/lib/google/cloud/alloy_db/v1alpha/alloy_db_admin/client.rb +560 -184
  4. data/lib/google/cloud/alloy_db/v1alpha/alloy_db_admin/operations.rb +12 -15
  5. data/lib/google/cloud/alloy_db/v1alpha/alloy_db_admin/rest/client.rb +4276 -0
  6. data/lib/google/cloud/alloy_db/v1alpha/alloy_db_admin/rest/operations.rb +907 -0
  7. data/lib/google/cloud/alloy_db/v1alpha/alloy_db_admin/rest/service_stub.rb +2236 -0
  8. data/lib/google/cloud/alloy_db/v1alpha/alloy_db_admin/rest.rb +54 -0
  9. data/lib/google/cloud/alloy_db/v1alpha/alloy_db_admin.rb +6 -0
  10. data/lib/google/cloud/alloy_db/v1alpha/bindings_override.rb +102 -0
  11. data/lib/google/cloud/alloy_db/v1alpha/rest.rb +38 -0
  12. data/lib/google/cloud/alloy_db/v1alpha/version.rb +1 -1
  13. data/lib/google/cloud/alloy_db/v1alpha.rb +5 -0
  14. data/lib/google/cloud/alloydb/v1alpha/csql_resources_pb.rb +44 -0
  15. data/lib/google/cloud/alloydb/v1alpha/data_model_pb.rb +45 -0
  16. data/lib/google/cloud/alloydb/v1alpha/gemini_pb.rb +45 -0
  17. data/lib/google/cloud/alloydb/v1alpha/resources_pb.rb +11 -1
  18. data/lib/google/cloud/alloydb/v1alpha/service_pb.rb +22 -1
  19. data/lib/google/cloud/alloydb/v1alpha/service_services_pb.rb +9 -0
  20. data/proto_docs/google/api/client.rb +39 -0
  21. data/proto_docs/google/cloud/alloydb/v1alpha/csql_resources.rb +42 -0
  22. data/proto_docs/google/cloud/alloydb/v1alpha/data_model.rb +75 -0
  23. data/proto_docs/google/cloud/alloydb/v1alpha/gemini.rb +52 -0
  24. data/proto_docs/google/cloud/alloydb/v1alpha/resources.rb +214 -39
  25. data/proto_docs/google/cloud/alloydb/v1alpha/service.rb +540 -146
  26. data/proto_docs/google/longrunning/operations.rb +19 -14
  27. metadata +18 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3306e6840cb29ffe8acc32e08ab587204df71fcee486c11d569d103a5141a642
4
- data.tar.gz: 31705a99943dbb87f26dbb751dfe5a09f82f5758e1d2861fdbf3edb7ca5e00b6
3
+ metadata.gz: 51fb79cacfdee1f7ee2cc63dc25269e6943d9a83a08cd3017cd30b86936edcdf
4
+ data.tar.gz: 742e11c649211df11f1d4a24e284ca9d1b1c58b1bf37fd30b98b655c0b8f547d
5
5
  SHA512:
6
- metadata.gz: da5367574a1afab362301281dabacd66e0c302433e6dc6a97524f929d03b638fd82bfb5b76904d3c0874c8704b4c82687ade7d31e3df7ea014e7d422c832fed1
7
- data.tar.gz: 9b70cd4bf694123247db66afb6a9a5ad33fe640a25c76a9ab34ed79386f2cb18cff28109abb38a2d902c493d7b352b1fa69ea00011f597e89751671ee3bb941a
6
+ metadata.gz: d38dfe2b067f0be0139d1b658cee4f9571ca862cae8d7c80065fb18ce72110a2d45d510334068484b48dd2a7cdddf7fa9a17ef7a14337b5d6934638cd021c98a
7
+ data.tar.gz: 2ab2044f203784c4b584e69e980fddce75d211a8df8c8d8f5d209126d2d5df35cd7f4a6921ee3beec91b652be7322781633dda11dc7c9188361d25f39ff484b5
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the AlloyDB V1ALPHA API
2
2
 
3
- AlloyDB for PostgreSQL is an open source-compatible database service that provides a powerful option for migrating, modernizing, or building commercial-grade applications. It offers full compatibility with standard PostgreSQL, and is more than 4x faster for transactional workloads and up to 100x faster for analytical queries than standard PostgreSQL in our performance tests. AlloyDB for PostgreSQL offers a 99.99 percent availability SLA inclusive of maintenance. AlloyDB is optimized for the most demanding use cases, allowing you to build new applications that require high transaction throughput, large database sizes, or multiple read resources; scale existing PostgreSQL workloads with no application changes; and modernize legacy proprietary databases.
3
+ AlloyDB for PostgreSQL is an open source-compatible database service that provides a powerful option for migrating, modernizing, or building commercial-grade applications. It offers full compatibility with standard PostgreSQL, and is more than 4x faster for transactional workloads and up to 100x faster for analytical queries than standard PostgreSQL in our performance tests. AlloyDB for PostgreSQL offers a 99.99 percent availability SLA inclusive of maintenance. AlloyDB is optimized for the most demanding use cases, allowing you to build new applications that require high transaction throughput, large database sizes, or multiple read resources; scale existing PostgreSQL workloads with no application changes; and modernize legacy proprietary databases.
4
4
 
5
5
  AlloyDB for PostgreSQL is an open source-compatible database service that provides a powerful option for migrating, modernizing, or building commercial-grade applications. It offers full compatibility with standard PostgreSQL, and is more than 4x faster for transactional workloads and up to 100x faster for analytical queries than standard PostgreSQL in our performance tests. AlloyDB for PostgreSQL offers a 99.99 percent availability SLA inclusive of maintenance. AlloyDB is optimized for the most demanding use cases, allowing you to build new applications that require high transaction throughput, large database sizes, or multiple read resources; scale existing PostgreSQL workloads with no application changes; and modernize legacy proprietary databases.
6
6
 
@@ -43,33 +43,43 @@ for class and method documentation.
43
43
  See also the [Product Documentation](https://cloud.google.com/alloydb/docs)
44
44
  for general usage information.
45
45
 
46
- ## Enabling Logging
47
-
48
- To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
51
- that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
- and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
-
54
- Configuring a Ruby stdlib logger:
46
+ ## Debug Logging
47
+
48
+ This library comes with opt-in Debug Logging that can help you troubleshoot
49
+ your application's integration with the API. When logging is activated, key
50
+ events such as requests and responses, along with data payloads and metadata
51
+ such as headers and client configuration, are logged to the standard error
52
+ stream.
53
+
54
+ **WARNING:** Client Library Debug Logging includes your data payloads in
55
+ plaintext, which could include sensitive data such as PII for yourself or your
56
+ customers, private keys, or other security data that could be compromising if
57
+ leaked. Always practice good data hygiene with your application logs, and follow
58
+ the principle of least access. Google also recommends that Client Library Debug
59
+ Logging be enabled only temporarily during active debugging, and not used
60
+ permanently in production.
61
+
62
+ To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
63
+ to the value `all`. Alternatively, you can set the value to a comma-delimited
64
+ list of client library gem names. This will select the default logging behavior,
65
+ which writes logs to the standard error stream. On a local workstation, this may
66
+ result in logs appearing on the console. When running on a Google Cloud hosting
67
+ service such as [Google Cloud Run](https://cloud.google.com/run), this generally
68
+ results in logs appearing alongside your application logs in the
69
+ [Google Cloud Logging](https://cloud.google.com/logging/) service.
70
+
71
+ You can customize logging by modifying the `logger` configuration when
72
+ constructing a client object. For example:
55
73
 
56
74
  ```ruby
75
+ require "google/cloud/alloy_db/v1alpha"
57
76
  require "logger"
58
77
 
59
- module MyLogger
60
- LOGGER = Logger.new $stderr, level: Logger::WARN
61
- def logger
62
- LOGGER
63
- end
64
- end
65
-
66
- # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
67
- module GRPC
68
- extend MyLogger
78
+ client = ::Google::Cloud::AlloyDB::V1alpha::AlloyDBAdmin::Client.new do |config|
79
+ config.logger = Logger.new "my-app.log"
69
80
  end
70
81
  ```
71
82
 
72
-
73
83
  ## Google Cloud Samples
74
84
 
75
85
  To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).