Skip to content

Commit 33ba3af

Browse files
authored
chore: update googleapis and regenerate (googleapis#17383)
Update googleapis to the latest commit and regenerate all client libraries. This includes googleapis/googleapis@ff15be5 "feat: initial release of the Agent Identity Credentials API (v1)". We can run `librarian add` after this commit.
1 parent 2695aad commit 33ba3af

47 files changed

Lines changed: 5476 additions & 440 deletions

File tree

Some content is hidden

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

librarian.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ version: v0.16.0
1616
repo: googleapis/google-cloud-python
1717
sources:
1818
googleapis:
19-
commit: c73334a47800ba03cc65e46ade96c07f01db3446
20-
sha256: 07be59c8bc1dfc420e352db0528641baa23943e7dd1659acac41ca55969fb259
19+
commit: ff15be54722218705740b9fc6223d264c4cdb6dd
20+
sha256: 13dc3b1a01767be8d486980d3ddcb7fe6f6b89c3da8d41c358d5c2536c86de3c
2121
default:
2222
output: packages
2323
tag_format: '{name}-v{version}'

packages/google-cloud-bigtable/google/cloud/bigtable_v2/services/bigtable/async_client.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -438,11 +438,13 @@ def sample_row_keys(
438438
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
439439
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
440440
) -> Awaitable[AsyncIterable[bigtable.SampleRowKeysResponse]]:
441-
r"""Returns a sample of row keys in the table. The
442-
returned row keys will delimit contiguous sections of
443-
the table of approximately equal size, which can be used
444-
to break up the data for distributed tasks like
445-
mapreduces.
441+
r"""Returns a sample of row keys in the table. The returned row keys
442+
will delimit contiguous sections of the table of approximately
443+
equal size, which can be used to break up the data for
444+
distributed tasks like mapreduces.
445+
446+
If a ``row_range`` is provided in the request, the returned
447+
samples will be restricted to the specified range.
446448
447449
Args:
448450
request (Optional[Union[google.cloud.bigtable_v2.types.SampleRowKeysRequest, dict]]):

packages/google-cloud-bigtable/google/cloud/bigtable_v2/services/bigtable/client.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -928,11 +928,13 @@ def sample_row_keys(
928928
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
929929
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
930930
) -> Iterable[bigtable.SampleRowKeysResponse]:
931-
r"""Returns a sample of row keys in the table. The
932-
returned row keys will delimit contiguous sections of
933-
the table of approximately equal size, which can be used
934-
to break up the data for distributed tasks like
935-
mapreduces.
931+
r"""Returns a sample of row keys in the table. The returned row keys
932+
will delimit contiguous sections of the table of approximately
933+
equal size, which can be used to break up the data for
934+
distributed tasks like mapreduces.
935+
936+
If a ``row_range`` is provided in the request, the returned
937+
samples will be restricted to the specified range.
936938
937939
Args:
938940
request (Union[google.cloud.bigtable_v2.types.SampleRowKeysRequest, dict]):

packages/google-cloud-bigtable/google/cloud/bigtable_v2/services/bigtable/transports/grpc.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -363,11 +363,13 @@ def sample_row_keys(
363363
) -> Callable[[bigtable.SampleRowKeysRequest], bigtable.SampleRowKeysResponse]:
364364
r"""Return a callable for the sample row keys method over gRPC.
365365
366-
Returns a sample of row keys in the table. The
367-
returned row keys will delimit contiguous sections of
368-
the table of approximately equal size, which can be used
369-
to break up the data for distributed tasks like
370-
mapreduces.
366+
Returns a sample of row keys in the table. The returned row keys
367+
will delimit contiguous sections of the table of approximately
368+
equal size, which can be used to break up the data for
369+
distributed tasks like mapreduces.
370+
371+
If a ``row_range`` is provided in the request, the returned
372+
samples will be restricted to the specified range.
371373
372374
Returns:
373375
Callable[[~.SampleRowKeysRequest],

packages/google-cloud-bigtable/google/cloud/bigtable_v2/services/bigtable/transports/grpc_asyncio.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -373,11 +373,13 @@ def sample_row_keys(
373373
]:
374374
r"""Return a callable for the sample row keys method over gRPC.
375375
376-
Returns a sample of row keys in the table. The
377-
returned row keys will delimit contiguous sections of
378-
the table of approximately equal size, which can be used
379-
to break up the data for distributed tasks like
380-
mapreduces.
376+
Returns a sample of row keys in the table. The returned row keys
377+
will delimit contiguous sections of the table of approximately
378+
equal size, which can be used to break up the data for
379+
distributed tasks like mapreduces.
380+
381+
If a ``row_range`` is provided in the request, the returned
382+
samples will be restricted to the specified range.
381383
382384
Returns:
383385
Callable[[~.SampleRowKeysRequest],

packages/google-cloud-bigtable/google/cloud/bigtable_v2/types/bigtable.py

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,11 @@ class SampleRowKeysRequest(proto.Message):
358358
This value specifies routing for replication.
359359
If not specified, the "default" application
360360
profile will be used.
361+
row_range (google.cloud.bigtable_v2.types.RowRange):
362+
Optional. The row range to sample. If not
363+
specified, samples from all rows.
364+
The output will always return the end key in the
365+
range as the last sample returned.
361366
"""
362367

363368
table_name: str = proto.Field(
@@ -376,30 +381,36 @@ class SampleRowKeysRequest(proto.Message):
376381
proto.STRING,
377382
number=2,
378383
)
384+
row_range: data.RowRange = proto.Field(
385+
proto.MESSAGE,
386+
number=6,
387+
message=data.RowRange,
388+
)
379389

380390

381391
class SampleRowKeysResponse(proto.Message):
382392
r"""Response message for Bigtable.SampleRowKeys.
383393
384394
Attributes:
385395
row_key (bytes):
386-
Sorted streamed sequence of sample row keys
387-
in the table. The table might have contents
388-
before the first row key in the list and after
389-
the last one, but a key containing the empty
390-
string indicates "end of table" and will be the
391-
last response given, if present.
392-
Note that row keys in this list may not have
393-
ever been written to or read from, and users
394-
should therefore not make any assumptions about
395-
the row key structure that are specific to their
396-
use case.
396+
Sorted streamed sequence of sample row keys in the table,
397+
restricted to the row_range if specified in the request. The
398+
table might have contents before the first row key in the
399+
list and after the last one, but a key containing the empty
400+
string indicates "end of table" and will be the last
401+
response given, if present and within the row-range
402+
specified in the request. Note that row keys in this list
403+
may not have ever been written to or read from, and users
404+
should therefore not make any assumptions about the row key
405+
structure that are specific to their use case.
397406
offset_bytes (int):
398407
Approximate total storage space used by all rows in the
399-
table which precede ``row_key``. Buffering the contents of
400-
all rows between two subsequent samples would require space
401-
roughly equal to the difference in their ``offset_bytes``
402-
fields.
408+
table which precede ``row_key`` (and if a row-range is
409+
specified in the request, which follow what would have been
410+
the previous sample before the row-range start). Buffering
411+
the contents of all rows between two subsequent samples
412+
would require space roughly equal to the difference in their
413+
``offset_bytes`` fields.
403414
"""
404415

405416
row_key: bytes = proto.Field(

packages/google-cloud-dlp/google/cloud/dlp/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
AnalyzeDataSourceRiskDetails,
3636
AwsAccount,
3737
AwsAccountRegex,
38+
BatchContentItem,
39+
BatchContentLocation,
3840
BigQueryDiscoveryTarget,
3941
BigQueryRegex,
4042
BigQueryRegexes,
@@ -280,6 +282,7 @@
280282
StoredInfoTypeState,
281283
StoredInfoTypeStats,
282284
StoredInfoTypeVersion,
285+
StringValueBatch,
283286
Table,
284287
TableDataProfile,
285288
TableLocation,
@@ -363,6 +366,8 @@
363366
"AnalyzeDataSourceRiskDetails",
364367
"AwsAccount",
365368
"AwsAccountRegex",
369+
"BatchContentItem",
370+
"BatchContentLocation",
366371
"BigQueryDiscoveryTarget",
367372
"BigQueryRegex",
368373
"BigQueryRegexes",
@@ -591,6 +596,7 @@
591596
"StoredInfoTypeConfig",
592597
"StoredInfoTypeStats",
593598
"StoredInfoTypeVersion",
599+
"StringValueBatch",
594600
"Table",
595601
"TableDataProfile",
596602
"TableLocation",

packages/google-cloud-dlp/google/cloud/dlp_v2/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
AnalyzeDataSourceRiskDetails,
4040
AwsAccount,
4141
AwsAccountRegex,
42+
BatchContentItem,
43+
BatchContentLocation,
4244
BigQueryDiscoveryTarget,
4345
BigQueryRegex,
4446
BigQueryRegexes,
@@ -284,6 +286,7 @@
284286
StoredInfoTypeState,
285287
StoredInfoTypeStats,
286288
StoredInfoTypeVersion,
289+
StringValueBatch,
287290
Table,
288291
TableDataProfile,
289292
TableLocation,
@@ -449,6 +452,8 @@ def _get_version(dependency_name):
449452
"AnalyzeDataSourceRiskDetails",
450453
"AwsAccount",
451454
"AwsAccountRegex",
455+
"BatchContentItem",
456+
"BatchContentLocation",
452457
"BigQueryDiscoveryTarget",
453458
"BigQueryField",
454459
"BigQueryKey",
@@ -719,6 +724,7 @@ def _get_version(dependency_name):
719724
"StoredInfoTypeStats",
720725
"StoredInfoTypeVersion",
721726
"StoredType",
727+
"StringValueBatch",
722728
"Table",
723729
"TableDataProfile",
724730
"TableLocation",

packages/google-cloud-dlp/google/cloud/dlp_v2/types/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
AnalyzeDataSourceRiskDetails,
2929
AwsAccount,
3030
AwsAccountRegex,
31+
BatchContentItem,
32+
BatchContentLocation,
3133
BigQueryDiscoveryTarget,
3234
BigQueryRegex,
3335
BigQueryRegexes,
@@ -273,6 +275,7 @@
273275
StoredInfoTypeState,
274276
StoredInfoTypeStats,
275277
StoredInfoTypeVersion,
278+
StringValueBatch,
276279
Table,
277280
TableDataProfile,
278281
TableLocation,
@@ -354,6 +357,8 @@
354357
"AnalyzeDataSourceRiskDetails",
355358
"AwsAccount",
356359
"AwsAccountRegex",
360+
"BatchContentItem",
361+
"BatchContentLocation",
357362
"BigQueryDiscoveryTarget",
358363
"BigQueryRegex",
359364
"BigQueryRegexes",
@@ -582,6 +587,7 @@
582587
"StoredInfoTypeConfig",
583588
"StoredInfoTypeStats",
584589
"StoredInfoTypeVersion",
590+
"StringValueBatch",
585591
"Table",
586592
"TableDataProfile",
587593
"TableLocation",

packages/google-cloud-dlp/google/cloud/dlp_v2/types/dlp.py

Lines changed: 75 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,16 @@
6868
"ContentMetadata",
6969
"Conversation",
7070
"ConversationMessage",
71+
"BatchContentItem",
72+
"StringValueBatch",
7173
"Table",
7274
"KeyValueMetadataProperty",
7375
"InspectResult",
7476
"Finding",
7577
"Location",
7678
"ContentLocation",
7779
"ConversationLocation",
80+
"BatchContentLocation",
7881
"MetadataLocation",
7982
"StorageMetadataLabel",
8083
"KeyValueMetadataLabel",
@@ -1644,6 +1647,10 @@ class ContentItem(proto.Message):
16441647
messages are contiguous and ordered in
16451648
chronological order.
16461649

1650+
This field is a member of `oneof`_ ``data_item``.
1651+
batch_content_item (google.cloud.dlp_v2.types.BatchContentItem):
1652+
Represents a batch of items to inspect.
1653+
16471654
This field is a member of `oneof`_ ``data_item``.
16481655
content_metadata (google.cloud.dlp_v2.types.ContentMetadata):
16491656
User provided metadata for the content.
@@ -1672,6 +1679,12 @@ class ContentItem(proto.Message):
16721679
oneof="data_item",
16731680
message="Conversation",
16741681
)
1682+
batch_content_item: "BatchContentItem" = proto.Field(
1683+
proto.MESSAGE,
1684+
number=8,
1685+
oneof="data_item",
1686+
message="BatchContentItem",
1687+
)
16751688
content_metadata: "ContentMetadata" = proto.Field(
16761689
proto.MESSAGE,
16771690
number=6,
@@ -1725,7 +1738,7 @@ class ConversationMessage(proto.Message):
17251738
message_type (google.cloud.dlp_v2.types.ConversationMessage.MessageType):
17261739
The type of message.
17271740
participant_id (str):
1728-
Optional. The identifier of the participant, for example,
1741+
Optional. The identifier of the participant, for example
17291742
'test-user' or 'gemini'. The participant ID can contain
17301743
lowercase letters, numbers, and hyphens; that is, it must
17311744
match the regular expression:
@@ -1767,6 +1780,42 @@ class MessageType(proto.Enum):
17671780
)
17681781

17691782

1783+
class BatchContentItem(proto.Message):
1784+
r"""Represents a batch of content to inspect or redact.
1785+
1786+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
1787+
1788+
Attributes:
1789+
string_value_batch (google.cloud.dlp_v2.types.StringValueBatch):
1790+
Optional. Represents a batch of string values
1791+
to inspect or redact.
1792+
1793+
This field is a member of `oneof`_ ``batch``.
1794+
"""
1795+
1796+
string_value_batch: "StringValueBatch" = proto.Field(
1797+
proto.MESSAGE,
1798+
number=1,
1799+
oneof="batch",
1800+
message="StringValueBatch",
1801+
)
1802+
1803+
1804+
class StringValueBatch(proto.Message):
1805+
r"""Represents a batch of string values to inspect or redact.
1806+
1807+
Attributes:
1808+
values (MutableSequence[str]):
1809+
Optional. Represents string data to inspect
1810+
or redact.
1811+
"""
1812+
1813+
values: MutableSequence[str] = proto.RepeatedField(
1814+
proto.STRING,
1815+
number=1,
1816+
)
1817+
1818+
17701819
class Table(proto.Message):
17711820
r"""Structured content to inspect. Up to 50,000 ``Value``\ s per request
17721821
allowed. See
@@ -2069,6 +2118,10 @@ class ContentLocation(proto.Message):
20692118
conversation_location (google.cloud.dlp_v2.types.ConversationLocation):
20702119
Location within a conversation.
20712120

2121+
This field is a member of `oneof`_ ``location``.
2122+
batch_content_location (google.cloud.dlp_v2.types.BatchContentLocation):
2123+
Location within a batch of content.
2124+
20722125
This field is a member of `oneof`_ ``location``.
20732126
container_timestamp (google.protobuf.timestamp_pb2.Timestamp):
20742127
Finding container modification timestamp, if applicable. For
@@ -2115,6 +2168,12 @@ class ContentLocation(proto.Message):
21152168
oneof="location",
21162169
message="ConversationLocation",
21172170
)
2171+
batch_content_location: "BatchContentLocation" = proto.Field(
2172+
proto.MESSAGE,
2173+
number=11,
2174+
oneof="location",
2175+
message="BatchContentLocation",
2176+
)
21182177
container_timestamp: timestamp_pb2.Timestamp = proto.Field(
21192178
proto.MESSAGE,
21202179
number=6,
@@ -2168,6 +2227,21 @@ class AllMessages(proto.Message):
21682227
)
21692228

21702229

2230+
class BatchContentLocation(proto.Message):
2231+
r"""Location within a batch of content.
2232+
2233+
Attributes:
2234+
item_index (int):
2235+
Matches an index of a batch item in the batch
2236+
provided in the request.
2237+
"""
2238+
2239+
item_index: int = proto.Field(
2240+
proto.INT32,
2241+
number=1,
2242+
)
2243+
2244+
21712245
class MetadataLocation(proto.Message):
21722246
r"""Metadata Location
21732247

0 commit comments

Comments
 (0)