protected void WriteComponentExportConfiguration(ApplicationInsightsComponentExportConfiguration export) { if (export != null) { WriteObject(new PSExportConfiguration(export)); } }
public PSExportConfiguration(ApplicationInsightsComponentExportConfiguration response) { this.ExportId = response.ExportId; this.DocumentTypes = string.Join(", ", ApplicationInsightsBaseCmdlet.ConvertToDocumentType(response.RecordTypes.Split(','))); this.DestinationStorageSubscriptionId = response.DestinationStorageSubscriptionId; this.DestinationStorageLocationId = response.DestinationStorageLocationId; this.DestinationStorageAccountId = response.DestinationAccountId; this.IsEnabled = response.IsUserEnabled; this.ExportStatus = response.ExportStatus; this.StorageName = response.StorageName; this.ContainerName = response.ContainerName; this.LastSuccessTime = response.LastSuccessTime; }
public PSExportConfigurationTableView(ApplicationInsightsComponentExportConfiguration response) : base(response) { }
private static void AreEqual(ApplicationInsightsComponentExportRequest request, ApplicationInsightsComponentExportConfiguration response) { Assert.Equal(request.IsEnabled, response.IsUserEnabled, ignoreCase: true); Assert.Equal(request.RecordTypes, response.RecordTypes); Assert.Equal(request.DestinationStorageSubscriptionId, response.DestinationStorageSubscriptionId); Assert.Equal(request.DestinationStorageLocationId, response.DestinationStorageLocationId); Assert.Equal(request.DestinationAccountId, response.DestinationAccountId); }