public MachinePolicy(
     ElementIdentifier identifier, 
     string description, 
     MachineHealthCheckPolicy healthCheckPolicy, 
     MachineConnectivityPolicy connectivityPolicy, 
     MachineUpdatePolicy updatePolicy, 
     MachineCleanupPolicy cleanupPolicy)
 {
     if (identifier == null)
         throw new ArgumentNullException(nameof(identifier));
     Identifier = identifier;
     Description = description;
     HealthCheckPolicy = healthCheckPolicy;
     ConnectivityPolicy = connectivityPolicy;
     UpdatePolicy = updatePolicy;
     CleanupPolicy = cleanupPolicy;
 }
Пример #2
0
 public static void UpdateWith(this Octopus.Client.Model.MachineHealthCheckPolicy resource, MachineHealthCheckPolicy model)
 {
     resource.HealthCheckInterval = model.HealthCheckInterval;
     UpdateWithScriptPolicy(resource.TentacleEndpointHealthCheckPolicy, model.TentacleEndpointHealthCheckPolicy);
     UpdateWithScriptPolicy(resource.SshEndpointHealthCheckPolicy, model.SshEndpointHealthCheckPolicy);
 }