Skip to content

Commit

Permalink
Version 1.5.0 released
Browse files Browse the repository at this point in the history
  • Loading branch information
nosovm committed Jun 6, 2024
1 parent e4832d6 commit c6cd42a
Show file tree
Hide file tree
Showing 9 changed files with 500 additions and 354 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Voximplant API client library

#### Version 1.4.0
#### Version 1.5.0

## Prerequisites

Expand All @@ -25,7 +25,7 @@ Setup a `maven` dependency for your project:
<dependency>
<groupId>org.voximplant</groupId>
<artifactId>apiclient</artifactId>
<version>1.4.0</version>
<version>1.5.0</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.voximplant</groupId>
<artifactId>apiclient</artifactId>
<version>1.4.0</version>
<version>1.5.0</version>
<packaging>jar</packaging>

<name>voximplant-apiclient</name>
Expand Down
694 changes: 347 additions & 347 deletions src/main/java/com/voximplant/apiclient/VoximplantAPIClient.java

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ public AddPushCredentialRequest setPushProviderName(String d) {

@RequestField(name="push_provider_id")
/**
* The push provider id. Can be used instead of <b>push_provider_name</b>
* The push provider id. Can be used instead of
* <b>push_provider_name</b>. The possible values are: 1 — APPLE, 2 —
* GOOGLE, 3 — APPLE_VOIP, 5 — HUAWEI.
*/
public Long getPushProviderId() {
return this.pushProviderId;
Expand All @@ -54,7 +56,9 @@ public boolean hasPushProviderId() {
}

/**
* The push provider id. Can be used instead of <b>push_provider_name</b>
* The push provider id. Can be used instead of
* <b>push_provider_name</b>. The possible values are: 1 — APPLE, 2 —
* GOOGLE, 3 — APPLE_VOIP, 5 — HUAWEI.
*/
public AddPushCredentialRequest setPushProviderId(long d) {
this.pushProviderId = Long.valueOf(d);
Expand Down
32 changes: 32 additions & 0 deletions src/main/java/com/voximplant/apiclient/request/AddRuleRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,30 @@ public AddRuleRequest setVideoConference(boolean d) {
return this;
}

private String bindKeyId;

@RequestField(name="bind_key_id")
/**
* The service account ID to bind to the rule. Read more in the
* [guide](/docs/guides/voxengine/management-api)
*/
public String getBindKeyId() {
return this.bindKeyId;
}

public boolean hasBindKeyId() {
return this.bindKeyId != null;
}

/**
* The service account ID to bind to the rule. Read more in the
* [guide](/docs/guides/voxengine/management-api)
*/
public AddRuleRequest setBindKeyId(String d) {
this.bindKeyId = d;
return this;
}

private MultiArgument<Long> scenarioId;

@RequestField(name="scenario_id")
Expand Down Expand Up @@ -250,6 +274,14 @@ public String toString(int alignment) {
.append(',')
.append(System.lineSeparator());
}
if (bindKeyId != null) {
sb.append(aligned)
.append("\"bindKeyId\": \"")
.append(bindKeyId)
.append('"')
.append(',')
.append(System.lineSeparator());
}
if (scenarioId != null) {
sb.append(aligned)
.append("\"scenarioId\": \"")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ public GetPushCredentialRequest setPushProviderName(String d) {

@RequestField(name="push_provider_id")
/**
* The push provider id. Can be used instead of <b>push_provider_name</b>
* The push provider id. Can be used instead of
* <b>push_provider_name</b>. The possible values are: 1 — APPLE, 2 —
* GOOGLE, 3 — APPLE_VOIP, 5 — HUAWEI.
*/
public Long getPushProviderId() {
return this.pushProviderId;
Expand All @@ -76,7 +78,9 @@ public boolean hasPushProviderId() {
}

/**
* The push provider id. Can be used instead of <b>push_provider_name</b>
* The push provider id. Can be used instead of
* <b>push_provider_name</b>. The possible values are: 1 — APPLE, 2 —
* GOOGLE, 3 — APPLE_VOIP, 5 — HUAWEI.
*/
public GetPushCredentialRequest setPushProviderId(long d) {
this.pushProviderId = Long.valueOf(d);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,30 @@ public GetRulesRequest setVideoConference(boolean d) {
return this;
}

private String attachedKeyId;

@RequestField(name="attached_key_id")
/**
* The service account ID bound to the rule. Read more in the
* [guide](/docs/guides/voxengine/management-api)
*/
public String getAttachedKeyId() {
return this.attachedKeyId;
}

public boolean hasAttachedKeyId() {
return this.attachedKeyId != null;
}

/**
* The service account ID bound to the rule. Read more in the
* [guide](/docs/guides/voxengine/management-api)
*/
public GetRulesRequest setAttachedKeyId(String d) {
this.attachedKeyId = d;
return this;
}

private String template;

@RequestField(name="template")
Expand Down Expand Up @@ -262,6 +286,14 @@ public String toString(int alignment) {
.append(',')
.append(System.lineSeparator());
}
if (attachedKeyId != null) {
sb.append(aligned)
.append("\"attachedKeyId\": \"")
.append(attachedKeyId)
.append('"')
.append(',')
.append(System.lineSeparator());
}
if (template != null) {
sb.append(aligned)
.append("\"template\": \"")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,30 @@ public SetRuleInfoRequest setVideoConference(boolean d) {
return this;
}

private String bindKeyId;

@RequestField(name="bind_key_id")
/**
* The service account ID to bind to the rule. Read more in the
* [guide](/docs/guides/voxengine/management-api)
*/
public String getBindKeyId() {
return this.bindKeyId;
}

public boolean hasBindKeyId() {
return this.bindKeyId != null;
}

/**
* The service account ID to bind to the rule. Read more in the
* [guide](/docs/guides/voxengine/management-api)
*/
public SetRuleInfoRequest setBindKeyId(String d) {
this.bindKeyId = d;
return this;
}

public String toString(int alignment) {
char[] preAligned = new char[alignment - 1];
char[] aligned = new char[alignment];
Expand Down Expand Up @@ -174,6 +198,14 @@ public String toString(int alignment) {
.append(',')
.append(System.lineSeparator());
}
if (bindKeyId != null) {
sb.append(aligned)
.append("\"bindKeyId\": \"")
.append(bindKeyId)
.append('"')
.append(',')
.append(System.lineSeparator());
}
return sb.append(preAligned).append('}').append(',').toString();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,32 @@ public boolean hasStatus() {
return this.status != null;
}

private Long taskId;

/**
* The call list task ID
*/
public Long getTaskId() {
return this.taskId;
}

public boolean hasTaskId() {
return this.taskId != null;
}

private String taskUuid;

/**
* The call list task UUID
*/
public String getTaskUuid() {
return this.taskUuid;
}

public boolean hasTaskUuid() {
return this.taskUuid != null;
}

public String toString(int alignment) {
char[] preAligned = new char[alignment - 1];
char[] aligned = new char[alignment];
Expand Down Expand Up @@ -220,6 +246,22 @@ public String toString(int alignment) {
.append(',')
.append(System.lineSeparator());
}
if (taskId != null) {
sb.append(aligned)
.append("\"taskId\": \"")
.append(taskId)
.append('"')
.append(',')
.append(System.lineSeparator());
}
if (taskUuid != null) {
sb.append(aligned)
.append("\"taskUuid\": \"")
.append(taskUuid)
.append('"')
.append(',')
.append(System.lineSeparator());
}
return sb.append(preAligned).append('}').append(',').toString();
}

Expand Down

0 comments on commit c6cd42a

Please sign in to comment.