Skip to content

Commit 3f2a93c

Browse files
fix(deps): [google-cloud-alloydb] Exclude google-auth 2.24.0 and 2.25.0 (#12365)
- [ ] Regenerate this pull request now. chore: Update gapic-generator-python to v1.14.4 PiperOrigin-RevId: 611561820 Source-Link: googleapis/googleapis@87ef1fe Source-Link: googleapis/googleapis-gen@1973161 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFsbG95ZGIvLk93bEJvdC55YW1sIiwiaCI6IjE5NzMxNjEzNzU5NGFhZmFkOTRkZWEzMTIyNjUyOGZiY2MzOTMxMGMifQ== BEGIN_COMMIT_OVERRIDE fix(deps): Exclude google-auth 2.24.0 and 2.25.0 feat: Add support for obtaining the public IP address of an Instance feat: Add support for getting PSC DNS name from the GetConnectionInfo API feat: Add PSC cluster and instance configuration settings to enable/disable PSC and obtain the PSC endpoint name feat: Add new API to list the databases in a project and location docs: Clarified read pool config is for read pool type instances END_COMMIT_OVERRIDE BEGIN_NESTED_COMMIT feat: [google-cloud-alloydb] support for obtaining the public IP address of an Instance feat: support for getting PSC DNS name from the GetConnectionInfo API feat: add PSC cluster and instance configuration settings to enable/disable PSC and obtain the PSC endpoint name feat: add new API to list the databases in a project and location docs: clarified read pool config is for read pool type instances PiperOrigin-RevId: 610475013 Source-Link: googleapis/googleapis@aa16fda Source-Link: googleapis/googleapis-gen@9ccc90e Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFsbG95ZGIvLk93bEJvdC55YW1sIiwiaCI6IjljY2M5MGVjYmY0NWQ4YjA2NWI1MjA1OTdmYWJiNjRmZDQxNTY3OGQifQ== END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: [google-cloud-alloydb] support for obtaining the public IP address of an Instance feat: support for getting PSC DNS name from the GetConnectionInfo API PiperOrigin-RevId: 610415824 Source-Link: googleapis/googleapis@0733fdb Source-Link: googleapis/googleapis-gen@49fd8e0 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFsbG95ZGIvLk93bEJvdC55YW1sIiwiaCI6IjQ5ZmQ4ZTA4OWZlZGE1ZDI5M2QxODgwMjU0OGRiNTJjM2ZiZmI3MGMifQ== END_NESTED_COMMIT --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent c88cdce commit 3f2a93c

26 files changed

+5025
-2838
lines changed

packages/google-cloud-alloydb/google/cloud/alloydb/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.3.9" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-alloydb/google/cloud/alloydb_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.3.9" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-alloydb/google/cloud/alloydb_v1alpha/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.3.9" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-alloydb/google/cloud/alloydb_v1alpha/types/resources.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,6 +1139,10 @@ class Instance(proto.Message):
11391139
Output only. The IP address for the Instance.
11401140
This is the connection endpoint for an end-user
11411141
application.
1142+
public_ip_address (str):
1143+
Output only. The public IP addresses for the Instance. This
1144+
is available ONLY when enable_public_ip is set. This is the
1145+
connection endpoint for an end-user application.
11421146
reconciling (bool):
11431147
Output only. Reconciling
11441148
(https://google.aip.dev/128#reconciliation). Set
@@ -1657,6 +1661,10 @@ class AuthorizedNetwork(proto.Message):
16571661
proto.STRING,
16581662
number=15,
16591663
)
1664+
public_ip_address: str = proto.Field(
1665+
proto.STRING,
1666+
number=27,
1667+
)
16601668
reconciling: bool = proto.Field(
16611669
proto.BOOL,
16621670
number=16,
@@ -1725,6 +1733,9 @@ class ConnectionInfo(proto.Message):
17251733
to RFC 5246.
17261734
instance_uid (str):
17271735
Output only. The unique ID of the Instance.
1736+
psc_dns_name (str):
1737+
Output only. The DNS name to use with PSC for
1738+
the Instance.
17281739
"""
17291740

17301741
name: str = proto.Field(
@@ -1747,6 +1758,10 @@ class ConnectionInfo(proto.Message):
17471758
proto.STRING,
17481759
number=4,
17491760
)
1761+
psc_dns_name: str = proto.Field(
1762+
proto.STRING,
1763+
number=6,
1764+
)
17501765

17511766

17521767
class Backup(proto.Message):

packages/google-cloud-alloydb/google/cloud/alloydb_v1beta/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
ContinuousBackupConfig,
3030
ContinuousBackupInfo,
3131
ContinuousBackupSource,
32+
Database,
3233
DatabaseVersion,
3334
EncryptionConfig,
3435
EncryptionInfo,
@@ -69,6 +70,8 @@
6970
ListBackupsResponse,
7071
ListClustersRequest,
7172
ListClustersResponse,
73+
ListDatabasesRequest,
74+
ListDatabasesResponse,
7275
ListInstancesRequest,
7376
ListInstancesResponse,
7477
ListSupportedDatabaseFlagsRequest,
@@ -108,6 +111,7 @@
108111
"CreateSecondaryClusterRequest",
109112
"CreateSecondaryInstanceRequest",
110113
"CreateUserRequest",
114+
"Database",
111115
"DatabaseVersion",
112116
"DeleteBackupRequest",
113117
"DeleteClusterRequest",
@@ -130,6 +134,8 @@
130134
"ListBackupsResponse",
131135
"ListClustersRequest",
132136
"ListClustersResponse",
137+
"ListDatabasesRequest",
138+
"ListDatabasesResponse",
133139
"ListInstancesRequest",
134140
"ListInstancesResponse",
135141
"ListSupportedDatabaseFlagsRequest",

packages/google-cloud-alloydb/google/cloud/alloydb_v1beta/gapic_metadata.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@
115115
"list_clusters"
116116
]
117117
},
118+
"ListDatabases": {
119+
"methods": [
120+
"list_databases"
121+
]
122+
},
118123
"ListInstances": {
119124
"methods": [
120125
"list_instances"
@@ -275,6 +280,11 @@
275280
"list_clusters"
276281
]
277282
},
283+
"ListDatabases": {
284+
"methods": [
285+
"list_databases"
286+
]
287+
},
278288
"ListInstances": {
279289
"methods": [
280290
"list_instances"
@@ -435,6 +445,11 @@
435445
"list_clusters"
436446
]
437447
},
448+
"ListDatabases": {
449+
"methods": [
450+
"list_databases"
451+
]
452+
},
438453
"ListInstances": {
439454
"methods": [
440455
"list_instances"

packages/google-cloud-alloydb/google/cloud/alloydb_v1beta/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.3.9" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-alloydb/google/cloud/alloydb_v1beta/services/alloy_db_admin/async_client.py

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ class AlloyDBAdminAsyncClient:
8484
parse_crypto_key_version_path = staticmethod(
8585
AlloyDBAdminClient.parse_crypto_key_version_path
8686
)
87+
database_path = staticmethod(AlloyDBAdminClient.database_path)
88+
parse_database_path = staticmethod(AlloyDBAdminClient.parse_database_path)
8789
instance_path = staticmethod(AlloyDBAdminClient.instance_path)
8890
parse_instance_path = staticmethod(AlloyDBAdminClient.parse_instance_path)
8991
network_path = staticmethod(AlloyDBAdminClient.network_path)
@@ -4195,6 +4197,133 @@ async def sample_delete_user():
41954197
metadata=metadata,
41964198
)
41974199

4200+
async def list_databases(
4201+
self,
4202+
request: Optional[Union[service.ListDatabasesRequest, dict]] = None,
4203+
*,
4204+
parent: Optional[str] = None,
4205+
retry: OptionalRetry = gapic_v1.method.DEFAULT,
4206+
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
4207+
metadata: Sequence[Tuple[str, str]] = (),
4208+
) -> pagers.ListDatabasesAsyncPager:
4209+
r"""Lists Databases in a given project and location.
4210+
4211+
.. code-block:: python
4212+
4213+
# This snippet has been automatically generated and should be regarded as a
4214+
# code template only.
4215+
# It will require modifications to work:
4216+
# - It may require correct/in-range values for request initialization.
4217+
# - It may require specifying regional endpoints when creating the service
4218+
# client as shown in:
4219+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
4220+
from google.cloud import alloydb_v1beta
4221+
4222+
async def sample_list_databases():
4223+
# Create a client
4224+
client = alloydb_v1beta.AlloyDBAdminAsyncClient()
4225+
4226+
# Initialize request argument(s)
4227+
request = alloydb_v1beta.ListDatabasesRequest(
4228+
parent="parent_value",
4229+
)
4230+
4231+
# Make the request
4232+
page_result = client.list_databases(request=request)
4233+
4234+
# Handle the response
4235+
async for response in page_result:
4236+
print(response)
4237+
4238+
Args:
4239+
request (Optional[Union[google.cloud.alloydb_v1beta.types.ListDatabasesRequest, dict]]):
4240+
The request object. Message for requesting list of
4241+
Databases.
4242+
parent (:class:`str`):
4243+
Required. Parent value for
4244+
ListDatabasesRequest.
4245+
4246+
This corresponds to the ``parent`` field
4247+
on the ``request`` instance; if ``request`` is provided, this
4248+
should not be set.
4249+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
4250+
should be retried.
4251+
timeout (float): The timeout for this request.
4252+
metadata (Sequence[Tuple[str, str]]): Strings which should be
4253+
sent along with the request as metadata.
4254+
4255+
Returns:
4256+
google.cloud.alloydb_v1beta.services.alloy_db_admin.pagers.ListDatabasesAsyncPager:
4257+
Message for response to listing
4258+
Databases.
4259+
Iterating over this object will yield
4260+
results and resolve additional pages
4261+
automatically.
4262+
4263+
"""
4264+
# Create or coerce a protobuf request object.
4265+
# Quick check: If we got a request object, we should *not* have
4266+
# gotten any keyword arguments that map to the request.
4267+
has_flattened_params = any([parent])
4268+
if request is not None and has_flattened_params:
4269+
raise ValueError(
4270+
"If the `request` argument is set, then none of "
4271+
"the individual field arguments should be set."
4272+
)
4273+
4274+
request = service.ListDatabasesRequest(request)
4275+
4276+
# If we have keyword arguments corresponding to fields on the
4277+
# request, apply these.
4278+
if parent is not None:
4279+
request.parent = parent
4280+
4281+
# Wrap the RPC method; this adds retry and timeout information,
4282+
# and friendly error handling.
4283+
rpc = gapic_v1.method_async.wrap_method(
4284+
self._client._transport.list_databases,
4285+
default_retry=retries.AsyncRetry(
4286+
initial=1.0,
4287+
maximum=60.0,
4288+
multiplier=1.3,
4289+
predicate=retries.if_exception_type(
4290+
core_exceptions.ServiceUnavailable,
4291+
),
4292+
deadline=60.0,
4293+
),
4294+
default_timeout=60.0,
4295+
client_info=DEFAULT_CLIENT_INFO,
4296+
)
4297+
4298+
# Certain fields should be provided within the metadata header;
4299+
# add these here.
4300+
metadata = tuple(metadata) + (
4301+
gapic_v1.routing_header.to_grpc_metadata((("parent", request.parent),)),
4302+
)
4303+
4304+
# Validate the universe domain.
4305+
self._client._validate_universe_domain()
4306+
4307+
# Send the request.
4308+
response = await rpc(
4309+
request,
4310+
retry=retry,
4311+
timeout=timeout,
4312+
metadata=metadata,
4313+
)
4314+
4315+
# This method is paged; wrap the response in a pager, which provides
4316+
# an `__aiter__` convenience method.
4317+
response = pagers.ListDatabasesAsyncPager(
4318+
method=rpc,
4319+
request=request,
4320+
response=response,
4321+
metadata=metadata,
4322+
)
4323+
4324+
# Done; return the response.
4325+
return response
4326+
41984327
async def list_operations(
41994328
self,
42004329
request: Optional[operations_pb2.ListOperationsRequest] = None,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy