Skip to content

Commit 8174de5

Browse files
committed
chore: generated changes
1 parent 60b2bfa commit 8174de5

File tree

135 files changed

+723
-77
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+723
-77
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[run]
2+
branch = True
3+
4+
[report]
5+
show_missing = True
6+
omit =
7+
google/cloud/spanner/__init__.py
8+
google/cloud/spanner/gapic_version.py
9+
exclude_lines =
10+
# Re-enable the standard pragma
11+
pragma: NO COVER
12+
# Ignore debug-only repr
13+
def __repr__
Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2025 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+
from google.cloud.spanner import gapic_version as package_version
17+
18+
__version__ = package_version.__version__
19+
20+
21+
from google.cloud.spanner_v1.services.spanner.async_client import SpannerAsyncClient
22+
from google.cloud.spanner_v1.services.spanner.client import SpannerClient
23+
from google.cloud.spanner_v1.types.change_stream import ChangeStreamRecord
24+
from google.cloud.spanner_v1.types.commit_response import CommitResponse
25+
from google.cloud.spanner_v1.types.keys import KeyRange, KeySet
26+
from google.cloud.spanner_v1.types.location import (
27+
CacheUpdate,
28+
Group,
29+
KeyRecipe,
30+
Range,
31+
RecipeList,
32+
RoutingHint,
33+
Tablet,
34+
)
35+
from google.cloud.spanner_v1.types.mutation import Mutation
36+
from google.cloud.spanner_v1.types.query_plan import (
37+
PlanNode,
38+
QueryAdvisorResult,
39+
QueryPlan,
40+
)
41+
from google.cloud.spanner_v1.types.result_set import (
42+
PartialResultSet,
43+
ResultSet,
44+
ResultSetMetadata,
45+
ResultSetStats,
46+
)
47+
from google.cloud.spanner_v1.types.spanner import (
48+
BatchCreateSessionsRequest,
49+
BatchCreateSessionsResponse,
50+
BatchWriteRequest,
51+
BatchWriteResponse,
52+
BeginTransactionRequest,
53+
CommitRequest,
54+
CreateSessionRequest,
55+
DeleteSessionRequest,
56+
DirectedReadOptions,
57+
ExecuteBatchDmlRequest,
58+
ExecuteBatchDmlResponse,
59+
ExecuteSqlRequest,
60+
GetSessionRequest,
61+
ListSessionsRequest,
62+
ListSessionsResponse,
63+
Partition,
64+
PartitionOptions,
65+
PartitionQueryRequest,
66+
PartitionReadRequest,
67+
PartitionResponse,
68+
ReadRequest,
69+
RequestOptions,
70+
RollbackRequest,
71+
Session,
72+
)
73+
from google.cloud.spanner_v1.types.transaction import (
74+
MultiplexedSessionPrecommitToken,
75+
Transaction,
76+
TransactionOptions,
77+
TransactionSelector,
78+
)
79+
from google.cloud.spanner_v1.types.type import (
80+
StructType,
81+
Type,
82+
TypeAnnotationCode,
83+
TypeCode,
84+
)
85+
86+
__all__ = (
87+
"SpannerClient",
88+
"SpannerAsyncClient",
89+
"ChangeStreamRecord",
90+
"CommitResponse",
91+
"KeyRange",
92+
"KeySet",
93+
"CacheUpdate",
94+
"Group",
95+
"KeyRecipe",
96+
"Range",
97+
"RecipeList",
98+
"RoutingHint",
99+
"Tablet",
100+
"Mutation",
101+
"PlanNode",
102+
"QueryAdvisorResult",
103+
"QueryPlan",
104+
"PartialResultSet",
105+
"ResultSet",
106+
"ResultSetMetadata",
107+
"ResultSetStats",
108+
"BatchCreateSessionsRequest",
109+
"BatchCreateSessionsResponse",
110+
"BatchWriteRequest",
111+
"BatchWriteResponse",
112+
"BeginTransactionRequest",
113+
"CommitRequest",
114+
"CreateSessionRequest",
115+
"DeleteSessionRequest",
116+
"DirectedReadOptions",
117+
"ExecuteBatchDmlRequest",
118+
"ExecuteBatchDmlResponse",
119+
"ExecuteSqlRequest",
120+
"GetSessionRequest",
121+
"ListSessionsRequest",
122+
"ListSessionsResponse",
123+
"Partition",
124+
"PartitionOptions",
125+
"PartitionQueryRequest",
126+
"PartitionReadRequest",
127+
"PartitionResponse",
128+
"ReadRequest",
129+
"RequestOptions",
130+
"RollbackRequest",
131+
"Session",
132+
"MultiplexedSessionPrecommitToken",
133+
"Transaction",
134+
"TransactionOptions",
135+
"TransactionSelector",
136+
"StructType",
137+
"Type",
138+
"TypeAnnotationCode",
139+
"TypeCode",
140+
)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2025 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__ = "3.63.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-spanner package uses inline types.
Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2025 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+
from google.cloud.spanner_admin_database import gapic_version as package_version
17+
18+
__version__ = package_version.__version__
19+
20+
21+
from google.cloud.spanner_admin_database_v1.services.database_admin.async_client import (
22+
DatabaseAdminAsyncClient,
23+
)
24+
from google.cloud.spanner_admin_database_v1.services.database_admin.client import (
25+
DatabaseAdminClient,
26+
)
27+
from google.cloud.spanner_admin_database_v1.types.backup import (
28+
Backup,
29+
BackupInfo,
30+
BackupInstancePartition,
31+
CopyBackupEncryptionConfig,
32+
CopyBackupMetadata,
33+
CopyBackupRequest,
34+
CreateBackupEncryptionConfig,
35+
CreateBackupMetadata,
36+
CreateBackupRequest,
37+
DeleteBackupRequest,
38+
FullBackupSpec,
39+
GetBackupRequest,
40+
IncrementalBackupSpec,
41+
ListBackupOperationsRequest,
42+
ListBackupOperationsResponse,
43+
ListBackupsRequest,
44+
ListBackupsResponse,
45+
UpdateBackupRequest,
46+
)
47+
from google.cloud.spanner_admin_database_v1.types.backup_schedule import (
48+
BackupSchedule,
49+
BackupScheduleSpec,
50+
CreateBackupScheduleRequest,
51+
CrontabSpec,
52+
DeleteBackupScheduleRequest,
53+
GetBackupScheduleRequest,
54+
ListBackupSchedulesRequest,
55+
ListBackupSchedulesResponse,
56+
UpdateBackupScheduleRequest,
57+
)
58+
from google.cloud.spanner_admin_database_v1.types.common import (
59+
DatabaseDialect,
60+
EncryptionConfig,
61+
EncryptionInfo,
62+
OperationProgress,
63+
)
64+
from google.cloud.spanner_admin_database_v1.types.spanner_database_admin import (
65+
AddSplitPointsRequest,
66+
AddSplitPointsResponse,
67+
CreateDatabaseMetadata,
68+
CreateDatabaseRequest,
69+
Database,
70+
DatabaseRole,
71+
DdlStatementActionInfo,
72+
DropDatabaseRequest,
73+
GetDatabaseDdlRequest,
74+
GetDatabaseDdlResponse,
75+
GetDatabaseRequest,
76+
InternalUpdateGraphOperationRequest,
77+
InternalUpdateGraphOperationResponse,
78+
ListDatabaseOperationsRequest,
79+
ListDatabaseOperationsResponse,
80+
ListDatabaseRolesRequest,
81+
ListDatabaseRolesResponse,
82+
ListDatabasesRequest,
83+
ListDatabasesResponse,
84+
OptimizeRestoredDatabaseMetadata,
85+
RestoreDatabaseEncryptionConfig,
86+
RestoreDatabaseMetadata,
87+
RestoreDatabaseRequest,
88+
RestoreInfo,
89+
RestoreSourceType,
90+
SplitPoints,
91+
UpdateDatabaseDdlMetadata,
92+
UpdateDatabaseDdlRequest,
93+
UpdateDatabaseMetadata,
94+
UpdateDatabaseRequest,
95+
)
96+
97+
__all__ = (
98+
"DatabaseAdminClient",
99+
"DatabaseAdminAsyncClient",
100+
"Backup",
101+
"BackupInfo",
102+
"BackupInstancePartition",
103+
"CopyBackupEncryptionConfig",
104+
"CopyBackupMetadata",
105+
"CopyBackupRequest",
106+
"CreateBackupEncryptionConfig",
107+
"CreateBackupMetadata",
108+
"CreateBackupRequest",
109+
"DeleteBackupRequest",
110+
"FullBackupSpec",
111+
"GetBackupRequest",
112+
"IncrementalBackupSpec",
113+
"ListBackupOperationsRequest",
114+
"ListBackupOperationsResponse",
115+
"ListBackupsRequest",
116+
"ListBackupsResponse",
117+
"UpdateBackupRequest",
118+
"BackupSchedule",
119+
"BackupScheduleSpec",
120+
"CreateBackupScheduleRequest",
121+
"CrontabSpec",
122+
"DeleteBackupScheduleRequest",
123+
"GetBackupScheduleRequest",
124+
"ListBackupSchedulesRequest",
125+
"ListBackupSchedulesResponse",
126+
"UpdateBackupScheduleRequest",
127+
"EncryptionConfig",
128+
"EncryptionInfo",
129+
"OperationProgress",
130+
"DatabaseDialect",
131+
"AddSplitPointsRequest",
132+
"AddSplitPointsResponse",
133+
"CreateDatabaseMetadata",
134+
"CreateDatabaseRequest",
135+
"Database",
136+
"DatabaseRole",
137+
"DdlStatementActionInfo",
138+
"DropDatabaseRequest",
139+
"GetDatabaseDdlRequest",
140+
"GetDatabaseDdlResponse",
141+
"GetDatabaseRequest",
142+
"InternalUpdateGraphOperationRequest",
143+
"InternalUpdateGraphOperationResponse",
144+
"ListDatabaseOperationsRequest",
145+
"ListDatabaseOperationsResponse",
146+
"ListDatabaseRolesRequest",
147+
"ListDatabaseRolesResponse",
148+
"ListDatabasesRequest",
149+
"ListDatabasesResponse",
150+
"OptimizeRestoredDatabaseMetadata",
151+
"RestoreDatabaseEncryptionConfig",
152+
"RestoreDatabaseMetadata",
153+
"RestoreDatabaseRequest",
154+
"RestoreInfo",
155+
"SplitPoints",
156+
"UpdateDatabaseDdlMetadata",
157+
"UpdateDatabaseDdlRequest",
158+
"UpdateDatabaseMetadata",
159+
"UpdateDatabaseRequest",
160+
"RestoreSourceType",
161+
)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2025 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__ = "3.63.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-spanner-admin-database package uses inline types.

