Skip to content

Commit b27bd21

Browse files
committed
feat(google/cloud/agentidentitycredentials/v1beta): add new v1beta1 version
1 parent 6ab2fe1 commit b27bd21

30 files changed

Lines changed: 8419 additions & 0 deletions

librarian.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ libraries:
290290
version: 0.1.0
291291
apis:
292292
- path: google/cloud/agentidentitycredentials/v1
293+
- path: google/cloud/agentidentitycredentials/v1beta
293294
copyright_year: "2026"
294295
python:
295296
default_version: v1
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
AuthProviderCredentialsService
2+
------------------------------------------------
3+
4+
.. automodule:: google.cloud.agentidentitycredentials_v1beta.services.auth_provider_credentials_service
5+
:members:
6+
:inherited-members:
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Services for Google Cloud Agentidentitycredentials v1beta API
2+
=============================================================
3+
.. toctree::
4+
:maxdepth: 2
5+
6+
auth_provider_credentials_service
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Types for Google Cloud Agentidentitycredentials v1beta API
2+
==========================================================
3+
4+
.. automodule:: google.cloud.agentidentitycredentials_v1beta.types
5+
:members:
6+
:show-inheritance:

packages/google-cloud-agentidentitycredentials/docs/index.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
.. include:: multiprocessing.rst
44

5+
This package includes clients for multiple versions of agentidentitycredentials.googleapis.com.
6+
By default, you will get version ``agentidentitycredentials_v1``.
7+
58

69
API Reference
710
-------------
@@ -11,6 +14,14 @@ API Reference
1114
agentidentitycredentials_v1/services_
1215
agentidentitycredentials_v1/types_
1316

17+
API Reference
18+
-------------
19+
.. toctree::
20+
:maxdepth: 2
21+
22+
agentidentitycredentials_v1beta/services_
23+
agentidentitycredentials_v1beta/types_
24+
1425

1526
Changelog
1627
---------
Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2026 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
import sys
17+
18+
import google.api_core as api_core
19+
20+
from google.cloud.agentidentitycredentials_v1beta import (
21+
gapic_version as package_version,
22+
)
23+
24+
__version__ = package_version.__version__
25+
26+
from importlib import metadata
27+
28+
from .services.auth_provider_credentials_service import (
29+
AuthProviderCredentialsServiceAsyncClient,
30+
AuthProviderCredentialsServiceClient,
31+
)
32+
from .types.auth_provider_credentials_service import (
33+
FinalizeCredentialsRequest,
34+
FinalizeCredentialsResponse,
35+
RetrieveCredentialsRequest,
36+
RetrieveCredentialsResponse,
37+
)
38+
39+
if hasattr(api_core, "check_python_version") and hasattr(
40+
api_core, "check_dependency_versions"
41+
): # pragma: NO COVER
42+
api_core.check_python_version("google.cloud.agentidentitycredentials_v1beta") # type: ignore
43+
api_core.check_dependency_versions("google.cloud.agentidentitycredentials_v1beta") # type: ignore
44+
else: # pragma: NO COVER
45+
# An older version of api_core is installed which does not define the
46+
# functions above. We do equivalent checks manually.
47+
try:
48+
import warnings
49+
50+
_py_version_str = sys.version.split()[0]
51+
_package_label = "google.cloud.agentidentitycredentials_v1beta"
52+
if sys.version_info < (3, 10):
53+
warnings.warn(
54+
"You are using a non-supported Python version "
55+
+ f"({_py_version_str}). Google will not post any further "
56+
+ f"updates to {_package_label} supporting this Python version. "
57+
+ "Please upgrade to the latest Python version, or at "
58+
+ f"least to Python 3.10, and then update {_package_label}.",
59+
FutureWarning,
60+
)
61+
62+
def parse_version_to_tuple(version_string: str):
63+
"""Safely converts a semantic version string to a comparable tuple of integers.
64+
Example: "6.33.5" -> (6, 33, 5)
65+
Ignores non-numeric parts and handles common version formats.
66+
Args:
67+
version_string: Version string in the format "x.y.z" or "x.y.z<suffix>"
68+
Returns:
69+
Tuple of integers for the parsed version string.
70+
"""
71+
parts = []
72+
for part in version_string.split("."):
73+
try:
74+
parts.append(int(part))
75+
except ValueError:
76+
# If it's a non-numeric part (e.g., '1.0.0b1' -> 'b1'), stop here.
77+
# This is a simplification compared to 'packaging.parse_version', but sufficient
78+
# for comparing strictly numeric semantic versions.
79+
break
80+
return tuple(parts)
81+
82+
def _get_version(dependency_name):
83+
try:
84+
version_string: str = metadata.version(dependency_name)
85+
parsed_version = parse_version_to_tuple(version_string)
86+
return (parsed_version, version_string)
87+
except Exception:
88+
# Catch exceptions from metadata.version() (e.g., PackageNotFoundError)
89+
# or errors during parse_version_to_tuple
90+
return (None, "--")
91+
92+
_dependency_package = "google.protobuf"
93+
_next_supported_version = "6.33.5"
94+
_next_supported_version_tuple = (6, 33, 5)
95+
_recommendation = " (we recommend 7.x)"
96+
(_version_used, _version_used_string) = _get_version(_dependency_package)
97+
if _version_used and _version_used < _next_supported_version_tuple:
98+
warnings.warn(
99+
f"Package {_package_label} depends on "
100+
+ f"{_dependency_package}, currently installed at version "
101+
+ f"{_version_used_string}. Future updates to "
102+
+ f"{_package_label} will require {_dependency_package} at "
103+
+ f"version {_next_supported_version} or higher{_recommendation}."
104+
+ " Please ensure "
105+
+ "that either (a) your Python environment doesn't pin the "
106+
+ f"version of {_dependency_package}, so that updates to "
107+
+ f"{_package_label} can require the higher version, or "
108+
+ "(b) you manually update your Python environment to use at "
109+
+ f"least version {_next_supported_version} of "
110+
+ f"{_dependency_package}.",
111+
FutureWarning,
112+
)
113+
except Exception:
114+
warnings.warn(
115+
"Could not determine the version of Python "
116+
+ "currently being used. To continue receiving "
117+
+ "updates for {_package_label}, ensure you are "
118+
+ "using a supported version of Python; see "
119+
+ "https://devguide.python.org/versions/"
120+
)
121+
122+
__all__ = (
123+
"AuthProviderCredentialsServiceAsyncClient",
124+
"AuthProviderCredentialsServiceClient",
125+
"FinalizeCredentialsRequest",
126+
"FinalizeCredentialsResponse",
127+
"RetrieveCredentialsRequest",
128+
"RetrieveCredentialsResponse",
129+
)
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
3+
"language": "python",
4+
"libraryPackage": "google.cloud.agentidentitycredentials_v1beta",
5+
"protoPackage": "google.cloud.agentidentitycredentials.v1beta",
6+
"schema": "1.0",
7+
"services": {
8+
"AuthProviderCredentialsService": {
9+
"clients": {
10+
"grpc": {
11+
"libraryClient": "AuthProviderCredentialsServiceClient",
12+
"rpcs": {
13+
"FinalizeCredentials": {
14+
"methods": [
15+
"finalize_credentials"
16+
]
17+
},
18+
"RetrieveCredentials": {
19+
"methods": [
20+
"retrieve_credentials"
21+
]
22+
}
23+
}
24+
},
25+
"grpc-async": {
26+
"libraryClient": "AuthProviderCredentialsServiceAsyncClient",
27+
"rpcs": {
28+
"FinalizeCredentials": {
29+
"methods": [
30+
"finalize_credentials"
31+
]
32+
},
33+
"RetrieveCredentials": {
34+
"methods": [
35+
"retrieve_credentials"
36+
]
37+
}
38+
}
39+
},
40+
"rest": {
41+
"libraryClient": "AuthProviderCredentialsServiceClient",
42+
"rpcs": {
43+
"FinalizeCredentials": {
44+
"methods": [
45+
"finalize_credentials"
46+
]
47+
},
48+
"RetrieveCredentials": {
49+
"methods": [
50+
"retrieve_credentials"
51+
]
52+
}
53+
}
54+
}
55+
}
56+
}
57+
}
58+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2026 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
__version__ = "0.1.0" # {x-release-please-version}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Marker file for PEP 561.
2+
# The google-cloud-agentidentitycredentials package uses inline types.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2026 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#

0 commit comments

Comments
 (0)