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

Add Missing Resource and Data Source Documentation #95

Closed
Closed
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
1 change: 1 addition & 0 deletions cloudsmith/resource_package_deny_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ func packageDenyPolicy() *schema.Resource {
Read: packageDenyPolicyRead,
Update: packageDenyPolicyUpdate,
Delete: packageDenyPolicyDelete,
Description: "Package deny policies control which packages can be downloaded within their repositories.",

Importer: &schema.ResourceImporter{
StateContext: packageDenyPolicyImport,
Expand Down
30 changes: 30 additions & 0 deletions docs/data-sources/package_deny_policy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "cloudsmith_package_deny_policy Data Source - terraform-provider-cloudsmith"
subcategory: ""
description: "Package deny policies control which packages can be downloaded within their repositories"

---

# cloudsmith_package_deny_policy (Data Source)

Package deny policies are a feature within Cloudsmith's policy management system to control which packages can be downloaded within their repositories.

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `namespace` (String) Namespace to which this package deny policy belongs.
- `slug_perm` (String) Identifier of the package deny policy.

### Optional

- `description` (String) Description of the package deny policy.
- `enabled` (Boolean) Is the package deny policy enabled?.
- `name` (String) A descriptive name for the package deny policy.
- `package_query` (String) The query to match the packages to be blocked.

### Read-Only

- `id` (String) The ID of this resource.
29 changes: 29 additions & 0 deletions docs/resources/package_deny_policy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "cloudsmith_package_deny_policy Resource - terraform-provider-cloudsmith"
subcategory: ""
description: "Package deny policies control which packages can be downloaded within their repositories

---

# cloudsmith_package_deny_policy (Resource)

Package deny policies are a feature within Cloudsmith's policy management system to control which packages can be downloaded within their repositories.

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `namespace` (String) Namespace to which this package deny policy belongs.
- `package_query` (String) The query to match the packages to be blocked.

### Optional

- `description` (String) Description of the package deny policy.
- `enabled` (Boolean) Is the package deny policy enabled?.
- `name` (String) A descriptive name for the package deny policy.

### Read-Only

- `id` (String) The ID of this resource.
Loading