Skip to content

Commit

Permalink
Bump version to 3.2.0 (#500)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions <[email protected]>
  • Loading branch information
github-actions[bot] and github-actions authored Aug 4, 2023
1 parent 8378038 commit 8fc4fc3
Show file tree
Hide file tree
Showing 36 changed files with 75 additions and 71 deletions.
2 changes: 1 addition & 1 deletion linebot/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""Meta data of line-bot-sdk."""


__version__ = '3.1.0'
__version__ = '3.2.0'
__author__ = 'LINE Corporation'
__copyright__ = 'Copyright 2016, LINE Corporation'
__license__ = 'Apache 2.0'
Expand Down
2 changes: 1 addition & 1 deletion linebot/v3/audience/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"""


__version__ = "3.1.0"
__version__ = "3.2.0"

# import apis into sdk package
from linebot.v3.audience.api.manage_audience import ManageAudience
Expand Down
30 changes: 16 additions & 14 deletions linebot/v3/audience/api/async_manage_audience.py

Large diffs are not rendered by default.

26 changes: 14 additions & 12 deletions linebot/v3/audience/api/manage_audience.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

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

from typing import Optional

from linebot.v3.audience.models.add_audience_to_audience_group_request import AddAudienceToAudienceGroupRequest
from linebot.v3.audience.models.audience_group_create_route import AudienceGroupCreateRoute
from linebot.v3.audience.models.audience_group_status import AudienceGroupStatus
Expand Down Expand Up @@ -1171,7 +1173,7 @@ def get_audience_group_authority_level_with_http_info(self, **kwargs) -> ApiResp
_request_auth=_params.get('_request_auth'))

@validate_arguments
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
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
"""get_audience_groups # noqa: E501
Gets data for more than one audience. # noqa: E501
Expand All @@ -1183,15 +1185,15 @@ def get_audience_groups(self, page : Annotated[conint(strict=True, ge=1), Field(
:param page: The page to return when getting (paginated) results. Must be 1 or higher. (required)
:type page: int
: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)
: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.
:type description: str
: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)
: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.
:type status: AudienceGroupStatus
:param size: The number of audiences per page. Default: 20 Max: 40 (required)
:param size: The number of audiences per page. Default: 20 Max: 40
:type size: int
: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)
: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.
:type includes_external_public_groups: bool
: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)
: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.
:type create_route: AudienceGroupCreateRoute
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
Expand All @@ -1210,7 +1212,7 @@ def get_audience_groups(self, page : Annotated[conint(strict=True, ge=1), Field(
return self.get_audience_groups_with_http_info(page, description, status, size, includes_external_public_groups, create_route, **kwargs) # noqa: E501

@validate_arguments
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
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
"""get_audience_groups # noqa: E501
Gets data for more than one audience. # noqa: E501
Expand All @@ -1222,15 +1224,15 @@ def get_audience_groups_with_http_info(self, page : Annotated[conint(strict=True
:param page: The page to return when getting (paginated) results. Must be 1 or higher. (required)
:type page: int
: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)
: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.
:type description: str
: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)
: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.
:type status: AudienceGroupStatus
:param size: The number of audiences per page. Default: 20 Max: 40 (required)
:param size: The number of audiences per page. Default: 20 Max: 40
:type size: int
: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)
: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.
:type includes_external_public_groups: bool
: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)
: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.
:type create_route: AudienceGroupCreateRoute
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
Expand Down
2 changes: 1 addition & 1 deletion linebot/v3/audience/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
self.default_headers['Authorization'] = 'Bearer ' + configuration.access_token
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'line-bot-sdk-python/3.1.0'
self.user_agent = 'line-bot-sdk-python/3.2.0'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
2 changes: 1 addition & 1 deletion linebot/v3/audience/async_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
self.default_headers['Authorization'] = 'Bearer ' + configuration.access_token
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'line-bot-sdk-python-async/3.1.0'
self.user_agent = 'line-bot-sdk-python-async/3.2.0'
self.client_side_validation = configuration.client_side_validation

async def __aenter__(self):
Expand Down
2 changes: 1 addition & 1 deletion linebot/v3/audience/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 0.0.1\n"\
"SDK Package Version: 3.1.0".\
"SDK Package Version: 3.2.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
24 changes: 12 additions & 12 deletions linebot/v3/audience/docs/ManageAudience.md
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ This endpoint does not need any parameter.
[[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)

# **get_audience_groups**
> GetAudienceGroupsResponse get_audience_groups(page, description, status, size, includes_external_public_groups, create_route)
> GetAudienceGroupsResponse get_audience_groups(page, description=description, status=status, size=size, includes_external_public_groups=includes_external_public_groups, create_route=create_route)


Expand Down Expand Up @@ -650,14 +650,14 @@ with linebot.v3.audience.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = linebot.v3.audience.ManageAudience(api_client)
page = 56 # int | The page to return when getting (paginated) results. Must be 1 or higher.
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.
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.
size = 20 # int | The number of audiences per page. Default: 20 Max: 40
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.
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.
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)
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)
size = 20 # int | The number of audiences per page. Default: 20 Max: 40 (optional)
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)
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)

try:
api_response = api_instance.get_audience_groups(page, description, status, size, includes_external_public_groups, create_route)
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)
print("The response of ManageAudience->get_audience_groups:\n")
pprint(api_response)
except Exception as e:
Expand All @@ -670,11 +670,11 @@ with linebot.v3.audience.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**page** | **int**| The page to return when getting (paginated) results. Must be 1 or higher. |
**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. |
**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. |
**size** | **int**| The number of audiences per page. Default: 20 Max: 40 |
**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. |
**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. |
**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]
**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]
**size** | **int**| The number of audiences per page. Default: 20 Max: 40 | [optional]
**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]
**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]

### Return type

Expand Down
2 changes: 1 addition & 1 deletion linebot/v3/insight/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"""


__version__ = "3.1.0"
__version__ = "3.2.0"

# import apis into sdk package
from linebot.v3.insight.api.insight import Insight
Expand Down
2 changes: 1 addition & 1 deletion linebot/v3/insight/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
self.default_headers['Authorization'] = 'Bearer ' + configuration.access_token
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'line-bot-sdk-python/3.1.0'
self.user_agent = 'line-bot-sdk-python/3.2.0'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
Loading

0 comments on commit 8fc4fc3

Please sign in to comment.