Skip to content

Commit

Permalink
New clientlib ver
Browse files Browse the repository at this point in the history
  • Loading branch information
KalturaCommunity committed Sep 19, 2022
1 parent ee8fbda commit 492c70f
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/kaltura/client/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class Client extends ClientBase {
public Client(ConnectionConfiguration config) {
super(config);

this.setClientTag("java:22-09-18");
this.setClientTag("java:22-09-19");
this.setApiVersion("18.14.0");
this.clientConfiguration.put("format", 1); // JSON
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public interface Tokenizer extends RuleAction.Tokenizer {
String pattern();
String replacement();
String replacmenServerNodeId();
String checkAliveTimeoutMs();
}

/**
Expand All @@ -61,6 +62,11 @@ public interface Tokenizer extends RuleAction.Tokenizer {
* serverNodeId to generate replacment host from
*/
private Integer replacmenServerNodeId;
/**
* Set this value if you want to check if the server is accessible before
redirecting traffic to it (this value is in milliseconds)
*/
private Integer checkAliveTimeoutMs;

// pattern:
public String getPattern(){
Expand Down Expand Up @@ -98,6 +104,18 @@ public void replacmenServerNodeId(String multirequestToken){
setToken("replacmenServerNodeId", multirequestToken);
}

// checkAliveTimeoutMs:
public Integer getCheckAliveTimeoutMs(){
return this.checkAliveTimeoutMs;
}
public void setCheckAliveTimeoutMs(Integer checkAliveTimeoutMs){
this.checkAliveTimeoutMs = checkAliveTimeoutMs;
}

public void checkAliveTimeoutMs(String multirequestToken){
setToken("checkAliveTimeoutMs", multirequestToken);
}


public AccessControlModifyRequestHostRegexAction() {
super();
Expand All @@ -112,6 +130,7 @@ public AccessControlModifyRequestHostRegexAction(JsonObject jsonObject) throws A
pattern = GsonParser.parseString(jsonObject.get("pattern"));
replacement = GsonParser.parseString(jsonObject.get("replacement"));
replacmenServerNodeId = GsonParser.parseInt(jsonObject.get("replacmenServerNodeId"));
checkAliveTimeoutMs = GsonParser.parseInt(jsonObject.get("checkAliveTimeoutMs"));

}

Expand All @@ -121,6 +140,7 @@ public Params toParams() {
kparams.add("pattern", this.pattern);
kparams.add("replacement", this.replacement);
kparams.add("replacmenServerNodeId", this.replacmenServerNodeId);
kparams.add("checkAliveTimeoutMs", this.checkAliveTimeoutMs);
return kparams;
}

Expand Down
16 changes: 16 additions & 0 deletions src/main/java/com/kaltura/client/types/Partner.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ public interface Tokenizer extends ObjectBase.Tokenizer {
String isSelfServe();
String allowedDomains();
String excludedAdminRoleName();
String eventPlatformAllowedTemplates();
}

private Integer id;
Expand Down Expand Up @@ -229,6 +230,7 @@ public interface Tokenizer extends ObjectBase.Tokenizer {
private Boolean isSelfServe;
private String allowedDomains;
private String excludedAdminRoleName;
private String eventPlatformAllowedTemplates;

// id:
public Integer getId(){
Expand Down Expand Up @@ -850,6 +852,18 @@ public String getAllowedDomains(){
public String getExcludedAdminRoleName(){
return this.excludedAdminRoleName;
}
// eventPlatformAllowedTemplates:
public String getEventPlatformAllowedTemplates(){
return this.eventPlatformAllowedTemplates;
}
public void setEventPlatformAllowedTemplates(String eventPlatformAllowedTemplates){
this.eventPlatformAllowedTemplates = eventPlatformAllowedTemplates;
}

public void eventPlatformAllowedTemplates(String multirequestToken){
setToken("eventPlatformAllowedTemplates", multirequestToken);
}


public Partner() {
super();
Expand Down Expand Up @@ -939,6 +953,7 @@ public Partner(JsonObject jsonObject) throws APIException {
isSelfServe = GsonParser.parseBoolean(jsonObject.get("isSelfServe"));
allowedDomains = GsonParser.parseString(jsonObject.get("allowedDomains"));
excludedAdminRoleName = GsonParser.parseString(jsonObject.get("excludedAdminRoleName"));
eventPlatformAllowedTemplates = GsonParser.parseString(jsonObject.get("eventPlatformAllowedTemplates"));

}

Expand Down Expand Up @@ -985,6 +1000,7 @@ public Params toParams() {
kparams.add("loginBlockPeriod", this.loginBlockPeriod);
kparams.add("numPrevPassToKeep", this.numPrevPassToKeep);
kparams.add("isSelfServe", this.isSelfServe);
kparams.add("eventPlatformAllowedTemplates", this.eventPlatformAllowedTemplates);
return kparams;
}

Expand Down

0 comments on commit 492c70f

Please sign in to comment.