Skip to content

Commit

Permalink
Merge pull request #117 from cloudsmith-io/path(int-size-2)
Browse files Browse the repository at this point in the history
Patch: Update code for release
  • Loading branch information
BartoszBlizniak authored Sep 2, 2024
2 parents 0f3eb5f + 6496183 commit 45291f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
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

0 comments on commit 45291f0

Please sign in to comment.