Skip to content

Commit a18915b

Browse files
feat: add Subscription resource and RPCs (#11753)
BEGIN_COMMIT_OVERRIDE feat: add Subscription resource and RPCs END_COMMIT_OVERRIDE - [ ] Regenerate this pull request now. feat: add support for sharing_environment_config using which you can create data clean rooms. feat: support restricted egress on Listings. PiperOrigin-RevId: 568259024 Source-Link: googleapis/googleapis@26392c8 Source-Link: googleapis/googleapis-gen@dbdc394 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpZ3F1ZXJ5LWFuYWx5dGljc2h1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZGJkYzM5NGRjYWE2NzUxNzBhMWIwY2YzODU4ZjU2Yzk1ZTE3YjNhYSJ9 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: ohmayr <omairnaveed@ymail.com>
1 parent 030a767 commit a18915b

File tree

32 files changed

+7562
-257
lines changed

32 files changed

+7562
-257
lines changed

packages/google-cloud-bigquery-analyticshub/CONTRIBUTING.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,12 @@ Running System Tests
143143
$ nox -s system
144144

145145
# Run a single system test
146-
$ nox -s system- -- -k <name of test>
146+
$ nox -s system-3.11 -- -k <name of test>
147147

148148

149149
.. note::
150150

151-
System tests are only configured to run under Python.
151+
System tests are only configured to run under Python 3.8, 3.9, 3.10 and 3.11.
152152
For expediency, we do not run them in older versions of Python 3.
153153

154154
This alone will not run the tests. You'll need to change some local

packages/google-cloud-bigquery-analyticshub/google/cloud/bigquery_analyticshub/__init__.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,35 @@
3131
DataProvider,
3232
DeleteDataExchangeRequest,
3333
DeleteListingRequest,
34+
DeleteSubscriptionRequest,
3435
DestinationDataset,
3536
DestinationDatasetReference,
3637
GetDataExchangeRequest,
3738
GetListingRequest,
39+
GetSubscriptionRequest,
3840
ListDataExchangesRequest,
3941
ListDataExchangesResponse,
4042
Listing,
4143
ListListingsRequest,
4244
ListListingsResponse,
4345
ListOrgDataExchangesRequest,
4446
ListOrgDataExchangesResponse,
47+
ListSharedResourceSubscriptionsRequest,
48+
ListSharedResourceSubscriptionsResponse,
49+
ListSubscriptionsRequest,
50+
ListSubscriptionsResponse,
51+
OperationMetadata,
4552
Publisher,
53+
RefreshSubscriptionRequest,
54+
RefreshSubscriptionResponse,
55+
RevokeSubscriptionRequest,
56+
RevokeSubscriptionResponse,
57+
SharingEnvironmentConfig,
58+
SubscribeDataExchangeRequest,
59+
SubscribeDataExchangeResponse,
4660
SubscribeListingRequest,
4761
SubscribeListingResponse,
62+
Subscription,
4863
UpdateDataExchangeRequest,
4964
UpdateListingRequest,
5065
)
@@ -58,20 +73,35 @@
5873
"DataProvider",
5974
"DeleteDataExchangeRequest",
6075
"DeleteListingRequest",
76+
"DeleteSubscriptionRequest",
6177
"DestinationDataset",
6278
"DestinationDatasetReference",
6379
"GetDataExchangeRequest",
6480
"GetListingRequest",
81+
"GetSubscriptionRequest",
6582
"ListDataExchangesRequest",
6683
"ListDataExchangesResponse",
6784
"Listing",
6885
"ListListingsRequest",
6986
"ListListingsResponse",
7087
"ListOrgDataExchangesRequest",
7188
"ListOrgDataExchangesResponse",
89+
"ListSharedResourceSubscriptionsRequest",
90+
"ListSharedResourceSubscriptionsResponse",
91+
"ListSubscriptionsRequest",
92+
"ListSubscriptionsResponse",
93+
"OperationMetadata",
7294
"Publisher",
95+
"RefreshSubscriptionRequest",
96+
"RefreshSubscriptionResponse",
97+
"RevokeSubscriptionRequest",
98+
"RevokeSubscriptionResponse",
99+
"SharingEnvironmentConfig",
100+
"SubscribeDataExchangeRequest",
101+
"SubscribeDataExchangeResponse",
73102
"SubscribeListingRequest",
74103
"SubscribeListingResponse",
104+
"Subscription",
75105
"UpdateDataExchangeRequest",
76106
"UpdateListingRequest",
77107
)

