public RegenerateGatewayKey ( string resourceGroupName, string dataFactoryName, string gatewayName ) : Microsoft.Azure.Commands.DataFactories.Models.PSDataFactoryGatewayKey | ||
resourceGroupName | string | |
dataFactoryName | string | |
gatewayName | string | |
Результат | Microsoft.Azure.Commands.DataFactories.Models.PSDataFactoryGatewayKey |
public virtual PSDataFactoryGatewayKey RegenerateGatewayKey(string resourceGroupName, string dataFactoryName, string gatewayName)
{
var response = DataPipelineManagementClient.Gateways.RegenerateKey(resourceGroupName, dataFactoryName, gatewayName);
return new PSDataFactoryGatewayKey(response.Key);
}
}
public override void ExecuteCmdlet() { if (ParameterSetName == ByFactoryObject) { if (DataFactory == null) { throw new PSArgumentNullException(string.Format(CultureInfo.InvariantCulture, Resources.DataFactoryArgumentInvalid)); } DataFactoryName = DataFactory.DataFactoryName; ResourceGroupName = DataFactory.ResourceGroupName; } PSDataFactoryGatewayKey gatewayKey = DataFactoryClient.RegenerateGatewayKey(ResourceGroupName, DataFactoryName, GatewayName); WriteObject(gatewayKey); }