Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the RunbookUpdateParameters class
 /// with required arguments.
 /// </summary>
 public RunbookUpdateParameters(Runbook runbook)
     : this()
 {
     if (runbook == null)
     {
         throw new ArgumentNullException("runbook");
     }
     this.Runbook = runbook;
 }
 /// <summary>
 /// Initializes a new instance of the RunbookUpdateParameters class
 /// with required arguments.
 /// </summary>
 public RunbookUpdateParameters(Runbook runbook)
     : this()
 {
     if (runbook == null)
     {
         throw new ArgumentNullException("runbook");
     }
     this.Runbook = runbook;
 }
 //Runbook exists both on disk and in the cloud. But are they in sync?
 public AutomationRunbook(FileInfo localFile, Runbook cloudRunbook, RunbookDraft cloudRunbookDraft)
     : base(cloudRunbook.Name, localFile.LastWriteTime, cloudRunbook.Properties.LastModifiedTime.LocalDateTime)
 {
     this.AuthoringState = cloudRunbook.Properties.State;
     this.localFileInfo = localFile;
     this.Description = cloudRunbook.Properties.Description;
     this.Parameters = cloudRunbook.Properties.Parameters;
     if (cloudRunbookDraft != null)
     {
         this.LastModifiedCloud = cloudRunbookDraft.LastModifiedTime.LocalDateTime;
         UpdateSyncStatus();
     }
 }
        public void UpdateRunbook(Runbook runbook)
        {
            AutomationClient.Runbooks.Patch(resourceGroup, automationAccount, new RunbookPatchParameters
            {
                Name = runbook.Name,
                Properties = new RunbookPatchProperties
                {
                    Description = runbook.Properties.Description,
                    LogProgress = runbook.Properties.LogProgress,
                    LogVerbose = runbook.Properties.LogVerbose
                }
            });

        }