8000 feat: [google-cloud-bigquery-analyticshub] Add support for Analytics … · googleapis/google-cloud-python@d875d05 · GitHub
[go: up one dir, main page]

Skip to content

Commit d875d05

Browse files
feat: [google-cloud-bigquery-analyticshub] Add support for Analytics Hub & Marketplace Integration (#13897)
BEGIN_COMMIT_OVERRIDE feat: Add support for Analytics Hub & Marketplace Integration feat: Adding CommercialInfo message to the Listing and Subscription resources feat: Adding allow_only_metadata_sharing to Listing resource feat: Adding routine field to the SharedResource message feat: Adding DestinationDataset to the Subscription resource feat: Adding delete_commercial and revoke_commercial to DeleteListingRequest and RevokeSubscriptionRequest END_COMMIT_OVERRIDE - [ ] Regenerate this pull request now. feat: Adding CommercialInfo message to the Listing and Subscription resources feat: Adding allow_only_metadata_sharing to Listing resource feat: Adding routine field to the SharedResource message feat: Adding DestinationDataset to the Subscription resource feat: Adding delete_commercial and revoke_commercial to DeleteListingRequest and RevokeSubscriptionRequest PiperOrigin-RevId: 758114056 Source-Link: googleapis/googleapis@1270a1b Source-Link: googleapis/googleapis-gen@9db5fb8 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpZ3F1ZXJ5LWFuYWx5dGljc2h1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOWRiNWZiODQxNDEwOGY2ZmQ1N2UwMjZhNGE5OTFlNzVkYjY3MDA5OCJ9 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 657feee commit d875d05

File tree

7 files changed

+402
-71
lines changed

7 files changed

+402
-71
lines changed

packages/google-cloud-bigquery-analyticshub/google/cloud/bigquery_analyticshub_v1/services/analytics_hub_service/async_client.py

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@ class AnalyticsHubServiceAsyncClient:
9797
parse_dataset_path = staticmethod(AnalyticsHubServiceClient.parse_dataset_path)
9898
listing_path = staticmethod(AnalyticsHubServiceClient.listing_path)
9999
parse_listing_path = staticmethod(AnalyticsHubServiceClient.parse_listing_path)
100+
managed_service_path = staticmethod(AnalyticsHubServiceClient.managed_service_path)
101+
parse_managed_service_path = staticmethod(
102+
AnalyticsHubServiceClient.parse_managed_service_path
103+
)
104+
order_path = staticmethod(AnalyticsHubServiceClient.order_path)
105+
parse_order_path = staticmethod(AnalyticsHubServiceClient.parse_order_path)
106+
routine_path = staticmethod(AnalyticsHubServiceClient.routine_path)
107+
parse_routine_path = staticmethod(AnalyticsHubServiceClient.parse_routine_path)
100108
subscription_path = staticmethod(AnalyticsHubServiceClient.subscription_path)
101109
parse_subscription_path = staticmethod(
102110
AnalyticsHubServiceClient.parse_subscription_path
@@ -366,7 +374,7 @@ async def sample_list_data_exchanges():
366374
data exchanges.
367375
parent (:class:`str`):
368376
Required. The parent resource path of the data
369-
exchanges. e.g. ``projects/myproject/locations/US``.
377+
exchanges. e.g. ``projects/myproject/locations/us``.
370378
371379
This corresponds to the ``parent`` field
372380
on the ``request`` instance; if ``request`` is provided, this
@@ -495,7 +503,7 @@ async def sample_list_org_data_exchanges():
495503
organization (:class:`str`):
496504
Required. The organization resource path of the projects
497505
containing DataExchanges. e.g.
498-
``organizations/myorg/locations/US``.
506+
``organizations/myorg/locations/us``.
499507
500508
This corresponds to the ``organization`` field
501509
on the ``request`` instance; if ``request`` is provided, this
@@ -623,7 +631,7 @@ async def sample_get_data_exchange():
623631
The request object. Message for getting a data exchange.
624632
name (:class:`str`):
625633
Required. The resource name of the data exchange. e.g.
626-
``projects/myproject/locations/US/dataExchanges/123``.
634+
``projects/myproject/locations/us/dataExchanges/123``.
627635
628636
This corresponds to the ``name`` field
629637
on the ``request`` instance; if ``request`` is provided, this
@@ -742,7 +750,7 @@ async def sample_create_data_exchange():
742750
The request object. Message for creating a data exchange.
743751
parent (:class:`str`):
744752
Required. The parent resource path of the data exchange.
745-
e.g. ``projects/myproject/locations/US``.
753+
e.g. ``projects/myproject/locations/us``.
746754
747755
This corresponds to the ``parent`` field
748756
on the ``request`` instance; if ``request`` is provided, this
@@ -992,7 +1000,7 @@ async def sample_delete_data_exchange():
9921000
name (:class:`str`):
9931001
Required. The full name of the data exchange resource
9941002
that you want to delete. For example,
995-
``projects/myproject/locations/US/dataExchanges/123``.
1003+
``projects/myproject/locations/us/dataExchanges/123``.
9961004
9971005
This corresponds to the ``name`` field
9981006
on the ``request`` instance; if ``request`` is provided, this
@@ -1095,7 +1103,7 @@ async def sample_list_listings():
10951103
listings.
10961104
parent (:class:`str`):
10971105
Required. The parent resource path of the listing. e.g.
1098-
``projects/myproject/locations/US/dataExchanges/123``.
1106+
``projects/myproject/locations/us/dataExchanges/123``.
10991107
11001108
This corresponds to the ``parent`` field
11011109
on the ``request`` instance; if ``request`` is provided, this
@@ -1219,7 +1227,7 @@ async def sample_get_listing():
12191227
The request object. Message for getting a listing.
12201228
name (:class:`str`):
12211229
Required. The resource name of the listing. e.g.
1222-
``projects/myproject/locations/US/dataExchanges/123/listings/456``.
1230+
``projects/myproject/locations/us/dataExchanges/123/listings/456``.
12231231
12241232
This corresponds to the ``name`` field
12251233
on the ``request`` instance; if ``request`` is provided, this
@@ -1339,7 +1347,7 @@ async def sample_create_listing():
13391347
The request object. Message for creating a listing.
13401348
parent (:class:`str`):
13411349
Required. The parent resource path of the listing. e.g.
1342-
``projects/myproject/locations/US/dataExchanges/123``.
1350+
``projects/myproject/locations/us/dataExchanges/123``.
13431351
13441352
This corresponds to the ``parent`` field
13451353
on the ``request`` instance; if ``request`` is provided, this
@@ -1586,7 +1594,7 @@ async def sample_delete_listing():
15861594
The request object. Message for deleting a listing.
15871595
name (:class:`str`):
15881596
Required. Resource name of the listing to delete. e.g.
1589-
``projects/myproject/locations/US/dataExchanges/123/listings/456``.
1597+
``projects/myproject/locations/us/dataExchanges/123/listings/456``.
15901598
15911599
This corresponds to the ``name`` field
15921600
on the ``request`` instance; if ``request`` is provided, this
@@ -1700,7 +1708,7 @@ async def sample_subscribe_listing():
17001708
name (:class:`str`):
17011709
Required. Resource name of the listing that you want to
17021710
subscribe to. e.g.
1703-
``projects/myproject/locations/US/dataExchanges/123/listings/456``.
1711+
``projects/myproject/locations/us/dataExchanges/123/listings/456``.
17041712
17051713
This corresponds to the ``name`` field
17061714
on the ``request`` instance; if ``request`` is provided, this
@@ -1781,7 +1789,8 @@ async def subscribe_data_exchange(
17811789
) -> operation_async.AsyncOperation:
17821790
r"""Creates a Subscription to a Data Clean Room. This is
17831791
a long-running operation as it will create one or more
1784-
linked datasets.
1792+
linked datasets. Throws a Bad Request error if the Data
1793+
Exchange does not contain any listings.
17851794
17861795
.. code-block:: python
17871796
@@ -1821,7 +1830,7 @@ async def sample_subscribe_data_exchange():
18211830
Exchange.
18221831
name (:class:`str`):
18231832
Required. Resource name of the Data Exchange. e.g.
1824-
``projects/publisherproject/locations/US/dataExchanges/123``
1833+
``projects/publisherproject/locations/us/dataExchanges/123``
18251834
18261835
This corresponds to the ``name`` field
18271836
on the ``request`` instance; if ``request`` is provided, this
@@ -1952,7 +1961,7 @@ async def sample_refresh_subscription():
19521961
name (:class:`str`):
19531962
Required. Resource name of the Subscription to refresh.
19541963
e.g.
1955-
``projects/subscriberproject/locations/US/subscriptions/123``
1964+
``projects/subscriberproject/locations/us/subscriptions/123``
19561965
19571966
This corresponds to the ``name`` field
19581967
on the ``request`` instance; if ``request`` is provided, this
@@ -2074,7 +2083,7 @@ async def sample_get_subscription():
20742083
name (:class:`str`):
20752084
Required. Resource name of the
20762085
subscription. e.g.
2077-
projects/123/locations/US/subscriptions/456
2086+
projects/123/locations/us/subscriptions/456
20782087
20792088
This corresponds to the ``name`` field
20802089
on the ``request`` instance; if ``request`` is provided, this
@@ -2190,7 +2199,7 @@ async def sample_list_subscriptions():
21902199
parent (:class:`str`):
21912200
Required. The parent resource path of
21922201
the subscription. e.g.
2193-
projects/myproject/locations/US
2202+
projects/myproject/locations/us
21942203
21952204
This corresponds to the ``parent`` field
21962205
on the ``request`` instance; if ``request`` is provided, this
@@ -2321,9 +2330,9 @@ async def sample_list_shared_resource_subscriptions():
23212330
Required. Resource name of the
23222331
requested target. This resource may be
23232332
either a Listing or a DataExchange. e.g.
2324-
projects/123/locations/US/dataExchanges/456
2333+
projects/123/locations/us/dataExchanges/456
23252334
OR e.g.
2326-
projects/123/locations/US/dataExchanges/456/listings/789
2335+
projects/123/locations/us/dataExchanges/456/listings/789
23272336
23282337
This corresponds to the ``resource`` field
23292338
on the ``request`` instance; if ``request`` is provided, this
@@ -2448,7 +2457,7 @@ async def sample_revoke_subscription():
24482457
name (:class:`str`):
24492458
Required. Resource name of the
24502459
subscription to revoke. e.g.
2451-
projects/123/locations/US/subscriptions/456
2460+
projects/123/locations/us/subscriptions/456
24522461
24532462
This corresponds to the ``name`` field
24542463
on the ``request`` instance; if ``request`` is provided, this
@@ -2563,7 +2572,7 @@ async def sample_delete_subscription():
25632572
name (:class:`str`):
25642573
Required. Resource name of the
25652574
subscription to delete. e.g.
2566-
projects/123/locations/US/subscriptions/456
2575+
projects/123/locations/us/subscriptions/456
25672576
25682577
This corresponds to the ``name`` field
25692578
on the ``request`` instance; if ``request`` is provided, this

0 commit comments

Comments
 (0)
0