internal static string ToSerializedValue(this PoolIdentityType value) { switch (value) { case PoolIdentityType.UserAssigned: return("UserAssigned"); case PoolIdentityType.None: return("None"); } return(null); }
/// <summary> /// Initializes a new instance of the BatchPoolIdentity class. /// </summary> /// <param name="type">The identity of the Batch pool, if /// configured.</param> /// <param name="userAssignedIdentities">The list of user identities /// associated with the Batch account.</param> public BatchPoolIdentity(PoolIdentityType type, IList <UserAssignedIdentity> userAssignedIdentities = default(IList <UserAssignedIdentity>)) { Type = type; UserAssignedIdentities = userAssignedIdentities; CustomInit(); }
/// <summary> /// Initializes a new instance of the BatchPoolIdentity class. /// </summary> /// <param name="type">The type of identity used for the Batch Pool. /// Possible values include: 'UserAssigned', 'None'</param> /// <param name="userAssignedIdentities">The list of user identities /// associated with the Batch pool. The user identity dictionary key /// references will be ARM resource ids in the form: /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.</param> public BatchPoolIdentity(PoolIdentityType type, IDictionary <string, BatchPoolIdentityUserAssignedIdentitiesValue> userAssignedIdentities = default(IDictionary <string, BatchPoolIdentityUserAssignedIdentitiesValue>)) { Type = type; UserAssignedIdentities = userAssignedIdentities; CustomInit(); }