Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1262,6 +1262,10 @@ DeleteDs3TargetReadPreferenceSpectraS3Response deleteDs3TargetReadPreferenceSpec
@Resource("DS3_TARGET")
DeleteDs3TargetSpectraS3Response deleteDs3TargetSpectraS3(DeleteDs3TargetSpectraS3Request request)
throws IOException, SignatureException;
@Action("BULK_MODIFY")
@Resource("TARGET_ENVIRONMENT")
ForceTargetEnvironmentRefreshSpectraS3Response forceTargetEnvironmentRefreshSpectraS3(ForceTargetEnvironmentRefreshSpectraS3Request request)
throws IOException, SignatureException;
@ResponsePayloadModel("Ds3TargetFailureList")
@Action("LIST")
@Resource("DS3_TARGET_FAILURE")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1099,6 +1099,10 @@ public DeleteDs3TargetSpectraS3Response deleteDs3TargetSpectraS3(DeleteDs3Target
return new DeleteDs3TargetSpectraS3Response(this.netClient.getResponse(request));
}
@Override
public ForceTargetEnvironmentRefreshSpectraS3Response forceTargetEnvironmentRefreshSpectraS3(ForceTargetEnvironmentRefreshSpectraS3Request request) throws IOException, SignatureException {
return new ForceTargetEnvironmentRefreshSpectraS3Response(this.netClient.getResponse(request));
}
@Override
public GetDs3TargetFailuresSpectraS3Response getDs3TargetFailuresSpectraS3(GetDs3TargetFailuresSpectraS3Request request) throws IOException, SignatureException {
return new GetDs3TargetFailuresSpectraS3Response(this.netClient.getResponse(request));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ public class DeleteBucketSpectraS3Request extends AbstractRequest {

private boolean force;

private boolean replicate;

// Constructor

public DeleteBucketSpectraS3Request(final String bucketName) {
Expand All @@ -45,6 +47,16 @@ public DeleteBucketSpectraS3Request withForce(final boolean force) {
return this;
}

public DeleteBucketSpectraS3Request withReplicate(final boolean replicate) {
this.replicate = replicate;
if (this.replicate) {
this.getQueryParams().put("replicate", null);
} else {
this.getQueryParams().remove("replicate");
}
return this;
}


@Override
public HttpVerb getVerb() {
Expand All @@ -65,4 +77,9 @@ public boolean getForce() {
return this.force;
}


public boolean getReplicate() {
return this.replicate;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*
* ******************************************************************************
* Copyright 2014-2015 Spectra Logic Corporation. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use
* this file except in compliance with the License. A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* or in the "license" file accompanying this file.
* This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
* ****************************************************************************
*/

// This code is auto-generated, do not modify
package com.spectralogic.ds3client.commands.spectrads3;

import com.spectralogic.ds3client.networking.HttpVerb;
import com.spectralogic.ds3client.commands.interfaces.AbstractRequest;

public class ForceTargetEnvironmentRefreshSpectraS3Request extends AbstractRequest {

// Variables

// Constructor

public ForceTargetEnvironmentRefreshSpectraS3Request() {

}


@Override
public HttpVerb getVerb() {
return HttpVerb.PUT;
}

@Override
public String getPath() {
return "/_rest_/target_environment";
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/*
* ******************************************************************************
* Copyright 2014-2015 Spectra Logic Corporation. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use
* this file except in compliance with the License. A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* or in the "license" file accompanying this file.
* This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
* ****************************************************************************
*/

// This code is auto-generated, do not modify
package com.spectralogic.ds3client.commands.spectrads3;

import com.spectralogic.ds3client.networking.WebResponse;
import java.io.IOException;
import com.spectralogic.ds3client.commands.interfaces.AbstractResponse;

public class ForceTargetEnvironmentRefreshSpectraS3Response extends AbstractResponse {



public ForceTargetEnvironmentRefreshSpectraS3Response(final WebResponse response) throws IOException {
super(response);
}

@Override
protected void processResponse() throws IOException {
try {
this.checkStatusCode(204);

switch (this.getStatusCode()) {
case 204:
//Do nothing, payload is null
break;
default:
assert false : "checkStatusCode should have made it impossible to reach this line.";
}
} finally {
this.getResponse().close();
}
}


}