protected void WriteComponentExportConfiguration(ApplicationInsightsComponentExportConfiguration export)
 {
     if (export != null)
     {
         WriteObject(new PSExportConfiguration(export));
     }
 }
Esempio n. 2
0
        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;
        }
Esempio n. 3
0
 public PSExportConfigurationTableView(ApplicationInsightsComponentExportConfiguration response)
     : base(response)
 {
 }
Esempio n. 4
0
 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);
 }