Class Share
- java.lang.Object
-
- com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<Share,StorageAccount,com.azure.storage.file.share.ShareClient>
-
- com.microsoft.azure.toolkit.lib.storage.share.Share
-
- All Implemented Interfaces:
com.microsoft.azure.toolkit.lib.common.model.AzResource,com.microsoft.azure.toolkit.lib.common.model.AzResourceBase,com.microsoft.azure.toolkit.lib.common.model.Deletable,com.microsoft.azure.toolkit.lib.common.model.Refreshable,StorageFile,IShareFile
- Direct Known Subclasses:
ShareDraft
public class Share extends com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<Share,StorageAccount,com.azure.storage.file.share.ShareClient> implements com.microsoft.azure.toolkit.lib.common.model.Deletable, IShareFile
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.microsoft.azure.toolkit.lib.common.model.AzResource
com.microsoft.azure.toolkit.lib.common.model.AzResource.Draft<T extends com.microsoft.azure.toolkit.lib.common.model.AzResource,R extends Object>, com.microsoft.azure.toolkit.lib.common.model.AzResource.None, com.microsoft.azure.toolkit.lib.common.model.AzResource.Status
-
Nested classes/interfaces inherited from interface com.microsoft.azure.toolkit.lib.common.model.AzResourceBase
com.microsoft.azure.toolkit.lib.common.model.AzResourceBase.FormalStatus
-
Nested classes/interfaces inherited from interface com.microsoft.azure.toolkit.lib.storage.model.StorageFile
StorageFile.Draft<T extends StorageFile,R>
-
-
Field Summary
Fields Modifier and Type Field Description private ShareFileModulesubFileModule
-
Constructor Summary
Constructors Modifier Constructor Description Share(Share origin)copy constructorprotectedShare(String name, ShareModule module)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddownload(OutputStream output)voiddownload(Path dest)com.azure.storage.file.share.ShareDirectoryClientgetClient()java.time.OffsetDateTimegetLastModified()StringgetPath()SharegetShare()com.azure.storage.file.share.ShareClientgetShareClient()List<com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule<?,?,?>>getSubModules()StringgetUrl()booleanisDirectory()StringloadStatus(com.azure.storage.file.share.ShareClient remote)-
Methods inherited from class com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource
canEqual, delete, deleteFromCache, doModify, doModify, equals, exists, getId, getModule, getName, getParent, getRemote, getResourceGroup, getResourceGroupName, getStatus, getSubModule, hashCode, invalidateCache, isDraft, isDraftForCreating, isDraftForUpdating, loadRemote, refresh, refreshRemoteFromAzure, reloadStatus, remoteOptional, setRemote, setStatus, toString, update, updateAdditionalProperties
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.microsoft.azure.toolkit.lib.common.model.AzResource
delete, exists, getFullResourceType, getId, getModule, getName, getPortalUrl, getResourceGroupName, getResourceTypeName, getStatus, getSubscription, getSubscriptionId, id, name, refresh
-
Methods inherited from interface com.microsoft.azure.toolkit.lib.common.model.AzResourceBase
getFormalStatus
-
Methods inherited from interface com.microsoft.azure.toolkit.lib.storage.share.IShareFile
getSasUrl
-
Methods inherited from interface com.microsoft.azure.toolkit.lib.storage.model.StorageFile
getCreationTime, getFile, getSize, getSubFileModule
-
-
-
-
Field Detail
-
subFileModule
private final ShareFileModule subFileModule
-
-
Method Detail
-
getSubModules
@Nonnull public List<com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule<?,?,?>> getSubModules()
- Specified by:
getSubModulesin classcom.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<Share,StorageAccount,com.azure.storage.file.share.ShareClient>
-
loadStatus
@Nonnull public String loadStatus(@Nonnull com.azure.storage.file.share.ShareClient remote)
- Specified by:
loadStatusin classcom.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<Share,StorageAccount,com.azure.storage.file.share.ShareClient>
-
getClient
@Nullable public com.azure.storage.file.share.ShareDirectoryClient getClient()
- Specified by:
getClientin interfaceStorageFile
-
getShareClient
@Nullable public com.azure.storage.file.share.ShareClient getShareClient()
-
getShare
public Share getShare()
- Specified by:
getSharein interfaceIShareFile
-
isDirectory
public boolean isDirectory()
- Specified by:
isDirectoryin interfaceStorageFile
-
getPath
public String getPath()
- Specified by:
getPathin interfaceStorageFile
-
getUrl
public String getUrl()
- Specified by:
getUrlin interfaceStorageFile
-
getLastModified
@Nullable public java.time.OffsetDateTime getLastModified()
- Specified by:
getLastModifiedin interfaceStorageFile
-
download
public void download(OutputStream output)
- Specified by:
downloadin interfaceStorageFile
-
download
public void download(Path dest)
- Specified by:
downloadin interfaceStorageFile
-
-