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 @@ -37,6 +37,8 @@ public class ModifyDataPathBackendSpectraS3Request extends AbstractRequest {

private AutoInspectMode autoInspect;

private boolean automaticTapeDecommissionEnabled;

private int cacheAvailableRetryAfterInSeconds;

private Priority defaultVerifyDataAfterImport;
Expand All @@ -55,6 +57,14 @@ public class ModifyDataPathBackendSpectraS3Request extends AbstractRequest {

private boolean poolSafetyEnabled;

private boolean stopDriveIoWhenImpaired;

private int tapeDecommissionThreshold;

private boolean tapeRetireEnabled;

private int tapeRetireThreshold;

private UnavailableMediaUsagePolicy unavailableMediaPolicy;

private int unavailablePoolMaxJobRetryInMins;
Expand Down Expand Up @@ -105,6 +115,13 @@ public ModifyDataPathBackendSpectraS3Request withAutoInspect(final AutoInspectMo
}


public ModifyDataPathBackendSpectraS3Request withAutomaticTapeDecommissionEnabled(final boolean automaticTapeDecommissionEnabled) {
this.automaticTapeDecommissionEnabled = automaticTapeDecommissionEnabled;
this.updateQueryParam("automatic_tape_decommission_enabled", automaticTapeDecommissionEnabled);
return this;
}


public ModifyDataPathBackendSpectraS3Request withCacheAvailableRetryAfterInSeconds(final int cacheAvailableRetryAfterInSeconds) {
this.cacheAvailableRetryAfterInSeconds = cacheAvailableRetryAfterInSeconds;
this.updateQueryParam("cache_available_retry_after_in_seconds", cacheAvailableRetryAfterInSeconds);
Expand Down Expand Up @@ -168,6 +185,34 @@ public ModifyDataPathBackendSpectraS3Request withPoolSafetyEnabled(final boolean
}


public ModifyDataPathBackendSpectraS3Request withStopDriveIoWhenImpaired(final boolean stopDriveIoWhenImpaired) {
this.stopDriveIoWhenImpaired = stopDriveIoWhenImpaired;
this.updateQueryParam("stop_drive_io_when_impaired", stopDriveIoWhenImpaired);
return this;
}


public ModifyDataPathBackendSpectraS3Request withTapeDecommissionThreshold(final int tapeDecommissionThreshold) {
this.tapeDecommissionThreshold = tapeDecommissionThreshold;
this.updateQueryParam("tape_decommission_threshold", tapeDecommissionThreshold);
return this;
}


public ModifyDataPathBackendSpectraS3Request withTapeRetireEnabled(final boolean tapeRetireEnabled) {
this.tapeRetireEnabled = tapeRetireEnabled;
this.updateQueryParam("tape_retire_enabled", tapeRetireEnabled);
return this;
}


public ModifyDataPathBackendSpectraS3Request withTapeRetireThreshold(final int tapeRetireThreshold) {
this.tapeRetireThreshold = tapeRetireThreshold;
this.updateQueryParam("tape_retire_threshold", tapeRetireThreshold);
return this;
}


public ModifyDataPathBackendSpectraS3Request withUnavailableMediaPolicy(final UnavailableMediaUsagePolicy unavailableMediaPolicy) {
this.unavailableMediaPolicy = unavailableMediaPolicy;
this.updateQueryParam("unavailable_media_policy", unavailableMediaPolicy);
Expand Down Expand Up @@ -232,6 +277,11 @@ public AutoInspectMode getAutoInspect() {
}


public boolean getAutomaticTapeDecommissionEnabled() {
return this.automaticTapeDecommissionEnabled;
}


public int getCacheAvailableRetryAfterInSeconds() {
return this.cacheAvailableRetryAfterInSeconds;
}
Expand Down Expand Up @@ -277,6 +327,26 @@ public boolean getPoolSafetyEnabled() {
}


public boolean getStopDriveIoWhenImpaired() {
return this.stopDriveIoWhenImpaired;
}


public int getTapeDecommissionThreshold() {
return this.tapeDecommissionThreshold;
}


public boolean getTapeRetireEnabled() {
return this.tapeRetireEnabled;
}


public int getTapeRetireThreshold() {
return this.tapeRetireThreshold;
}


public UnavailableMediaUsagePolicy getUnavailableMediaPolicy() {
return this.unavailableMediaPolicy;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ public class RawImportTapeSpectraS3Request extends AbstractRequest {

private final String bucketId;

private boolean computeChecksums;

private String storageDomainId;

private Priority taskPriority;
Expand Down Expand Up @@ -57,6 +59,13 @@ public RawImportTapeSpectraS3Request(final String bucketId, final String tapeId)

}

public RawImportTapeSpectraS3Request withComputeChecksums(final boolean computeChecksums) {
this.computeChecksums = computeChecksums;
this.updateQueryParam("compute_checksums", computeChecksums);
return this;
}


public RawImportTapeSpectraS3Request withStorageDomainId(final UUID storageDomainId) {
this.storageDomainId = storageDomainId.toString();
this.updateQueryParam("storage_domain_id", storageDomainId);
Expand Down Expand Up @@ -99,6 +108,11 @@ public String getBucketId() {
}


public boolean getComputeChecksums() {
return this.computeChecksums;
}


public String getStorageDomainId() {
return this.storageDomainId;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ public class DataPathBackend {
@JsonProperty("AutoInspect")
private AutoInspectMode autoInspect;

@JsonProperty("AutomaticTapeDecommissionEnabled")
private boolean automaticTapeDecommissionEnabled;

@JsonProperty("CacheAvailableRetryAfterInSeconds")
private int cacheAvailableRetryAfterInSeconds;

Expand Down Expand Up @@ -76,6 +79,18 @@ public class DataPathBackend {
@JsonProperty("PoolSafetyEnabled")
private boolean poolSafetyEnabled;

@JsonProperty("StopDriveIoWhenImpaired")
private boolean stopDriveIoWhenImpaired;

@JsonProperty("TapeDecommissionThreshold")
private int tapeDecommissionThreshold;

@JsonProperty("TapeRetireEnabled")
private boolean tapeRetireEnabled;

@JsonProperty("TapeRetireThreshold")
private int tapeRetireThreshold;

@JsonProperty("UnavailableMediaPolicy")
private UnavailableMediaUsagePolicy unavailableMediaPolicy;

Expand Down Expand Up @@ -140,6 +155,15 @@ public void setAutoInspect(final AutoInspectMode autoInspect) {
}


public boolean getAutomaticTapeDecommissionEnabled() {
return this.automaticTapeDecommissionEnabled;
}

public void setAutomaticTapeDecommissionEnabled(final boolean automaticTapeDecommissionEnabled) {
this.automaticTapeDecommissionEnabled = automaticTapeDecommissionEnabled;
}


public int getCacheAvailableRetryAfterInSeconds() {
return this.cacheAvailableRetryAfterInSeconds;
}
Expand Down Expand Up @@ -248,6 +272,42 @@ public void setPoolSafetyEnabled(final boolean poolSafetyEnabled) {
}


public boolean getStopDriveIoWhenImpaired() {
return this.stopDriveIoWhenImpaired;
}

public void setStopDriveIoWhenImpaired(final boolean stopDriveIoWhenImpaired) {
this.stopDriveIoWhenImpaired = stopDriveIoWhenImpaired;
}


public int getTapeDecommissionThreshold() {
return this.tapeDecommissionThreshold;
}

public void setTapeDecommissionThreshold(final int tapeDecommissionThreshold) {
this.tapeDecommissionThreshold = tapeDecommissionThreshold;
}


public boolean getTapeRetireEnabled() {
return this.tapeRetireEnabled;
}

public void setTapeRetireEnabled(final boolean tapeRetireEnabled) {
this.tapeRetireEnabled = tapeRetireEnabled;
}


public int getTapeRetireThreshold() {
return this.tapeRetireThreshold;
}

public void setTapeRetireThreshold(final int tapeRetireThreshold) {
this.tapeRetireThreshold = tapeRetireThreshold;
}


public UnavailableMediaUsagePolicy getUnavailableMediaPolicy() {
return this.unavailableMediaPolicy;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* ******************************************************************************
* Copyright 2014-2019 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.models;

public enum DlmStatus {
OK,
IMPAIRED,
NO_COMMUNICATION
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* ******************************************************************************
* Copyright 2014-2019 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.models;

public enum LibraryHealthStatus {
READY,
INITIALIZING,
MANUAL_INTERVENTION_REQUIRED,
NO_COMMUNICATION
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ public class TapeDrive {
@JsonProperty("CleaningRequired")
private boolean cleaningRequired;

@JsonProperty("DlmStatus")
private DlmStatus dlmStatus;

@JsonProperty("DlmStatusMessage")
private String dlmStatusMessage;

@JsonProperty("ErrorMessage")
private String errorMessage;

Expand Down Expand Up @@ -98,6 +104,24 @@ public void setCleaningRequired(final boolean cleaningRequired) {
}


public DlmStatus getDlmStatus() {
return this.dlmStatus;
}

public void setDlmStatus(final DlmStatus dlmStatus) {
this.dlmStatus = dlmStatus;
}


public String getDlmStatusMessage() {
return this.dlmStatusMessage;
}

public void setDlmStatusMessage(final String dlmStatusMessage) {
this.dlmStatusMessage = dlmStatusMessage;
}


public String getErrorMessage() {
return this.errorMessage;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ public class TapeLibrary {
@JsonProperty("Id")
private UUID id;

@JsonProperty("LibraryHealthStatus")
private LibraryHealthStatus libraryHealthStatus;

@JsonProperty("LibraryHealthStatusMessage")
private String libraryHealthStatusMessage;

@JsonProperty("ManagementUrl")
private String managementUrl;

Expand All @@ -52,6 +58,24 @@ public void setId(final UUID id) {
}


public LibraryHealthStatus getLibraryHealthStatus() {
return this.libraryHealthStatus;
}

public void setLibraryHealthStatus(final LibraryHealthStatus libraryHealthStatus) {
this.libraryHealthStatus = libraryHealthStatus;
}


public String getLibraryHealthStatusMessage() {
return this.libraryHealthStatusMessage;
}

public void setLibraryHealthStatusMessage(final String libraryHealthStatusMessage) {
this.libraryHealthStatusMessage = libraryHealthStatusMessage;
}


public String getManagementUrl() {
return this.managementUrl;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@

public enum TapeRole {
NORMAL,
TEST
TEST,
DECOMMISSIONED
}
Loading