Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
BartoszBlizniak committed Aug 28, 2024
1 parent a96decd commit 7f35fca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cloudsmith/resource_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ func resourceRepository() *schema.Resource {
Type: schema.TypeString,
Description: "A descriptive name for the repository.",
Required: true,
ValidateFunc: validation.All(validation.StringIsNotEmpty, validateNoSpaces),
ValidateFunc: validation.StringIsNotEmpty,
},
"namespace": {
Type: schema.TypeString,
Expand Down
4 changes: 2 additions & 2 deletions docs/resources/repository.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ data "cloudsmith_organization" "my_organization" {
resource "cloudsmith_repository" "my_repository" {
description = "A certifiably-awesome private package repository"
name = "My-Repository"
name = "My Repository"
namespace = "${data.cloudsmith_organization.my_organization.slug_perm}"
slug = "my-repository"
}
Expand All @@ -36,7 +36,7 @@ resource "cloudsmith_repository" "my_repository" {
* `index_files` - (Optional) If set to `true`, files contained in packages will be indexed, which increase the synchronisation time required for packages. Note that it is recommended you keep this enabled unless the synchronisation time is significantly impacted.
* `move_own` - (Optional) If set to `true`, users can move any of their own packages that they have uploaded, assuming that they still have write privilege for the repository. This takes precedence over privileges configured in the 'Access Controls' section of the repository, and any inherited from the org.
* `move_packages` - (Optional) This defines the minimum level of privilege required for a user to move packages. Unless the package was uploaded by that user, in which the permission may be overridden by the user-specific move setting. Valid values include `Admin` and `Write`.
* `name` - (Required) A descriptive name for the repository. Whitespaces are not allowed.
* `name` - (Required) A descriptive visual name for the repository.
* `namespace` - (Required) Namespace (or organization) to which this repository belongs.
* `proxy_npmjs` - (Optional) If set to `true`, Npm packages that are not in the repository when requested by clients will automatically be proxied from the public npmjs.org registry. If there is at least one version for a package, others will not be proxied.
* `proxy_pypi` - (Optional) If set to `true`, Python packages that are not in the repository when requested by clients will automatically be proxied from the public pypi.python.org registry. If there is at least one version for a package, others will not be proxied.
Expand Down

0 comments on commit 7f35fca

Please sign in to comment.