Octopus.Client.Model.ChannelResource.AddRule C# (CSharp) Method

AddRule() public method

public AddRule ( string versionRange, string tagRegex ) : ChannelResource
versionRange string
tagRegex string
return ChannelResource
        public ChannelResource AddRule(string versionRange, string tagRegex, params DeploymentActionResource[] actions)
        {
            Rules.Add(new ChannelVersionRuleResource
            {
                Actions = new ReferenceCollection(actions.Select(a => a.Id)),
                VersionRange = versionRange,
                Tag = tagRegex
            });

            return this;
        }

Same methods

ChannelResource::AddRule ( ChannelVersionRuleResource rule ) : ChannelResource