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.3.0</version>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-storage</artifactId>
<version>1.0.0-beta-6</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
Expand Up @@ -16,7 +16,6 @@
import com.microsoft.azure.arm.model.Appliable;
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.SkuInner;
import com.microsoft.azure.management.storage.v2019_06_01.implementation.StorageManager;

/**
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 deleted share to be restored.
*/
public class DeletedShare {
/**
* Required. Identify the name of the deleted share that will be restored.
*/
@JsonProperty(value = "deletedShareName", required = true)
private String deletedShareName;

/**
* Required. Identify the version of the deleted share that will be
* restored.
*/
@JsonProperty(value = "deletedShareVersion", required = true)
private String deletedShareVersion;

/**
* Get required. Identify the name of the deleted share that will be restored.
*
* @return the deletedShareName value
*/
public String deletedShareName() {
return this.deletedShareName;
}

/**
* Set required. Identify the name of the deleted share that will be restored.
*
* @param deletedShareName the deletedShareName value to set
* @return the DeletedShare object itself.
*/
public DeletedShare withDeletedShareName(String deletedShareName) {
this.deletedShareName = deletedShareName;
return this;
}

/**
* Get required. Identify the version of the deleted share that will be restored.
*
* @return the deletedShareVersion value
*/
public String deletedShareVersion() {
return this.deletedShareVersion;
}

/**
* Set required. Identify the version of the deleted share that will be restored.
*
* @param deletedShareVersion the deletedShareVersion value to set
* @return the DeletedShare object itself.
*/
public DeletedShare withDeletedShareVersion(String deletedShareVersion) {
this.deletedShareVersion = deletedShareVersion;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/**
* 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 EnabledProtocols.
*/
public final class EnabledProtocols extends ExpandableStringEnum<EnabledProtocols> {
/** Static value SMB for EnabledProtocols. */
public static final EnabledProtocols SMB = fromString("SMB");

/** Static value NFS for EnabledProtocols. */
public static final EnabledProtocols NFS = fromString("NFS");

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

/**
* @return known EnabledProtocols values
*/
public static Collection<EnabledProtocols> values() {
return values(EnabledProtocols.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import com.microsoft.azure.arm.model.Appliable;
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.SkuInner;
import com.microsoft.azure.management.storage.v2019_06_01.implementation.StorageManager;
import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,43 @@
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 java.util.Map;
import org.joda.time.DateTime;
import java.util.Map;

/**
* Type representing FileShare.
*/
public interface FileShare extends HasInner<FileShareInner>, Indexable, Updatable<FileShare.Update>, HasManager<StorageManager> {
/**
* @return the accessTier value.
*/
ShareAccessTier accessTier();

/**
* @return the accessTierChangeTime value.
*/
DateTime accessTierChangeTime();

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

/**
* @return the deleted value.
*/
Boolean deleted();

/**
* @return the deletedTime value.
*/
DateTime deletedTime();

/**
* @return the enabledProtocols value.
*/
EnabledProtocols enabledProtocols();

/**
* @return the etag value.
*/
Expand All @@ -48,20 +78,40 @@ public interface FileShare extends HasInner<FileShareInner>, Indexable, Updatabl
*/
String name();

/**
* @return the remainingRetentionDays value.
*/
Integer remainingRetentionDays();

/**
* @return the rootSquash value.
*/
RootSquashType rootSquash();

/**
* @return the shareQuota value.
*/
Integer shareQuota();

/**
* @return the shareUsageBytes value.
*/
Integer shareUsageBytes();

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

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

/**
* The entirety of the FileShare definition.
*/
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithFileService, DefinitionStages.WithMetadata, DefinitionStages.WithShareQuota, DefinitionStages.WithCreate {
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithFileService, DefinitionStages.WithCreate {
}

/**
Expand All @@ -84,30 +134,66 @@ interface WithFileService {
* @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only
* @return the next definition stage
*/
WithMetadata withExistingFileService(String resourceGroupName, String accountName);
WithCreate withExistingFileService(String resourceGroupName, String accountName);
}

/**
* The stage of the fileshare definition allowing to specify AccessTier.
*/
interface WithAccessTier {
/**
* Specifies accessTier.
* @param accessTier Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium. Possible values include: 'TransactionOptimized', 'Hot', 'Cool', 'Premium'
* @return the next definition stage
*/
WithCreate withAccessTier(ShareAccessTier accessTier);
}

/**
* The stage of the fileshare definition allowing to specify EnabledProtocols.
*/
interface WithEnabledProtocols {
/**
* Specifies enabledProtocols.
* @param enabledProtocols The authentication protocol that is used for the file share. Can only be specified when creating a share. Possible values include: 'SMB', 'NFS'
* @return the next definition stage
*/
WithCreate withEnabledProtocols(EnabledProtocols enabledProtocols);
}

/**
* The stage of the fileshare definition allowing to specify Metadata.
*/
interface WithMetadata {
/**
* Specifies metadata.
* @param metadata A name-value pair to associate with the share as metadata
* @return the next definition stage
*/
WithShareQuota withMetadata(Map<String, String> metadata);
/**
* Specifies metadata.
* @param metadata A name-value pair to associate with the share as metadata
* @return the next definition stage
*/
WithCreate withMetadata(Map<String, String> metadata);
}

/**
* The stage of the fileshare definition allowing to specify RootSquash.
*/
interface WithRootSquash {
/**
* Specifies rootSquash.
* @param rootSquash The property is for NFS share only. The default is NoRootSquash. Possible values include: 'NoRootSquash', 'RootSquash', 'AllSquash'
* @return the next definition stage
*/
WithCreate withRootSquash(RootSquashType rootSquash);
}

/**
* The stage of the fileshare definition allowing to specify ShareQuota.
*/
interface WithShareQuota {
/**
* Specifies shareQuota.
* @param shareQuota The maximum size of the share, in gigabytes. Must be greater than 0, and less than or equal to 5TB (5120). For Large File Shares, the maximum size is 102400
* @return the next definition stage
*/
/**
* Specifies shareQuota.
* @param shareQuota The maximum size of the share, in gigabytes. Must be greater than 0, and less than or equal to 5TB (5120). For Large File Shares, the maximum size is 102400
* @return the next definition stage
*/
WithCreate withShareQuota(Integer shareQuota);
}

Expand All @@ -116,19 +202,43 @@ interface WithShareQuota {
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
interface WithCreate extends Creatable<FileShare> {
interface WithCreate extends Creatable<FileShare>, DefinitionStages.WithAccessTier, DefinitionStages.WithEnabledProtocols, DefinitionStages.WithMetadata, DefinitionStages.WithRootSquash, DefinitionStages.WithShareQuota {
}
}
/**
* The template for a FileShare update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<FileShare>, UpdateStages.WithMetadata, UpdateStages.WithShareQuota {
interface Update extends Appliable<FileShare>, UpdateStages.WithAccessTier, UpdateStages.WithEnabledProtocols, UpdateStages.WithMetadata, UpdateStages.WithRootSquash, UpdateStages.WithShareQuota {
}

/**
* Grouping of FileShare update stages.
*/
interface UpdateStages {
/**
* The stage of the fileshare update allowing to specify AccessTier.
*/
interface WithAccessTier {
/**
* Specifies accessTier.
* @param accessTier Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium. Possible values include: 'TransactionOptimized', 'Hot', 'Cool', 'Premium'
* @return the next update stage
*/
Update withAccessTier(ShareAccessTier accessTier);
}

/**
* The stage of the fileshare update allowing to specify EnabledProtocols.
*/
interface WithEnabledProtocols {
/**
* Specifies enabledProtocols.
* @param enabledProtocols The authentication protocol that is used for the file share. Can only be specified when creating a share. Possible values include: 'SMB', 'NFS'
* @return the next update stage
*/
Update withEnabledProtocols(EnabledProtocols enabledProtocols);
}

/**
* The stage of the fileshare update allowing to specify Metadata.
*/
Expand All @@ -141,6 +251,18 @@ interface WithMetadata {
Update withMetadata(Map<String, String> metadata);
}

/**
* The stage of the fileshare update allowing to specify RootSquash.
*/
interface WithRootSquash {
/**
* Specifies rootSquash.
* @param rootSquash The property is for NFS share only. The default is NoRootSquash. Possible values include: 'NoRootSquash', 'RootSquash', 'AllSquash'
* @return the next update stage
*/
Update withRootSquash(RootSquashType rootSquash);
}

/**
* The stage of the fileshare update allowing to specify ShareQuota.
*/
Expand Down
Loading