/// <summary> /// Creates or updates the storage account credential. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='deviceName'> /// The device name. /// </param> /// <param name='name'> /// The storage account credential name. /// </param> /// <param name='storageAccountCredential'> /// The storage account credential. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> public static StorageAccountCredential CreateOrUpdate(this IStorageAccountCredentialsOperations operations, string deviceName, string name, StorageAccountCredential storageAccountCredential, string resourceGroupName) { return(operations.CreateOrUpdateAsync(deviceName, name, storageAccountCredential, resourceGroupName).GetAwaiter().GetResult()); }
/// <summary> /// Creates or updates the storage account credential /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='credentialName'> /// The credential name. /// </param> /// <param name='storageAccount'> /// The storage account credential to be added or updated. /// </param> /// <param name='resourceGroupName'> /// The resource group name /// </param> /// <param name='managerName'> /// The manager name /// </param> public static StorageAccountCredential CreateOrUpdate(this IStorageAccountCredentialsOperations operations, string credentialName, StorageAccountCredential storageAccount, string resourceGroupName, string managerName) { return(operations.CreateOrUpdateAsync(credentialName, storageAccount, resourceGroupName, managerName).GetAwaiter().GetResult()); }