Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Commit

Permalink
feat: Add filter in ListCustomersRequest (#167)
Browse files Browse the repository at this point in the history
* feat: Add new enum value, new filter in ListCustomersRequest of Cloud Channel API

PiperOrigin-RevId: 443474187

Source-Link: googleapis/googleapis@d4dd268

Source-Link: googleapis/googleapis-gen@5ea6d79
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNWVhNmQ3OTNkZDU3NTcxZmFhNjQ0MmNjODhkYjdlOWVlNmM1NGQ3MCJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Apr 22, 2022
1 parent 5ddbaf1 commit 2a88151
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
4 changes: 3 additions & 1 deletion google/cloud/channel_v1/types/entitlements.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ class Entitlement(proto.Message):
company tracking usage. If a purchaseOrderId
value is given, it appears in the API responses
and shows up in the invoice. The property
accepts up to 80 plain text characters.
accepts up to 80 plain text characters. This is
only supported for Google Workspace
entitlements.
trial_settings (google.cloud.channel_v1.types.TrialSettings):
Output only. Settings for trial offers.
association_info (google.cloud.channel_v1.types.AssociationInfo):
Expand Down
9 changes: 9 additions & 0 deletions google/cloud/channel_v1/types/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ class ListCustomersRequest(proto.Message):
of the previous
[CloudChannelService.ListCustomers][google.cloud.channel.v1.CloudChannelService.ListCustomers]
call.
filter (str):
Optional. Filters applied to the
[CloudChannelService.ListCustomers] results. See
https://cloud.google.com/channel/docs/concepts/google-cloud/filter-customers
for more information.
"""

parent = proto.Field(
Expand All @@ -200,6 +205,10 @@ class ListCustomersRequest(proto.Message):
proto.STRING,
number=3,
)
filter = proto.Field(
proto.STRING,
number=4,
)


class ListCustomersResponse(proto.Message):
Expand Down
6 changes: 3 additions & 3 deletions google/cloud/channel_v1/types/subscriber_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class Type(proto.Enum):

class SubscriberEvent(proto.Message):
r"""Represents information which resellers will get as part of
notification from Cloud Pub/Sub.
notification from Pub/Sub.
This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Expand All @@ -107,12 +107,12 @@ class SubscriberEvent(proto.Message):
Attributes:
customer_event (google.cloud.channel_v1.types.CustomerEvent):
Customer event send as part of Pub/Sub event
Customer event sent as part of Pub/Sub event
to partners.
This field is a member of `oneof`_ ``event``.
entitlement_event (google.cloud.channel_v1.types.EntitlementEvent):
Entitlement event send as part of Pub/Sub
Entitlement event sent as part of Pub/Sub
event to partners.
This field is a member of `oneof`_ ``event``.
Expand Down
2 changes: 1 addition & 1 deletion scripts/fixup_channel_v1_keywords.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class channelCallTransformer(cst.CSTTransformer):
'get_entitlement': ('name', ),
'import_customer': ('domain', 'cloud_identity_id', 'parent', 'overwrite_if_exists', 'auth_token', 'channel_partner_id', 'customer', ),
'list_channel_partner_links': ('parent', 'page_size', 'page_token', 'view', ),
'list_customers': ('parent', 'page_size', 'page_token', ),
'list_customers': ('parent', 'page_size', 'page_token', 'filter', ),
'list_entitlements': ('parent', 'page_size', 'page_token', ),
'list_offers': ('parent', 'page_size', 'page_token', 'filter', 'language_code', ),
'list_products': ('account', 'page_size', 'page_token', 'language_code', ),
Expand Down

0 comments on commit 2a88151

Please sign in to comment.