Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. */
package com.microsoft.azure.management.resources; import com.microsoft.azure.PagedList; import com.microsoft.azure.management.apigeneration.Fluent; import com.microsoft.azure.management.resources.fluentcore.arm.Region; import com.microsoft.azure.management.resources.fluentcore.model.Indexable; import com.microsoft.azure.management.resources.fluentcore.model.HasInner; import com.microsoft.azure.management.resources.implementation.SubscriptionInner; import java.util.List;
An immutable client-side representation of an Azure subscription.
/** * An immutable client-side representation of an Azure subscription. */
@Fluent public interface Subscription extends Indexable, HasInner<SubscriptionInner> {
Returns:the UUID of the subscription
/** * @return the UUID of the subscription */
String subscriptionId();
Returns:the UUID of the subscription tenant
/** * @return the UUID of the subscription tenant */
String tenantId();
Returns:the name of the subscription for humans to read
/** * @return the name of the subscription for humans to read */
String displayName();
Returns:the state of the subscription.
/** * @return the state of the subscription. */
SubscriptionState state();
Returns:the policies defined in the subscription
/** * @return the policies defined in the subscription */
SubscriptionPolicies subscriptionPolicies();
Returns:the array containing the tenants managing the subscription
/** * @return the array containing the tenants managing the subscription */
List<ManagedByTenant> managedByTenants();
List the locations the subscription has access to.
Returns:the lazy list of locations
/** * List the locations the subscription has access to. * * @return the lazy list of locations */
PagedList<Location> listLocations();
Gets the data center location for the specified region, if the selected subscription has access to it.
Params:
  • region – an Azure region
Returns:an Azure data center location, or null if the location is not accessible to this subscription
/** * Gets the data center location for the specified region, if the selected subscription has access to it. * @param region an Azure region * @return an Azure data center location, or null if the location is not accessible to this subscription */
Location getLocationByRegion(Region region); }