diff --git a/KalturaClient/src/main/java/com/kaltura/client/Client.java b/KalturaClient/src/main/java/com/kaltura/client/Client.java index 5e71b1f0f..13b639fb7 100644 --- a/KalturaClient/src/main/java/com/kaltura/client/Client.java +++ b/KalturaClient/src/main/java/com/kaltura/client/Client.java @@ -44,8 +44,8 @@ public class Client extends ClientBase { public Client(ConnectionConfiguration config) { super(config); - this.setClientTag("java:22-08-18"); - this.setApiVersion("7.9.0.29995"); + this.setClientTag("java:22-08-21"); + this.setApiVersion("7.9.0.29996"); this.clientConfiguration.put("format", 1); // JSON } diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/IotProfileService.java b/KalturaClient/src/main/java/com/kaltura/client/services/IotProfileService.java index 441891aa9..fcac62ff7 100644 --- a/KalturaClient/src/main/java/com/kaltura/client/services/IotProfileService.java +++ b/KalturaClient/src/main/java/com/kaltura/client/services/IotProfileService.java @@ -27,7 +27,6 @@ // =================================================================================================== package com.kaltura.client.services; -import com.kaltura.client.types.IotProfile; import com.kaltura.client.utils.request.RequestBuilder; /** @@ -39,64 +38,17 @@ public class IotProfileService { - public static class AddIotProfileBuilder extends RequestBuilder { + public static class AddIotProfileBuilder extends RequestBuilder { - public AddIotProfileBuilder(IotProfile objectToAdd) { - super(IotProfile.class, "iotprofile", "add"); - params.add("objectToAdd", objectToAdd); + public AddIotProfileBuilder() { + super(Boolean.class, "iotprofile", "add"); } } /** - * Add new KalturaIotProfile - * - * @param objectToAdd KalturaIotProfile Object to add + * Add new environment in aws */ - public static AddIotProfileBuilder add(IotProfile objectToAdd) { - return new AddIotProfileBuilder(objectToAdd); - } - - public static class GetIotProfileBuilder extends RequestBuilder { - - public GetIotProfileBuilder(long id) { - super(IotProfile.class, "iotprofile", "get"); - params.add("id", id); - } - - public void id(String multirequestToken) { - params.add("id", multirequestToken); - } - } - - /** - * Get existing KalturaIotProfile - * - * @param id KalturaIotProfile identifier - */ - public static GetIotProfileBuilder get(long id) { - return new GetIotProfileBuilder(id); - } - - public static class UpdateIotProfileBuilder extends RequestBuilder { - - public UpdateIotProfileBuilder(long id, IotProfile objectToUpdate) { - super(IotProfile.class, "iotprofile", "update"); - params.add("id", id); - params.add("objectToUpdate", objectToUpdate); - } - - public void id(String multirequestToken) { - params.add("id", multirequestToken); - } - } - - /** - * Update existing KalturaIotProfile - * - * @param id id of KalturaIotProfile to update - * @param objectToUpdate KalturaIotProfile Object to update - */ - public static UpdateIotProfileBuilder update(long id, IotProfile objectToUpdate) { - return new UpdateIotProfileBuilder(id, objectToUpdate); + public static AddIotProfileBuilder add() { + return new AddIotProfileBuilder(); } } diff --git a/KalturaClient/src/main/java/com/kaltura/client/services/IotService.java b/KalturaClient/src/main/java/com/kaltura/client/services/IotService.java index 1cb87593d..c79dd95f8 100644 --- a/KalturaClient/src/main/java/com/kaltura/client/services/IotService.java +++ b/KalturaClient/src/main/java/com/kaltura/client/services/IotService.java @@ -27,7 +27,6 @@ // =================================================================================================== package com.kaltura.client.services; -import com.kaltura.client.types.Iot; import com.kaltura.client.types.IotClientConfiguration; import com.kaltura.client.utils.request.RequestBuilder; @@ -54,10 +53,10 @@ public static GetClientConfigurationIotBuilder getClientConfiguration() { return new GetClientConfigurationIotBuilder(); } - public static class RegisterIotBuilder extends RequestBuilder { + public static class RegisterIotBuilder extends RequestBuilder { public RegisterIotBuilder() { - super(Iot.class, "iot", "register"); + super(Boolean.class, "iot", "register"); } } diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CognitoIdentity.java b/KalturaClient/src/main/java/com/kaltura/client/types/CognitoIdentity.java deleted file mode 100644 index 3149cf8b2..000000000 --- a/KalturaClient/src/main/java/com/kaltura/client/types/CognitoIdentity.java +++ /dev/null @@ -1,112 +0,0 @@ -// =================================================================================================== -// _ __ _ _ -// | |/ /__ _| | |_ _ _ _ _ __ _ -// | ' . -// -// @ignore -// =================================================================================================== -package com.kaltura.client.types; - -import android.os.Parcel; -import com.google.gson.JsonObject; -import com.kaltura.client.Params; -import com.kaltura.client.types.IotDefault; -import com.kaltura.client.types.ObjectBase; -import com.kaltura.client.utils.GsonParser; -import com.kaltura.client.utils.request.MultiRequestBuilder; - -/** - * This class was generated using exec.php - * against an XML schema provided by Kaltura. - * - * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. - */ - -@SuppressWarnings("serial") -@MultiRequestBuilder.Tokenizer(CognitoIdentity.Tokenizer.class) -public class CognitoIdentity extends ObjectBase { - - public interface Tokenizer extends ObjectBase.Tokenizer { - IotDefault.Tokenizer iotDefault(); - } - - /** - * Default - */ - private IotDefault iotDefault; - - // iotDefault: - public IotDefault getIotDefault(){ - return this.iotDefault; - } - public void setIotDefault(IotDefault iotDefault){ - this.iotDefault = iotDefault; - } - - - public CognitoIdentity() { - super(); - } - - public CognitoIdentity(JsonObject jsonObject) throws APIException { - super(jsonObject); - - if(jsonObject == null) return; - - // set members values: - iotDefault = GsonParser.parseObject(jsonObject.getAsJsonObject("iotDefault"), IotDefault.class); - - } - - public Params toParams() { - Params kparams = super.toParams(); - kparams.add("objectType", "KalturaCognitoIdentity"); - kparams.add("iotDefault", this.iotDefault); - return kparams; - } - - - public static final Creator CREATOR = new Creator() { - @Override - public CognitoIdentity createFromParcel(Parcel source) { - return new CognitoIdentity(source); - } - - @Override - public CognitoIdentity[] newArray(int size) { - return new CognitoIdentity[size]; - } - }; - - @Override - public void writeToParcel(Parcel dest, int flags) { - super.writeToParcel(dest, flags); - dest.writeParcelable(this.iotDefault, flags); - } - - public CognitoIdentity(Parcel in) { - super(in); - this.iotDefault = in.readParcelable(IotDefault.class.getClassLoader()); - } -} - diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CognitoUserPool.java b/KalturaClient/src/main/java/com/kaltura/client/types/CognitoUserPool.java deleted file mode 100644 index ea429b1a2..000000000 --- a/KalturaClient/src/main/java/com/kaltura/client/types/CognitoUserPool.java +++ /dev/null @@ -1,112 +0,0 @@ -// =================================================================================================== -// _ __ _ _ -// | |/ /__ _| | |_ _ _ _ _ __ _ -// | ' . -// -// @ignore -// =================================================================================================== -package com.kaltura.client.types; - -import android.os.Parcel; -import com.google.gson.JsonObject; -import com.kaltura.client.Params; -import com.kaltura.client.types.IotDefault; -import com.kaltura.client.types.ObjectBase; -import com.kaltura.client.utils.GsonParser; -import com.kaltura.client.utils.request.MultiRequestBuilder; - -/** - * This class was generated using exec.php - * against an XML schema provided by Kaltura. - * - * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. - */ - -@SuppressWarnings("serial") -@MultiRequestBuilder.Tokenizer(CognitoUserPool.Tokenizer.class) -public class CognitoUserPool extends ObjectBase { - - public interface Tokenizer extends ObjectBase.Tokenizer { - IotDefault.Tokenizer iotDefault(); - } - - /** - * Default - */ - private IotDefault iotDefault; - - // iotDefault: - public IotDefault getIotDefault(){ - return this.iotDefault; - } - public void setIotDefault(IotDefault iotDefault){ - this.iotDefault = iotDefault; - } - - - public CognitoUserPool() { - super(); - } - - public CognitoUserPool(JsonObject jsonObject) throws APIException { - super(jsonObject); - - if(jsonObject == null) return; - - // set members values: - iotDefault = GsonParser.parseObject(jsonObject.getAsJsonObject("iotDefault"), IotDefault.class); - - } - - public Params toParams() { - Params kparams = super.toParams(); - kparams.add("objectType", "KalturaCognitoUserPool"); - kparams.add("iotDefault", this.iotDefault); - return kparams; - } - - - public static final Creator CREATOR = new Creator() { - @Override - public CognitoUserPool createFromParcel(Parcel source) { - return new CognitoUserPool(source); - } - - @Override - public CognitoUserPool[] newArray(int size) { - return new CognitoUserPool[size]; - } - }; - - @Override - public void writeToParcel(Parcel dest, int flags) { - super.writeToParcel(dest, flags); - dest.writeParcelable(this.iotDefault, flags); - } - - public CognitoUserPool(Parcel in) { - super(in); - this.iotDefault = in.readParcelable(IotDefault.class.getClassLoader()); - } -} - diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/CredentialsProvider.java b/KalturaClient/src/main/java/com/kaltura/client/types/CredentialsProvider.java deleted file mode 100644 index f679ee447..000000000 --- a/KalturaClient/src/main/java/com/kaltura/client/types/CredentialsProvider.java +++ /dev/null @@ -1,112 +0,0 @@ -// =================================================================================================== -// _ __ _ _ -// | |/ /__ _| | |_ _ _ _ _ __ _ -// | ' . -// -// @ignore -// =================================================================================================== -package com.kaltura.client.types; - -import android.os.Parcel; -import com.google.gson.JsonObject; -import com.kaltura.client.Params; -import com.kaltura.client.types.CognitoIdentity; -import com.kaltura.client.types.ObjectBase; -import com.kaltura.client.utils.GsonParser; -import com.kaltura.client.utils.request.MultiRequestBuilder; - -/** - * This class was generated using exec.php - * against an XML schema provided by Kaltura. - * - * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. - */ - -@SuppressWarnings("serial") -@MultiRequestBuilder.Tokenizer(CredentialsProvider.Tokenizer.class) -public class CredentialsProvider extends ObjectBase { - - public interface Tokenizer extends ObjectBase.Tokenizer { - CognitoIdentity.Tokenizer cognitoIdentity(); - } - - /** - * KalturaCognitoIdentity - */ - private CognitoIdentity cognitoIdentity; - - // cognitoIdentity: - public CognitoIdentity getCognitoIdentity(){ - return this.cognitoIdentity; - } - public void setCognitoIdentity(CognitoIdentity cognitoIdentity){ - this.cognitoIdentity = cognitoIdentity; - } - - - public CredentialsProvider() { - super(); - } - - public CredentialsProvider(JsonObject jsonObject) throws APIException { - super(jsonObject); - - if(jsonObject == null) return; - - // set members values: - cognitoIdentity = GsonParser.parseObject(jsonObject.getAsJsonObject("cognitoIdentity"), CognitoIdentity.class); - - } - - public Params toParams() { - Params kparams = super.toParams(); - kparams.add("objectType", "KalturaCredentialsProvider"); - kparams.add("cognitoIdentity", this.cognitoIdentity); - return kparams; - } - - - public static final Creator CREATOR = new Creator() { - @Override - public CredentialsProvider createFromParcel(Parcel source) { - return new CredentialsProvider(source); - } - - @Override - public CredentialsProvider[] newArray(int size) { - return new CredentialsProvider[size]; - } - }; - - @Override - public void writeToParcel(Parcel dest, int flags) { - super.writeToParcel(dest, flags); - dest.writeParcelable(this.cognitoIdentity, flags); - } - - public CredentialsProvider(Parcel in) { - super(in); - this.cognitoIdentity = in.readParcelable(CognitoIdentity.class.getClassLoader()); - } -} - diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/IotClientConfiguration.java b/KalturaClient/src/main/java/com/kaltura/client/types/IotClientConfiguration.java index 96293faa2..f7128c6b9 100644 --- a/KalturaClient/src/main/java/com/kaltura/client/types/IotClientConfiguration.java +++ b/KalturaClient/src/main/java/com/kaltura/client/types/IotClientConfiguration.java @@ -30,11 +30,12 @@ import android.os.Parcel; import com.google.gson.JsonObject; import com.kaltura.client.Params; -import com.kaltura.client.types.CognitoUserPool; -import com.kaltura.client.types.CredentialsProvider; import com.kaltura.client.types.ObjectBase; import com.kaltura.client.utils.GsonParser; import com.kaltura.client.utils.request.MultiRequestBuilder; +import com.kaltura.client.utils.request.RequestBuilder; +import java.util.ArrayList; +import java.util.List; /** * This class was generated using exec.php @@ -51,84 +52,241 @@ public class IotClientConfiguration extends ObjectBase { public interface Tokenizer extends ObjectBase.Tokenizer { - String announcementTopic(); - CredentialsProvider.Tokenizer credentialsProvider(); - CognitoUserPool.Tokenizer cognitoUserPool(); - String json(); - String topics(); + String identityPoolId(); + String userPoolId(); + String awsRegion(); + String appClientId(); + String legacyEndPoint(); + String endPoint(); + String thingName(); + String thingArn(); + String thingId(); + String username(); + String password(); + RequestBuilder.ListTokenizer topics(); + String status(); + String message(); } /** - * announcementTopic + * IdentityPoolId */ - private String announcementTopic; + private String identityPoolId; /** - * KalturaCredentialsProvider + * UserPoolId */ - private CredentialsProvider credentialsProvider; + private String userPoolId; /** - * CognitoUserPool + * AwsRegion */ - private CognitoUserPool cognitoUserPool; + private String awsRegion; /** - * json + * appClientId */ - private String json; + private String appClientId; + /** + * legacyEndPoint + */ + private String legacyEndPoint; + /** + * endPoint + */ + private String endPoint; + /** + * thingName + */ + private String thingName; + /** + * thingArn + */ + private String thingArn; + /** + * thingId + */ + private String thingId; + /** + * username + */ + private String username; + /** + * password + */ + private String password; /** * topics */ - private String topics; + private List topics; + /** + * status + */ + private String status; + /** + * message + */ + private String message; - // announcementTopic: - public String getAnnouncementTopic(){ - return this.announcementTopic; + // identityPoolId: + public String getIdentityPoolId(){ + return this.identityPoolId; } - public void setAnnouncementTopic(String announcementTopic){ - this.announcementTopic = announcementTopic; + public void setIdentityPoolId(String identityPoolId){ + this.identityPoolId = identityPoolId; } - public void announcementTopic(String multirequestToken){ - setToken("announcementTopic", multirequestToken); + public void identityPoolId(String multirequestToken){ + setToken("identityPoolId", multirequestToken); } - // credentialsProvider: - public CredentialsProvider getCredentialsProvider(){ - return this.credentialsProvider; + // userPoolId: + public String getUserPoolId(){ + return this.userPoolId; + } + public void setUserPoolId(String userPoolId){ + this.userPoolId = userPoolId; } - public void setCredentialsProvider(CredentialsProvider credentialsProvider){ - this.credentialsProvider = credentialsProvider; + + public void userPoolId(String multirequestToken){ + setToken("userPoolId", multirequestToken); } - // cognitoUserPool: - public CognitoUserPool getCognitoUserPool(){ - return this.cognitoUserPool; + // awsRegion: + public String getAwsRegion(){ + return this.awsRegion; } - public void setCognitoUserPool(CognitoUserPool cognitoUserPool){ - this.cognitoUserPool = cognitoUserPool; + public void setAwsRegion(String awsRegion){ + this.awsRegion = awsRegion; + } + + public void awsRegion(String multirequestToken){ + setToken("awsRegion", multirequestToken); } - // json: - public String getJson(){ - return this.json; + // appClientId: + public String getAppClientId(){ + return this.appClientId; } - public void setJson(String json){ - this.json = json; + public void setAppClientId(String appClientId){ + this.appClientId = appClientId; } - public void json(String multirequestToken){ - setToken("json", multirequestToken); + public void appClientId(String multirequestToken){ + setToken("appClientId", multirequestToken); + } + + // legacyEndPoint: + public String getLegacyEndPoint(){ + return this.legacyEndPoint; + } + public void setLegacyEndPoint(String legacyEndPoint){ + this.legacyEndPoint = legacyEndPoint; + } + + public void legacyEndPoint(String multirequestToken){ + setToken("legacyEndPoint", multirequestToken); + } + + // endPoint: + public String getEndPoint(){ + return this.endPoint; + } + public void setEndPoint(String endPoint){ + this.endPoint = endPoint; + } + + public void endPoint(String multirequestToken){ + setToken("endPoint", multirequestToken); + } + + // thingName: + public String getThingName(){ + return this.thingName; + } + public void setThingName(String thingName){ + this.thingName = thingName; + } + + public void thingName(String multirequestToken){ + setToken("thingName", multirequestToken); + } + + // thingArn: + public String getThingArn(){ + return this.thingArn; + } + public void setThingArn(String thingArn){ + this.thingArn = thingArn; + } + + public void thingArn(String multirequestToken){ + setToken("thingArn", multirequestToken); + } + + // thingId: + public String getThingId(){ + return this.thingId; + } + public void setThingId(String thingId){ + this.thingId = thingId; + } + + public void thingId(String multirequestToken){ + setToken("thingId", multirequestToken); + } + + // username: + public String getUsername(){ + return this.username; + } + public void setUsername(String username){ + this.username = username; + } + + public void username(String multirequestToken){ + setToken("username", multirequestToken); + } + + // password: + public String getPassword(){ + return this.password; + } + public void setPassword(String password){ + this.password = password; + } + + public void password(String multirequestToken){ + setToken("password", multirequestToken); } // topics: - public String getTopics(){ + public List getTopics(){ return this.topics; } - public void setTopics(String topics){ + public void setTopics(List topics){ this.topics = topics; } - public void topics(String multirequestToken){ - setToken("topics", multirequestToken); + // status: + public String getStatus(){ + return this.status; + } + public void setStatus(String status){ + this.status = status; + } + + public void status(String multirequestToken){ + setToken("status", multirequestToken); + } + + // message: + public String getMessage(){ + return this.message; + } + public void setMessage(String message){ + this.message = message; + } + + public void message(String multirequestToken){ + setToken("message", multirequestToken); } @@ -142,22 +300,40 @@ public IotClientConfiguration(JsonObject jsonObject) throws APIException { if(jsonObject == null) return; // set members values: - announcementTopic = GsonParser.parseString(jsonObject.get("announcementTopic")); - credentialsProvider = GsonParser.parseObject(jsonObject.getAsJsonObject("credentialsProvider"), CredentialsProvider.class); - cognitoUserPool = GsonParser.parseObject(jsonObject.getAsJsonObject("cognitoUserPool"), CognitoUserPool.class); - json = GsonParser.parseString(jsonObject.get("json")); - topics = GsonParser.parseString(jsonObject.get("topics")); + identityPoolId = GsonParser.parseString(jsonObject.get("identityPoolId")); + userPoolId = GsonParser.parseString(jsonObject.get("userPoolId")); + awsRegion = GsonParser.parseString(jsonObject.get("awsRegion")); + appClientId = GsonParser.parseString(jsonObject.get("appClientId")); + legacyEndPoint = GsonParser.parseString(jsonObject.get("legacyEndPoint")); + endPoint = GsonParser.parseString(jsonObject.get("endPoint")); + thingName = GsonParser.parseString(jsonObject.get("thingName")); + thingArn = GsonParser.parseString(jsonObject.get("thingArn")); + thingId = GsonParser.parseString(jsonObject.get("thingId")); + username = GsonParser.parseString(jsonObject.get("username")); + password = GsonParser.parseString(jsonObject.get("password")); + topics = GsonParser.parseArray(jsonObject.getAsJsonArray("topics"), StringValue.class); + status = GsonParser.parseString(jsonObject.get("status")); + message = GsonParser.parseString(jsonObject.get("message")); } public Params toParams() { Params kparams = super.toParams(); kparams.add("objectType", "KalturaIotClientConfiguration"); - kparams.add("announcementTopic", this.announcementTopic); - kparams.add("credentialsProvider", this.credentialsProvider); - kparams.add("cognitoUserPool", this.cognitoUserPool); - kparams.add("json", this.json); + kparams.add("identityPoolId", this.identityPoolId); + kparams.add("userPoolId", this.userPoolId); + kparams.add("awsRegion", this.awsRegion); + kparams.add("appClientId", this.appClientId); + kparams.add("legacyEndPoint", this.legacyEndPoint); + kparams.add("endPoint", this.endPoint); + kparams.add("thingName", this.thingName); + kparams.add("thingArn", this.thingArn); + kparams.add("thingId", this.thingId); + kparams.add("username", this.username); + kparams.add("password", this.password); kparams.add("topics", this.topics); + kparams.add("status", this.status); + kparams.add("message", this.message); return kparams; } @@ -177,20 +353,47 @@ public IotClientConfiguration[] newArray(int size) { @Override public void writeToParcel(Parcel dest, int flags) { super.writeToParcel(dest, flags); - dest.writeString(this.announcementTopic); - dest.writeParcelable(this.credentialsProvider, flags); - dest.writeParcelable(this.cognitoUserPool, flags); - dest.writeString(this.json); - dest.writeString(this.topics); + dest.writeString(this.identityPoolId); + dest.writeString(this.userPoolId); + dest.writeString(this.awsRegion); + dest.writeString(this.appClientId); + dest.writeString(this.legacyEndPoint); + dest.writeString(this.endPoint); + dest.writeString(this.thingName); + dest.writeString(this.thingArn); + dest.writeString(this.thingId); + dest.writeString(this.username); + dest.writeString(this.password); + if(this.topics != null) { + dest.writeInt(this.topics.size()); + dest.writeList(this.topics); + } else { + dest.writeInt(-1); + } + dest.writeString(this.status); + dest.writeString(this.message); } public IotClientConfiguration(Parcel in) { super(in); - this.announcementTopic = in.readString(); - this.credentialsProvider = in.readParcelable(CredentialsProvider.class.getClassLoader()); - this.cognitoUserPool = in.readParcelable(CognitoUserPool.class.getClassLoader()); - this.json = in.readString(); - this.topics = in.readString(); + this.identityPoolId = in.readString(); + this.userPoolId = in.readString(); + this.awsRegion = in.readString(); + this.appClientId = in.readString(); + this.legacyEndPoint = in.readString(); + this.endPoint = in.readString(); + this.thingName = in.readString(); + this.thingArn = in.readString(); + this.thingId = in.readString(); + this.username = in.readString(); + this.password = in.readString(); + int topicsSize = in.readInt(); + if( topicsSize > -1) { + this.topics = new ArrayList<>(); + in.readList(this.topics, StringValue.class.getClassLoader()); + } + this.status = in.readString(); + this.message = in.readString(); } } diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/IotDefault.java b/KalturaClient/src/main/java/com/kaltura/client/types/IotDefault.java deleted file mode 100644 index a2dafadb7..000000000 --- a/KalturaClient/src/main/java/com/kaltura/client/types/IotDefault.java +++ /dev/null @@ -1,157 +0,0 @@ -// =================================================================================================== -// _ __ _ _ -// | |/ /__ _| | |_ _ _ _ _ __ _ -// | ' . -// -// @ignore -// =================================================================================================== -package com.kaltura.client.types; - -import android.os.Parcel; -import com.google.gson.JsonObject; -import com.kaltura.client.Params; -import com.kaltura.client.types.ObjectBase; -import com.kaltura.client.utils.GsonParser; -import com.kaltura.client.utils.request.MultiRequestBuilder; - -/** - * This class was generated using exec.php - * against an XML schema provided by Kaltura. - * - * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. - */ - -@SuppressWarnings("serial") -@MultiRequestBuilder.Tokenizer(IotDefault.Tokenizer.class) -public class IotDefault extends ObjectBase { - - public interface Tokenizer extends ObjectBase.Tokenizer { - String poolId(); - String region(); - String appClientId(); - } - - /** - * PoolId - */ - private String poolId; - /** - * Region - */ - private String region; - /** - * AppClientId - */ - private String appClientId; - - // poolId: - public String getPoolId(){ - return this.poolId; - } - public void setPoolId(String poolId){ - this.poolId = poolId; - } - - public void poolId(String multirequestToken){ - setToken("poolId", multirequestToken); - } - - // region: - public String getRegion(){ - return this.region; - } - public void setRegion(String region){ - this.region = region; - } - - public void region(String multirequestToken){ - setToken("region", multirequestToken); - } - - // appClientId: - public String getAppClientId(){ - return this.appClientId; - } - public void setAppClientId(String appClientId){ - this.appClientId = appClientId; - } - - public void appClientId(String multirequestToken){ - setToken("appClientId", multirequestToken); - } - - - public IotDefault() { - super(); - } - - public IotDefault(JsonObject jsonObject) throws APIException { - super(jsonObject); - - if(jsonObject == null) return; - - // set members values: - poolId = GsonParser.parseString(jsonObject.get("poolId")); - region = GsonParser.parseString(jsonObject.get("region")); - appClientId = GsonParser.parseString(jsonObject.get("appClientId")); - - } - - public Params toParams() { - Params kparams = super.toParams(); - kparams.add("objectType", "KalturaIotDefault"); - kparams.add("poolId", this.poolId); - kparams.add("region", this.region); - kparams.add("appClientId", this.appClientId); - return kparams; - } - - - public static final Creator CREATOR = new Creator() { - @Override - public IotDefault createFromParcel(Parcel source) { - return new IotDefault(source); - } - - @Override - public IotDefault[] newArray(int size) { - return new IotDefault[size]; - } - }; - - @Override - public void writeToParcel(Parcel dest, int flags) { - super.writeToParcel(dest, flags); - dest.writeString(this.poolId); - dest.writeString(this.region); - dest.writeString(this.appClientId); - } - - public IotDefault(Parcel in) { - super(in); - this.poolId = in.readString(); - this.region = in.readString(); - this.appClientId = in.readString(); - } -} - diff --git a/KalturaClient/src/main/java/com/kaltura/client/types/IotProfile.java b/KalturaClient/src/main/java/com/kaltura/client/types/IotProfile.java deleted file mode 100644 index add9dbbf5..000000000 --- a/KalturaClient/src/main/java/com/kaltura/client/types/IotProfile.java +++ /dev/null @@ -1,135 +0,0 @@ -// =================================================================================================== -// _ __ _ _ -// | |/ /__ _| | |_ _ _ _ _ __ _ -// | ' . -// -// @ignore -// =================================================================================================== -package com.kaltura.client.types; - -import android.os.Parcel; -import com.google.gson.JsonObject; -import com.kaltura.client.Params; -import com.kaltura.client.types.IotProfileAws; -import com.kaltura.client.utils.GsonParser; -import com.kaltura.client.utils.request.MultiRequestBuilder; - -/** - * This class was generated using exec.php - * against an XML schema provided by Kaltura. - * - * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. - */ - -/** - * IOT PROFILE - */ -@SuppressWarnings("serial") -@MultiRequestBuilder.Tokenizer(IotProfile.Tokenizer.class) -public class IotProfile extends OTTObjectSupportNullable { - - public interface Tokenizer extends OTTObjectSupportNullable.Tokenizer { - String adapterUrl(); - IotProfileAws.Tokenizer iotProfileAws(); - } - - /** - * adapterUrl - */ - private String adapterUrl; - /** - * kalturaIotProfileAws - */ - private IotProfileAws iotProfileAws; - - // adapterUrl: - public String getAdapterUrl(){ - return this.adapterUrl; - } - public void setAdapterUrl(String adapterUrl){ - this.adapterUrl = adapterUrl; - } - - public void adapterUrl(String multirequestToken){ - setToken("adapterUrl", multirequestToken); - } - - // iotProfileAws: - public IotProfileAws getIotProfileAws(){ - return this.iotProfileAws; - } - public void setIotProfileAws(IotProfileAws iotProfileAws){ - this.iotProfileAws = iotProfileAws; - } - - - public IotProfile() { - super(); - } - - public IotProfile(JsonObject jsonObject) throws APIException { - super(jsonObject); - - if(jsonObject == null) return; - - // set members values: - adapterUrl = GsonParser.parseString(jsonObject.get("adapterUrl")); - iotProfileAws = GsonParser.parseObject(jsonObject.getAsJsonObject("iotProfileAws"), IotProfileAws.class); - - } - - public Params toParams() { - Params kparams = super.toParams(); - kparams.add("objectType", "KalturaIotProfile"); - kparams.add("adapterUrl", this.adapterUrl); - kparams.add("iotProfileAws", this.iotProfileAws); - return kparams; - } - - - public static final Creator CREATOR = new Creator() { - @Override - public IotProfile createFromParcel(Parcel source) { - return new IotProfile(source); - } - - @Override - public IotProfile[] newArray(int size) { - return new IotProfile[size]; - } - }; - - @Override - public void writeToParcel(Parcel dest, int flags) { - super.writeToParcel(dest, flags); - dest.writeString(this.adapterUrl); - dest.writeParcelable(this.iotProfileAws, flags); - } - - public IotProfile(Parcel in) { - super(in); - this.adapterUrl = in.readString(); - this.iotProfileAws = in.readParcelable(IotProfileAws.class.getClassLoader()); - } -} - diff --git a/version.gradle b/version.gradle index 78b6af801..36e476fda 100644 --- a/version.gradle +++ b/version.gradle @@ -6,7 +6,7 @@ // ./gradlew KalturaClient:bintrayUpload -PdryRun=false -PbintrayUser=$BINTRAY_USER -PbintrayKey=$BINTRAY_KEY // Library Version -ext.kalturaClientVersion = '7.9.0.29995' +ext.kalturaClientVersion = '7.9.0.29996' // Publish to Bintray try {