Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch: Update code for release #117

Merged
merged 2 commits into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions cloudsmith/resource_repository_retention_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,9 @@ func resourceRepoRetentionRule() *schema.Resource {
Description: "If true, retention will apply to packages by package type rather than across all package types for one or more formats.",
},
"retention_size_limit": {
Type: schema.TypeInt,
Optional: true,
Description: "The maximum total size (in bytes) of packages to retain. Must be between 0 and 21474836480.",
ValidateFunc: validation.IntBetween(0, 21474836480),
Type: schema.TypeInt,
Optional: true,
Description: "The maximum total size (in bytes) of packages to retain. Must be between 0 and 21474836480 (21.47 GB / 21474.83 MB).",
},
},
}
Expand Down
4 changes: 2 additions & 2 deletions docs/resources/repository_retention.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ The following arguments are supported:
* [`namespace`]("Go to definition") - (Required) The namespace of the repository.
* [`repository`]("Go to definition") - (Required) If true, the retention lifecycle rules will be activated for the repository and settings will be updated.
* [`retention_enabled`]("Go to definition") - (Required) If true, the retention lifecycle rules will be activated for the repository and settings will be updated.* [`retention_count_limit`]("Go to definition") - (Optional) The maximum number of packages to retain. Must be between 0 and 10000.
* [`retention_days_limit`]("Go to definition") - (Optional) The number of days of packages to retain. Must be between 0 and 180.
* [`retention_days_limit`]("Go to definition") - (Optional) The number of days of packages to retain. Must be between `0` and `180`.
* [`retention_group_by_name`]("Go to definition") - (Optional) If true, retention will apply to groups of packages by name rather than all packages.
* [`retention_group_by_format`]("Go to definition") - (Optional) If true, retention will apply to packages by package formats rather than across all package formats.
* [`retention_group_by_package_type`]("Go to definition") - (Optional) If true, retention will apply to packages by package type rather than across all package types for one or more formats.
* [`retention_size_limit`]("Go to definition") - (Optional) The maximum total size (in bytes) of packages to retain. Must be between 0 and 21474836480.
* [`retention_size_limit`]("Go to definition") - (Optional) The maximum total size (in bytes) of packages to retain. Must be between `0` and `21474836480` (21.47 GB / 21474.83 MB).

## Import

Expand Down
Loading