Package com.microsoft.azure.toolkit.lib
Class AbstractAzureResourceModule<T extends IAzureBaseResource>
- java.lang.Object
-
- com.microsoft.azure.toolkit.lib.SubscriptionScoped<AbstractAzureResourceModule<T>>
-
- com.microsoft.azure.toolkit.lib.AbstractAzureResourceModule<T>
-
- All Implemented Interfaces:
AzService,AzureService<T>,IAzureModule<T,IAzureBaseResource>
public abstract class AbstractAzureResourceModule<T extends IAzureBaseResource> extends SubscriptionScoped<AbstractAzureResourceModule<T>> implements AzureService<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interfaceAbstractAzureResourceModule.AuthenticationMethod<R extends com.azure.resourcemanager.resources.fluentcore.arm.AzureConfigurable<R>,T extends com.azure.resourcemanager.resources.fluentcore.arm.Manager>-
Nested classes/interfaces inherited from interface com.microsoft.azure.toolkit.lib.AzureService
AzureService.HttpClientHolder
-
-
Constructor Summary
Constructors Constructor Description AbstractAzureResourceModule(@NotNull java.util.function.Function<List<Subscription>,AbstractAzureResourceModule<T>> creator)AbstractAzureResourceModule(@NotNull java.util.function.Function<List<Subscription>,AbstractAzureResourceModule<T>> creator, @Nullable List<Subscription> subscriptions)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Tget(String id)Tget(String resourceGroup, String name)abstract Tget(String subscriptionId, String resourceGroup, String name)protected static <R extends com.azure.resourcemanager.resources.fluentcore.arm.AzureConfigurable<R>,T extends com.azure.resourcemanager.resources.fluentcore.arm.Manager>
TgetResourceManager(String subscriptionId, java.util.function.Supplier<com.azure.resourcemanager.resources.fluentcore.arm.AzureConfigurable<R>> configurableSupplier, AbstractAzureResourceModule.AuthenticationMethod<R,T> authenticationMethod)protected static com.azure.core.http.policy.HttpPipelinePolicygetUserAgentPolicy(String userAgent)List<T>list(boolean... force)abstract List<T>list(String subscriptionId, boolean... force)private static voidpreload()-
Methods inherited from class com.microsoft.azure.toolkit.lib.SubscriptionScoped
getDefaultSubscription, getSubscriptions, subscription, subscription, subscriptions, subscriptions
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.microsoft.azure.toolkit.lib.AzureService
getName, getResourceManager, getSubscriptions, listSupportedRegions, refresh
-
Methods inherited from interface com.microsoft.azure.toolkit.lib.common.entity.IAzureModule
getParent, name
-
-
-
-
Constructor Detail
-
AbstractAzureResourceModule
public AbstractAzureResourceModule(@NotNull @NotNull java.util.function.Function<List<Subscription>,AbstractAzureResourceModule<T>> creator, @Nullable @Nullable List<Subscription> subscriptions)
-
AbstractAzureResourceModule
public AbstractAzureResourceModule(@NotNull @NotNull java.util.function.Function<List<Subscription>,AbstractAzureResourceModule<T>> creator)
-
-
Method Detail
-
preload
@Preload private static void preload()
-
get
@Nonnull public abstract T get(@Nonnull String subscriptionId, @Nonnull String resourceGroup, @Nonnull String name)
-
getResourceManager
protected static <R extends com.azure.resourcemanager.resources.fluentcore.arm.AzureConfigurable<R>,T extends com.azure.resourcemanager.resources.fluentcore.arm.Manager> T getResourceManager(String subscriptionId, java.util.function.Supplier<com.azure.resourcemanager.resources.fluentcore.arm.AzureConfigurable<R>> configurableSupplier, AbstractAzureResourceModule.AuthenticationMethod<R,T> authenticationMethod)
-
getUserAgentPolicy
protected static com.azure.core.http.policy.HttpPipelinePolicy getUserAgentPolicy(String userAgent)
-
-