From 492c70f82f4e213120c22eba0a6d8072b229a4ef Mon Sep 17 00:00:00 2001 From: Kaltura CSI Date: Mon, 19 Sep 2022 14:54:29 -0400 Subject: [PATCH] New clientlib ver --- src/main/java/com/kaltura/client/Client.java | 2 +- ...ssControlModifyRequestHostRegexAction.java | 20 +++++++++++++++++++ .../com/kaltura/client/types/Partner.java | 16 +++++++++++++++ 3 files changed, 37 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/kaltura/client/Client.java b/src/main/java/com/kaltura/client/Client.java index e32977587f..93502abccf 100644 --- a/src/main/java/com/kaltura/client/Client.java +++ b/src/main/java/com/kaltura/client/Client.java @@ -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 } diff --git a/src/main/java/com/kaltura/client/types/AccessControlModifyRequestHostRegexAction.java b/src/main/java/com/kaltura/client/types/AccessControlModifyRequestHostRegexAction.java index c72884b98d..69c21ff4b5 100644 --- a/src/main/java/com/kaltura/client/types/AccessControlModifyRequestHostRegexAction.java +++ b/src/main/java/com/kaltura/client/types/AccessControlModifyRequestHostRegexAction.java @@ -47,6 +47,7 @@ public interface Tokenizer extends RuleAction.Tokenizer { String pattern(); String replacement(); String replacmenServerNodeId(); + String checkAliveTimeoutMs(); } /** @@ -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(){ @@ -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(); @@ -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")); } @@ -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; } diff --git a/src/main/java/com/kaltura/client/types/Partner.java b/src/main/java/com/kaltura/client/types/Partner.java index b8ca208582..00c9079cad 100644 --- a/src/main/java/com/kaltura/client/types/Partner.java +++ b/src/main/java/com/kaltura/client/types/Partner.java @@ -131,6 +131,7 @@ public interface Tokenizer extends ObjectBase.Tokenizer { String isSelfServe(); String allowedDomains(); String excludedAdminRoleName(); + String eventPlatformAllowedTemplates(); } private Integer id; @@ -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(){ @@ -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(); @@ -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")); } @@ -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; }