Skip to content

Commit

Permalink
Release 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
polytomic-sdk-bot committed Jun 26, 2024
1 parent 4480a77 commit b2cfdd2
Show file tree
Hide file tree
Showing 10 changed files with 764 additions and 18 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 = '1.4.0'
version = '1.5.0'
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",
"1.4.0",
"1.5.0",
"X-Fern-Language",
"JAVA"));
this.headerSuppliers = headerSuppliers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import com.fasterxml.jackson.annotation.Nulls;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.polytomic.api.core.ObjectMappers;
import com.polytomic.api.resources.bulksync.types.V2CreateBulkSyncRequestSchemasItem;
import com.polytomic.api.types.BulkDiscover;
import com.polytomic.api.types.BulkSchedule;
import java.util.HashMap;
Expand Down Expand Up @@ -47,7 +48,7 @@ public final class CreateBulkSyncRequest {

private final BulkSchedule schedule;

private final Optional<List<String>> schemas;
private final Optional<List<V2CreateBulkSyncRequestSchemasItem>> schemas;

private final Optional<Map<String, Object>> sourceConfiguration;

Expand All @@ -68,7 +69,7 @@ private CreateBulkSyncRequest(
Optional<String> organizationId,
Optional<List<String>> policies,
BulkSchedule schedule,
Optional<List<String>> schemas,
Optional<List<V2CreateBulkSyncRequestSchemasItem>> schemas,
Optional<Map<String, Object>> sourceConfiguration,
String sourceConnectionId,
Map<String, Object> additionalProperties) {
Expand Down Expand Up @@ -156,8 +157,11 @@ public BulkSchedule getSchedule() {
return schedule;
}

/**
* @return List of schemas to sync; if omitted, all schemas will be selected for syncing.
*/
@JsonProperty("schemas")
public Optional<List<String>> getSchemas() {
public Optional<List<V2CreateBulkSyncRequestSchemasItem>> getSchemas() {
return schemas;
}

Expand Down Expand Up @@ -286,9 +290,9 @@ public interface _FinalStage {

_FinalStage policies(List<String> policies);

_FinalStage schemas(Optional<List<String>> schemas);
_FinalStage schemas(Optional<List<V2CreateBulkSyncRequestSchemasItem>> schemas);

_FinalStage schemas(List<String> schemas);
_FinalStage schemas(List<V2CreateBulkSyncRequestSchemasItem> schemas);

_FinalStage sourceConfiguration(Optional<Map<String, Object>> sourceConfiguration);

Expand All @@ -315,7 +319,7 @@ public static final class Builder

private Optional<Map<String, Object>> sourceConfiguration = Optional.empty();

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

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

Expand Down Expand Up @@ -410,15 +414,19 @@ public _FinalStage sourceConfiguration(Optional<Map<String, Object>> sourceConfi
return this;
}

/**
* <p>List of schemas to sync; if omitted, all schemas will be selected for syncing.</p>
* @return Reference to {@code this} so that method calls can be chained together.
*/
@java.lang.Override
public _FinalStage schemas(List<String> schemas) {
public _FinalStage schemas(List<V2CreateBulkSyncRequestSchemasItem> schemas) {
this.schemas = Optional.of(schemas);
return this;
}

@java.lang.Override
@JsonSetter(value = "schemas", nulls = Nulls.SKIP)
public _FinalStage schemas(Optional<List<String>> schemas) {
public _FinalStage schemas(Optional<List<V2CreateBulkSyncRequestSchemasItem>> schemas) {
this.schemas = schemas;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import com.fasterxml.jackson.annotation.Nulls;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.polytomic.api.core.ObjectMappers;
import com.polytomic.api.resources.bulksync.types.V2UpdateBulkSyncRequestSchemasItem;
import com.polytomic.api.types.BulkDiscover;
import com.polytomic.api.types.BulkSchedule;
import java.util.HashMap;
Expand Down Expand Up @@ -47,7 +48,7 @@ public final class UpdateBulkSyncRequest {

private final BulkSchedule schedule;

private final Optional<List<String>> schemas;
private final Optional<List<V2UpdateBulkSyncRequestSchemasItem>> schemas;

private final Optional<Map<String, Object>> sourceConfiguration;

Expand All @@ -68,7 +69,7 @@ private UpdateBulkSyncRequest(
Optional<String> organizationId,
Optional<List<String>> policies,
BulkSchedule schedule,
Optional<List<String>> schemas,
Optional<List<V2UpdateBulkSyncRequestSchemasItem>> schemas,
Optional<Map<String, Object>> sourceConfiguration,
String sourceConnectionId,
Map<String, Object> additionalProperties) {
Expand Down Expand Up @@ -156,8 +157,11 @@ public BulkSchedule getSchedule() {
return schedule;
}

/**
* @return List of schemas to sync; if omitted, all schemas will be selected for syncing.
*/
@JsonProperty("schemas")
public Optional<List<String>> getSchemas() {
public Optional<List<V2UpdateBulkSyncRequestSchemasItem>> getSchemas() {
return schemas;
}

Expand Down Expand Up @@ -286,9 +290,9 @@ public interface _FinalStage {

_FinalStage policies(List<String> policies);

_FinalStage schemas(Optional<List<String>> schemas);
_FinalStage schemas(Optional<List<V2UpdateBulkSyncRequestSchemasItem>> schemas);

_FinalStage schemas(List<String> schemas);
_FinalStage schemas(List<V2UpdateBulkSyncRequestSchemasItem> schemas);

_FinalStage sourceConfiguration(Optional<Map<String, Object>> sourceConfiguration);

Expand All @@ -315,7 +319,7 @@ public static final class Builder

private Optional<Map<String, Object>> sourceConfiguration = Optional.empty();

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

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

Expand Down Expand Up @@ -410,15 +414,19 @@ public _FinalStage sourceConfiguration(Optional<Map<String, Object>> sourceConfi
return this;
}

/**
* <p>List of schemas to sync; if omitted, all schemas will be selected for syncing.</p>
* @return Reference to {@code this} so that method calls can be chained together.
*/
@java.lang.Override
public _FinalStage schemas(List<String> schemas) {
public _FinalStage schemas(List<V2UpdateBulkSyncRequestSchemasItem> schemas) {
this.schemas = Optional.of(schemas);
return this;
}

@java.lang.Override
@JsonSetter(value = "schemas", nulls = Nulls.SKIP)
public _FinalStage schemas(Optional<List<String>> schemas) {
public _FinalStage schemas(Optional<List<V2UpdateBulkSyncRequestSchemasItem>> schemas) {
this.schemas = schemas;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/
package com.polytomic.api.resources.bulksync.types;

import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSetter;
import com.fasterxml.jackson.annotation.Nulls;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.polytomic.api.core.ObjectMappers;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;

@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonDeserialize(builder = FieldConfiguration.Builder.class)
public final class FieldConfiguration {
private final Optional<Boolean> enabled;

private final Optional<String> id;

private final Optional<Boolean> obfuscate;

private final Map<String, Object> additionalProperties;

private FieldConfiguration(
Optional<Boolean> enabled,
Optional<String> id,
Optional<Boolean> obfuscate,
Map<String, Object> additionalProperties) {
this.enabled = enabled;
this.id = id;
this.obfuscate = obfuscate;
this.additionalProperties = additionalProperties;
}

/**
* @return Whether the field is enabled for syncing.
*/
@JsonProperty("enabled")
public Optional<Boolean> getEnabled() {
return enabled;
}

@JsonProperty("id")
public Optional<String> getId() {
return id;
}

/**
* @return Whether the field should be obfuscated.
*/
@JsonProperty("obfuscate")
public Optional<Boolean> getObfuscate() {
return obfuscate;
}

@java.lang.Override
public boolean equals(Object other) {
if (this == other) return true;
return other instanceof FieldConfiguration && equalTo((FieldConfiguration) other);
}

@JsonAnyGetter
public Map<String, Object> getAdditionalProperties() {
return this.additionalProperties;
}

private boolean equalTo(FieldConfiguration other) {
return enabled.equals(other.enabled) && id.equals(other.id) && obfuscate.equals(other.obfuscate);
}

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

@java.lang.Override
public String toString() {
return ObjectMappers.stringify(this);
}

public static Builder builder() {
return new Builder();
}

@JsonIgnoreProperties(ignoreUnknown = true)
public static final class Builder {
private Optional<Boolean> enabled = Optional.empty();

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

private Optional<Boolean> obfuscate = Optional.empty();

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

private Builder() {}

public Builder from(FieldConfiguration other) {
enabled(other.getEnabled());
id(other.getId());
obfuscate(other.getObfuscate());
return this;
}

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

public Builder enabled(Boolean enabled) {
this.enabled = Optional.of(enabled);
return this;
}

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

public Builder id(String id) {
this.id = Optional.of(id);
return this;
}

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

public Builder obfuscate(Boolean obfuscate) {
this.obfuscate = Optional.of(obfuscate);
return this;
}

public FieldConfiguration build() {
return new FieldConfiguration(enabled, id, obfuscate, additionalProperties);
}
}
}
Loading

0 comments on commit b2cfdd2

Please sign in to comment.