Class Restriction
java.lang.Object
com.microsoft.azure.management.storage.Restriction
The restriction because of which SKU cannot be used.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the reason for the restriction.type()
Get the type of restrictions.values()
Get the value of restrictions.withReasonCode
(ReasonCode reasonCode) Set the reason for the restriction.
-
Constructor Details
-
Restriction
public Restriction()
-
-
Method Details
-
type
Get the type of restrictions. As of now only possible value for this is location.- Returns:
- the type value
-
values
Get the value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted.- Returns:
- the values value
-
reasonCode
Get the reason for the restriction. As of now this can be "QuotaId" or "NotAvailableForSubscription". Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The "NotAvailableForSubscription" is related to capacity at DC. Possible values include: 'QuotaId', 'NotAvailableForSubscription'.- Returns:
- the reasonCode value
-
withReasonCode
Set the reason for the restriction. As of now this can be "QuotaId" or "NotAvailableForSubscription". Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The "NotAvailableForSubscription" is related to capacity at DC. Possible values include: 'QuotaId', 'NotAvailableForSubscription'.- Parameters:
reasonCode
- the reasonCode value to set- Returns:
- the Restriction object itself.
-