Beispiel #1
0
 /// <summary>
 /// Updates the security settings on a data box edge/gateway device.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='deviceName'>
 /// The device name.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name.
 /// </param>
 /// <param name='deviceAdminPassword'>
 /// Device administrator password as an encrypted string (encrypted using RSA
 /// PKCS #1) is used to sign into the  local web UI of the device. The Actual
 /// password should have at least 8 characters that are a combination of
 /// uppercase, lowercase, numeric, and special characters.
 /// </param>
 public static void CreateOrUpdateSecuritySettings(this IDevicesOperations operations, string deviceName, string resourceGroupName, AsymmetricEncryptedSecret deviceAdminPassword)
 {
     operations.CreateOrUpdateSecuritySettingsAsync(deviceName, resourceGroupName, deviceAdminPassword).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Updates the security settings on a Data Box Edge/Data Box Gateway device.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='deviceName'>
 /// The device name.
 /// </param>
 /// <param name='securitySettings'>
 /// The security settings.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name.
 /// </param>
 public static void CreateOrUpdateSecuritySettings(this IDevicesOperations operations, string deviceName, SecuritySettings securitySettings, string resourceGroupName)
 {
     operations.CreateOrUpdateSecuritySettingsAsync(deviceName, securitySettings, resourceGroupName).GetAwaiter().GetResult();
 }