149 lines
3.0 KiB
Java
149 lines
3.0 KiB
Java
package cz.trask.migration.model.v45;
|
|
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
|
import lombok.Data;
|
|
|
|
@Data
|
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
|
public class ApplicationDetail45 {
|
|
|
|
private String type;
|
|
private String version;
|
|
|
|
@JsonProperty("data")
|
|
private Data data;
|
|
|
|
@lombok.Data
|
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
|
public static class Data {
|
|
@JsonProperty("applicationInfo")
|
|
private ApplicationInfo applicationInfo;
|
|
|
|
@JsonProperty("subscribedAPIs")
|
|
private List<SubscribedAPI> subscribedAPIs;
|
|
}
|
|
|
|
@lombok.Data
|
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
|
public static class ApplicationInfo {
|
|
@JsonProperty("applicationId")
|
|
private String applicationId;
|
|
|
|
private String name;
|
|
|
|
@JsonProperty("throttlingPolicy")
|
|
private String throttlingPolicy;
|
|
|
|
private String description;
|
|
|
|
@JsonProperty("tokenType")
|
|
private String tokenType;
|
|
|
|
private String status;
|
|
|
|
private List<?> groups;
|
|
|
|
private List<Key> keys;
|
|
|
|
private Map<String, Object> attributes;
|
|
|
|
private Integer subscriptionCount;
|
|
|
|
@JsonProperty("subscriptionScopes")
|
|
private List<?> subscriptionScopes;
|
|
|
|
private String owner;
|
|
|
|
@JsonProperty("createdTime")
|
|
private String createdTime;
|
|
|
|
@JsonProperty("updatedTime")
|
|
private String updatedTime;
|
|
|
|
private String visibility;
|
|
}
|
|
|
|
@lombok.Data
|
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
|
public static class Key {
|
|
@JsonProperty("keyMappingId")
|
|
private String keyMappingId;
|
|
|
|
@JsonProperty("keyManager")
|
|
private String keyManager;
|
|
|
|
@JsonProperty("consumerKey")
|
|
private String consumerKey;
|
|
|
|
@JsonProperty("consumerSecret")
|
|
private String consumerSecret;
|
|
|
|
@JsonProperty("supportedGrantTypes")
|
|
private List<String> supportedGrantTypes;
|
|
|
|
@JsonProperty("callbackUrl")
|
|
private String callbackUrl;
|
|
|
|
@JsonProperty("keyState")
|
|
private String keyState;
|
|
|
|
@JsonProperty("keyType")
|
|
private String keyType;
|
|
|
|
private String mode;
|
|
|
|
private Token token;
|
|
|
|
@JsonProperty("additionalProperties")
|
|
private Map<String, Object> additionalProperties;
|
|
}
|
|
|
|
@lombok.Data
|
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
|
public static class Token {
|
|
private List<?> tokenScopes;
|
|
|
|
@JsonProperty("validityTime")
|
|
private Integer validityTime;
|
|
}
|
|
|
|
@lombok.Data
|
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
|
public static class SubscribedAPI {
|
|
@JsonProperty("apiId")
|
|
private ApiId apiId;
|
|
|
|
@JsonProperty("subscriber")
|
|
private Subscriber subscriber;
|
|
|
|
@JsonProperty("throttlingPolicy")
|
|
private String throttlingPolicy;
|
|
}
|
|
|
|
@lombok.Data
|
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
|
public static class ApiId {
|
|
@JsonProperty("providerName")
|
|
private String providerName;
|
|
|
|
@JsonProperty("apiName")
|
|
private String apiName;
|
|
|
|
private String version;
|
|
private String uuid;
|
|
private Integer id;
|
|
}
|
|
|
|
@lombok.Data
|
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
|
public static class Subscriber {
|
|
private String name;
|
|
private Integer id;
|
|
private Integer tenantId;
|
|
}
|
|
} |