Skip to content

Commit

Permalink
Release 0.1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
polytomic-sdk-bot committed Mar 13, 2024
1 parent 2da0f3b commit 59c0aca
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ publishing {
maven(MavenPublication) {
groupId = 'com.polytomic'
artifactId = 'polytomic-java'
version = '0.1.8'
version = '0.1.9'
from components.java
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/polytomic/api/core/ClientOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ private ClientOptions(
"X-Fern-SDK-Name",
"com.polytomic.fern:api-sdk",
"X-Fern-SDK-Version",
"0.1.8",
"0.1.9",
"X-Fern-Language",
"JAVA"));
this.headerSuppliers = headerSuppliers;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/polytomic/api/core/Environment.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package com.polytomic.api.core;

public final class Environment {
public static final Environment DEFAULT = new Environment("https://app.polytomic.com/");
public static final Environment DEFAULT = new Environment("https://app.polytomic.com");

private final String url;

Expand Down
34 changes: 30 additions & 4 deletions src/main/java/com/polytomic/api/types/V2ConnectionTypeSchema.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.polytomic.api.core.ObjectMappers;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
Expand All @@ -24,12 +25,18 @@ public final class V2ConnectionTypeSchema {

private final Optional<String> name;

private final Optional<List<String>> operations;

private final Map<String, Object> additionalProperties;

private V2ConnectionTypeSchema(
Optional<String> id, Optional<String> name, Map<String, Object> additionalProperties) {
Optional<String> id,
Optional<String> name,
Optional<List<String>> operations,
Map<String, Object> additionalProperties) {
this.id = id;
this.name = name;
this.operations = operations;
this.additionalProperties = additionalProperties;
}

Expand All @@ -43,6 +50,11 @@ public Optional<String> getName() {
return name;
}

@JsonProperty("operations")
public Optional<List<String>> getOperations() {
return operations;
}

@java.lang.Override
public boolean equals(Object other) {
if (this == other) return true;
Expand All @@ -55,12 +67,12 @@ public Map<String, Object> getAdditionalProperties() {
}

private boolean equalTo(V2ConnectionTypeSchema other) {
return id.equals(other.id) && name.equals(other.name);
return id.equals(other.id) && name.equals(other.name) && operations.equals(other.operations);
}

@java.lang.Override
public int hashCode() {
return Objects.hash(this.id, this.name);
return Objects.hash(this.id, this.name, this.operations);
}

@java.lang.Override
Expand All @@ -78,6 +90,8 @@ public static final class Builder {

private Optional<String> name = Optional.empty();

private Optional<List<String>> operations = Optional.empty();

@JsonAnySetter
private Map<String, Object> additionalProperties = new HashMap<>();

Expand All @@ -86,6 +100,7 @@ private Builder() {}
public Builder from(V2ConnectionTypeSchema other) {
id(other.getId());
name(other.getName());
operations(other.getOperations());
return this;
}

Expand All @@ -111,8 +126,19 @@ public Builder name(String name) {
return this;
}

@JsonSetter(value = "operations", nulls = Nulls.SKIP)
public Builder operations(Optional<List<String>> operations) {
this.operations = operations;
return this;
}

public Builder operations(List<String> operations) {
this.operations = Optional.of(operations);
return this;
}

public V2ConnectionTypeSchema build() {
return new V2ConnectionTypeSchema(id, name, additionalProperties);
return new V2ConnectionTypeSchema(id, name, operations, additionalProperties);
}
}
}

0 comments on commit 59c0aca

Please sign in to comment.