Skip to content

Commit 7d7adca

Browse files
authored
feat: update API sources and regenerate (#18513)
Update API sources and regenerate. ## Debug Info ### System Details - Python version: Python 3.12.9 - OS: Linux 7.1.6-1rodete1-amd64 x86_64 - Librarian version: v0.46.0 ### Commands Executed - `python3 -m venv "$VENV_DIR" && source "$VENV_DIR/bin/activate"` - `pip install --upgrade pip` - `go run github.com/googleapis/librarian/cmd/librarian@v0.46.0 update sources.googleapis` - `go run github.com/googleapis/librarian/cmd/librarian@v0.46.0 install` - `go run github.com/googleapis/librarian/cmd/librarian@v0.46.0 generate --all` - `git add .` - `git commit -m "feat: update API sources and regenerate"` ### Included googleapis CLs **google/ads/datamanager/v1** - http://cl/988218184 **google/bigtable/v2** - http://cl/987497247 **google/chat/v1** - http://cl/990680923 **google/cloud/apigateway/v1** - http://cl/988404601 **google/cloud/commerceproducer/v1beta** - http://cl/990614647 **google/cloud/compute/v1** - http://cl/990472754 **google/cloud/compute/v1beta** - http://cl/989949731 **google/cloud/dataform/v1** - http://cl/989490905 **google/cloud/dataform/v1beta1** - http://cl/989473161 **google/cloud/dialogflow/v2** - http://cl/986988400 **google/cloud/retail/v2alpha** - http://cl/989724021 **google/devicesandservices/health/v4** - http://cl/989602126 **google/shopping/merchant/products/v1** - http://cl/990489149
1 parent 36de4dc commit 7d7adca

794 files changed

Lines changed: 184971 additions & 18821 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.46.0
1616
repo: googleapis/google-cloud-python
1717
sources:
1818
googleapis:
19-
commit: 9b719a5c153f3ec7a14d5d45d4da720410c7b943
20-
sha256: fcceaa2004ccc51874effb9669303c042d21ff3e308f1710ce8280acbab8e2a5
19+
commit: 93d6085996d0b4ff7e7e86ca9945d5524bb380d1
20+
sha256: 2271ff64a808d6a9089d0f410d28fc9ce4dd35ffe6e1c2cf79dd9a8578ddc871
2121
tools:
2222
pip:
2323
- name: black

‎packages/google-ads-datamanager/google/ads/datamanager/__init__.py‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,14 @@
110110
IngestAudienceMembersResponse,
111111
IngestEventsRequest,
112112
IngestEventsResponse,
113+
IngestUsersRequest,
114+
IngestUsersResponse,
113115
RemoveAllAudienceMembersRequest,
114116
RemoveAllAudienceMembersResponse,
115117
RemoveAudienceMembersRequest,
116118
RemoveAudienceMembersResponse,
119+
RemoveUsersRequest,
120+
RemoveUsersResponse,
117121
RetrieveRequestStatusRequest,
118122
RetrieveRequestStatusResponse,
119123
)
@@ -151,6 +155,7 @@
151155
TermsOfService,
152156
TermsOfServiceStatus,
153157
)
158+
from google.ads.datamanager_v1.types.user import User
154159
from google.ads.datamanager_v1.types.user_data import (
155160
AddressInfo,
156161
UserData,
@@ -287,10 +292,14 @@
287292
"IngestAudienceMembersResponse",
288293
"IngestEventsRequest",
289294
"IngestEventsResponse",
295+
"IngestUsersRequest",
296+
"IngestUsersResponse",
290297
"RemoveAllAudienceMembersRequest",
291298
"RemoveAllAudienceMembersResponse",
292299
"RemoveAudienceMembersRequest",
293300
"RemoveAudienceMembersResponse",
301+
"RemoveUsersRequest",
302+
"RemoveUsersResponse",
294303
"RetrieveRequestStatusRequest",
295304
"RetrieveRequestStatusResponse",
296305
"Encoding",
@@ -318,6 +327,7 @@
318327
"RequestStatusPerDestination",
319328
"TermsOfService",
320329
"TermsOfServiceStatus",
330+
"User",
321331
"AddressInfo",
322332
"UserData",
323333
"UserIdentifier",

‎packages/google-ads-datamanager/google/ads/datamanager_v1/__init__.py‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
"google.ads.datamanager_v1.types.processing_errors",
5454
"google.ads.datamanager_v1.types.request_status_per_destination",
5555
"google.ads.datamanager_v1.types.terms_of_service",
56+
"google.ads.datamanager_v1.types.user",
5657
"google.ads.datamanager_v1.types.user_data",
5758
"google.ads.datamanager_v1.types.user_list",
5859
"google.ads.datamanager_v1.types.user_list_direct_license",
@@ -146,10 +147,14 @@
146147
IngestAudienceMembersResponse,
147148
IngestEventsRequest,
148149
IngestEventsResponse,
150+
IngestUsersRequest,
151+
IngestUsersResponse,
149152
RemoveAllAudienceMembersRequest,
150153
RemoveAllAudienceMembersResponse,
151154
RemoveAudienceMembersRequest,
152155
RemoveAudienceMembersResponse,
156+
RemoveUsersRequest,
157+
RemoveUsersResponse,
153158
RetrieveRequestStatusRequest,
154159
RetrieveRequestStatusResponse,
155160
)
@@ -182,6 +187,7 @@
182187
)
183188
from .types.request_status_per_destination import RequestStatusPerDestination
184189
from .types.terms_of_service import TermsOfService, TermsOfServiceStatus
190+
from .types.user import User
185191
from .types.user_data import AddressInfo, UserData, UserIdentifier
186192
from .types.user_list import (
187193
ContactIdInfo,
@@ -301,6 +307,8 @@
301307
"IngestAudienceMembersResponse",
302308
"IngestEventsRequest",
303309
"IngestEventsResponse",
310+
"IngestUsersRequest",
311+
"IngestUsersResponse",
304312
"IngestedUserListInfo",
305313
"IngestionServiceClient",
306314
"IpData",
@@ -340,6 +348,8 @@
340348
"RemoveAllAudienceMembersResponse",
341349
"RemoveAudienceMembersRequest",
342350
"RemoveAudienceMembersResponse",
351+
"RemoveUsersRequest",
352+
"RemoveUsersResponse",
343353
"RequestStatusPerDestination",
344354
"RetrieveInsightsRequest",
345355
"RetrieveInsightsResponse",
@@ -355,6 +365,7 @@
355365
"UpdateUserListDirectLicenseRequest",
356366
"UpdateUserListGlobalLicenseRequest",
357367
"UpdateUserListRequest",
368+
"User",
358369
"UserData",
359370
"UserIdData",
360371
"UserIdInfo",

‎packages/google-ads-datamanager/google/ads/datamanager_v1/gapic_metadata.json‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@
2525
"ingest_events"
2626
]
2727
},
28+
"IngestUsers": {
29+
"methods": [
30+
"ingest_users"
31+
]
32+
},
2833
"RemoveAllAudienceMembers": {
2934
"methods": [
3035
"remove_all_audience_members"
@@ -35,6 +40,11 @@
3540
"remove_audience_members"
3641
]
3742
},
43+
"RemoveUsers": {
44+
"methods": [
45+
"remove_users"
46+
]
47+
},
3848
"RetrieveRequestStatus": {
3949
"methods": [
4050
"retrieve_request_status"
@@ -60,6 +70,11 @@
6070
"ingest_events"
6171
]
6272
},
73+
"IngestUsers": {
74+
"methods": [
75+
"ingest_users"
76+
]
77+
},
6378
"RemoveAllAudienceMembers": {
6479
"methods": [
6580
"remove_all_audience_members"
@@ -70,6 +85,11 @@
7085
"remove_audience_members"
7186
]
7287
},
88+
"RemoveUsers": {
89+
"methods": [
90+
"remove_users"
91+
]
92+
},
7393
"RetrieveRequestStatus": {
7494
"methods": [
7595
"retrieve_request_status"
@@ -95,6 +115,11 @@
95115
"ingest_events"
96116
]
97117
},
118+
"IngestUsers": {
119+
"methods": [
120+
"ingest_users"
121+
]
122+
},
98123
"RemoveAllAudienceMembers": {
99124
"methods": [
100125
"remove_all_audience_members"
@@ -105,6 +130,11 @@
105130
"remove_audience_members"
106131
]
107132
},
133+
"RemoveUsers": {
134+
"methods": [
135+
"remove_users"
136+
]
137+
},
108138
"RetrieveRequestStatus": {
109139
"methods": [
110140
"retrieve_request_status"

‎packages/google-ads-datamanager/google/ads/datamanager_v1/services/ingestion_service/async_client.py‎

Lines changed: 185 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,191 @@ async def sample_ingest_events():
659659
# Done; return the response.
660660
return response
661661

662+
async def ingest_users(
663+
self,
664+
request: Optional[Union[ingestion_service.IngestUsersRequest, dict]] = None,
665+
*,
666+
retry: OptionalRetry = gapic_v1.method.DEFAULT,
667+
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
668+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
669+
) -> ingestion_service.IngestUsersResponse:
670+
r"""Uploads a list of users to the provided destinations. Unlike
671+
[IngestAudienceMembers][google.ads.datamanager.v1.IngestionService.IngestAudienceMembers]
672+
(which adds users to specific advertiser audience lists for
673+
targeting), ``IngestUsers`` ingests account level identity
674+
linkage data (for example, user identifiers linked to mobile
675+
IDs) independent of specific audience segments.
676+
677+
This feature is only available to accounts on an allowlist.
678+
679+
.. code-block:: python
680+
681+
# This snippet has been automatically generated and should be regarded as a
682+
# code template only.
683+
# It will require modifications to work:
684+
# - It may require correct/in-range values for request initialization.
685+
# - It may require specifying regional endpoints when creating the service
686+
# client as shown in:
687+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
688+
from google.ads import datamanager_v1
689+
690+
async def sample_ingest_users():
691+
# Create a client
692+
client = datamanager_v1.IngestionServiceAsyncClient()
693+
694+
# Initialize request argument(s)
695+
destinations = datamanager_v1.Destination()
696+
destinations.operating_account.account_id = "account_id_value"
697+
destinations.operating_account.account_type = "GOOGLE_AD_MANAGER"
698+
699+
users = datamanager_v1.User()
700+
users.user_data.user_identifiers.email_address = "email_address_value"
701+
users.mobile_data.mobile_ids = ['mobile_ids_value1', 'mobile_ids_value2']
702+
703+
request = datamanager_v1.IngestUsersRequest(
704+
destinations=destinations,
705+
users=users,
706+
encoding="BASE64",
707+
)
708+
709+
# Make the request
710+
response = await client.ingest_users(request=request)
711+
712+
# Handle the response
713+
print(response)
714+
715+
Args:
716+
request (Optional[Union[google.ads.datamanager_v1.types.IngestUsersRequest, dict]]):
717+
The request object. Request to upload users to the
718+
provided destinations.
719+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
720+
should be retried.
721+
timeout (float): The timeout for this request.
722+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
723+
sent along with the request as metadata. Normally, each value must be of type `str`,
724+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
725+
be of type `bytes`.
726+
727+
Returns:
728+
google.ads.datamanager_v1.types.IngestUsersResponse:
729+
Response from the IngestUsersRequest.
730+
"""
731+
# Create or coerce a protobuf request object.
732+
# - Use the request object if provided (there's no risk of modifying the input as
733+
# there are no flattened fields), or create one.
734+
if not isinstance(request, ingestion_service.IngestUsersRequest):
735+
request = ingestion_service.IngestUsersRequest(request)
736+
737+
# Wrap the RPC method; this adds retry and timeout information,
738+
# and friendly error handling.
739+
rpc = self._client._transport._wrapped_methods[
740+
self._client._transport.ingest_users
741+
]
742+
743+
# Validate the universe domain.
744+
self._client._validate_universe_domain()
745+
746+
# Send the request.
747+
response = await rpc(
748+
request,
749+
retry=retry,
750+
timeout=timeout,
751+
metadata=metadata,
752+
)
753+
754+
# Done; return the response.
755+
return response
756+
757+
async def remove_users(
758+
self,
759+
request: Optional[Union[ingestion_service.RemoveUsersRequest, dict]] = None,
760+
*,
761+
retry: OptionalRetry = gapic_v1.method.DEFAULT,
762+
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
763+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
764+
) -> ingestion_service.RemoveUsersResponse:
765+
r"""Removes a list of users from the provided
766+
destinations.
767+
This feature is only available to accounts on an
768+
allowlist.
769+
770+
.. code-block:: python
771+
772+
# This snippet has been automatically generated and should be regarded as a
773+
# code template only.
774+
# It will require modifications to work:
775+
# - It may require correct/in-range values for request initialization.
776+
# - It may require specifying regional endpoints when creating the service
777+
# client as shown in:
778+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
779+
from google.ads import datamanager_v1
780+
781+
async def sample_remove_users():
782+
# Create a client
783+
client = datamanager_v1.IngestionServiceAsyncClient()
784+
785+
# Initialize request argument(s)
786+
destinations = datamanager_v1.Destination()
787+
destinations.operating_account.account_id = "account_id_value"
788+
destinations.operating_account.account_type = "GOOGLE_AD_MANAGER"
789+
790+
user_data = datamanager_v1.UserData()
791+
user_data.user_identifiers.email_address = "email_address_value"
792+
793+
request = datamanager_v1.RemoveUsersRequest(
794+
destinations=destinations,
795+
user_data=user_data,
796+
encoding="BASE64",
797+
)
798+
799+
# Make the request
800+
response = await client.remove_users(request=request)
801+
802+
# Handle the response
803+
print(response)
804+
805+
Args:
806+
request (Optional[Union[google.ads.datamanager_v1.types.RemoveUsersRequest, dict]]):
807+
The request object. Request to remove users from the
808+
provided destinations.
809+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
810+
should be retried.
811+
timeout (float): The timeout for this request.
812+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
813+
sent along with the request as metadata. Normally, each value must be of type `str`,
814+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
815+
be of type `bytes`.
816+
817+
Returns:
818+
google.ads.datamanager_v1.types.RemoveUsersResponse:
819+
Response from the RemoveUsersRequest.
820+
"""
821+
# Create or coerce a protobuf request object.
822+
# - Use the request object if provided (there's no risk of modifying the input as
823+
# there are no flattened fields), or create one.
824+
if not isinstance(request, ingestion_service.RemoveUsersRequest):
825+
request = ingestion_service.RemoveUsersRequest(request)
826+
827+
# Wrap the RPC method; this adds retry and timeout information,
828+
# and friendly error handling.
829+
rpc = self._client._transport._wrapped_methods[
830+
self._client._transport.remove_users
831+
]
832+
833+
# Validate the universe domain.
834+
self._client._validate_universe_domain()
835+
836+
# Send the request.
837+
response = await rpc(
838+
request,
839+
retry=retry,
840+
timeout=timeout,
841+
metadata=metadata,
842+
)
843+
844+
# Done; return the response.
845+
return response
846+
662847
async def ingest_ad_events(
663848
self,
664849
request: Optional[Union[ingestion_service.IngestAdEventsRequest, dict]] = None,

0 commit comments

Comments
 (0)
⌂ 换网址