Skip to content

Commit 5422e4e

Browse files
committed
Merge pull request #167 from RachelTucker/3_0_autogen
Fixed updating of boolean query params within requests
2 parents b5d6e8c + 8ad94fa commit 5422e4e

18 files changed

+35
-35
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public GetActiveJobsSpectraS3Request() {
6262

6363
public GetActiveJobsSpectraS3Request withAggregating(final boolean aggregating) {
6464
this.aggregating = aggregating;
65-
this.updateQueryParam("aggregating", null);
65+
this.updateQueryParam("aggregating", String.valueOf(aggregating));
6666
return this;
6767
}
6868

@@ -132,7 +132,7 @@ public GetActiveJobsSpectraS3Request withRequestType(final JobRequestType reques
132132

133133
public GetActiveJobsSpectraS3Request withTruncated(final boolean truncated) {
134134
this.truncated = truncated;
135-
this.updateQueryParam("truncated", null);
135+
this.updateQueryParam("truncated", String.valueOf(truncated));
136136
return this;
137137
}
138138

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
@@ -44,7 +44,7 @@ public GetBulkJobSpectraS3Request(final String bucketName, final List<Ds3Object>
4444

4545
public GetBulkJobSpectraS3Request withAggregating(final boolean aggregating) {
4646
this.aggregating = aggregating;
47-
this.updateQueryParam("aggregating", null);
47+
this.updateQueryParam("aggregating", String.valueOf(aggregating));
4848
return this;
4949
}
5050

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public GetCanceledJobsSpectraS3Request withRequestType(final JobRequestType requ
124124

125125
public GetCanceledJobsSpectraS3Request withTruncated(final boolean truncated) {
126126
this.truncated = truncated;
127-
this.updateQueryParam("truncated", null);
127+
this.updateQueryParam("truncated", String.valueOf(truncated));
128128
return this;
129129
}
130130

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public GetCompletedJobsSpectraS3Request withRequestType(final JobRequestType req
124124

125125
public GetCompletedJobsSpectraS3Request withTruncated(final boolean truncated) {
126126
this.truncated = truncated;
127-
this.updateQueryParam("truncated", null);
127+
this.updateQueryParam("truncated", String.valueOf(truncated));
128128
return this;
129129
}
130130

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public GetDataPoliciesSpectraS3Request withChecksumType(final ChecksumType.Type
5353

5454
public GetDataPoliciesSpectraS3Request withEndToEndCrcRequired(final boolean endToEndCrcRequired) {
5555
this.endToEndCrcRequired = endToEndCrcRequired;
56-
this.updateQueryParam("end_to_end_crc_required", null);
56+
this.updateQueryParam("end_to_end_crc_required", String.valueOf(endToEndCrcRequired));
5757
return this;
5858
}
5959

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public GetGroupsSpectraS3Request() {
4444

4545
public GetGroupsSpectraS3Request withBuiltIn(final boolean builtIn) {
4646
this.builtIn = builtIn;
47-
this.updateQueryParam("built_in", null);
47+
this.updateQueryParam("built_in", String.valueOf(builtIn));
4848
return this;
4949
}
5050

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

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

8888
public GetObjectsSpectraS3Request withLatest(final boolean latest) {
8989
this.latest = latest;
90-
this.updateQueryParam("latest", null);
90+
this.updateQueryParam("latest", String.valueOf(latest));
9191
return this;
9292
}
9393

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public GetObjectsWithFullDetailsSpectraS3Request withLastPage(final boolean last
8888

8989
public GetObjectsWithFullDetailsSpectraS3Request withLatest(final boolean latest) {
9090
this.latest = latest;
91-
this.updateQueryParam("latest", null);
91+
this.updateQueryParam("latest", String.valueOf(latest));
9292
return this;
9393
}
9494

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public GetPoolsSpectraS3Request() {
6161

6262
public GetPoolsSpectraS3Request withAssignedToStorageDomain(final boolean assignedToStorageDomain) {
6363
this.assignedToStorageDomain = assignedToStorageDomain;
64-
this.updateQueryParam("assigned_to_storage_domain", null);
64+
this.updateQueryParam("assigned_to_storage_domain", String.valueOf(assignedToStorageDomain));
6565
return this;
6666
}
6767

@@ -119,7 +119,7 @@ public GetPoolsSpectraS3Request withPartitionId(final UUID partitionId) {
119119

120120
public GetPoolsSpectraS3Request withPoweredOn(final boolean poweredOn) {
121121
this.poweredOn = poweredOn;
122-
this.updateQueryParam("powered_on", null);
122+
this.updateQueryParam("powered_on", String.valueOf(poweredOn));
123123
return this;
124124
}
125125

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,19 +61,19 @@ public GetStorageDomainsSpectraS3Request withAutoEjectUponCron(final String auto
6161

6262
public GetStorageDomainsSpectraS3Request withAutoEjectUponJobCancellation(final boolean autoEjectUponJobCancellation) {
6363
this.autoEjectUponJobCancellation = autoEjectUponJobCancellation;
64-
this.updateQueryParam("auto_eject_upon_job_cancellation", null);
64+
this.updateQueryParam("auto_eject_upon_job_cancellation", String.valueOf(autoEjectUponJobCancellation));
6565
return this;
6666
}
6767

6868
public GetStorageDomainsSpectraS3Request withAutoEjectUponJobCompletion(final boolean autoEjectUponJobCompletion) {
6969
this.autoEjectUponJobCompletion = autoEjectUponJobCompletion;
70-
this.updateQueryParam("auto_eject_upon_job_completion", null);
70+
this.updateQueryParam("auto_eject_upon_job_completion", String.valueOf(autoEjectUponJobCompletion));
7171
return this;
7272
}
7373

7474
public GetStorageDomainsSpectraS3Request withAutoEjectUponMediaFull(final boolean autoEjectUponMediaFull) {
7575
this.autoEjectUponMediaFull = autoEjectUponMediaFull;
76-
this.updateQueryParam("auto_eject_upon_media_full", null);
76+
this.updateQueryParam("auto_eject_upon_media_full", String.valueOf(autoEjectUponMediaFull));
7777
return this;
7878
}
7979

@@ -89,7 +89,7 @@ public GetStorageDomainsSpectraS3Request withLastPage(final boolean lastPage) {
8989

9090
public GetStorageDomainsSpectraS3Request withMediaEjectionAllowed(final boolean mediaEjectionAllowed) {
9191
this.mediaEjectionAllowed = mediaEjectionAllowed;
92-
this.updateQueryParam("media_ejection_allowed", null);
92+
this.updateQueryParam("media_ejection_allowed", String.valueOf(mediaEjectionAllowed));
9393
return this;
9494
}
9595

0 commit comments

Comments
 (0)