Skip to content

Commit 8fc4fc3

Browse files
github-actions[bot]github-actions
andauthored
Bump version to 3.2.0 (#500)
Co-authored-by: github-actions <[email protected]>
1 parent 8378038 commit 8fc4fc3

36 files changed

+75
-71
lines changed

linebot/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"""Meta data of line-bot-sdk."""
1616

1717

18-
__version__ = '3.1.0'
18+
__version__ = '3.2.0'
1919
__author__ = 'LINE Corporation'
2020
__copyright__ = 'Copyright 2016, LINE Corporation'
2121
__license__ = 'Apache 2.0'

linebot/v3/audience/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"""
1515

1616

17-
__version__ = "3.1.0"
17+
__version__ = "3.2.0"
1818

1919
# import apis into sdk package
2020
from linebot.v3.audience.api.manage_audience import ManageAudience

linebot/v3/audience/api/async_manage_audience.py

Lines changed: 16 additions & 14 deletions
Large diffs are not rendered by default.

linebot/v3/audience/api/manage_audience.py

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020

2121
from pydantic.v1 import Field, StrictBool, StrictInt, StrictStr, conint
2222

23+
from typing import Optional
24+
2325
from linebot.v3.audience.models.add_audience_to_audience_group_request import AddAudienceToAudienceGroupRequest
2426
from linebot.v3.audience.models.audience_group_create_route import AudienceGroupCreateRoute
2527
from linebot.v3.audience.models.audience_group_status import AudienceGroupStatus
@@ -1171,7 +1173,7 @@ def get_audience_group_authority_level_with_http_info(self, **kwargs) -> ApiResp
11711173
_request_auth=_params.get('_request_auth'))
11721174

11731175
@validate_arguments
1174-
def get_audience_groups(self, page : Annotated[conint(strict=True, ge=1), Field(..., description="The page to return when getting (paginated) results. Must be 1 or higher.")], description : Annotated[StrictStr, Field(..., description="The name of the audience(s) to return. You can search for partial matches. This is case-insensitive, meaning AUDIENCE and audience are considered identical. If omitted, the name of the audience(s) will not be used as a search criterion. ")], status : Annotated[AudienceGroupStatus, Field(..., description="The status of the audience(s) to return. If omitted, the status of the audience(s) will not be used as a search criterion. ")], size : Annotated[conint(strict=True, le=40), Field(..., description="The number of audiences per page. Default: 20 Max: 40 ")], includes_external_public_groups : Annotated[StrictBool, Field(..., description="true (default): Get public audiences created in all channels linked to the same bot. false: Get audiences created in the same channel. ")], create_route : Annotated[AudienceGroupCreateRoute, Field(..., description="How the audience was created. If omitted, all audiences are included. `OA_MANAGER`: Return only audiences created with LINE Official Account Manager (opens new window). `MESSAGING_API`: Return only audiences created with Messaging API. ")], **kwargs) -> GetAudienceGroupsResponse: # noqa: E501
1176+
def get_audience_groups(self, page : Annotated[conint(strict=True, ge=1), Field(..., description="The page to return when getting (paginated) results. Must be 1 or higher.")], description : Annotated[Optional[StrictStr], Field(description="The name of the audience(s) to return. You can search for partial matches. This is case-insensitive, meaning AUDIENCE and audience are considered identical. If omitted, the name of the audience(s) will not be used as a search criterion. ")] = None, status : Annotated[Optional[AudienceGroupStatus], Field(description="The status of the audience(s) to return. If omitted, the status of the audience(s) will not be used as a search criterion. ")] = None, size : Annotated[Optional[conint(strict=True, le=40)], Field(description="The number of audiences per page. Default: 20 Max: 40 ")] = None, includes_external_public_groups : Annotated[Optional[StrictBool], Field(description="true (default): Get public audiences created in all channels linked to the same bot. false: Get audiences created in the same channel. ")] = None, create_route : Annotated[Optional[AudienceGroupCreateRoute], Field(description="How the audience was created. If omitted, all audiences are included. `OA_MANAGER`: Return only audiences created with LINE Official Account Manager (opens new window). `MESSAGING_API`: Return only audiences created with Messaging API. ")] = None, **kwargs) -> GetAudienceGroupsResponse: # noqa: E501
11751177
"""get_audience_groups # noqa: E501
11761178
11771179
Gets data for more than one audience. # noqa: E501
@@ -1183,15 +1185,15 @@ def get_audience_groups(self, page : Annotated[conint(strict=True, ge=1), Field(
11831185
11841186
:param page: The page to return when getting (paginated) results. Must be 1 or higher. (required)
11851187
:type page: int
1186-
:param description: The name of the audience(s) to return. You can search for partial matches. This is case-insensitive, meaning AUDIENCE and audience are considered identical. If omitted, the name of the audience(s) will not be used as a search criterion. (required)
1188+
:param description: The name of the audience(s) to return. You can search for partial matches. This is case-insensitive, meaning AUDIENCE and audience are considered identical. If omitted, the name of the audience(s) will not be used as a search criterion.
11871189
:type description: str
1188-
:param status: The status of the audience(s) to return. If omitted, the status of the audience(s) will not be used as a search criterion. (required)
1190+
:param status: The status of the audience(s) to return. If omitted, the status of the audience(s) will not be used as a search criterion.
11891191
:type status: AudienceGroupStatus
1190-
:param size: The number of audiences per page. Default: 20 Max: 40 (required)
1192+
:param size: The number of audiences per page. Default: 20 Max: 40
11911193
:type size: int
1192-
:param includes_external_public_groups: true (default): Get public audiences created in all channels linked to the same bot. false: Get audiences created in the same channel. (required)
1194+
:param includes_external_public_groups: true (default): Get public audiences created in all channels linked to the same bot. false: Get audiences created in the same channel.
11931195
:type includes_external_public_groups: bool
1194-
:param create_route: How the audience was created. If omitted, all audiences are included. `OA_MANAGER`: Return only audiences created with LINE Official Account Manager (opens new window). `MESSAGING_API`: Return only audiences created with Messaging API. (required)
1196+
:param create_route: How the audience was created. If omitted, all audiences are included. `OA_MANAGER`: Return only audiences created with LINE Official Account Manager (opens new window). `MESSAGING_API`: Return only audiences created with Messaging API.
11951197
:type create_route: AudienceGroupCreateRoute
11961198
:param async_req: Whether to execute the request asynchronously.
11971199
:type async_req: bool, optional
@@ -1210,7 +1212,7 @@ def get_audience_groups(self, page : Annotated[conint(strict=True, ge=1), Field(
12101212
return self.get_audience_groups_with_http_info(page, description, status, size, includes_external_public_groups, create_route, **kwargs) # noqa: E501
12111213

12121214
@validate_arguments
1213-
def get_audience_groups_with_http_info(self, page : Annotated[conint(strict=True, ge=1), Field(..., description="The page to return when getting (paginated) results. Must be 1 or higher.")], description : Annotated[StrictStr, Field(..., description="The name of the audience(s) to return. You can search for partial matches. This is case-insensitive, meaning AUDIENCE and audience are considered identical. If omitted, the name of the audience(s) will not be used as a search criterion. ")], status : Annotated[AudienceGroupStatus, Field(..., description="The status of the audience(s) to return. If omitted, the status of the audience(s) will not be used as a search criterion. ")], size : Annotated[conint(strict=True, le=40), Field(..., description="The number of audiences per page. Default: 20 Max: 40 ")], includes_external_public_groups : Annotated[StrictBool, Field(..., description="true (default): Get public audiences created in all channels linked to the same bot. false: Get audiences created in the same channel. ")], create_route : Annotated[AudienceGroupCreateRoute, Field(..., description="How the audience was created. If omitted, all audiences are included. `OA_MANAGER`: Return only audiences created with LINE Official Account Manager (opens new window). `MESSAGING_API`: Return only audiences created with Messaging API. ")], **kwargs) -> ApiResponse: # noqa: E501
1215+
def get_audience_groups_with_http_info(self, page : Annotated[conint(strict=True, ge=1), Field(..., description="The page to return when getting (paginated) results. Must be 1 or higher.")], description : Annotated[Optional[StrictStr], Field(description="The name of the audience(s) to return. You can search for partial matches. This is case-insensitive, meaning AUDIENCE and audience are considered identical. If omitted, the name of the audience(s) will not be used as a search criterion. ")] = None, status : Annotated[Optional[AudienceGroupStatus], Field(description="The status of the audience(s) to return. If omitted, the status of the audience(s) will not be used as a search criterion. ")] = None, size : Annotated[Optional[conint(strict=True, le=40)], Field(description="The number of audiences per page. Default: 20 Max: 40 ")] = None, includes_external_public_groups : Annotated[Optional[StrictBool], Field(description="true (default): Get public audiences created in all channels linked to the same bot. false: Get audiences created in the same channel. ")] = None, create_route : Annotated[Optional[AudienceGroupCreateRoute], Field(description="How the audience was created. If omitted, all audiences are included. `OA_MANAGER`: Return only audiences created with LINE Official Account Manager (opens new window). `MESSAGING_API`: Return only audiences created with Messaging API. ")] = None, **kwargs) -> ApiResponse: # noqa: E501
12141216
"""get_audience_groups # noqa: E501
12151217
12161218
Gets data for more than one audience. # noqa: E501
@@ -1222,15 +1224,15 @@ def get_audience_groups_with_http_info(self, page : Annotated[conint(strict=True
12221224
12231225
:param page: The page to return when getting (paginated) results. Must be 1 or higher. (required)
12241226
:type page: int
1225-
:param description: The name of the audience(s) to return. You can search for partial matches. This is case-insensitive, meaning AUDIENCE and audience are considered identical. If omitted, the name of the audience(s) will not be used as a search criterion. (required)
1227+
:param description: The name of the audience(s) to return. You can search for partial matches. This is case-insensitive, meaning AUDIENCE and audience are considered identical. If omitted, the name of the audience(s) will not be used as a search criterion.
12261228
:type description: str
1227-
:param status: The status of the audience(s) to return. If omitted, the status of the audience(s) will not be used as a search criterion. (required)
1229+
:param status: The status of the audience(s) to return. If omitted, the status of the audience(s) will not be used as a search criterion.
12281230
:type status: AudienceGroupStatus
1229-
:param size: The number of audiences per page. Default: 20 Max: 40 (required)
1231+
:param size: The number of audiences per page. Default: 20 Max: 40
12301232
:type size: int
1231-
:param includes_external_public_groups: true (default): Get public audiences created in all channels linked to the same bot. false: Get audiences created in the same channel. (required)
1233+
:param includes_external_public_groups: true (default): Get public audiences created in all channels linked to the same bot. false: Get audiences created in the same channel.
12321234
:type includes_external_public_groups: bool
1233-
:param create_route: How the audience was created. If omitted, all audiences are included. `OA_MANAGER`: Return only audiences created with LINE Official Account Manager (opens new window). `MESSAGING_API`: Return only audiences created with Messaging API. (required)
1235+
:param create_route: How the audience was created. If omitted, all audiences are included. `OA_MANAGER`: Return only audiences created with LINE Official Account Manager (opens new window). `MESSAGING_API`: Return only audiences created with Messaging API.
12341236
:type create_route: AudienceGroupCreateRoute
12351237
:param async_req: Whether to execute the request asynchronously.
12361238
:type async_req: bool, optional

linebot/v3/audience/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7777
self.default_headers['Authorization'] = 'Bearer ' + configuration.access_token
7878
self.cookie = cookie
7979
# Set default User-Agent.
80-
self.user_agent = 'line-bot-sdk-python/3.1.0'
80+
self.user_agent = 'line-bot-sdk-python/3.2.0'
8181
self.client_side_validation = configuration.client_side_validation
8282

8383
def __enter__(self):

linebot/v3/audience/async_api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7777
self.default_headers['Authorization'] = 'Bearer ' + configuration.access_token
7878
self.cookie = cookie
7979
# Set default User-Agent.
80-
self.user_agent = 'line-bot-sdk-python-async/3.1.0'
80+
self.user_agent = 'line-bot-sdk-python-async/3.2.0'
8181
self.client_side_validation = configuration.client_side_validation
8282

8383
async def __aenter__(self):

linebot/v3/audience/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def to_debug_report(self):
372372
"OS: {env}\n"\
373373
"Python Version: {pyversion}\n"\
374374
"Version of the API: 0.0.1\n"\
375-
"SDK Package Version: 3.1.0".\
375+
"SDK Package Version: 3.2.0".\
376376
format(env=sys.platform, pyversion=sys.version)
377377

378378
def get_host_settings(self):

linebot/v3/audience/docs/ManageAudience.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ This endpoint does not need any parameter.
610610
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
611611

612612
# **get_audience_groups**
613-
> GetAudienceGroupsResponse get_audience_groups(page, description, status, size, includes_external_public_groups, create_route)
613+
> GetAudienceGroupsResponse get_audience_groups(page, description=description, status=status, size=size, includes_external_public_groups=includes_external_public_groups, create_route=create_route)
614614
615615

616616

@@ -650,14 +650,14 @@ with linebot.v3.audience.ApiClient(configuration) as api_client:
650650
# Create an instance of the API class
651651
api_instance = linebot.v3.audience.ManageAudience(api_client)
652652
page = 56 # int | The page to return when getting (paginated) results. Must be 1 or higher.
653-
description = 'description_example' # str | The name of the audience(s) to return. You can search for partial matches. This is case-insensitive, meaning AUDIENCE and audience are considered identical. If omitted, the name of the audience(s) will not be used as a search criterion.
654-
status = linebot.v3.audience.AudienceGroupStatus() # AudienceGroupStatus | The status of the audience(s) to return. If omitted, the status of the audience(s) will not be used as a search criterion.
655-
size = 20 # int | The number of audiences per page. Default: 20 Max: 40
656-
includes_external_public_groups = true # bool | true (default): Get public audiences created in all channels linked to the same bot. false: Get audiences created in the same channel.
657-
create_route = linebot.v3.audience.AudienceGroupCreateRoute() # AudienceGroupCreateRoute | How the audience was created. If omitted, all audiences are included. `OA_MANAGER`: Return only audiences created with LINE Official Account Manager (opens new window). `MESSAGING_API`: Return only audiences created with Messaging API.
653+
description = 'description_example' # str | The name of the audience(s) to return. You can search for partial matches. This is case-insensitive, meaning AUDIENCE and audience are considered identical. If omitted, the name of the audience(s) will not be used as a search criterion. (optional)
654+
status = linebot.v3.audience.AudienceGroupStatus() # AudienceGroupStatus | The status of the audience(s) to return. If omitted, the status of the audience(s) will not be used as a search criterion. (optional)
655+
size = 20 # int | The number of audiences per page. Default: 20 Max: 40 (optional)
656+
includes_external_public_groups = true # bool | true (default): Get public audiences created in all channels linked to the same bot. false: Get audiences created in the same channel. (optional)
657+
create_route = linebot.v3.audience.AudienceGroupCreateRoute() # AudienceGroupCreateRoute | How the audience was created. If omitted, all audiences are included. `OA_MANAGER`: Return only audiences created with LINE Official Account Manager (opens new window). `MESSAGING_API`: Return only audiences created with Messaging API. (optional)
658658

659659
try:
660-
api_response = api_instance.get_audience_groups(page, description, status, size, includes_external_public_groups, create_route)
660+
api_response = api_instance.get_audience_groups(page, description=description, status=status, size=size, includes_external_public_groups=includes_external_public_groups, create_route=create_route)
661661
print("The response of ManageAudience->get_audience_groups:\n")
662662
pprint(api_response)
663663
except Exception as e:
@@ -670,11 +670,11 @@ with linebot.v3.audience.ApiClient(configuration) as api_client:
670670
Name | Type | Description | Notes
671671
------------- | ------------- | ------------- | -------------
672672
**page** | **int**| The page to return when getting (paginated) results. Must be 1 or higher. |
673-
**description** | **str**| The name of the audience(s) to return. You can search for partial matches. This is case-insensitive, meaning AUDIENCE and audience are considered identical. If omitted, the name of the audience(s) will not be used as a search criterion. |
674-
**status** | [**AudienceGroupStatus**](.md)| The status of the audience(s) to return. If omitted, the status of the audience(s) will not be used as a search criterion. |
675-
**size** | **int**| The number of audiences per page. Default: 20 Max: 40 |
676-
**includes_external_public_groups** | **bool**| true (default): Get public audiences created in all channels linked to the same bot. false: Get audiences created in the same channel. |
677-
**create_route** | [**AudienceGroupCreateRoute**](.md)| How the audience was created. If omitted, all audiences are included. &#x60;OA_MANAGER&#x60;: Return only audiences created with LINE Official Account Manager (opens new window). &#x60;MESSAGING_API&#x60;: Return only audiences created with Messaging API. |
673+
**description** | **str**| The name of the audience(s) to return. You can search for partial matches. This is case-insensitive, meaning AUDIENCE and audience are considered identical. If omitted, the name of the audience(s) will not be used as a search criterion. | [optional]
674+
**status** | [**AudienceGroupStatus**](.md)| The status of the audience(s) to return. If omitted, the status of the audience(s) will not be used as a search criterion. | [optional]
675+
**size** | **int**| The number of audiences per page. Default: 20 Max: 40 | [optional]
676+
**includes_external_public_groups** | **bool**| true (default): Get public audiences created in all channels linked to the same bot. false: Get audiences created in the same channel. | [optional]
677+
**create_route** | [**AudienceGroupCreateRoute**](.md)| How the audience was created. If omitted, all audiences are included. &#x60;OA_MANAGER&#x60;: Return only audiences created with LINE Official Account Manager (opens new window). &#x60;MESSAGING_API&#x60;: Return only audiences created with Messaging API. | [optional]
678678

679679
### Return type
680680

linebot/v3/insight/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"""
1515

1616

17-
__version__ = "3.1.0"
17+
__version__ = "3.2.0"
1818

1919
# import apis into sdk package
2020
from linebot.v3.insight.api.insight import Insight

linebot/v3/insight/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7777
self.default_headers['Authorization'] = 'Bearer ' + configuration.access_token
7878
self.cookie = cookie
7979
# Set default User-Agent.
80-
self.user_agent = 'line-bot-sdk-python/3.1.0'
80+
self.user_agent = 'line-bot-sdk-python/3.2.0'
8181
self.client_side_validation = configuration.client_side_validation
8282

8383
def __enter__(self):

0 commit comments

Comments
 (0)