public static SdkDeliveryPolicy ToSdkDeliveryPolicy(this PSDeliveryPolicy psDeliveryPolicy) { return(new SdkDeliveryPolicy { Description = psDeliveryPolicy.Description, Rules = psDeliveryPolicy.Rules.Select(rule => rule.ToDeliveryRule()).ToList() }); }
public override void ExecuteCmdlet() { var deliveryPolicy = new PSDeliveryPolicy { Description = Description, Rules = Rule }; WriteObject(deliveryPolicy); }