Exemplo n.º 1
0
 ///GENMHASH:55EB5C8356E4299B11A375287105ADA7:0F17F373B883B6EFD9CA54E7C723F924
 public ITaskCreatable WithBaseImageTrigger(string baseImageTriggerName, BaseImageTriggerType baseImageTriggerType)
 {
     if (this.inner.Trigger == null)
     {
         this.inner.Trigger = new TriggerProperties();
     }
     this.inner.Trigger.BaseImageTrigger = new BaseImageTrigger()
     {
         BaseImageTriggerType = baseImageTriggerType.ToString(),
         Name = baseImageTriggerName,
     };
     return(this);
 }
 /// <summary>
 /// The function that defines a base image trigger with all possible parameters for base image trigger creation.
 /// </summary>
 /// <param name="baseImageTriggerName">The name of the base image trigger.</param>
 /// <param name="baseImageTriggerType">The trigger type for the base image. Can be "All", "Runtime", or something else that the user inputs.</param>
 /// <param name="triggerStatus">The status for the trigger. Can be enabled, disabled, or something else that the user inputs.</param>
 /// <return>The next stage of the container registry task definition.</return>
 RegistryTask.Definition.ITaskCreatable RegistryTask.Definition.ITriggerTypes.WithBaseImageTrigger(string baseImageTriggerName, BaseImageTriggerType baseImageTriggerType, TriggerStatus triggerStatus)
 {
     return(this.WithBaseImageTrigger(baseImageTriggerName, baseImageTriggerType, triggerStatus));
 }
 /// <summary>
 /// The function that defines a base image trigger with all possible parameters for base image trigger update.
 /// </summary>
 /// <param name="baseImageTriggerName">The name of the base image trigger.</param>
 /// <param name="baseImageTriggerType">The trigger type for the base image. Can be "All", "Runtime", or something else that the user inputs.</param>
 /// <param name="triggerStatus">The status for the trigger. Can be enabled, disabled, or something else that the user inputs.</param>
 /// <return>The next stage of the container registry task update.</return>
 RegistryTask.Update.IUpdate RegistryTask.Update.ITriggerTypes.UpdateBaseImageTrigger(string baseImageTriggerName, BaseImageTriggerType baseImageTriggerType, TriggerStatus triggerStatus)
 {
     return(this.UpdateBaseImageTrigger(baseImageTriggerName, baseImageTriggerType, triggerStatus));
 }
Exemplo n.º 4
0
 ///GENMHASH:A41D9FDC7DEF92635CB0D8267DD421E4:C971DBFAAFFE750BCDF37C20A656AFA8
 public RegistryTask.Update.IUpdate UpdateBaseImageTrigger(string baseImageTriggerName, BaseImageTriggerType baseImageTriggerType, TriggerStatus triggerStatus)
 {
     this.taskUpdateParameters.Trigger.BaseImageTrigger = new BaseImageTriggerUpdateParameters()
     {
         BaseImageTriggerType = baseImageTriggerType.ToString(),
         Name   = baseImageTriggerName,
         Status = triggerStatus.ToString()
     };
     return(this);
 }