8000 feat: [google-cloud-alloydb-connectors] Sync AlloyDB API changes from HEAD to stable by gcf-owl-bot[bot] · Pull Request #13894 · googleapis/google-cloud-python · GitHub
[go: up one dir, main page]

Skip to content

feat: [google-cloud-alloydb-connectors] Sync AlloyDB API changes from HEAD to stable #13894

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Services for Google Cloud Alloydb Connectors v1alpha API
========================================================
.. toctree::
:maxdepth: 2
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Types for Google Cloud Alloydb Connectors v1alpha API
=====================================================

.. automodule:: google.cloud.alloydb.connectors_v1alpha.types
:members:
:show-inheritance:
8000
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Services for Google Cloud Alloydb Connectors v1beta API
=======================================================
.. toctree::
:maxdepth: 2
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Types for Google Cloud Alloydb Connectors v1beta API
====================================================

.. automodule:: google.cloud.alloydb.connectors_v1beta.types
:members:
:show-inheritance:
19 changes: 19 additions & 0 deletions packages/google-cloud-alloydb-connectors/docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

.. include:: multiprocessing.rst

This package includes clients for multiple versions of AlloyDB connectors.
By default, you will get version ``connectors_v1``.


API Reference
-------------
Expand All @@ -11,6 +14,22 @@ API Reference
connectors_v1/services_
connectors_v1/types_

API Reference
-------------
.. toctree::
:maxdepth: 2

connectors_v1alpha/services_
connectors_v1alpha/types_

API Reference
-------------
.. toctree::
:maxdepth: 2

connectors_v1beta/services_
connectors_v1beta/types_


Changelog
---------
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
from google.cloud.alloydb.connectors_v1alpha import gapic_version as package_version

__version__ = package_version.__version__


from .types.resources import MetadataExchangeRequest, MetadataExchangeResponse

__all__ = (
"MetadataExchangeRequest",
"MetadataExchangeResponse",
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.cloud.alloydb.connectors_v1alpha",
"protoPackage": "google.cloud.alloydb.connectors.v1alpha",
"schema": "1.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Marker file for PEP 561.
# The google-cloud-alloydb-connectors package uses inline types.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
from .resources import MetadataExchangeRequest, MetadataExchangeResponse

__all__ = (
"MetadataExchangeRequest",
"MetadataExchangeResponse",
)
F987
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
# -*- coding: utf-8 -*-
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
from __future__ import annotations

from typing import MutableMapping, MutableSequence

import proto # type: ignore

__protobuf__ = proto.module(
package="google.cloud.alloydb.connectors.v1alpha",
manifest={
"MetadataExchangeRequest",
"MetadataExchangeResponse",
},
)


class MetadataExchangeRequest(proto.Message):
r"""Message used by AlloyDB connectors to exchange client and
connection metadata with the server after a successful TLS
handshake. This metadata includes an IAM token, which is used to
authenticate users based on their IAM identity. The sole purpose
of this message is for the use of AlloyDB connectors. Clients
should not rely on this message directly as there can be
breaking changes in the future.

Attributes:
user_agent (str):
Optional. Connector information.
auth_type (google.cloud.alloydb.connectors_v1alpha.types.MetadataExchangeRequest.AuthType):
Authentication type.
oauth2_token (str):
IAM token used for both IAM user authentiation and
``alloydb.instances.connect`` permission check.
"""

class AuthType(proto.Enum):
r"""AuthType contains all supported authentication types.

Values:
AUTH_TYPE_UNSPECIFIED (0):
Authentication type is unspecified and DB_NATIVE is used by
default
DB_NATIVE (1):
Database native authentication
(user/password)
AUTO_IAM (2):
Automatic IAM authentication
"""
AUTH_TYPE_UNSPECIFIED = 0
DB_NATIVE = 1
AUTO_IAM = 2

user_agent: str = proto.Field(
proto.STRING,
number=1,
)
auth_type: AuthType = proto.Field(
proto.ENUM,
number=2,
enum=AuthType,
)
oauth2_token: str = proto.Field(
proto.STRING,
number=3,
)


class MetadataExchangeResponse(proto.Message):
r"""Message for response to metadata exchange request. The sole
purpose of this message is for the use of AlloyDB connectors.
Clients should not rely on this message directly as there can be
breaking changes in the future.

Attributes:
response_code (google.cloud.alloydb.connectors_v1alpha.types.MetadataExchangeResponse.ResponseCode):
Response code.
error (str):
Optional. Error message.
"""

class ResponseCode(proto.Enum):
r"""Response code.

Values:
RESPONSE_CODE_UNSPECIFIED (0):
Unknown response code
OK (1):
Success
ERROR (2):
Failure
"""
RESPONSE_CODE_UNSPECIFIED = 0
OK = 1
ERROR = 2

response_code: ResponseCode = proto.Field(
proto.ENUM,
number=1,
enum=ResponseCode,
)
error: str = proto.Field(
proto.STRING,
number=2,
)


__all__ = tuple(sorted(__protobuf__.manifest))
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
from google.cloud.alloydb.connectors_v1beta import gapic_version as package_version

__version__ = package_version.__version__


from .types.resources import MetadataExchangeRequest, MetadataExchangeResponse

__all__ = (
"MetadataExchangeRequest",
"MetadataExchangeResponse",
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.cloud.alloydb.connectors_v1beta",
"protoPackage": "google.cloud.alloydb.connectors.v1beta",
"schema": "1.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Marker file for PEP 561.
# The google-cloud-alloydb-connectors package uses inline types.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
from .resources import MetadataExchangeRequest, MetadataExchangeResponse

__all__ = (
"MetadataExchangeRequest",
"MetadataExchangeResponse",
)
Loading
Loading
0