-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(google/cloud/agentidentitycredentials/v1beta): add new v1beta1 version #17823
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
Open
suztomo
wants to merge
1
commit into
googleapis:main
Choose a base branch
from
suztomo:onboard-new-library-2026-07-22-google/cloud/agentidentitycredentials/v1beta
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+8,419
−0
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...ials/docs/agentidentitycredentials_v1beta/auth_provider_credentials_service.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| AuthProviderCredentialsService | ||
| ------------------------------------------------ | ||
|
|
||
| .. automodule:: google.cloud.agentidentitycredentials_v1beta.services.auth_provider_credentials_service | ||
| :members: | ||
| :inherited-members: |
6 changes: 6 additions & 0 deletions
6
...oud-agentidentitycredentials/docs/agentidentitycredentials_v1beta/services_.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| Services for Google Cloud Agentidentitycredentials v1beta API | ||
| ============================================================= | ||
| .. toctree:: | ||
| :maxdepth: 2 | ||
|
|
||
| auth_provider_credentials_service |
6 changes: 6 additions & 0 deletions
6
...-cloud-agentidentitycredentials/docs/agentidentitycredentials_v1beta/types_.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| Types for Google Cloud Agentidentitycredentials v1beta API | ||
| ========================================================== | ||
|
|
||
| .. automodule:: google.cloud.agentidentitycredentials_v1beta.types | ||
| :members: | ||
| :show-inheritance: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
129 changes: 129 additions & 0 deletions
129
...e-cloud-agentidentitycredentials/google/cloud/agentidentitycredentials_v1beta/__init__.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,129 @@ | ||
| # -*- coding: utf-8 -*- | ||
| # Copyright 2026 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. | ||
| # | ||
| import sys | ||
|
|
||
| import google.api_core as api_core | ||
|
|
||
| from google.cloud.agentidentitycredentials_v1beta import ( | ||
| gapic_version as package_version, | ||
| ) | ||
|
|
||
| __version__ = package_version.__version__ | ||
|
|
||
| from importlib import metadata | ||
|
|
||
| from .services.auth_provider_credentials_service import ( | ||
| AuthProviderCredentialsServiceAsyncClient, | ||
| AuthProviderCredentialsServiceClient, | ||
| ) | ||
| from .types.auth_provider_credentials_service import ( | ||
| FinalizeCredentialsRequest, | ||
| FinalizeCredentialsResponse, | ||
| RetrieveCredentialsRequest, | ||
| RetrieveCredentialsResponse, | ||
| ) | ||
|
|
||
| if hasattr(api_core, "check_python_version") and hasattr( | ||
| api_core, "check_dependency_versions" | ||
| ): # pragma: NO COVER | ||
| api_core.check_python_version("google.cloud.agentidentitycredentials_v1beta") # type: ignore | ||
| api_core.check_dependency_versions("google.cloud.agentidentitycredentials_v1beta") # type: ignore | ||
| else: # pragma: NO COVER | ||
| # An older version of api_core is installed which does not define the | ||
| # functions above. We do equivalent checks manually. | ||
| try: | ||
| import warnings | ||
|
|
||
| _py_version_str = sys.version.split()[0] | ||
| _package_label = "google.cloud.agentidentitycredentials_v1beta" | ||
| if sys.version_info < (3, 10): | ||
| warnings.warn( | ||
| "You are using a non-supported Python version " | ||
| + f"({_py_version_str}). Google will not post any further " | ||
| + f"updates to {_package_label} supporting this Python version. " | ||
| + "Please upgrade to the latest Python version, or at " | ||
| + f"least to Python 3.10, and then update {_package_label}.", | ||
| FutureWarning, | ||
| ) | ||
|
|
||
| def parse_version_to_tuple(version_string: str): | ||
| """Safely converts a semantic version string to a comparable tuple of integers. | ||
| Example: "6.33.5" -> (6, 33, 5) | ||
| Ignores non-numeric parts and handles common version formats. | ||
| Args: | ||
| version_string: Version string in the format "x.y.z" or "x.y.z<suffix>" | ||
| Returns: | ||
| Tuple of integers for the parsed version string. | ||
| """ | ||
| parts = [] | ||
| for part in version_string.split("."): | ||
| try: | ||
| parts.append(int(part)) | ||
| except ValueError: | ||
| # If it's a non-numeric part (e.g., '1.0.0b1' -> 'b1'), stop here. | ||
| # This is a simplification compared to 'packaging.parse_version', but sufficient | ||
| # for comparing strictly numeric semantic versions. | ||
| break | ||
| return tuple(parts) | ||
|
|
||
| def _get_version(dependency_name): | ||
| try: | ||
| version_string: str = metadata.version(dependency_name) | ||
| parsed_version = parse_version_to_tuple(version_string) | ||
| return (parsed_version, version_string) | ||
| except Exception: | ||
| # Catch exceptions from metadata.version() (e.g., PackageNotFoundError) | ||
| # or errors during parse_version_to_tuple | ||
| return (None, "--") | ||
|
|
||
| _dependency_package = "google.protobuf" | ||
| _next_supported_version = "6.33.5" | ||
| _next_supported_version_tuple = (6, 33, 5) | ||
| _recommendation = " (we recommend 7.x)" | ||
| (_version_used, _version_used_string) = _get_version(_dependency_package) | ||
| if _version_used and _version_used < _next_supported_version_tuple: | ||
| warnings.warn( | ||
| f"Package {_package_label} depends on " | ||
| + f"{_dependency_package}, currently installed at version " | ||
| + f"{_version_used_string}. Future updates to " | ||
| + f"{_package_label} will require {_dependency_package} at " | ||
| + f"version {_next_supported_version} or higher{_recommendation}." | ||
| + " Please ensure " | ||
| + "that either (a) your Python environment doesn't pin the " | ||
| + f"version of {_dependency_package}, so that updates to " | ||
| + f"{_package_label} can require the higher version, or " | ||
| + "(b) you manually update your Python environment to use at " | ||
| + f"least version {_next_supported_version} of " | ||
| + f"{_dependency_package}.", | ||
| FutureWarning, | ||
| ) | ||
| except Exception: | ||
| warnings.warn( | ||
| "Could not determine the version of Python " | ||
| + "currently being used. To continue receiving " | ||
| + "updates for {_package_label}, ensure you are " | ||
| + "using a supported version of Python; see " | ||
| + "https://devguide.python.org/versions/" | ||
| ) | ||
|
|
||
| __all__ = ( | ||
| "AuthProviderCredentialsServiceAsyncClient", | ||
| "AuthProviderCredentialsServiceClient", | ||
| "FinalizeCredentialsRequest", | ||
| "FinalizeCredentialsResponse", | ||
| "RetrieveCredentialsRequest", | ||
| "RetrieveCredentialsResponse", | ||
| ) |
58 changes: 58 additions & 0 deletions
58
...agentidentitycredentials/google/cloud/agentidentitycredentials_v1beta/gapic_metadata.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| { | ||
| "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", | ||
| "language": "python", | ||
| "libraryPackage": "google.cloud.agentidentitycredentials_v1beta", | ||
| "protoPackage": "google.cloud.agentidentitycredentials.v1beta", | ||
| "schema": "1.0", | ||
| "services": { | ||
| "AuthProviderCredentialsService": { | ||
| "clients": { | ||
| "grpc": { | ||
| "libraryClient": "AuthProviderCredentialsServiceClient", | ||
| "rpcs": { | ||
| "FinalizeCredentials": { | ||
| "methods": [ | ||
| "finalize_credentials" | ||
| ] | ||
| }, | ||
| "RetrieveCredentials": { | ||
| "methods": [ | ||
| "retrieve_credentials" | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
| "grpc-async": { | ||
| "libraryClient": "AuthProviderCredentialsServiceAsyncClient", | ||
| "rpcs": { | ||
| "FinalizeCredentials": { | ||
| "methods": [ | ||
| "finalize_credentials" | ||
| ] | ||
| }, | ||
| "RetrieveCredentials": { | ||
| "methods": [ | ||
| "retrieve_credentials" | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
| "rest": { | ||
| "libraryClient": "AuthProviderCredentialsServiceClient", | ||
| "rpcs": { | ||
| "FinalizeCredentials": { | ||
| "methods": [ | ||
| "finalize_credentials" | ||
| ] | ||
| }, | ||
| "RetrieveCredentials": { | ||
| "methods": [ | ||
| "retrieve_credentials" | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
16 changes: 16 additions & 0 deletions
16
...ud-agentidentitycredentials/google/cloud/agentidentitycredentials_v1beta/gapic_version.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| # -*- coding: utf-8 -*- | ||
| # Copyright 2026 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.1.0" # {x-release-please-version} |
2 changes: 2 additions & 0 deletions
2
...ogle-cloud-agentidentitycredentials/google/cloud/agentidentitycredentials_v1beta/py.typed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # Marker file for PEP 561. | ||
| # The google-cloud-agentidentitycredentials package uses inline types. |
15 changes: 15 additions & 0 deletions
15
...gentidentitycredentials/google/cloud/agentidentitycredentials_v1beta/services/__init__.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # -*- coding: utf-8 -*- | ||
| # Copyright 2026 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. | ||
| # |
22 changes: 22 additions & 0 deletions
22
...ud/agentidentitycredentials_v1beta/services/auth_provider_credentials_service/__init__.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| # -*- coding: utf-8 -*- | ||
| # Copyright 2026 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 .async_client import AuthProviderCredentialsServiceAsyncClient | ||
| from .client import AuthProviderCredentialsServiceClient | ||
|
|
||
| __all__ = ( | ||
| "AuthProviderCredentialsServiceClient", | ||
| "AuthProviderCredentialsServiceAsyncClient", | ||
| ) |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The addition of a second
API Referenceheader creates a duplicate section in the documentation, which can cause Sphinx build warnings or errors. Instead of creating a new section, thev1betaservices and types should be listed under the existingtoctreeof the mainAPI Referencesection.