Skip to content
Closed
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
4 changes: 2 additions & 2 deletions sdk/storage/mgmt-v2019_06_01/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.2.0</version>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-storage</artifactId>
<version>1.0.0-beta-2</version>
<version>1.0.0-beta</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for Storage Management</name>
<description>This package contains Microsoft Storage Management SDK.</description>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.storage.v2019_06_01;

import org.joda.time.DateTime;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Blob restore parameters.
*/
public class BlobRestoreParameters {
/**
* Restore blob to the specified time.
*/
@JsonProperty(value = "timeToRestore", required = true)
private DateTime timeToRestore;

/**
* Blob ranges to restore.
*/
@JsonProperty(value = "blobRanges", required = true)
private List<BlobRestoreRange> blobRanges;

/**
* Get restore blob to the specified time.
*
* @return the timeToRestore value
*/
public DateTime timeToRestore() {
return this.timeToRestore;
}

/**
* Set restore blob to the specified time.
*
* @param timeToRestore the timeToRestore value to set
* @return the BlobRestoreParameters object itself.
*/
public BlobRestoreParameters withTimeToRestore(DateTime timeToRestore) {
this.timeToRestore = timeToRestore;
return this;
}

/**
* Get blob ranges to restore.
*
* @return the blobRanges value
*/
public List<BlobRestoreRange> blobRanges() {
return this.blobRanges;
}

/**
* Set blob ranges to restore.
*
* @param blobRanges the blobRanges value to set
* @return the BlobRestoreParameters object itself.
*/
public BlobRestoreParameters withBlobRanges(List<BlobRestoreRange> blobRanges) {
this.blobRanges = blobRanges;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.storage.v2019_06_01;

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for BlobRestoreProgressStatus.
*/
public final class BlobRestoreProgressStatus extends ExpandableStringEnum<BlobRestoreProgressStatus> {
/** Static value InProgress for BlobRestoreProgressStatus. */
public static final BlobRestoreProgressStatus IN_PROGRESS = fromString("InProgress");

/** Static value Complete for BlobRestoreProgressStatus. */
public static final BlobRestoreProgressStatus COMPLETE = fromString("Complete");

/** Static value Failed for BlobRestoreProgressStatus. */
public static final BlobRestoreProgressStatus FAILED = fromString("Failed");

/**
* Creates or finds a BlobRestoreProgressStatus from its string representation.
* @param name a name to look for
* @return the corresponding BlobRestoreProgressStatus
*/
@JsonCreator
public static BlobRestoreProgressStatus fromString(String name) {
return fromString(name, BlobRestoreProgressStatus.class);
}

/**
* @return known BlobRestoreProgressStatus values
*/
public static Collection<BlobRestoreProgressStatus> values() {
return values(BlobRestoreProgressStatus.class);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.storage.v2019_06_01;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Blob range.
*/
public class BlobRestoreRange {
/**
* Blob start range. Empty means account start.
*/
@JsonProperty(value = "startRange", required = true)
private String startRange;

/**
* Blob end range. Empty means account end.
*/
@JsonProperty(value = "endRange", required = true)
private String endRange;

/**
* Get blob start range. Empty means account start.
*
* @return the startRange value
*/
public String startRange() {
return this.startRange;
}

/**
* Set blob start range. Empty means account start.
*
* @param startRange the startRange value to set
* @return the BlobRestoreRange object itself.
*/
public BlobRestoreRange withStartRange(String startRange) {
this.startRange = startRange;
return this;
}

/**
* Get blob end range. Empty means account end.
*
* @return the endRange value
*/
public String endRange() {
return this.endRange;
}

/**
* Set blob end range. Empty means account end.
*
* @param endRange the endRange value to set
* @return the BlobRestoreRange object itself.
*/
public BlobRestoreRange withEndRange(String endRange) {
this.endRange = endRange;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.storage.v2019_06_01;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.storage.v2019_06_01.implementation.StorageManager;
import com.microsoft.azure.management.storage.v2019_06_01.implementation.BlobRestoreStatusInner;

/**
* Type representing BlobRestoreStatus.
*/
public interface BlobRestoreStatus extends HasInner<BlobRestoreStatusInner>, HasManager<StorageManager> {
/**
* @return the failureReason value.
*/
String failureReason();

/**
* @return the parameters value.
*/
BlobRestoreParameters parameters();

/**
* @return the restoreId value.
*/
String restoreId();

/**
* @return the status value.
*/
BlobRestoreProgressStatus status();

}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import com.microsoft.azure.arm.model.Creatable;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.storage.v2019_06_01.implementation.StorageManager;
import com.microsoft.azure.management.storage.v2019_06_01.implementation.SkuInner;

/**
* Type representing BlobServiceProperties.
Expand Down Expand Up @@ -58,6 +57,11 @@ public interface BlobServiceProperties extends HasInner<BlobServicePropertiesInn
*/
String name();

/**
* @return the restorePolicy value.
*/
RestorePolicyProperties restorePolicy();

/**
* @return the sku value.
*/
Expand Down Expand Up @@ -157,18 +161,30 @@ interface WithDeleteRetentionPolicy {
WithCreate withDeleteRetentionPolicy(DeleteRetentionPolicy deleteRetentionPolicy);
}

/**
* The stage of the blobserviceproperties definition allowing to specify RestorePolicy.
*/
interface WithRestorePolicy {
/**
* Specifies restorePolicy.
* @param restorePolicy The blob service properties for blob restore policy
* @return the next definition stage
*/
WithCreate withRestorePolicy(RestorePolicyProperties restorePolicy);
}

/**
* The stage of the definition which contains all the minimum required inputs for
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
interface WithCreate extends Creatable<BlobServiceProperties>, DefinitionStages.WithAutomaticSnapshotPolicyEnabled, DefinitionStages.WithChangeFeed, DefinitionStages.WithCors, DefinitionStages.WithDefaultServiceVersion, DefinitionStages.WithDeleteRetentionPolicy {
interface WithCreate extends Creatable<BlobServiceProperties>, DefinitionStages.WithAutomaticSnapshotPolicyEnabled, DefinitionStages.WithChangeFeed, DefinitionStages.WithCors, DefinitionStages.WithDefaultServiceVersion, DefinitionStages.WithDeleteRetentionPolicy, DefinitionStages.WithRestorePolicy {
}
}
/**
* The template for a BlobServiceProperties update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<BlobServiceProperties>, UpdateStages.WithAutomaticSnapshotPolicyEnabled, UpdateStages.WithChangeFeed, UpdateStages.WithCors, UpdateStages.WithDefaultServiceVersion, UpdateStages.WithDeleteRetentionPolicy {
interface Update extends Appliable<BlobServiceProperties>, UpdateStages.WithAutomaticSnapshotPolicyEnabled, UpdateStages.WithChangeFeed, UpdateStages.WithCors, UpdateStages.WithDefaultServiceVersion, UpdateStages.WithDeleteRetentionPolicy, UpdateStages.WithRestorePolicy {
}

/**
Expand Down Expand Up @@ -235,5 +251,17 @@ interface WithDeleteRetentionPolicy {
Update withDeleteRetentionPolicy(DeleteRetentionPolicy deleteRetentionPolicy);
}

/**
* The stage of the blobserviceproperties update allowing to specify RestorePolicy.
*/
interface WithRestorePolicy {
/**
* Specifies restorePolicy.
* @param restorePolicy The blob service properties for blob restore policy
* @return the next update stage
*/
Update withRestorePolicy(RestorePolicyProperties restorePolicy);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import com.microsoft.azure.arm.model.Creatable;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.storage.v2019_06_01.implementation.StorageManager;
import com.microsoft.azure.management.storage.v2019_06_01.implementation.SkuInner;
import java.util.List;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.storage.v2019_06_01;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The blob service properties for blob restore policy.
*/
public class RestorePolicyProperties {
/**
* Blob restore is enabled if set to true.
*/
@JsonProperty(value = "enabled", required = true)
private boolean enabled;

/**
* how long this blob can be restored. It should be great than zero and
* less than DeleteRetentionPolicy.days.
*/
@JsonProperty(value = "days")
private Integer days;

/**
* Get blob restore is enabled if set to true.
*
* @return the enabled value
*/
public boolean enabled() {
return this.enabled;
}

/**
* Set blob restore is enabled if set to true.
*
* @param enabled the enabled value to set
* @return the RestorePolicyProperties object itself.
*/
public RestorePolicyProperties withEnabled(boolean enabled) {
this.enabled = enabled;
return this;
}

/**
* Get how long this blob can be restored. It should be great than zero and less than DeleteRetentionPolicy.days.
*
* @return the days value
*/
public Integer days() {
return this.days;
}

/**
* Set how long this blob can be restored. It should be great than zero and less than DeleteRetentionPolicy.days.
*
* @param days the days value to set
* @return the RestorePolicyProperties object itself.
*/
public RestorePolicyProperties withDays(Integer days) {
this.days = days;
return this;
}

}
Loading