Skip to content

Commit 593424c

Browse files
author
Sergey Shelomentsev
committed
chore: add classes
1 parent 7ed4fda commit 593424c

File tree

96 files changed

+18116
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+18116
-0
lines changed

src/main/java/com/fingerprint/api/FingerprintApi.java

Lines changed: 363 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
/*
2+
* Fingerprint Pro Server API
3+
* Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device.
4+
*
5+
* The version of the OpenAPI document: 3
6+
* Contact: support@fingerprint.com
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*/
12+
13+
14+
package com.fingerprint.model;
15+
16+
import java.util.Objects;
17+
import java.util.Arrays;
18+
import java.util.Map;
19+
import java.util.HashMap;
20+
import com.fasterxml.jackson.annotation.JsonInclude;
21+
import com.fasterxml.jackson.annotation.JsonProperty;
22+
import com.fasterxml.jackson.annotation.JsonCreator;
23+
import com.fasterxml.jackson.annotation.JsonTypeName;
24+
import com.fasterxml.jackson.annotation.JsonValue;
25+
import io.swagger.annotations.ApiModel;
26+
import io.swagger.annotations.ApiModelProperty;
27+
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
28+
import com.fingerprint.sdk.JSON;
29+
30+
31+
/**
32+
* ASN
33+
*/
34+
@JsonPropertyOrder({
35+
ASN.JSON_PROPERTY_ASN,
36+
ASN.JSON_PROPERTY_NETWORK,
37+
ASN.JSON_PROPERTY_NAME
38+
})
39+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
40+
public class ASN {
41+
public static final String JSON_PROPERTY_ASN = "asn";
42+
private String asn;
43+
44+
public static final String JSON_PROPERTY_NETWORK = "network";
45+
private String network;
46+
47+
public static final String JSON_PROPERTY_NAME = "name";
48+
private String name;
49+
50+
public ASN() {
51+
}
52+
53+
public ASN asn(String asn) {
54+
this.asn = asn;
55+
return this;
56+
}
57+
58+
/**
59+
* Get asn
60+
* @return asn
61+
**/
62+
@javax.annotation.Nonnull
63+
@ApiModelProperty(example = "7922", required = true, value = "")
64+
@JsonProperty(JSON_PROPERTY_ASN)
65+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
66+
67+
public String getAsn() {
68+
return asn;
69+
}
70+
71+
72+
@JsonProperty(JSON_PROPERTY_ASN)
73+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
74+
public void setAsn(String asn) {
75+
this.asn = asn;
76+
}
77+
78+
79+
public ASN network(String network) {
80+
this.network = network;
81+
return this;
82+
}
83+
84+
/**
85+
* Get network
86+
* @return network
87+
**/
88+
@javax.annotation.Nonnull
89+
@ApiModelProperty(example = "73.136.0.0/13", required = true, value = "")
90+
@JsonProperty(JSON_PROPERTY_NETWORK)
91+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
92+
93+
public String getNetwork() {
94+
return network;
95+
}
96+
97+
98+
@JsonProperty(JSON_PROPERTY_NETWORK)
99+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
100+
public void setNetwork(String network) {
101+
this.network = network;
102+
}
103+
104+
105+
public ASN name(String name) {
106+
this.name = name;
107+
return this;
108+
}
109+
110+
/**
111+
* Get name
112+
* @return name
113+
**/
114+
@javax.annotation.Nullable
115+
@ApiModelProperty(example = "COMCAST-7922", value = "")
116+
@JsonProperty(JSON_PROPERTY_NAME)
117+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
118+
119+
public String getName() {
120+
return name;
121+
}
122+
123+
124+
@JsonProperty(JSON_PROPERTY_NAME)
125+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
126+
public void setName(String name) {
127+
this.name = name;
128+
}
129+
130+
131+
/**
132+
* Return true if this ASN object is equal to o.
133+
*/
134+
@Override
135+
public boolean equals(Object o) {
136+
if (this == o) {
137+
return true;
138+
}
139+
if (o == null || getClass() != o.getClass()) {
140+
return false;
141+
}
142+
ASN ASN = (ASN) o;
143+
return Objects.equals(this.asn, ASN.asn) &&
144+
Objects.equals(this.network, ASN.network) &&
145+
Objects.equals(this.name, ASN.name);
146+
}
147+
148+
@Override
149+
public int hashCode() {
150+
return Objects.hash(asn, network, name);
151+
}
152+
153+
@Override
154+
public String toString() {
155+
StringBuilder sb = new StringBuilder();
156+
sb.append("class ASN {\n");
157+
sb.append(" asn: ").append(toIndentedString(asn)).append("\n");
158+
sb.append(" network: ").append(toIndentedString(network)).append("\n");
159+
sb.append(" name: ").append(toIndentedString(name)).append("\n");
160+
sb.append("}");
161+
return sb.toString();
162+
}
163+
164+
/**
165+
* Convert the given object to string with each line indented by 4 spaces
166+
* (except the first line).
167+
*/
168+
private String toIndentedString(Object o) {
169+
if (o == null) {
170+
return "null";
171+
}
172+
return o.toString().replace("\n", "\n ");
173+
}
174+
175+
}
176+
Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
/*
2+
* Fingerprint Pro Server API
3+
* Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device.
4+
*
5+
* The version of the OpenAPI document: 3
6+
* Contact: support@fingerprint.com
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*/
12+
13+
14+
package com.fingerprint.model;
15+
16+
import com.fingerprint.sdk.ApiException;
17+
import java.util.Objects;
18+
import java.lang.reflect.Type;
19+
import java.util.Map;
20+
import javax.ws.rs.core.GenericType;
21+
22+
import com.fasterxml.jackson.annotation.JsonValue;
23+
24+
/**
25+
* Abstract class for oneOf,anyOf schemas defined in OpenAPI spec
26+
*/
27+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
28+
public abstract class AbstractOpenApiSchema {
29+
30+
// store the actual instance of the schema/object
31+
private Object instance;
32+
33+
// is nullable
34+
private Boolean isNullable;
35+
36+
// schema type (e.g. oneOf, anyOf)
37+
private final String schemaType;
38+
39+
public AbstractOpenApiSchema(String schemaType, Boolean isNullable) {
40+
this.schemaType = schemaType;
41+
this.isNullable = isNullable;
42+
}
43+
44+
/**
45+
* Get the list of oneOf/anyOf composed schemas allowed to be stored in this object
46+
*
47+
* @return an instance of the actual schema/object
48+
*/
49+
public abstract Map<String, GenericType> getSchemas();
50+
51+
/**
52+
* Get the actual instance
53+
*
54+
* @return an instance of the actual schema/object
55+
*/
56+
@JsonValue
57+
public Object getActualInstance() {return instance;}
58+
59+
/**
60+
* Set the actual instance
61+
*
62+
* @param instance the actual instance of the schema/object
63+
*/
64+
public void setActualInstance(Object instance) {this.instance = instance;}
65+
66+
/**
67+
* Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well
68+
*
69+
* @return an instance of the actual schema/object
70+
*/
71+
public Object getActualInstanceRecursively() {
72+
return getActualInstanceRecursively(this);
73+
}
74+
75+
private Object getActualInstanceRecursively(AbstractOpenApiSchema object) {
76+
if (object.getActualInstance() == null) {
77+
return null;
78+
} else if (object.getActualInstance() instanceof AbstractOpenApiSchema) {
79+
return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance());
80+
} else {
81+
return object.getActualInstance();
82+
}
83+
}
84+
85+
/**
86+
* Get the schema type (e.g. anyOf, oneOf)
87+
*
88+
* @return the schema type
89+
*/
90+
public String getSchemaType() {
91+
return schemaType;
92+
}
93+
94+
@Override
95+
public String toString() {
96+
StringBuilder sb = new StringBuilder();
97+
sb.append("class ").append(getClass()).append(" {\n");
98+
sb.append(" instance: ").append(toIndentedString(instance)).append("\n");
99+
sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n");
100+
sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n");
101+
sb.append("}");
102+
return sb.toString();
103+
}
104+
105+
/**
106+
* Convert the given object to string with each line indented by 4 spaces
107+
* (except the first line).
108+
*/
109+
private String toIndentedString(Object o) {
110+
if (o == null) {
111+
return "null";
112+
}
113+
return o.toString().replace("\n", "\n ");
114+
}
115+
116+
public boolean equals(Object o) {
117+
if (this == o) {
118+
return true;
119+
}
120+
if (o == null || getClass() != o.getClass()) {
121+
return false;
122+
}
123+
AbstractOpenApiSchema a = (AbstractOpenApiSchema) o;
124+
return Objects.equals(this.instance, a.instance) &&
125+
Objects.equals(this.isNullable, a.isNullable) &&
126+
Objects.equals(this.schemaType, a.schemaType);
127+
}
128+
129+
@Override
130+
public int hashCode() {
131+
return Objects.hash(instance, isNullable, schemaType);
132+
}
133+
134+
/**
135+
* Is nullable
136+
*
137+
* @return true if it's nullable
138+
*/
139+
public Boolean isNullable() {
140+
if (Boolean.TRUE.equals(isNullable)) {
141+
return Boolean.TRUE;
142+
} else {
143+
return Boolean.FALSE;
144+
}
145+
}
146+
147+
148+
149+
}

0 commit comments

Comments
 (0)