Dela via


ResourceManagerModelFactory.ManagementLockData Method

Definition

Initializes a new instance of ManagementLockData.

public static Azure.ResourceManager.Resources.ManagementLockData ManagementLockData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Azure.ResourceManager.Resources.Models.ManagementLockLevel level = default, string notes = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.ManagementLockOwner> owners = default);
static member ManagementLockData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Azure.ResourceManager.Resources.Models.ManagementLockLevel * string * seq<Azure.ResourceManager.Resources.Models.ManagementLockOwner> -> Azure.ResourceManager.Resources.ManagementLockData
Public Shared Function ManagementLockData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional level As ManagementLockLevel = Nothing, Optional notes As String = Nothing, Optional owners As IEnumerable(Of ManagementLockOwner) = Nothing) As ManagementLockData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

level
ManagementLockLevel

The level of the lock. Possible values are: NotSpecified, CanNotDelete, ReadOnly. CanNotDelete means authorized users are able to read and modify the resources, but not delete. ReadOnly means authorized users can only read from a resource, but they can't modify or delete it.

notes
String

Notes about the lock. Maximum of 512 characters.

owners
IEnumerable<ManagementLockOwner>

The owners of the lock.

Returns

A new ManagementLockData instance for mocking.

Applies to