packages/google-cloud-spanner/google/cloud/spanner_admin_database_v1/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
# this code path once we drop support for Python 3.7
2929
import importlib_metadata as metadata
3030

31+
3132
from .services.database_admin import DatabaseAdminAsyncClient, DatabaseAdminClient
3233
from .types.backup import (
3334
Backup,

packages/google-cloud-spanner/google/cloud/spanner_admin_database_v1/services/database_admin/client.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -810,11 +810,9 @@ def __init__(
810810

811811
universe_domain_opt = getattr(self._client_options, "universe_domain", None)
812812

813-
(
814-
self._use_client_cert,
815-
self._use_mtls_endpoint,
816-
self._universe_domain_env,
817-
) = DatabaseAdminClient._read_environment_variables()
813+
self._use_client_cert, self._use_mtls_endpoint, self._universe_domain_env = (
814+
DatabaseAdminClient._read_environment_variables()
815+
)
818816
self._client_cert_source = DatabaseAdminClient._get_client_cert_source(
819817
self._client_options.client_cert_source, self._use_client_cert
820818
)

packages/google-cloud-spanner/google/cloud/spanner_admin_database_v1/types/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@
4444
ListBackupSchedulesResponse,
4545
UpdateBackupScheduleRequest,
4646
)
47-
from .common import DatabaseDialect, EncryptionConfig, EncryptionInfo, OperationProgress
47+
from .common import (
48+
DatabaseDialect,
49+
EncryptionConfig,
50+
EncryptionInfo,
51+
OperationProgress,
52+
)
4853
from .spanner_database_admin import (
4954
AddSplitPointsRequest,
5055
AddSplitPointsResponse,

0 commit comments

Comments
 (0)