public override void ExecuteCmdlet()
{
if (ParameterSetName == StreamAnalyticsObjectsInResourceGroup)
{
if (ResourceGroupName != null && string.IsNullOrWhiteSpace(ResourceGroupName))
{
throw new PSArgumentNullException("ResourceGroupName");
}
}
string propertiesToExpand = "inputs,transformation,outputs,functions";
if (NoExpand.IsPresent)
{
propertiesToExpand = string.Empty;
}
JobFilterOptions filterOptions = new JobFilterOptions
{
JobName = Name,
ResourceGroupName = ResourceGroupName,
PropertiesToExpand = propertiesToExpand
};
WriteObject(StreamAnalyticsClient.FilterPSJobs(filterOptions), true);
}
}