Skip to content

Commit ef77d60

Browse files
committed
Run generate-code.py
1 parent 01dfed6 commit ef77d60

File tree

8 files changed

+104
-104
lines changed

8 files changed

+104
-104
lines changed

lib/line/bot/v2/channel_access_token/api/channel_access_token_client.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def issue_stateless_channel_token(
315315
# @param access_token [String] Channel access token
316316
# @see https://developers.line.biz/en/reference/messaging-api/#revoke-longlived-or-shortlived-channel-access-token
317317
# @return [response body, response status code, and response headers]
318-
# @return [Array(String(nilable), Integer, Hash{String => String})] when HTTP status code is 200
318+
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 200
319319
def revoke_channel_token_with_http_info(
320320
access_token:
321321
)
@@ -346,7 +346,7 @@ def revoke_channel_token_with_http_info(
346346
#
347347
# @param access_token [String] Channel access token
348348
# @see https://developers.line.biz/en/reference/messaging-api/#revoke-longlived-or-shortlived-channel-access-token
349-
# @return [String, nil] when HTTP status code is 200
349+
# @return [String|nil] when HTTP status code is 200
350350
def revoke_channel_token(
351351
access_token:
352352
)
@@ -365,7 +365,7 @@ def revoke_channel_token(
365365
# @param access_token [String] Channel access token
366366
# @see https://developers.line.biz/en/reference/messaging-api/#revoke-channel-access-token-v2-1
367367
# @return [response body, response status code, and response headers]
368-
# @return [Array(String(nilable), Integer, Hash{String => String})] when HTTP status code is 200
368+
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 200
369369
def revoke_channel_token_by_jwt_with_http_info(
370370
client_id:,
371371
client_secret:,
@@ -402,7 +402,7 @@ def revoke_channel_token_by_jwt_with_http_info(
402402
# @param client_secret [String] Channel Secret
403403
# @param access_token [String] Channel access token
404404
# @see https://developers.line.biz/en/reference/messaging-api/#revoke-channel-access-token-v2-1
405-
# @return [String, nil] when HTTP status code is 200
405+
# @return [String|nil] when HTTP status code is 200
406406
def revoke_channel_token_by_jwt(
407407
client_id:,
408408
client_secret:,

lib/line/bot/v2/liff/api/liff_client.rb

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ def initialize(base_url: nil, channel_access_token:, http_options: {})
5252
# @see https://developers.line.biz/en/reference/liff-server/#add-liff-app
5353
# @return [response body, response status code, and response headers]
5454
# @return [Array(Line::Bot::V2::Liff::AddLiffAppResponse, Integer, Hash{String => String})] when HTTP status code is 200
55-
# @return [Array(String(nilable), Integer, Hash{String => String})] when HTTP status code is 400
56-
# @return [Array(String(nilable), Integer, Hash{String => String})] when HTTP status code is 401
55+
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 400
56+
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 401
5757
def add_liff_app_with_http_info(
5858
add_liff_app_request:
5959
)
@@ -89,8 +89,8 @@ def add_liff_app_with_http_info(
8989
# @param add_liff_app_request [AddLiffAppRequest]
9090
# @see https://developers.line.biz/en/reference/liff-server/#add-liff-app
9191
# @return [Line::Bot::V2::Liff::AddLiffAppResponse] when HTTP status code is 200
92-
# @return [String, nil] when HTTP status code is 400
93-
# @return [String, nil] when HTTP status code is 401
92+
# @return [String|nil] when HTTP status code is 400
93+
# @return [String|nil] when HTTP status code is 401
9494
def add_liff_app(
9595
add_liff_app_request:
9696
)
@@ -107,9 +107,9 @@ def add_liff_app(
107107
# @param liff_id [String] ID of the LIFF app to be updated
108108
# @see https://developers.line.biz/en/reference/liff-server/#delete-liff-app
109109
# @return [response body, response status code, and response headers]
110-
# @return [Array(String(nilable), Integer, Hash{String => String})] when HTTP status code is 200
111-
# @return [Array(String(nilable), Integer, Hash{String => String})] when HTTP status code is 401
112-
# @return [Array(String(nilable), Integer, Hash{String => String})] when HTTP status code is 404
110+
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 200
111+
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 401
112+
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 404
113113
def delete_liff_app_with_http_info(
114114
liff_id:
115115
)
@@ -140,9 +140,9 @@ def delete_liff_app_with_http_info(
140140
#
141141
# @param liff_id [String] ID of the LIFF app to be updated
142142
# @see https://developers.line.biz/en/reference/liff-server/#delete-liff-app
143-
# @return [String, nil] when HTTP status code is 200
144-
# @return [String, nil] when HTTP status code is 401
145-
# @return [String, nil] when HTTP status code is 404
143+
# @return [String|nil] when HTTP status code is 200
144+
# @return [String|nil] when HTTP status code is 401
145+
# @return [String|nil] when HTTP status code is 404
146146
def delete_liff_app(
147147
liff_id:
148148
)
@@ -159,8 +159,8 @@ def delete_liff_app(
159159
# @see https://developers.line.biz/en/reference/liff-server/#get-all-liff-apps
160160
# @return [response body, response status code, and response headers]
161161
# @return [Array(Line::Bot::V2::Liff::GetAllLiffAppsResponse, Integer, Hash{String => String})] when HTTP status code is 200
162-
# @return [Array(String(nilable), Integer, Hash{String => String})] when HTTP status code is 401
163-
# @return [Array(String(nilable), Integer, Hash{String => String})] when HTTP status code is 404
162+
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 401
163+
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 404
164164
def get_all_liff_apps_with_http_info(
165165
)
166166
path = "/liff/v1/apps"
@@ -193,8 +193,8 @@ def get_all_liff_apps_with_http_info(
193193
#
194194
# @see https://developers.line.biz/en/reference/liff-server/#get-all-liff-apps
195195
# @return [Line::Bot::V2::Liff::GetAllLiffAppsResponse] when HTTP status code is 200
196-
# @return [String, nil] when HTTP status code is 401
197-
# @return [String, nil] when HTTP status code is 404
196+
# @return [String|nil] when HTTP status code is 401
197+
# @return [String|nil] when HTTP status code is 404
198198
def get_all_liff_apps(
199199
)
200200
response_body, _status_code, _headers = get_all_liff_apps_with_http_info(
@@ -210,10 +210,10 @@ def get_all_liff_apps(
210210
# @param update_liff_app_request [UpdateLiffAppRequest]
211211
# @see https://developers.line.biz/en/reference/liff-server/#update-liff-app
212212
# @return [response body, response status code, and response headers]
213-
# @return [Array(String(nilable), Integer, Hash{String => String})] when HTTP status code is 200
214-
# @return [Array(String(nilable), Integer, Hash{String => String})] when HTTP status code is 400
215-
# @return [Array(String(nilable), Integer, Hash{String => String})] when HTTP status code is 401
216-
# @return [Array(String(nilable), Integer, Hash{String => String})] when HTTP status code is 404
213+
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 200
214+
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 400
215+
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 401
216+
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 404
217217
def update_liff_app_with_http_info(
218218
liff_id:,
219219
update_liff_app_request:
@@ -249,10 +249,10 @@ def update_liff_app_with_http_info(
249249
# @param liff_id [String] ID of the LIFF app to be updated
250250
# @param update_liff_app_request [UpdateLiffAppRequest]
251251
# @see https://developers.line.biz/en/reference/liff-server/#update-liff-app
252-
# @return [String, nil] when HTTP status code is 200
253-
# @return [String, nil] when HTTP status code is 400
254-
# @return [String, nil] when HTTP status code is 401
255-
# @return [String, nil] when HTTP status code is 404
252+
# @return [String|nil] when HTTP status code is 200
253+
# @return [String|nil] when HTTP status code is 400
254+
# @return [String|nil] when HTTP status code is 401
255+
# @return [String|nil] when HTTP status code is 404
256256
def update_liff_app(
257257
liff_id:,
258258
update_liff_app_request:

lib/line/bot/v2/manage_audience/api/manage_audience_blob_client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def initialize(base_url: nil, channel_access_token:, http_options: {})
5353
# @param upload_description [String, nil] The description to register with the job
5454
# @see https://developers.line.biz/en/reference/messaging-api/#update-upload-audience-group-by-file
5555
# @return [response body, response status code, and response headers]
56-
# @return [Array(String(nilable), Integer, Hash{String => String})] when HTTP status code is 202
56+
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 202
5757
def add_user_ids_to_audience_with_http_info(
5858
file:,
5959
audience_group_id: nil,
@@ -90,7 +90,7 @@ def add_user_ids_to_audience_with_http_info(
9090
# @param audience_group_id [Integer, nil] The audience ID.
9191
# @param upload_description [String, nil] The description to register with the job
9292
# @see https://developers.line.biz/en/reference/messaging-api/#update-upload-audience-group-by-file
93-
# @return [String, nil] when HTTP status code is 202
93+
# @return [String|nil] when HTTP status code is 202
9494
def add_user_ids_to_audience(
9595
file:,
9696
audience_group_id: nil,

lib/line/bot/v2/manage_audience/api/manage_audience_client.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def initialize(base_url: nil, channel_access_token:, http_options: {})
5151
# @param add_audience_to_audience_group_request [AddAudienceToAudienceGroupRequest]
5252
# @see https://developers.line.biz/en/reference/messaging-api/#update-upload-audience-group
5353
# @return [response body, response status code, and response headers]
54-
# @return [Array(String(nilable), Integer, Hash{String => String})] when HTTP status code is 202
54+
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 202
5555
def add_audience_to_audience_group_with_http_info(
5656
add_audience_to_audience_group_request:
5757
)
@@ -78,7 +78,7 @@ def add_audience_to_audience_group_with_http_info(
7878
#
7979
# @param add_audience_to_audience_group_request [AddAudienceToAudienceGroupRequest]
8080
# @see https://developers.line.biz/en/reference/messaging-api/#update-upload-audience-group
81-
# @return [String, nil] when HTTP status code is 202
81+
# @return [String|nil] when HTTP status code is 202
8282
def add_audience_to_audience_group(
8383
add_audience_to_audience_group_request:
8484
)
@@ -239,7 +239,7 @@ def create_imp_based_audience_group(
239239
# @param audience_group_id [Integer] The audience ID.
240240
# @see https://developers.line.biz/en/reference/messaging-api/#delete-audience-group
241241
# @return [response body, response status code, and response headers]
242-
# @return [Array(String(nilable), Integer, Hash{String => String})] when HTTP status code is 200
242+
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 200
243243
def delete_audience_group_with_http_info(
244244
audience_group_id:
245245
)
@@ -266,7 +266,7 @@ def delete_audience_group_with_http_info(
266266
#
267267
# @param audience_group_id [Integer] The audience ID.
268268
# @see https://developers.line.biz/en/reference/messaging-api/#delete-audience-group
269-
# @return [String, nil] when HTTP status code is 200
269+
# @return [String|nil] when HTTP status code is 200
270270
def delete_audience_group(
271271
audience_group_id:
272272
)
@@ -558,7 +558,7 @@ def get_shared_audience_groups(
558558
# @param update_audience_group_description_request [UpdateAudienceGroupDescriptionRequest]
559559
# @see https://developers.line.biz/en/reference/messaging-api/#set-description-audience-group
560560
# @return [response body, response status code, and response headers]
561-
# @return [Array(String(nilable), Integer, Hash{String => String})] when HTTP status code is 200
561+
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 200
562562
def update_audience_group_description_with_http_info(
563563
audience_group_id:,
564564
update_audience_group_description_request:
@@ -588,7 +588,7 @@ def update_audience_group_description_with_http_info(
588588
# @param audience_group_id [Integer] The audience ID.
589589
# @param update_audience_group_description_request [UpdateAudienceGroupDescriptionRequest]
590590
# @see https://developers.line.biz/en/reference/messaging-api/#set-description-audience-group
591-
# @return [String, nil] when HTTP status code is 200
591+
# @return [String|nil] when HTTP status code is 200
592592
def update_audience_group_description(
593593
audience_group_id:,
594594
update_audience_group_description_request:

lib/line/bot/v2/messaging_api/api/messaging_api_blob_client.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def initialize(base_url: nil, channel_access_token:, http_options: {})
5151
# @param message_id [String] Message ID of video or audio
5252
# @see https://developers.line.biz/en/reference/messaging-api/#get-content
5353
# @return [response body, response status code, and response headers]
54-
# @return [Array(String(nilable), Integer, Hash{String => String})] when HTTP status code is 200
54+
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 200
5555
def get_message_content_with_http_info(
5656
message_id:
5757
)
@@ -78,7 +78,7 @@ def get_message_content_with_http_info(
7878
#
7979
# @param message_id [String] Message ID of video or audio
8080
# @see https://developers.line.biz/en/reference/messaging-api/#get-content
81-
# @return [String, nil] when HTTP status code is 200
81+
# @return [String|nil] when HTTP status code is 200
8282
def get_message_content(
8383
message_id:
8484
)
@@ -95,7 +95,7 @@ def get_message_content(
9595
# @param message_id [String] Message ID of image or video
9696
# @see https://developers.line.biz/en/reference/messaging-api/#get-image-or-video-preview
9797
# @return [response body, response status code, and response headers]
98-
# @return [Array(String(nilable), Integer, Hash{String => String})] when HTTP status code is 200
98+
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 200
9999
def get_message_content_preview_with_http_info(
100100
message_id:
101101
)
@@ -122,7 +122,7 @@ def get_message_content_preview_with_http_info(
122122
#
123123
# @param message_id [String] Message ID of image or video
124124
# @see https://developers.line.biz/en/reference/messaging-api/#get-image-or-video-preview
125-
# @return [String, nil] when HTTP status code is 200
125+
# @return [String|nil] when HTTP status code is 200
126126
def get_message_content_preview(
127127
message_id:
128128
)
@@ -187,7 +187,7 @@ def get_message_content_transcoding_by_message_id(
187187
# @param rich_menu_id [String] ID of the rich menu with the image to be downloaded
188188
# @see https://developers.line.biz/en/reference/messaging-api/#download-rich-menu-image
189189
# @return [response body, response status code, and response headers]
190-
# @return [Array(String(nilable), Integer, Hash{String => String})] when HTTP status code is 200
190+
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 200
191191
def get_rich_menu_image_with_http_info(
192192
rich_menu_id:
193193
)
@@ -214,7 +214,7 @@ def get_rich_menu_image_with_http_info(
214214
#
215215
# @param rich_menu_id [String] ID of the rich menu with the image to be downloaded
216216
# @see https://developers.line.biz/en/reference/messaging-api/#download-rich-menu-image
217-
# @return [String, nil] when HTTP status code is 200
217+
# @return [String|nil] when HTTP status code is 200
218218
def get_rich_menu_image(
219219
rich_menu_id:
220220
)
@@ -232,7 +232,7 @@ def get_rich_menu_image(
232232
# @param body [File, nil]
233233
# @see https://developers.line.biz/en/reference/messaging-api/#upload-rich-menu-image
234234
# @return [response body, response status code, and response headers]
235-
# @return [Array(String(nilable), Integer, Hash{String => String})] when HTTP status code is 200
235+
# @return [String|nil, Integer, Hash{String => String})] when HTTP status code is 200
236236
def set_rich_menu_image_with_http_info(
237237
rich_menu_id:,
238238
body: nil
@@ -262,7 +262,7 @@ def set_rich_menu_image_with_http_info(
262262
# @param rich_menu_id [String] The ID of the rich menu to attach the image to
263263
# @param body [File, nil]
264264
# @see https://developers.line.biz/en/reference/messaging-api/#upload-rich-menu-image
265-
# @return [String, nil] when HTTP status code is 200
265+
# @return [String|nil] when HTTP status code is 200
266266
def set_rich_menu_image(
267267
rich_menu_id:,
268268
body: nil

0 commit comments

Comments
 (0)