Skip to content

Commit 110b2a9

Browse files
committed
0.0.12 - adding "sso" param to the public delete comment endpoint
1 parent 6dcacf6 commit 110b2a9

File tree

11 files changed

+48
-21
lines changed

11 files changed

+48
-21
lines changed

client/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Add this dependency to your project's POM:
4040
<dependency>
4141
<groupId>com.fastcomments</groupId>
4242
<artifactId>client</artifactId>
43-
<version>0.0.11</version>
43+
<version>0.0.12</version>
4444
<scope>compile</scope>
4545
</dependency>
4646
```
@@ -56,7 +56,7 @@ Add this dependency to your project's build file:
5656
}
5757
5858
dependencies {
59-
implementation "com.fastcomments:client:0.0.11"
59+
implementation "com.fastcomments:client:0.0.12"
6060
}
6161
```
6262

@@ -70,7 +70,7 @@ mvn clean package
7070

7171
Then manually install the following JARs:
7272

73-
* `target/client-0.0.11.jar`
73+
* `target/client-0.0.12.jar`
7474
* `target/lib/*.jar`
7575

7676
## Getting Started

client/api/openapi.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1554,6 +1554,13 @@ paths:
15541554
schema:
15551555
type: string
15561556
style: form
1557+
- explode: true
1558+
in: query
1559+
name: sso
1560+
required: false
1561+
schema:
1562+
type: string
1563+
style: form
15571564
responses:
15581565
"200":
15591566
content:

client/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apply plugin: 'java'
44
apply plugin: 'com.diffplug.spotless'
55

66
group = 'com.fastcomments'
7-
version = '0.0.11'
7+
version = '0.0.12'
88

