Skip to content

Commit 457183b

Browse files
committed
Add missed comments
1 parent 693fda9 commit 457183b

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

generator/src/main/resources/line-bot-sdk-ruby-rbs-generator/api.pebble

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ module Line
4949
) -> void
5050
{%- for op in operations.operation %}
5151

52+
{% if op.nickname == "issue_stateless_channel_token" -%}
53+
# @deprecated
54+
# This is deprecated.
55+
# Please use {{ '{' }}#issue_stateless_channel_token_by_jwt_assertion_with_http_info} or {{ '{' }}#issue_stateless_channel_token_by_client_secret_with_http_info} instead.
56+
#
57+
{% endif -%}
5258
# {{ op.notes }}
5359
# This requests to <code>{{ op.httpMethod }} {{ endpoint(operations.classname) }}{{ op.path }}</code>
5460
# This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
@@ -84,6 +90,12 @@ module Line
8490
| [String?, Integer, Hash[untyped, untyped]] # otherwise
8591
)
8692

93+
{% if op.nickname == "issue_stateless_channel_token" -%}
94+
# @deprecated
95+
# This is deprecated.
96+
# Please use {{ '{' }}#issue_stateless_channel_token_by_jwt_assertion} or {{ '{' }}#issue_stateless_channel_token_by_client_secret} instead.
97+
#
98+
{% endif -%}
8799
# {{ op.notes }}
88100
# This requests to <code>{{ op.httpMethod }} {{ endpoint(operations.classname) }}{{ op.path }}</code>
89101
# When you want to get HTTP status code or response headers, use {{ '{#' }}{{op.nickname}}_with_http_info} instead of this.

sig/line/bot/v2/channel_access_token/api/channel_access_token_client.rbs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ module Line
147147
| String? # otherwise
148148
)
149149

150+
# @deprecated
151+
# This is deprecated.
152+
# Please use {#issue_stateless_channel_token_by_jwt_assertion_with_http_info} or {#issue_stateless_channel_token_by_client_secret_with_http_info} instead.
153+
#
150154
# Issues a new stateless channel access token, which doesn't have max active token limit unlike the other token types. The newly issued token is only valid for 15 minutes but can not be revoked until it naturally expires.
151155
# This requests to <code>POST https://api.line.me/oauth2/v3/token</code>
152156
# This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
@@ -170,6 +174,10 @@ module Line
170174
| [String?, Integer, Hash[untyped, untyped]] # otherwise
171175
)
172176

177+
# @deprecated
178+
# This is deprecated.
179+
# Please use {#issue_stateless_channel_token_by_jwt_assertion} or {#issue_stateless_channel_token_by_client_secret} instead.
180+
#
173181
# Issues a new stateless channel access token, which doesn't have max active token limit unlike the other token types. The newly issued token is only valid for 15 minutes but can not be revoked until it naturally expires.
174182
# This requests to <code>POST https://api.line.me/oauth2/v3/token</code>
175183
# When you want to get HTTP status code or response headers, use {#issue_stateless_channel_token_with_http_info} instead of this.

0 commit comments

Comments
 (0)