Skip to content

Commit 96336c5

Browse files
feat: generate libraries
1 parent d0b9c9f commit 96336c5

38 files changed

+12471
-7068
lines changed

.librarian/state.yaml

Lines changed: 4 additions & 2 deletions
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-dlp
44
version: 3.32.0
5-
last_generated_commit: f8776fec04e336527ba7279d960105533a1c4e21
5+
last_generated_commit: c4e80cd2d3321cc37cf1c3713bb02529857728d1
66
apis:
77
- path: google/privacy/dlp/v2
88
service_config: dlp_v2.yaml
@@ -24,9 +24,10 @@ libraries:
2424
tag_format: '{id}-v{version}'
2525
- id: google-cloud-eventarc
2626
version: 1.15.3
27-
last_generated_commit: d300b151a973ce0425ae4ad07b3de957ca31bec6
27+
last_generated_commit: c4e80cd2d3321cc37cf1c3713bb02529857728d1
2828
apis:
2929
- path: google/cloud/eventarc/v1
30+
service_config: eventarc_v1.yaml
3031
source_roots:
3132
- packages/google-cloud-eventarc
3233
preserve_regex:
@@ -48,6 +49,7 @@ libraries:
4849
last_generated_commit: d300b151a973ce0425ae4ad07b3de957ca31bec6
4950
apis:
5051
- path: google/cloud/video/livestream/v1
52+
service_config: livestream_v1.yaml
5153
source_roots:
5254
- packages/google-cloud-video-live-stream
5355
preserve_regex:

packages/google-cloud-eventarc/.OwlBot.yaml

Lines changed: 0 additions & 24 deletions
This file was deleted.

packages/google-cloud-eventarc/google/cloud/eventarc_v1/services/eventarc/async_client.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2459,7 +2459,9 @@ async def get_google_channel_config(
24592459
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
24602460
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
24612461
) -> google_channel_config.GoogleChannelConfig:
2462-
r"""Get a GoogleChannelConfig
2462+
r"""Get a GoogleChannelConfig.
2463+
The name of the GoogleChannelConfig in the response is
2464+
ALWAYS coded with projectID.
24632465
24642466
.. code-block:: python
24652467
@@ -2864,7 +2866,7 @@ async def sample_list_message_buses():
28642866
ListMessageBuses method.
28652867
parent (:class:`str`):
28662868
Required. The parent collection to
2867-
list triggers on.
2869+
list message buses on.
28682870
28692871
This corresponds to the ``parent`` field
28702872
on the ``request`` instance; if ``request`` is provided, this
@@ -3137,7 +3139,7 @@ async def sample_create_message_bus():
31373139
message_bus_id (:class:`str`):
31383140
Required. The user-provided ID to be assigned to the
31393141
MessageBus. It should match the format
3140-
(^\ `a-z <[a-z0-9-]{0,61}[a-z0-9]>`__?$)
3142+
``^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$``.
31413143
31423144
This corresponds to the ``message_bus_id`` field
31433145
on the ``request`` instance; if ``request`` is provided, this
@@ -3813,7 +3815,7 @@ async def sample_create_enrollment():
38133815
enrollment_id (:class:`str`):
38143816
Required. The user-provided ID to be assigned to the
38153817
Enrollment. It should match the format
3816-
(^\ `a-z <[a-z0-9-]{0,61}[a-z0-9]>`__?$).
3818+
``^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$``.
38173819
38183820
This corresponds to the ``enrollment_id`` field
38193821
on the ``request`` instance; if ``request`` is provided, this
@@ -4485,8 +4487,9 @@ async def sample_create_pipeline():
44854487
on the ``request`` instance; if ``request`` is provided, this
44864488
should not be set.
44874489
pipeline_id (:class:`str`):
4488-
Required. The user-provided ID to be
4489-
assigned to the Pipeline.
4490+
Required. The user-provided ID to be assigned to the
4491+
Pipeline. It should match the format
4492+
``^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$``.
44904493
44914494
This corresponds to the ``pipeline_id`` field
44924495
on the ``request`` instance; if ``request`` is provided, this
@@ -5156,7 +5159,7 @@ async def sample_create_google_api_source():
51565159
google_api_source_id (:class:`str`):
51575160
Required. The user-provided ID to be assigned to the
51585161
GoogleApiSource. It should match the format
5159-
(^\ `a-z <[a-z0-9-]{0,61}[a-z0-9]>`__?$).
5162+
``^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$``.
51605163
51615164
This corresponds to the ``google_api_source_id`` field
51625165
on the ``request`` instance; if ``request`` is provided, this

