Skip to content

Commit befee2c

Browse files
SDK regeneration
1 parent 9d1a2c4 commit befee2c

7 files changed

Lines changed: 30 additions & 30 deletions

File tree

.fern/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
"package-layout": "flat",
1313
"use-local-date-for-dates": true
1414
},
15-
"sdkVersion": "0.1.3"
15+
"sdkVersion": "0.1.4"
1616
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Add the dependency in your `pom.xml` file:
4141
<dependency>
4242
<groupId>com.icepanel</groupId>
4343
<artifactId>sdk</artifactId>
44-
<version>0.1.3</version>
44+
<version>0.1.4</version>
4545
</dependency>
4646
```
4747

@@ -232,4 +232,4 @@ otherwise they would be overwritten upon the next generated release. Feel free t
232232
a proof of concept, but know that we will not be able to merge it as-is. We suggest opening
233233
an issue first to discuss with us!
234234

235-
On the other hand, contributions to the README are always very welcome!
235+
On the other hand, contributions to the README are always very welcome!

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ java {
4747

4848
group = 'com.icepanel'
4949

50-
version = '0.1.3'
50+
version = '0.1.4'
5151

5252
jar {
5353
dependsOn(":generatePomFileForMavenPublication")
@@ -78,7 +78,7 @@ publishing {
7878
maven(MavenPublication) {
7979
groupId = 'com.icepanel'
8080
artifactId = 'sdk'
81-
version = '0.1.3'
81+
version = '0.1.4'
8282
from components.java
8383
pom {
8484
name = 'IcePanel <mail@icepanel.io>'

src/main/java/com/icepanel/AsyncIcePanelClientBuilder.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class AsyncIcePanelClientBuilder {
1717

1818
private final Map<String, String> customHeaders = new HashMap<>();
1919

20-
private String key = System.getenv("ICEPANEL_API_KEY");
20+
private String apiKey = System.getenv("ICEPANEL_API_KEY");
2121

2222
private String token = null;
2323

@@ -26,11 +26,11 @@ public class AsyncIcePanelClientBuilder {
2626
private OkHttpClient httpClient;
2727

2828
/**
29-
* Sets key.
29+
* Sets apiKey.
3030
* Defaults to the ICEPANEL_API_KEY environment variable.
3131
*/
32-
public AsyncIcePanelClientBuilder key(String key) {
33-
this.key = key;
32+
public AsyncIcePanelClientBuilder apiKey(String apiKey) {
33+
this.apiKey = apiKey;
3434
return this;
3535
}
3636

@@ -129,7 +129,7 @@ protected void setEnvironment(ClientOptions.Builder builder) {
129129
* }</pre>
130130
*/
131131
protected void setAuthentication(ClientOptions.Builder builder) {
132-
builder.addHeader("X-API-Key", this.key);
132+
builder.addHeader("X-API-Key", this.apiKey);
133133
if (this.token != null) {
134134
builder.addHeader("Authorization", "Bearer " + this.token);
135135
}
@@ -208,8 +208,8 @@ protected void setAdditional(ClientOptions.Builder builder) {}
208208
protected void validateConfiguration() {}
209209

210210
public AsyncIcePanelClient build() {
211-
if (key == null) {
212-
throw new RuntimeException("Please provide key or set the ICEPANEL_API_KEY environment variable.");
211+
if (apiKey == null) {
212+
throw new RuntimeException("Please provide apiKey or set the ICEPANEL_API_KEY environment variable.");
213213
}
214214
validateConfiguration();
215215
return new AsyncIcePanelClient(buildClientOptions());

src/main/java/com/icepanel/IcePanelClientBuilder.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class IcePanelClientBuilder {
1717

1818
private final Map<String, String> customHeaders = new HashMap<>();
1919

20-
private String key = System.getenv("ICEPANEL_API_KEY");
20+
private String apiKey = System.getenv("ICEPANEL_API_KEY");
2121

2222
private String token = null;
2323

@@ -26,11 +26,11 @@ public class IcePanelClientBuilder {
2626
private OkHttpClient httpClient;
2727

2828
/**
29-
* Sets key.
29+
* Sets apiKey.
3030
* Defaults to the ICEPANEL_API_KEY environment variable.
3131
*/
32-
public IcePanelClientBuilder key(String key) {
33-
this.key = key;
32+
public IcePanelClientBuilder apiKey(String apiKey) {
33+
this.apiKey = apiKey;
3434
return this;
3535
}
3636

@@ -129,7 +129,7 @@ protected void setEnvironment(ClientOptions.Builder builder) {
129129
* }</pre>
130130
*/
131131
protected void setAuthentication(ClientOptions.Builder builder) {
132-
builder.addHeader("X-API-Key", this.key);
132+
builder.addHeader("X-API-Key", this.apiKey);
133133
if (this.token != null) {
134134
builder.addHeader("Authorization", "Bearer " + this.token);
135135
}
@@ -208,8 +208,8 @@ protected void setAdditional(ClientOptions.Builder builder) {}
208208
protected void validateConfiguration() {}
209209

210210
public IcePanelClient build() {
211-
if (key == null) {
212-
throw new RuntimeException("Please provide key or set the ICEPANEL_API_KEY environment variable.");
211+
if (apiKey == null) {
212+
throw new RuntimeException("Please provide apiKey or set the ICEPANEL_API_KEY environment variable.");
213213
}
214214
validateConfiguration();
215215
return new IcePanelClient(buildClientOptions());

src/main/java/com/icepanel/core/ClientOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ private ClientOptions(
3535
this.headers.putAll(headers);
3636
this.headers.putAll(new HashMap<String, String>() {
3737
{
38-
put("User-Agent", "com.icepanel:sdk/0.1.3");
38+
put("User-Agent", "com.icepanel:sdk/0.1.4");
3939
put("X-Fern-Language", "JAVA");
4040
put("X-Fern-SDK-Name", "com.icepanel.fern:api-sdk");
41-
put("X-Fern-SDK-Version", "0.1.3");
41+
put("X-Fern-SDK-Version", "0.1.4");
4242
}
4343
});
4444
this.headerSuppliers = headerSuppliers;

src/main/java/com/icepanel/core/RequestOptions.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import java.util.function.Supplier;
1111

1212
public final class RequestOptions {
13-
private final String key;
13+
private final String apiKey;
1414

1515
private final String token;
1616

@@ -27,15 +27,15 @@ public final class RequestOptions {
2727
private final Map<String, Supplier<String>> queryParameterSuppliers;
2828

2929
private RequestOptions(
30-
String key,
30+
String apiKey,
3131
String token,
3232
Optional<Integer> timeout,
3333
TimeUnit timeoutTimeUnit,
3434
Map<String, String> headers,
3535
Map<String, Supplier<String>> headerSuppliers,
3636
Map<String, String> queryParameters,
3737
Map<String, Supplier<String>> queryParameterSuppliers) {
38-
this.key = key;
38+
this.apiKey = apiKey;
3939
this.token = token;
4040
this.timeout = timeout;
4141
this.timeoutTimeUnit = timeoutTimeUnit;
@@ -55,8 +55,8 @@ public TimeUnit getTimeoutTimeUnit() {
5555

5656
public Map<String, String> getHeaders() {
5757
Map<String, String> headers = new HashMap<>();
58-
if (this.key != null) {
59-
headers.put("X-API-Key", this.key);
58+
if (this.apiKey != null) {
59+
headers.put("X-API-Key", this.apiKey);
6060
}
6161
if (this.token != null) {
6262
headers.put("Authorization", "Bearer " + this.token);
@@ -81,7 +81,7 @@ public static Builder builder() {
8181
}
8282

8383
public static class Builder {
84-
private String key = null;
84+
private String apiKey = null;
8585

8686
private String token = null;
8787

@@ -97,8 +97,8 @@ public static class Builder {
9797

9898
private final Map<String, Supplier<String>> queryParameterSuppliers = new HashMap<>();
9999

100-
public Builder key(String key) {
101-
this.key = key;
100+
public Builder apiKey(String apiKey) {
101+
this.apiKey = apiKey;
102102
return this;
103103
}
104104

@@ -140,7 +140,7 @@ public Builder addQueryParameter(String key, Supplier<String> value) {
140140

141141
public RequestOptions build() {
142142
return new RequestOptions(
143-
key,
143+
apiKey,
144144
token,
145145
timeout,
146146
timeoutTimeUnit,

0 commit comments

Comments
 (0)