Skip to content

Commit

Permalink
Merge pull request #73 from release-engineering/doc_changes
Browse files Browse the repository at this point in the history
Update documentation for restrict options
  • Loading branch information
JAVGan authored Feb 4, 2025
2 parents ba6b471 + e2443b2 commit 7d385f0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions starmap_client/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,15 @@ class Destination(StarmapBaseData):
"""Whether to replace the existing VM image in the destination or append."""

restrict_version: bool = field(validator=instance_of(bool))
"""Whether to restrict and image and delete it's AMI and snapshot"""
"""Whether to restrict and image and delete it's AMI and snapshot. Enabling
the option without values in restrict_major or restrict_minor will restrict
all previous releases for the same X.Y version"""

restrict_major: Optional[int] = field(validator=optional(instance_of(int)))
"""How many major versions are allowed in product"""

restrict_minor: Optional[int] = field(validator=optional(instance_of(int)))
"""How many minor versions are allowed in product"""
"""How many minor versions are allowed in product for the same major version"""

ami_version_template: Optional[str] = field(validator=optional(instance_of(str)))
"""Ami versioning template. Available options are major,minor,patch, or version.
Expand Down

0 comments on commit 7d385f0

Please sign in to comment.