packages/google-cloud-eventarc/google/cloud/eventarc_v1/services/eventarc/client.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3119,7 +3119,9 @@ def get_google_channel_config(
31193119
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
31203120
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
31213121
) -> google_channel_config.GoogleChannelConfig:
3122-
r"""Get a GoogleChannelConfig
3122+
r"""Get a GoogleChannelConfig.
3123+
The name of the GoogleChannelConfig in the response is
3124+
ALWAYS coded with projectID.
31233125
31243126
.. code-block:: python
31253127
@@ -3519,7 +3521,7 @@ def sample_list_message_buses():
35193521
ListMessageBuses method.
35203522
parent (str):
35213523
Required. The parent collection to
3522-
list triggers on.
3524+
list message buses on.
35233525
35243526
This corresponds to the ``parent`` field
35253527
on the ``request`` instance; if ``request`` is provided, this
@@ -3788,7 +3790,7 @@ def sample_create_message_bus():
37883790
message_bus_id (str):
37893791
Required. The user-provided ID to be assigned to the
37903792
MessageBus. It should match the format
3791-
(^\ `a-z <[a-z0-9-]{0,61}[a-z0-9]>`__?$)
3793+
``^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$``.
37923794
37933795
This corresponds to the ``message_bus_id`` field
37943796
on the ``request`` instance; if ``request`` is provided, this
@@ -4449,7 +4451,7 @@ def sample_create_enrollment():
44494451
enrollment_id (str):
44504452
Required. The user-provided ID to be assigned to the
44514453
Enrollment. It should match the format
4452-
(^\ `a-z <[a-z0-9-]{0,61}[a-z0-9]>`__?$).
4454+
``^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$``.
44534455
44544456
This corresponds to the ``enrollment_id`` field
44554457
on the ``request`` instance; if ``request`` is provided, this
@@ -5106,8 +5108,9 @@ def sample_create_pipeline():
51065108
on the ``request`` instance; if ``request`` is provided, this
51075109
should not be set.
51085110
pipeline_id (str):
5109-
Required. The user-provided ID to be
5110-
assigned to the Pipeline.
5111+
Required. The user-provided ID to be assigned to the
5112+
Pipeline. It should match the format
5113+
``^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$``.
51115114
51125115
This corresponds to the ``pipeline_id`` field
51135116
on the ``request`` instance; if ``request`` is provided, this
@@ -5762,7 +5765,7 @@ def sample_create_google_api_source():
57625765
google_api_source_id (str):
57635766
Required. The user-provided ID to be assigned to the
57645767
GoogleApiSource. It should match the format
5765-
(^\ `a-z <[a-z0-9-]{0,61}[a-z0-9]>`__?$).
5768+
``^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$``.
57665769
57675770
This corresponds to the ``google_api_source_id`` field
57685771
on the ``request`` instance; if ``request`` is provided, this

