Skip to content

Commit 8de7cc7

Browse files
feat: mark ChannelPartnerGranularity as deprecated and offer alternatives (#11636)
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent e547532 commit 8de7cc7

31 files changed

Lines changed: 1343 additions & 161 deletions

packages/google-cloud-channel/.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright 2020 Google LLC
3+
# Copyright 2023 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

packages/google-cloud-channel/CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ We support:
236236

237237
Supported versions can be found in our ``noxfile.py`` `config`_.
238238

239-
.. _config: https://github.com/googleapis/google-cloud-python/blob/main/noxfile.py
239+
.. _config: https://github.com/googleapis/google-cloud-python/blob/main/packages/google-cloud-channel/noxfile.py
240240

241241

242242
**********

packages/google-cloud-channel/MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright 2020 Google LLC
3+
# Copyright 2023 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

packages/google-cloud-channel/README.rst

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,24 @@ In order to use this library, you first need to go through the following steps:
3636
Installation
3737
~~~~~~~~~~~~
3838

39-
Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to
40-
create isolated Python environments. The basic problem it addresses is one of
41-
dependencies and versions, and indirectly permissions.
39+
Install this library in a virtual environment using `venv`_. `venv`_ is a tool that
40+
creates isolated Python environments. These isolated environments can have separate
41+
versions of Python packages, which allows you to isolate one project's dependencies
42+
from the dependencies of other projects.
4243

43-
With `virtualenv`_, it's possible to install this library without needing system
44+
With `venv`_, it's possible to install this library without needing system
4445
install permissions, and without clashing with the installed system
4546
dependencies.
4647

47-
.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/
48+
.. _`venv`: https://docs.python.org/3/library/venv.html
4849

4950

5051
Code samples and snippets
5152
~~~~~~~~~~~~~~~~~~~~~~~~~
5253

53-
Code samples and snippets live in the `samples/` folder.
54+
Code samples and snippets live in the `samples/`_ folder.
55+
56+
.. _samples/: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-channel/samples
5457

5558

5659
Supported Python Versions
@@ -77,21 +80,19 @@ Mac/Linux
7780

7881
.. code-block:: console
7982
80-
pip install virtualenv
81-
virtualenv <your-env>
83+
python3 -m venv <your-env>
8284
source <your-env>/bin/activate
83-
<your-env>/bin/pip install google-cloud-channel
85+
pip install google-cloud-channel
8486
8587
8688
Windows
8789
^^^^^^^
8890

8991
.. code-block:: console
9092
91-
pip install virtualenv
92-
virtualenv <your-env>
93-
<your-env>\Scripts\activate
94-
<your-env>\Scripts\pip.exe install google-cloud-channel
93+
py -m venv <your-env>
94+
.\<your-env>\Scripts\activate
95+
pip install google-cloud-channel
9596
9697
Next Steps
9798
~~~~~~~~~~

packages/google-cloud-channel/docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright 2021 Google LLC
2+
# Copyright 2023 Google LLC
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
from google.cloud.channel_v1.services.cloud_channel_service.client import (
3131
CloudChannelServiceClient,
3232
)
33+
from google.cloud.channel_v1.types.billing_accounts import BillingAccount
3334
from google.cloud.channel_v1.types.channel_partner_links import (
3435
ChannelPartnerLink,
3536
ChannelPartnerLinkState,
@@ -109,6 +110,7 @@
109110
from google.cloud.channel_v1.types.service import (
110111
ActivateEntitlementRequest,
111112
BillableSku,
113+
BillingAccountPurchaseInfo,
112114
CancelEntitlementRequest,
113115
ChangeOfferRequest,
114116
ChangeParametersRequest,
@@ -166,9 +168,12 @@
166168
ProvisionCloudIdentityRequest,
167169
PurchasableOffer,
168170
PurchasableSku,
171+
QueryEligibleBillingAccountsRequest,
172+
QueryEligibleBillingAccountsResponse,
169173
RegisterSubscriberRequest,
170174
RegisterSubscriberResponse,
171175
SkuGroup,
176+
SkuPurchaseGroup,
172177
StartPaidServiceRequest,
173178
SuspendEntitlementRequest,
174179
TransferableOffer,
@@ -193,6 +198,7 @@
193198
"CloudChannelReportsServiceAsyncClient",
194199
"CloudChannelServiceClient",
195200
"CloudChannelServiceAsyncClient",
201+
"BillingAccount",
196202
"ChannelPartnerLink",
197203
"ChannelPartnerLinkState",
198204
"ChannelPartnerLinkView",
@@ -258,6 +264,7 @@
258264
"RebillingBasis",
259265
"ActivateEntitlementRequest",
260266
"BillableSku",
267+
"BillingAccountPurchaseInfo",
261268
"CancelEntitlementRequest",
262269
"ChangeOfferRequest",
263270
"ChangeParametersRequest",
@@ -315,9 +322,12 @@
315322
"ProvisionCloudIdentityRequest",
316323
"PurchasableOffer",
317324
"PurchasableSku",
325+
"QueryEligibleBillingAccountsRequest",
326+
"QueryEligibleBillingAccountsResponse",
318327
"RegisterSubscriberRequest",
319328
"RegisterSubscriberResponse",
320329
"SkuGroup",
330+
"SkuPurchaseGroup",
321331
"StartPaidServiceRequest",
322332
"SuspendEntitlementRequest",
323333
"TransferableOffer",

packages/google-cloud-channel/google/cloud/channel_v1/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
CloudChannelServiceAsyncClient,
2727
CloudChannelServiceClient,
2828
)
29+
from .types.billing_accounts import BillingAccount
2930
from .types.channel_partner_links import (
3031
ChannelPartnerLink,
3132
ChannelPartnerLinkState,
@@ -94,6 +95,7 @@
9495
from .types.service import (
9596
ActivateEntitlementRequest,
9697
BillableSku,
98+
BillingAccountPurchaseInfo,
9799
CancelEntitlementRequest,
98100
ChangeOfferRequest,
99101
ChangeParametersRequest,
@@ -151,9 +153,12 @@
151153
ProvisionCloudIdentityRequest,
152154
PurchasableOffer,
153155
PurchasableSku,
156+
QueryEligibleBillingAccountsRequest,
157+
QueryEligibleBillingAccountsResponse,
154158
RegisterSubscriberRequest,
155159
RegisterSubscriberResponse,
156160
SkuGroup,
161+
SkuPurchaseGroup,
157162
StartPaidServiceRequest,
158163
SuspendEntitlementRequest,
159164
TransferableOffer,
@@ -176,6 +181,8 @@
176181
"AdminUser",
177182
"AssociationInfo",
178183
"BillableSku",
184+
"BillingAccount",
185+
"BillingAccountPurchaseInfo",
179186
"CancelEntitlementRequest",
180187
"ChangeOfferRequest",
181188
"ChangeParametersRequest",
@@ -278,6 +285,8 @@
278285
"ProvisionedService",
279286
"PurchasableOffer",
280287
"PurchasableSku",
288+
"QueryEligibleBillingAccountsRequest",
289+
"QueryEligibleBillingAccountsResponse",
281290
"RebillingBasis",
282291
"RegisterSubscriberRequest",
283292
"RegisterSubscriberResponse",
@@ -297,6 +306,7 @@
297306
"Sku",
298307
"SkuGroup",
299308
"SkuGroupCondition",
309+
"SkuPurchaseGroup",
300310
"StartPaidServiceRequest",
301311
"SubscriberEvent",
302312
"SuspendEntitlementRequest",

packages/google-cloud-channel/google/cloud/channel_v1/gapic_metadata.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,11 @@
244244
"provision_cloud_identity"
245245
]
246246
},
247+
"QueryEligibleBillingAccounts": {
248+
"methods": [
249+
"query_eligible_billing_accounts"
250+
]
251+
},
247252
"RegisterSubscriber": {
248253
"methods": [
249254
"register_subscriber"
@@ -489,6 +494,11 @@
489494
"provision_cloud_identity"
490495
]
491496
},
497+
"QueryEligibleBillingAccounts": {
498+
"methods": [
499+
"query_eligible_billing_accounts"
500+
]
501+
},
492502
"RegisterSubscriber": {
493503
"methods": [
494504
"register_subscriber"

packages/google-cloud-channel/google/cloud/channel_v1/services/cloud_channel_reports_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
from google.api_core import operation # type: ignore
4646
from google.api_core import operation_async # type: ignore
47-
from google.longrunning import operations_pb2
47+
from google.longrunning import operations_pb2 # type: ignore
4848

4949
from google.cloud.channel_v1.services.cloud_channel_reports_service import pagers
5050
from google.cloud.channel_v1.types import operations, reports_service

packages/google-cloud-channel/google/cloud/channel_v1/services/cloud_channel_reports_service/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
from google.api_core import operation # type: ignore
5050
from google.api_core import operation_async # type: ignore
51-
from google.longrunning import operations_pb2
51+
from google.longrunning import operations_pb2 # type: ignore
5252

5353
from google.cloud.channel_v1.services.cloud_channel_reports_service import pagers
5454
from google.cloud.channel_v1.types import operations, reports_service

0 commit comments

Comments
 (0)