Condividi tramite


ArmNetAppModelFactory.ElasticResourceAvailabilityResult Method

Definition

Initializes a new instance of ElasticResourceAvailabilityResult.

public static Azure.ResourceManager.NetApp.Models.ElasticResourceAvailabilityResult ElasticResourceAvailabilityResult(Azure.ResourceManager.NetApp.Models.ElasticResourceAvailabilityStatus? isAvailable = default, Azure.ResourceManager.NetApp.Models.ElasticResourceAvailabilityReason? reason = default, string message = default);
static member ElasticResourceAvailabilityResult : Nullable<Azure.ResourceManager.NetApp.Models.ElasticResourceAvailabilityStatus> * Nullable<Azure.ResourceManager.NetApp.Models.ElasticResourceAvailabilityReason> * string -> Azure.ResourceManager.NetApp.Models.ElasticResourceAvailabilityResult
Public Shared Function ElasticResourceAvailabilityResult (Optional isAvailable As Nullable(Of ElasticResourceAvailabilityStatus) = Nothing, Optional reason As Nullable(Of ElasticResourceAvailabilityReason) = Nothing, Optional message As String = Nothing) As ElasticResourceAvailabilityResult

Parameters

isAvailable
Nullable<ElasticResourceAvailabilityStatus>

True indicates name is valid and available. False indicates the name is invalid, unavailable, or both.

reason
Nullable<ElasticResourceAvailabilityReason>

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 ElasticResourceAvailabilityResult instance for mocking.

Applies to