Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit c3ea54e

Browse files
authored
chore: librarian generate pull request: 20260226T204943Z (#1301)
PR created by the Librarian CLI to generate Cloud Client Libraries code from protos. BEGIN_COMMIT BEGIN_NESTED_COMMIT feat: add TieredStorageConfig to table admin api PiperOrigin-RevId: 863493708 Library-IDs: google-cloud-bigtable Source-link: [googleapis/googleapis@a6cbf809](googleapis/googleapis@a6cbf809) END_NESTED_COMMIT END_COMMIT This pull request is generated with proto changes between [googleapis/googleapis@a17b84ad](googleapis/googleapis@a17b84a) (exclusive) and [googleapis/googleapis@a6cbf809](googleapis/googleapis@a6cbf80) (inclusive). Librarian Version: v0.7.0 Language Image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:b8058df4c45e9a6e07f6b4d65b458d0d059241dd34c814f151c8bf6b89211209
1 parent 9f7ec2e commit c3ea54e

File tree

7 files changed

+78
-3
lines changed

7 files changed

+78
-3
lines changed

.librarian/generator-input/noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
UNIT_TEST_EXTRAS: List[str] = []
6060
UNIT_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {}
6161

62-
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.9", "3.14"]
62+
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.10", "3.14"]
6363
SYSTEM_TEST_STANDARD_DEPENDENCIES: List[str] = [
6464
"mock",
6565
"pytest",
@@ -79,7 +79,6 @@
7979

8080
# 'docfx' is excluded since it only needs to run in 'docs-presubmit'
8181
nox.options.sessions = [
82-
"unit-3.9",
8382
"unit-3.10",
8483
"unit-3.11",
8584
"unit-3.12",
@@ -513,6 +512,7 @@ def prerelease_deps(session, protobuf_implementation):
513512
# Remaining dependencies
514513
other_deps = [
515514
"requests",
515+
"cryptography",
516516
]
517517
session.install(*other_deps)
518518

.librarian/state.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-li
22
libraries:
33
- id: google-cloud-bigtable
44
version: 2.35.0
5-
last_generated_commit: a17b84add8318f780fcc8a027815d5fee644b9f7
5+
last_generated_commit: 9637e50bc0ff6a5e8944980aaf6a2b7f34a90910
66
apis:
77
- path: google/bigtable/v2
88
service_config: bigtable_v2.yaml

google/cloud/bigtable_admin/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,8 @@
316316
from google.cloud.bigtable_admin_v2.types.table import SchemaBundle
317317
from google.cloud.bigtable_admin_v2.types.table import Snapshot
318318
from google.cloud.bigtable_admin_v2.types.table import Table
319+
from google.cloud.bigtable_admin_v2.types.table import TieredStorageConfig
320+
from google.cloud.bigtable_admin_v2.types.table import TieredStorageRule
319321
from google.cloud.bigtable_admin_v2.types.table import RestoreSourceType
320322
from google.cloud.bigtable_admin_v2.types.types import Type
321323

@@ -441,6 +443,8 @@
441443
"SchemaBundle",
442444
"Snapshot",
443445
"Table",
446+
"TieredStorageConfig",
447+
"TieredStorageRule",
444448
"RestoreSourceType",
445449
"Type",
446450
)

google/cloud/bigtable_admin_v2/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@
150150
from .types.table import SchemaBundle
151151
from .types.table import Snapshot
152152
from .types.table import Table
153+
from .types.table import TieredStorageConfig
154+
from .types.table import TieredStorageRule
153155
from .types.table import RestoreSourceType
154156
from .types.types import Type
155157

@@ -353,6 +355,8 @@ def _get_version(dependency_name):
353355
"StandardReadRemoteWrites",
354356
"StorageType",
355357
"Table",
358+
"TieredStorageConfig",
359+
"TieredStorageRule",
356360
"Type",
357361
"UndeleteTableMetadata",
358362
"UndeleteTableRequest",

google/cloud/bigtable_admin_v2/types/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@
139139
SchemaBundle,
140140
Snapshot,
141141
Table,
142+
TieredStorageConfig,
143+
TieredStorageRule,
142144
RestoreSourceType,
143145
)
144146
from .types import (
@@ -263,6 +265,8 @@
263265
"SchemaBundle",
264266
"Snapshot",
265267
"Table",
268+
"TieredStorageConfig",
269+
"TieredStorageRule",
266270
"RestoreSourceType",
267271
"Type",
268272
)

google/cloud/bigtable_admin_v2/types/table.py

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
"Snapshot",
4141
"Backup",
4242
"BackupInfo",
43+
"TieredStorageConfig",
44+
"TieredStorageRule",
4345
"ProtoSchema",
4446
"SchemaBundle",
4547
},
@@ -166,6 +168,17 @@ class Table(proto.Message):
166168
disabled.
167169
168170
This field is a member of `oneof`_ ``automated_backup_config``.
171+
tiered_storage_config (google.cloud.bigtable_admin_v2.types.TieredStorageConfig):
172+
Rules to specify what data is stored in each
173+
storage tier. Different tiers store data
174+
differently, providing different trade-offs
175+
between cost and performance. Different parts of
176+
a table can be stored separately on different
177+
tiers.
178+
If a config is specified, tiered storage is
179+
enabled for this table. Otherwise, tiered
180+
storage is disabled.
181+
Only SSD instances can configure tiered storage.
169182
row_key_schema (google.cloud.bigtable_admin_v2.types.Type.Struct):
170183
The row key schema for this table. The schema is used to
171184
decode the raw row key bytes into a structured format. The
@@ -399,6 +412,11 @@ class AutomatedBackupPolicy(proto.Message):
399412
oneof="automated_backup_config",
400413
message=AutomatedBackupPolicy,
401414
)
415+
tiered_storage_config: "TieredStorageConfig" = proto.Field(
416+
proto.MESSAGE,
417+
number=14,
418+
message="TieredStorageConfig",
419+
)
402420
row_key_schema: types.Type.Struct = proto.Field(
403421
proto.MESSAGE,
404422
number=15,
@@ -1028,6 +1046,50 @@ class BackupInfo(proto.Message):
10281046
)
10291047

