Skip to content

Commit 2303e6c

Browse files
committed
Merge pull request #182 from RachelTucker/3_0_autogen_update
Query param + changed to space and nullable Integer support
2 parents 3ff2351 + e1a8920 commit 2303e6c

File tree

58 files changed

+108
-108
lines changed

Some content is hidden

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

58 files changed

+108
-108
lines changed

ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/GetBucketRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public GetBucketRequest withDelimiter(final String delimiter) {
4747

4848
public GetBucketRequest withMarker(final String marker) {
4949
this.marker = marker;
50-
this.updateQueryParam("marker", UrlEscapers.urlFragmentEscaper().escape(marker));
50+
this.updateQueryParam("marker", UrlEscapers.urlFragmentEscaper().escape(marker).replace("+", "%2B"));
5151
return this;
5252
}
5353

@@ -59,7 +59,7 @@ public GetBucketRequest withMaxKeys(final int maxKeys) {
5959

6060
public GetBucketRequest withPrefix(final String prefix) {
6161
this.prefix = prefix;
62-
this.updateQueryParam("prefix", UrlEscapers.urlFragmentEscaper().escape(prefix));
62+
this.updateQueryParam("prefix", UrlEscapers.urlFragmentEscaper().escape(prefix).replace("+", "%2B"));
6363
return this;
6464
}
6565

ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/ListMultiPartUploadPartsRequest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public class ListMultiPartUploadPartsRequest extends AbstractRequest {
3232

3333
private int maxParts;
3434

35-
private int partNumberMarker;
35+
private Integer partNumberMarker;
3636

3737
// Constructor
3838

@@ -49,9 +49,9 @@ public ListMultiPartUploadPartsRequest withMaxParts(final int maxParts) {
4949
return this;
5050
}
5151

52-
public ListMultiPartUploadPartsRequest withPartNumberMarker(final int partNumberMarker) {
52+
public ListMultiPartUploadPartsRequest withPartNumberMarker(final Integer partNumberMarker) {
5353
this.partNumberMarker = partNumberMarker;
54-
this.updateQueryParam("part_number_marker", Integer.toString(partNumberMarker));
54+
this.updateQueryParam("part_number_marker", String.valueOf(partNumberMarker));
5555
return this;
5656
}
5757

@@ -86,7 +86,7 @@ public int getMaxParts() {
8686
}
8787

8888

89-
public int getPartNumberMarker() {
89+
public Integer getPartNumberMarker() {
9090
return this.partNumberMarker;
9191
}
9292

ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/ListMultiPartUploadsRequest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public ListMultiPartUploadsRequest withDelimiter(final String delimiter) {
5050

5151
public ListMultiPartUploadsRequest withKeyMarker(final String keyMarker) {
5252
this.keyMarker = keyMarker;
53-
this.updateQueryParam("key_marker", UrlEscapers.urlFragmentEscaper().escape(keyMarker));
53+
this.updateQueryParam("key_marker", UrlEscapers.urlFragmentEscaper().escape(keyMarker).replace("+", "%2B"));
5454
return this;
5555
}
5656

@@ -62,13 +62,13 @@ public ListMultiPartUploadsRequest withMaxUploads(final int maxUploads) {
6262

6363
public ListMultiPartUploadsRequest withPrefix(final String prefix) {
6464
this.prefix = prefix;
65-
this.updateQueryParam("prefix", UrlEscapers.urlFragmentEscaper().escape(prefix));
65+
this.updateQueryParam("prefix", UrlEscapers.urlFragmentEscaper().escape(prefix).replace("+", "%2B"));
6666
return this;
6767
}
6868

6969
public ListMultiPartUploadsRequest withUploadIdMarker(final String uploadIdMarker) {
7070
this.uploadIdMarker = uploadIdMarker;
71-
this.updateQueryParam("upload_id_marker", UrlEscapers.urlFragmentEscaper().escape(uploadIdMarker));
71+
this.updateQueryParam("upload_id_marker", UrlEscapers.urlFragmentEscaper().escape(uploadIdMarker).replace("+", "%2B"));
7272
return this;
7373
}
7474

ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/EjectAllTapesSpectraS3Request.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ public EjectAllTapesSpectraS3Request() {
3737

3838
public EjectAllTapesSpectraS3Request withEjectLabel(final String ejectLabel) {
3939
this.ejectLabel = ejectLabel;
40-
this.updateQueryParam("eject_label", UrlEscapers.urlFragmentEscaper().escape(ejectLabel));
40+
this.updateQueryParam("eject_label", UrlEscapers.urlFragmentEscaper().escape(ejectLabel).replace("+", "%2B"));
4141
return this;
4242
}
4343

4444
public EjectAllTapesSpectraS3Request withEjectLocation(final String ejectLocation) {
4545
this.ejectLocation = ejectLocation;
46-
this.updateQueryParam("eject_location", UrlEscapers.urlFragmentEscaper().escape(ejectLocation));
46+
this.updateQueryParam("eject_location", UrlEscapers.urlFragmentEscaper().escape(ejectLocation).replace("+", "%2B"));
4747
return this;
4848
}
4949

ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/EjectStorageDomainBlobsSpectraS3Request.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ public EjectStorageDomainBlobsSpectraS3Request(final String bucketId, final UUID
4747

4848
public EjectStorageDomainBlobsSpectraS3Request withEjectLabel(final String ejectLabel) {
4949
this.ejectLabel = ejectLabel;
50-
this.updateQueryParam("eject_label", UrlEscapers.urlFragmentEscaper().escape(ejectLabel));
50+
this.updateQueryParam("eject_label", UrlEscapers.urlFragmentEscaper().escape(ejectLabel).replace("+", "%2B"));
5151
return this;
5252
}
5353

5454
public EjectStorageDomainBlobsSpectraS3Request withEjectLocation(final String ejectLocation) {
5555
this.ejectLocation = ejectLocation;
56-
this.updateQueryParam("eject_location", UrlEscapers.urlFragmentEscaper().escape(ejectLocation));
56+
this.updateQueryParam("eject_location", UrlEscapers.urlFragmentEscaper().escape(ejectLocation).replace("+", "%2B"));
5757
return this;
5858
}
5959

ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/EjectStorageDomainSpectraS3Request.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ public EjectStorageDomainSpectraS3Request withBucketId(final String bucketId) {
5050

5151
public EjectStorageDomainSpectraS3Request withEjectLabel(final String ejectLabel) {
5252
this.ejectLabel = ejectLabel;
53-
this.updateQueryParam("eject_label", UrlEscapers.urlFragmentEscaper().escape(ejectLabel));
53+
this.updateQueryParam("eject_label", UrlEscapers.urlFragmentEscaper().escape(ejectLabel).replace("+", "%2B"));
5454
return this;
5555
}
5656

5757
public EjectStorageDomainSpectraS3Request withEjectLocation(final String ejectLocation) {
5858
this.ejectLocation = ejectLocation;
59-
this.updateQueryParam("eject_location", UrlEscapers.urlFragmentEscaper().escape(ejectLocation));
59+
this.updateQueryParam("eject_location", UrlEscapers.urlFragmentEscaper().escape(ejectLocation).replace("+", "%2B"));
6060
return this;
6161
}
6262

ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/EjectTapeSpectraS3Request.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ public EjectTapeSpectraS3Request(final UUID tapeId) {
4141

4242
public EjectTapeSpectraS3Request withEjectLabel(final String ejectLabel) {
4343
this.ejectLabel = ejectLabel;
44-
this.updateQueryParam("eject_label", UrlEscapers.urlFragmentEscaper().escape(ejectLabel));
44+
this.updateQueryParam("eject_label", UrlEscapers.urlFragmentEscaper().escape(ejectLabel).replace("+", "%2B"));
4545
return this;
4646
}
4747

4848
public EjectTapeSpectraS3Request withEjectLocation(final String ejectLocation) {
4949
this.ejectLocation = ejectLocation;
50-
this.updateQueryParam("eject_location", UrlEscapers.urlFragmentEscaper().escape(ejectLocation));
50+
this.updateQueryParam("eject_location", UrlEscapers.urlFragmentEscaper().escape(ejectLocation).replace("+", "%2B"));
5151
return this;
5252
}
5353

ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetActiveJobsSpectraS3Request.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public GetActiveJobsSpectraS3Request withLastPage(final boolean lastPage) {
9090

9191
public GetActiveJobsSpectraS3Request withName(final String name) {
9292
this.name = name;
93-
this.updateQueryParam("name", UrlEscapers.urlFragmentEscaper().escape(name));
93+
this.updateQueryParam("name", UrlEscapers.urlFragmentEscaper().escape(name).replace("+", "%2B"));
9494
return this;
9595
}
9696

ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBucketsSpectraS3Request.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public GetBucketsSpectraS3Request withLastPage(final boolean lastPage) {
6262

6363
public GetBucketsSpectraS3Request withName(final String name) {
6464
this.name = name;
65-
this.updateQueryParam("name", UrlEscapers.urlFragmentEscaper().escape(name));
65+
this.updateQueryParam("name", UrlEscapers.urlFragmentEscaper().escape(name).replace("+", "%2B"));
6666
return this;
6767
}
6868

ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/GetBulkJobSpectraS3Request.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public GetBulkJobSpectraS3Request withChunkClientProcessingOrderGuarantee(final
5656

5757
public GetBulkJobSpectraS3Request withName(final String name) {
5858
this.name = name;
59-
this.updateQueryParam("name", UrlEscapers.urlFragmentEscaper().escape(name));
59+
this.updateQueryParam("name", UrlEscapers.urlFragmentEscaper().escape(name).replace("+", "%2B"));
6060
return this;
6161
}
6262

0 commit comments

Comments
 (0)