99
buildscript {
1010
repositories {

client/build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "com.fastcomments",
44
name := "client",
5-
version := "0.0.11",
5+
version := "0.0.12",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

client/docs/PublicApi.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ No authorization required
319319

320320
<a id="deleteCommentPublic"></a>
321321
# **deleteCommentPublic**
322-
> DeleteCommentPublic200Response deleteCommentPublic(tenantId, commentId, broadcastId).editKey(editKey).execute();
322+
> DeleteCommentPublic200Response deleteCommentPublic(tenantId, commentId, broadcastId).editKey(editKey).sso(sso).execute();
323323
324324

325325

@@ -342,9 +342,11 @@ public class Example {
342342
String commentId = "commentId_example"; // String |
343343
String broadcastId = "broadcastId_example"; // String |
344344
String editKey = "editKey_example"; // String |
345+
String sso = "sso_example"; // String |
345346
try {
346347
DeleteCommentPublic200Response result = apiInstance.deleteCommentPublic(tenantId, commentId, broadcastId)
347348
.editKey(editKey)
349+
.sso(sso)
348350
.execute();
349351
System.out.println(result);
350352
} catch (ApiException e) {
@@ -366,6 +368,7 @@ public class Example {
366368
| **commentId** | **String**| | |
367369
| **broadcastId** | **String**| | |
368370
| **editKey** | **String**| | [optional] |
371+
| **sso** | **String**| | [optional] |
369372

370373
### Return type
371374

client/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>client</artifactId>
66
<packaging>jar</packaging>
77
<name>client</name>
8-
<version>0.0.11</version>
8+
<version>0.0.12</version>
99
<url>https://fastcomments.com</url>
1010
<description>FastComments API Client - A SDK for interacting with the FastComments API</description>
1111
<scm>

client/src/main/java/com/fastcomments/api/PublicApi.java

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ public okhttp3.Call executeAsync(final ApiCallback<CreateFeedPostPublic200Respon
905905
public APIcreateFeedPostPublicRequest createFeedPostPublic(String tenantId, CreateFeedPostParams createFeedPostParams) {
906906
return new APIcreateFeedPostPublicRequest(tenantId, createFeedPostParams);
907907
}
908-
private okhttp3.Call deleteCommentPublicCall(String tenantId, String commentId, String broadcastId, String editKey, final ApiCallback _callback) throws ApiException {
908+
private okhttp3.Call deleteCommentPublicCall(String tenantId, String commentId, String broadcastId, String editKey, String sso, final ApiCallback _callback) throws ApiException {
909909
String basePath = null;
910910
// Operation Servers
911911
String[] localBasePaths = new String[] { };
@@ -940,6 +940,10 @@ private okhttp3.Call deleteCommentPublicCall(String tenantId, String commentId,
940940
localVarQueryParams.addAll(localVarApiClient.parameterToPair("editKey", editKey));
941941
}
942942

943+
if (sso != null) {
944+
localVarQueryParams.addAll(localVarApiClient.parameterToPair("sso", sso));
945+
}
946+
943947
final String[] localVarAccepts = {
944948
"application/json"
945949
};
@@ -960,7 +964,7 @@ private okhttp3.Call deleteCommentPublicCall(String tenantId, String commentId,
960964
}
961965

962966
@SuppressWarnings("rawtypes")
963-
private okhttp3.Call deleteCommentPublicValidateBeforeCall(String tenantId, String commentId, String broadcastId, String editKey, final ApiCallback _callback) throws ApiException {
967+
private okhttp3.Call deleteCommentPublicValidateBeforeCall(String tenantId, String commentId, String broadcastId, String editKey, String sso, final ApiCallback _callback) throws ApiException {
964968
// verify the required parameter 'tenantId' is set
965969
if (tenantId == null) {
966970
throw new ApiException("Missing the required parameter 'tenantId' when calling deleteCommentPublic(Async)");
@@ -976,20 +980,20 @@ private okhttp3.Call deleteCommentPublicValidateBeforeCall(String tenantId, Stri
976980
throw new ApiException("Missing the required parameter 'broadcastId' when calling deleteCommentPublic(Async)");
977981
}
978982

979-
return deleteCommentPublicCall(tenantId, commentId, broadcastId, editKey, _callback);
983+
return deleteCommentPublicCall(tenantId, commentId, broadcastId, editKey, sso, _callback);
980984

981985
}
982986

983987

984-
private ApiResponse<DeleteCommentPublic200Response> deleteCommentPublicWithHttpInfo(String tenantId, String commentId, String broadcastId, String editKey) throws ApiException {
985-
okhttp3.Call localVarCall = deleteCommentPublicValidateBeforeCall(tenantId, commentId, broadcastId, editKey, null);
988+
private ApiResponse<DeleteCommentPublic200Response> deleteCommentPublicWithHttpInfo(String tenantId, String commentId, String broadcastId, String editKey, String sso) throws ApiException {
989+
okhttp3.Call localVarCall = deleteCommentPublicValidateBeforeCall(tenantId, commentId, broadcastId, editKey, sso, null);
986990
Type localVarReturnType = new TypeToken<DeleteCommentPublic200Response>(){}.getType();
987991
return localVarApiClient.execute(localVarCall, localVarReturnType);
988992
}
989993

990-
private okhttp3.Call deleteCommentPublicAsync(String tenantId, String commentId, String broadcastId, String editKey, final ApiCallback<DeleteCommentPublic200Response> _callback) throws ApiException {
994+
private okhttp3.Call deleteCommentPublicAsync(String tenantId, String commentId, String broadcastId, String editKey, String sso, final ApiCallback<DeleteCommentPublic200Response> _callback) throws ApiException {
991995

992-
okhttp3.Call localVarCall = deleteCommentPublicValidateBeforeCall(tenantId, commentId, broadcastId, editKey, _callback);
996+
okhttp3.Call localVarCall = deleteCommentPublicValidateBeforeCall(tenantId, commentId, broadcastId, editKey, sso, _callback);
993997
Type localVarReturnType = new TypeToken<DeleteCommentPublic200Response>(){}.getType();
994998
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
995999
return localVarCall;
@@ -1000,6 +1004,7 @@ public class APIdeleteCommentPublicRequest {
10001004
private final String commentId;
10011005
private final String broadcastId;
10021006
private String editKey;
1007+
private String sso;
10031008

10041009
private APIdeleteCommentPublicRequest(String tenantId, String commentId, String broadcastId) {
10051010
this.tenantId = tenantId;
@@ -1017,6 +1022,16 @@ public APIdeleteCommentPublicRequest editKey(String editKey) {
10171022
return this;
10181023
}
10191024

1025+
/**
1026+
* Set sso
1027+
* @param sso (optional)
1028+
* @return APIdeleteCommentPublicRequest
1029+
*/
1030+
public APIdeleteCommentPublicRequest sso(String sso) {
1031+
this.sso = sso;
1032+
return this;
1033+
}
1034+
10201035
/**
10211036
* Build call for deleteCommentPublic
10221037
* @param _callback ApiCallback API callback
@@ -1030,7 +1045,7 @@ public APIdeleteCommentPublicRequest editKey(String editKey) {
10301045
</table>
10311046
*/
10321047
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
1033-
return deleteCommentPublicCall(tenantId, commentId, broadcastId, editKey, _callback);
1048+
return deleteCommentPublicCall(tenantId, commentId, broadcastId, editKey, sso, _callback);
10341049
}
10351050

10361051
/**
@@ -1045,7 +1060,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
10451060
</table>
10461061
*/
10471062
public DeleteCommentPublic200Response execute() throws ApiException {
1048-
ApiResponse<DeleteCommentPublic200Response> localVarResp = deleteCommentPublicWithHttpInfo(tenantId, commentId, broadcastId, editKey);
1063+
ApiResponse<DeleteCommentPublic200Response> localVarResp = deleteCommentPublicWithHttpInfo(tenantId, commentId, broadcastId, editKey, sso);
10491064
return localVarResp.getData();
10501065
}
10511066

@@ -1061,7 +1076,7 @@ public DeleteCommentPublic200Response execute() throws ApiException {
10611076
</table>
10621077
*/
10631078
public ApiResponse<DeleteCommentPublic200Response> executeWithHttpInfo() throws ApiException {
1064-
return deleteCommentPublicWithHttpInfo(tenantId, commentId, broadcastId, editKey);
1079+
return deleteCommentPublicWithHttpInfo(tenantId, commentId, broadcastId, editKey, sso);
10651080
}
10661081

10671082
/**
@@ -1077,7 +1092,7 @@ public ApiResponse<DeleteCommentPublic200Response> executeWithHttpInfo() throws
10771092
</table>
10781093
*/
10791094
public okhttp3.Call executeAsync(final ApiCallback<DeleteCommentPublic200Response> _callback) throws ApiException {
1080-
return deleteCommentPublicAsync(tenantId, commentId, broadcastId, editKey, _callback);
1095+
return deleteCommentPublicAsync(tenantId, commentId, broadcastId, editKey, sso, _callback);
10811096
}
10821097
}
10831098

client/src/main/java/com/fastcomments/invoker/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ private void init() {
141141
json = new JSON();
142142

143143
// Set default User-Agent.
144-
setUserAgent("OpenAPI-Generator/0.0.11/java");
144+
setUserAgent("OpenAPI-Generator/0.0.12/java");
145145

146146
authentications = new HashMap<String, Authentication>();
147147
}

client/src/main/java/com/fastcomments/invoker/Configuration.java

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

1616
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.11.0")
1717
public class Configuration {
18-
public static final String VERSION = "0.0.11";
18+
public static final String VERSION = "0.0.12";
1919

2020
private static ApiClient defaultApiClient = new ApiClient();
2121

client/src/test/java/com/fastcomments/api/PublicApiTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,10 @@ public void deleteCommentPublicTest() throws ApiException {
140140
String commentId = null;
141141
String broadcastId = null;
142142
String editKey = null;
143+
String sso = null;
143144
DeleteCommentPublic200Response response = api.deleteCommentPublic(tenantId, commentId, broadcastId)
144145
.editKey(editKey)
146+
.sso(sso)
145147
.execute();
146148
// TODO: test validations
147149
}

0 commit comments

Comments
 (0)