10301048

1049+
class TieredStorageConfig(proto.Message):
1050+
r"""Config for tiered storage.
1051+
A valid config must have a valid TieredStorageRule. Otherwise
1052+
the whole TieredStorageConfig must be unset.
1053+
By default all data is stored in the SSD tier (only SSD
1054+
instances can configure tiered storage).
1055+
1056+
Attributes:
1057+
infrequent_access (google.cloud.bigtable_admin_v2.types.TieredStorageRule):
1058+
Rule to specify what data is stored in the
1059+
infrequent access(IA) tier. The IA tier allows
1060+
storing more data per node with reduced
1061+
performance.
1062+
"""
1063+
1064+
infrequent_access: "TieredStorageRule" = proto.Field(
1065+
proto.MESSAGE,
1066+
number=1,
1067+
message="TieredStorageRule",
1068+
)
1069+
1070+
1071+
class TieredStorageRule(proto.Message):
1072+
r"""Rule to specify what data is stored in a storage tier.
1073+
1074+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
1075+
1076+
Attributes:
1077+
include_if_older_than (google.protobuf.duration_pb2.Duration):
1078+
Include cells older than the given age.
1079+
For the infrequent access tier, this value must
1080+
be at least 30 days.
1081+
1082+
This field is a member of `oneof`_ ``rule``.
1083+
"""
1084+
1085+
include_if_older_than: duration_pb2.Duration = proto.Field(
1086+
proto.MESSAGE,
1087+
number=1,
1088+
oneof="rule",
1089+
message=duration_pb2.Duration,
1090+
)
1091+
1092+
10311093
class ProtoSchema(proto.Message):
10321094
r"""Represents a protobuf schema.
10331095

tests/unit/gapic/bigtable_admin_v2/test_bigtable_table_admin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23509,6 +23509,7 @@ def test_update_table_rest_call_success(request_type):
2350923509
"change_stream_config": {"retention_period": {"seconds": 751, "nanos": 543}},
2351023510
"deletion_protection": True,
2351123511
"automated_backup_policy": {"retention_period": {}, "frequency": {}},
23512+
"tiered_storage_config": {"infrequent_access": {"include_if_older_than": {}}},
2351223513
"row_key_schema": {
2351323514
"fields": [
2351423515
{

0 commit comments

Comments
 (0)