packages/google-cloud-bigquery-analyticshub/google/cloud/bigquery_analyticshub/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.4.2" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-bigquery-analyticshub/google/cloud/bigquery_analyticshub_v1/__init__.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,35 @@
2929
DataProvider,
3030
DeleteDataExchangeRequest,
3131
DeleteListingRequest,
32+
DeleteSubscriptionRequest,
3233
DestinationDataset,
3334
DestinationDatasetReference,
3435
GetDataExchangeRequest,
3536
GetListingRequest,
37+
GetSubscriptionRequest,
3638
ListDataExchangesRequest,
3739
ListDataExchangesResponse,
3840
Listing,
3941
ListListingsRequest,
4042
ListListingsResponse,
4143
ListOrgDataExchangesRequest,
4244
ListOrgDataExchangesResponse,
45+
ListSharedResourceSubscriptionsRequest,
46+
ListSharedResourceSubscriptionsResponse,
47+
ListSubscriptionsRequest,
48+
ListSubscriptionsResponse,
49+
OperationMetadata,
4350
Publisher,
51+
RefreshSubscriptionRequest,
52+
RefreshSubscriptionResponse,
53+
RevokeSubscriptionRequest,
54+
RevokeSubscriptionResponse,
55+
SharingEnvironmentConfig,
56+
SubscribeDataExchangeRequest,
57+
SubscribeDataExchangeResponse,
4458
SubscribeListingRequest,
4559
SubscribeListingResponse,
60+
Subscription,
4661
UpdateDataExchangeRequest,
4762
UpdateListingRequest,
4863
)
@@ -56,20 +71,35 @@
5671
"DataProvider",
5772
"DeleteDataExchangeRequest",
5873
"DeleteListingRequest",
74+
"DeleteSubscriptionRequest",
5975
"DestinationDataset",
6076
"DestinationDatasetReference",
6177
"GetDataExchangeRequest",
6278
"GetListingRequest",
79+
"GetSubscriptionRequest",
6380
"ListDataExchangesRequest",
6481
"ListDataExchangesResponse",
6582
"ListListingsRequest",
6683
"ListListingsResponse",
6784
"ListOrgDataExchangesRequest",
6885
"ListOrgDataExchangesResponse",
86+
"ListSharedResourceSubscriptionsRequest",
87+
"ListSharedResourceSubscriptionsResponse",
88+
"ListSubscriptionsRequest",
89+
"ListSubscriptionsResponse",
6990
"Listing",
91+
"OperationMetadata",
7092
"Publisher",
93+
"RefreshSubscriptionRequest",
94+
"RefreshSubscriptionResponse",
95+
"RevokeSubscriptionRequest",
96+
"RevokeSubscriptionResponse",
97+
"SharingEnvironmentConfig",
98+
"SubscribeDataExchangeRequest",
99+
"SubscribeDataExchangeResponse",
71100
"SubscribeListingRequest",
72101
"SubscribeListingResponse",
102+
"Subscription",
73103
"UpdateDataExchangeRequest",
74104
"UpdateListingRequest",
75105
)

packages/google-cloud-bigquery-analyticshub/google/cloud/bigquery_analyticshub_v1/gapic_metadata.json

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@
3030
"delete_listing"
3131
]
3232
},
33+
"DeleteSubscription": {
34+
"methods": [
35+
"delete_subscription"
36+
]
37+
},
3338
"GetDataExchange": {
3439
"methods": [
3540
"get_data_exchange"
@@ -45,6 +50,11 @@
4550
"get_listing"
4651
]
4752
},
53+
"GetSubscription": {
54+
"methods": [
55+
"get_subscription"
56+
]
57+
},
4858
"ListDataExchanges": {
4959
"methods": [
5060
"list_data_exchanges"
@@ -60,11 +70,36 @@
6070
"list_org_data_exchanges"
6171
]
6272
},
73+
"ListSharedResourceSubscriptions": {
74+
"methods": [
75+
"list_shared_resource_subscriptions"
76+
]
77+
},
78+
"ListSubscriptions": {
79+
"methods": [
80+
"list_subscriptions"
81+
]
82+
},
83+
"RefreshSubscription": {
84+
"methods": [
85+
"refresh_subscription"
86+
]
87+
},
88+
"RevokeSubscription": {
89+
"methods": [
90+
"revoke_subscription"
91+
]
92+
},
6393
"SetIamPolicy": {
6494
"methods": [
6595
"set_iam_policy"
6696
]
6797
},
98+
"SubscribeDataExchange": {
99+
"methods": [
100+
"subscribe_data_exchange"
101+
]
102+
},
68103
"SubscribeListing": {
69104
"methods": [
70105
"subscribe_listing"
@@ -110,6 +145,11 @@
110145
"delete_listing"
111146
]
112147
},
148+
"DeleteSubscription": {
149+
"methods": [
150+
"delete_subscription"
151+
]
152+
},
113153
"GetDataExchange": {
114154
"methods": [
115155
"get_data_exchange"
@@ -125,6 +165,11 @@
125165
"get_listing"
126166
]
127167
},
168+
"GetSubscription": {
169+
"methods": [
170+
"get_subscription"
171+
]
172+
},
128173
"ListDataExchanges": {
129174
"methods": [
130175
"list_data_exchanges"
@@ -140,11 +185,36 @@
140185
"list_org_data_exchanges"
141186
]
142187
},
188+
"ListSharedResourceSubscriptions": {
189+
"methods": [
190+
"list_shared_resource_subscriptions"
191+
]
192+
},
193+
"ListSubscriptions": {
194+
"methods": [
195+
"list_subscriptions"
196+
]
197+
},
198+
"RefreshSubscription": {
199+
"methods": [
200+
"refresh_subscription"
201+
]
202+
},
203+
"RevokeSubscription": {
204+
"methods": [
205+
"revoke_subscription"
206+
]
207+
},
143208
"SetIamPolicy": {
144209
"methods": [
145210
"set_iam_policy"
146211
]
147212
},
213+
"SubscribeDataExchange": {
214+
"methods": [
215+
"subscribe_data_exchange"
216+
]
217+
},
148218
"SubscribeListing": {
149219
"methods": [
150220
"subscribe_listing"

packages/google-cloud-bigquery-analyticshub/google/cloud/bigquery_analyticshub_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.4.2" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

0 commit comments

Comments
 (0)