Class ShareModule

  • All Implemented Interfaces:
    com.microsoft.azure.toolkit.lib.common.model.AzResourceModule<Share>, com.microsoft.azure.toolkit.lib.common.model.Refreshable

    public class ShareModule
    extends com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule<Share,​StorageAccount,​com.azure.storage.file.share.ShareClient>
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.microsoft.azure.toolkit.lib.common.model.AzResourceModule

        com.microsoft.azure.toolkit.lib.common.model.AzResourceModule.None
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private com.azure.storage.file.share.ShareServiceClient client  
      static String NAME  
      • Fields inherited from class com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule

        parent
      • Fields inherited from interface com.microsoft.azure.toolkit.lib.common.model.AzResourceModule

        NONE
    • Field Detail

      • client

        private com.azure.storage.file.share.ShareServiceClient client
    • Method Detail

      • invalidateCache

        protected void invalidateCache()
        Overrides:
        invalidateCache in class com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule<Share,​StorageAccount,​com.azure.storage.file.share.ShareClient>
      • getFileShareServiceClient

        @Nullable
        com.azure.storage.file.share.ShareServiceClient getFileShareServiceClient()
      • loadResourcePagesFromAzure

        @Nonnull
        protected Iterator<? extends com.azure.core.util.paging.ContinuablePage<String,​com.azure.storage.file.share.ShareClient>> loadResourcePagesFromAzure()
        Overrides:
        loadResourcePagesFromAzure in class com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule<Share,​StorageAccount,​com.azure.storage.file.share.ShareClient>
      • loadResourcesFromAzure

        @Nonnull
        protected java.util.stream.Stream<com.azure.storage.file.share.ShareClient> loadResourcesFromAzure()
        Overrides:
        loadResourcesFromAzure in class com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule<Share,​StorageAccount,​com.azure.storage.file.share.ShareClient>
      • loadResourceFromAzure

        @Nullable
        protected com.azure.storage.file.share.ShareClient loadResourceFromAzure​(@Nonnull
                                                                                 String name,
                                                                                 @Nullable
                                                                                 String resourceGroup)
        Overrides:
        loadResourceFromAzure in class com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule<Share,​StorageAccount,​com.azure.storage.file.share.ShareClient>
      • deleteResourceFromAzure

        protected void deleteResourceFromAzure​(@Nonnull
                                               String resourceId)
        Overrides:
        deleteResourceFromAzure in class com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule<Share,​StorageAccount,​com.azure.storage.file.share.ShareClient>
      • newResource

        @Nonnull
        protected Share newResource​(@Nonnull
                                    com.azure.storage.file.share.ShareClient r)
        Specified by:
        newResource in class com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule<Share,​StorageAccount,​com.azure.storage.file.share.ShareClient>
      • getResourceTypeName

        @Nonnull
        public String getResourceTypeName()
        Specified by:
        getResourceTypeName in interface com.microsoft.azure.toolkit.lib.common.model.AzResourceModule<Share>
        Overrides:
        getResourceTypeName in class com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule<Share,​StorageAccount,​com.azure.storage.file.share.ShareClient>