packages/google-cloud-eventarc/google/cloud/eventarc_v1/services/eventarc/transports/grpc.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,9 @@ def get_google_channel_config(
783783
]:
784784
r"""Return a callable for the get google channel config method over gRPC.
785785
786-
Get a GoogleChannelConfig
786+
Get a GoogleChannelConfig.
787+
The name of the GoogleChannelConfig in the response is
788+
ALWAYS coded with projectID.
787789
788790
Returns:
789791
Callable[[~.GetGoogleChannelConfigRequest],

packages/google-cloud-eventarc/google/cloud/eventarc_v1/services/eventarc/transports/grpc_asyncio.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,9 @@ def get_google_channel_config(
806806
]:
807807
r"""Return a callable for the get google channel config method over gRPC.
808808
809-
Get a GoogleChannelConfig
809+
Get a GoogleChannelConfig.
810+
The name of the GoogleChannelConfig in the response is
811+
ALWAYS coded with projectID.
810812
811813
Returns:
812814
Callable[[~.GetGoogleChannelConfigRequest],

packages/google-cloud-eventarc/google/cloud/eventarc_v1/services/eventarc/transports/rest_base.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2141,6 +2141,10 @@ def _get_http_options():
21412141
"method": "get",
21422142
"uri": "/v1/{resource=projects/*/locations/*/pipelines/*}:getIamPolicy",
21432143
},
2144+
{
2145+
"method": "get",
2146+
"uri": "/v1/{resource=projects/*/locations/*/kafkaSources/*}:getIamPolicy",
2147+
},
21442148
{
21452149
"method": "get",
21462150
"uri": "/v1/{resource=projects/*/locations/*/googleApiSources/*}:getIamPolicy",
@@ -2196,6 +2200,11 @@ def _get_http_options():
21962200
"uri": "/v1/{resource=projects/*/locations/*/pipelines/*}:setIamPolicy",
21972201
"body": "*",
21982202
},
2203+
{
2204+
"method": "post",
2205+
"uri": "/v1/{resource=projects/*/locations/*/kafkaSources/*}:setIamPolicy",
2206+
"body": "*",
2207+
},
21992208
{
22002209
"method": "post",
22012210
"uri": "/v1/{resource=projects/*/locations/*/googleApiSources/*}:setIamPolicy",
@@ -2257,6 +2266,11 @@ def _get_http_options():
22572266
"uri": "/v1/{resource=projects/*/locations/*/pipelines/*}:testIamPermissions",
22582267
"body": "*",
22592268
},
2269+
{
2270+
"method": "post",
2271+
"uri": "/v1/{resource=projects/*/locations/*/kafkaSources/*}:testIamPermissions",
2272+
"body": "*",
2273+
},
22602274
{
22612275
"method": "post",
22622276
"uri": "/v1/{resource=projects/*/locations/*/googleApiSources/*}:testIamPermissions",

packages/google-cloud-eventarc/google/cloud/eventarc_v1/types/channel.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,17 @@ class Channel(proto.Message):
7171
channel. The token must be used by the provider
7272
to register the channel for publishing.
7373
crypto_key_name (str):
74-
Resource name of a KMS crypto key (managed by the user) used
75-
to encrypt/decrypt their event data.
74+
Optional. Resource name of a KMS crypto key (managed by the
75+
user) used to encrypt/decrypt their event data.
7676
7777
It must match the pattern
7878
``projects/*/locations/*/keyRings/*/cryptoKeys/*``.
7979
satisfies_pzs (bool):
8080
Output only. Whether or not this Channel
8181
satisfies the requirements of physical zone
8282
separation
83+
labels (MutableMapping[str, str]):
84+
Optional. Resource labels.
8385
"""
8486

8587
class State(proto.Enum):
@@ -162,6 +164,11 @@ class State(proto.Enum):
162164
proto.BOOL,
163165
number=12,
164166
)
167+
labels: MutableMapping[str, str] = proto.MapField(
168+
proto.STRING,
169+
proto.STRING,
170+
number=13,
171+
)
165172

166173

167174
__all__ = tuple(sorted(__protobuf__.manifest))

packages/google-cloud-eventarc/google/cloud/eventarc_v1/types/channel_connection.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ class ChannelConnection(proto.Message):
5757
ChannelConnection to bind the channel with the
5858
provider project. This field will not be stored
5959
in the provider resource.
60+
labels (MutableMapping[str, str]):
61+
Optional. Resource labels.
6062
"""
6163

6264
name: str = proto.Field(
@@ -85,6 +87,11 @@ class ChannelConnection(proto.Message):
8587
proto.STRING,
8688
number=8,
8789
)
90+
labels: MutableMapping[str, str] = proto.MapField(
91+
proto.STRING,
92+
proto.STRING,
93+
number=9,
94+
)
8895

8996

9097
__all__ = tuple(sorted(__protobuf__.manifest))

packages/google-cloud-eventarc/google/cloud/eventarc_v1/types/enrollment.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ class Enrollment(proto.Message):
6363
Required. A CEL expression identifying which
6464
messages this enrollment applies to.
6565
message_bus (str):
66-
Required. Resource name of the message bus
67-
identifying the source of the messages. It
68-
matches the form
66+
Required. Immutable. Resource name of the
67+
message bus identifying the source of the
68+
messages. It matches the form
6969
projects/{project}/locations/{location}/messageBuses/{messageBus}.
7070
destination (str):
7171
Required. Destination is the Pipeline that the Enrollment is

0 commit comments

Comments
 (0)