Beispiel #1
0
        ///GENMHASH:CB5CC47567CCCFA8E23A47A0D05562D7:BC0D1BBE8B391EF994E8465AE2265629
        public RegistryTaskRunImpl WithOverridingValue(string name, OverridingValue overridingValue)
        {
            if (this.taskRunRequest.Values == null)
            {
                this.taskRunRequest.Values = new List <SetValue>();
            }
            SetValue value = new SetValue
            {
                Name     = name,
                Value    = overridingValue.Value,
                IsSecret = overridingValue.IsSecret
            };

            this.taskRunRequest.Values.Add(value);
            return(this);
        }
Beispiel #2
0
        ///GENMHASH:CB5CC47567CCCFA8E23A47A0D05562D7:39C107D338D51667A4C7C7CF4E97887B
        public RegistryEncodedTaskStepImpl WithOverridingValue(string name, OverridingValue overridingValue)
        {
            if (this.inner.Values == null)
            {
                this.inner.Values = new List <SetValue>();
            }
            SetValue value = new SetValue
            {
                Name     = name,
                Value    = overridingValue.Value,
                IsSecret = overridingValue.IsSecret
            };

            if (IsInCreateMode())
            {
                this.inner.Values.Add(value);
            }
            else
            {
                this.encodedTaskStepUpdateParameters.Values.Add(value);
            }
            return(this);
        }
 /// <summary>
 /// The function that specifies the overriding value and what it will override.
 /// </summary>
 /// <param name="name">The name of the value to be overridden.</param>
 /// <param name="overridingValue">The content of the overriding value.</param>
 /// <return>The next stage of the container encoded task run request definition.</return>
 RegistryEncodedTaskRunRequest.Definition.IEncodedTaskRunRequestStepAttachable RegistryEncodedTaskRunRequest.Definition.IEncodedTaskRunRequestStepAttachable.WithOverridingValue(string name, OverridingValue overridingValue)
 {
     return(this.WithOverridingValue(name, overridingValue));
 }
Beispiel #4
0
 /// <summary>
 /// The function that specifies a single value that will override the corresponding value specified under the function withBase64EncodedValueContent().
 /// </summary>
 /// <param name="name">The name of the value to be overridden.</param>
 /// <param name="overridingValue">The value of the value to be overridden.</param>
 /// <return>The next stage of the container registry EncodedTaskStep update.</return>
 RegistryEncodedTaskStep.Update.IUpdate RegistryEncodedTaskStep.Update.IOverridingValues.WithOverridingValue(string name, OverridingValue overridingValue)
 {
     return(this.WithOverridingValue(name, overridingValue));
 }
Beispiel #5
0
 /// <summary>
 /// The function that specifies a single value that will override the corresponding value specified under the function withValuesPath().
 /// </summary>
 /// <param name="name">The name of the value to be overridden.</param>
 /// <param name="overridingValue">The value of the value to be overridden.</param>
 /// <return>The next stage of the container registry FileTaskStep definition.</return>
 RegistryFileTaskStep.Definition.IFileTaskStepAttachable RegistryFileTaskStep.Definition.IFileTaskStepAttachable.WithOverridingValue(string name, OverridingValue overridingValue)
 {
     return(this.WithOverridingValue(name, overridingValue));
 }
Beispiel #6
0
 /// <summary>
 /// The function that specifies whether a single value will be overridden and what it will be overridden by.
 /// </summary>
 /// <param name="name">The name of the value to be overridden.</param>
 /// <param name="overridingValue">The OverridingValue specifying what the value will be overridden with.</param>
 /// <return>The next stage of the container registry task run definition.</return>
 RegistryTaskRun.Definition.IRegistryTaskRunRequest RegistryTaskRun.Definition.IRegistryTaskRunRequest.WithOverridingValue(string name, OverridingValue overridingValue)
 {
     return(this.WithOverridingValue(name, overridingValue));
 }