google-cloud-alloy_db 2.0.1 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/alloy_db/version.rb +1 -1
- data/lib/google/cloud/alloy_db.rb +70 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abf656751b734a195d3472097d384e767530b2b447198aa5ccabbd1aeb2a7d2e
|
4
|
+
data.tar.gz: cba8ec89d7453409096ec4936a0d02ff9d574cce105ce7637cada3e2bc946239
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17410167e98008a469c54b8a82d0f36e6454b751363d571cc6ce18d71d308a4de57879e3a65d1e3f933246d9e276dee6df5f3e347530d33d2df8b89fe17ebe17
|
7
|
+
data.tar.gz: 1f2a1cc86a96cffd0ba05c39eb22ff864ae47347c087073d49f6d077c42e5e523586b5b486dad9a061b723653ba33d8e90b3feb7f4bd3b8a5fb31ea794351a9f
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the AlloyDB 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.
|
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
|
|
@@ -115,6 +115,76 @@ module Google
|
|
115
115
|
false
|
116
116
|
end
|
117
117
|
|
118
|
+
##
|
119
|
+
# Create a new client object for AlloyDBCloudSQLAdmin.
|
120
|
+
#
|
121
|
+
# By default, this returns an instance of
|
122
|
+
# [Google::Cloud::AlloyDB::V1::AlloyDBCloudSQLAdmin::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1/latest/Google-Cloud-AlloyDB-V1-AlloyDBCloudSQLAdmin-Client)
|
123
|
+
# for a gRPC client for version V1 of the API.
|
124
|
+
# However, you can specify a different API version by passing it in the
|
125
|
+
# `version` parameter. If the AlloyDBCloudSQLAdmin service is
|
126
|
+
# supported by that API version, and the corresponding gem is available, the
|
127
|
+
# appropriate versioned client will be returned.
|
128
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
129
|
+
# the `transport` parameter.
|
130
|
+
#
|
131
|
+
# Raises an exception if the currently installed versioned client gem for the
|
132
|
+
# given API version does not support the given transport of the AlloyDBCloudSQLAdmin service.
|
133
|
+
# You can determine whether the method will succeed by calling
|
134
|
+
# {Google::Cloud::AlloyDB.alloy_db_cloud_sql_admin_available?}.
|
135
|
+
#
|
136
|
+
# ## About AlloyDBCloudSQLAdmin
|
137
|
+
#
|
138
|
+
# Service for interactions with CloudSQL.
|
139
|
+
#
|
140
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
141
|
+
# Defaults to `:v1`.
|
142
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
143
|
+
# @return [::Object] A client object for the specified version.
|
144
|
+
#
|
145
|
+
def self.alloy_db_cloud_sql_admin version: :v1, transport: :grpc, &block
|
146
|
+
require "google/cloud/alloy_db/#{version.to_s.downcase}"
|
147
|
+
|
148
|
+
package_name = Google::Cloud::AlloyDB
|
149
|
+
.constants
|
150
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
151
|
+
.first
|
152
|
+
service_module = Google::Cloud::AlloyDB.const_get(package_name).const_get(:AlloyDBCloudSQLAdmin)
|
153
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
154
|
+
service_module.const_get(:Client).new(&block)
|
155
|
+
end
|
156
|
+
|
157
|
+
##
|
158
|
+
# Determines whether the AlloyDBCloudSQLAdmin service is supported by the current client.
|
159
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::AlloyDB.alloy_db_cloud_sql_admin}.
|
160
|
+
# If false, that method will raise an exception. This could happen if the given
|
161
|
+
# API version does not exist or does not support the AlloyDBCloudSQLAdmin service,
|
162
|
+
# or if the versioned client gem needs an update to support the AlloyDBCloudSQLAdmin service.
|
163
|
+
#
|
164
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
165
|
+
# Defaults to `:v1`.
|
166
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
167
|
+
# @return [boolean] Whether the service is available.
|
168
|
+
#
|
169
|
+
def self.alloy_db_cloud_sql_admin_available? version: :v1, transport: :grpc
|
170
|
+
require "google/cloud/alloy_db/#{version.to_s.downcase}"
|
171
|
+
package_name = Google::Cloud::AlloyDB
|
172
|
+
.constants
|
173
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
174
|
+
.first
|
175
|
+
return false unless package_name
|
176
|
+
service_module = Google::Cloud::AlloyDB.const_get package_name
|
177
|
+
return false unless service_module.const_defined? :AlloyDBCloudSQLAdmin
|
178
|
+
service_module = service_module.const_get :AlloyDBCloudSQLAdmin
|
179
|
+
if transport == :rest
|
180
|
+
return false unless service_module.const_defined? :Rest
|
181
|
+
service_module = service_module.const_get :Rest
|
182
|
+
end
|
183
|
+
service_module.const_defined? :Client
|
184
|
+
rescue ::LoadError
|
185
|
+
false
|
186
|
+
end
|
187
|
+
|
118
188
|
##
|
119
189
|
# Configure the google-cloud-alloy_db library.
|
120
190
|
#
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-alloy_db
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
@@ -84,7 +84,7 @@ summary: AlloyDB for PostgreSQL is an open source-compatible database service th
|
|
84
84
|
applications. It offers full compatibility with standard PostgreSQL, and is more
|
85
85
|
than 4x faster for transactional workloads and up to 100x faster for analytical
|
86
86
|
queries than standard PostgreSQL in our performance tests. AlloyDB for PostgreSQL
|
87
|
-
offers a 99.99 percent availability SLA inclusive of maintenance.
|
87
|
+
offers a 99.99 percent availability SLA inclusive of maintenance. AlloyDB is optimized
|
88
88
|
for the most demanding use cases, allowing you to build new applications that require
|
89
89
|
high transaction throughput, large database sizes, or multiple read resources; scale
|
90
90
|
existing PostgreSQL workloads with no application changes; and modernize legacy
|