ArmNetAppModelFactory.CheckElasticResourceAvailabilityResult Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of CheckElasticResourceAvailabilityResult.
public static Azure.ResourceManager.NetApp.Models.CheckElasticResourceAvailabilityResult CheckElasticResourceAvailabilityResult(Azure.ResourceManager.NetApp.Models.CheckElasticResourceAvailabilityStatus? isAvailable = default, Azure.ResourceManager.NetApp.Models.CheckElasticResourceAvailabilityReason? reason = default, string message = default);
static member CheckElasticResourceAvailabilityResult : Nullable<Azure.ResourceManager.NetApp.Models.CheckElasticResourceAvailabilityStatus> * Nullable<Azure.ResourceManager.NetApp.Models.CheckElasticResourceAvailabilityReason> * string -> Azure.ResourceManager.NetApp.Models.CheckElasticResourceAvailabilityResult
Public Shared Function CheckElasticResourceAvailabilityResult (Optional isAvailable As Nullable(Of CheckElasticResourceAvailabilityStatus) = Nothing, Optional reason As Nullable(Of CheckElasticResourceAvailabilityReason) = Nothing, Optional message As String = Nothing) As CheckElasticResourceAvailabilityResult
Parameters
- isAvailable
- Nullable<CheckElasticResourceAvailabilityStatus>
True indicates name is valid and available. False indicates the name is invalid, unavailable, or both.
Invalid indicates the name provided does not match Azure NetApp Files naming requirements. AlreadyExists indicates that the name is already in use and is therefore unavailable.
- message
- String
If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that resource name is already in use, and direct them to select a different name.
Returns
A new CheckElasticResourceAvailabilityResult instance for mocking.