Skip to content

Commit

Permalink
Rename pnp resources and data sources
Browse files Browse the repository at this point in the history
  • Loading branch information
danischm committed Jan 8, 2024
1 parent 8e6e7c9 commit 774d2d5
Show file tree
Hide file tree
Showing 22 changed files with 150 additions and 144 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
## 0.1.3 (unreleased)

- Add `catalystcenter_device_role` resource
- Add `catalystcenter_device` resource
- BREAKING CHANGE: Rename `catalystcenter_device` resource and data source to `catalystcenter_pnp_device`
- BREAKING CHANGE: Rename `catalystcenter_device_claim_site` resource and data source to `catalystcenter_pnp_device_claim_site`

## 0.1.2

Expand Down
10 changes: 5 additions & 5 deletions docs/data-sources/device.md → docs/data-sources/pnp_device.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "catalystcenter_device Data Source - terraform-provider-catalystcenter"
page_title: "catalystcenter_pnp_device Data Source - terraform-provider-catalystcenter"
subcategory: "Plug and Play"
description: |-
This data source can read the Device.
This data source can read the PnP Device.
---

# catalystcenter_device (Data Source)
# catalystcenter_pnp_device (Data Source)

This data source can read the Device.
This data source can read the PnP Device.

## Example Usage

```terraform
data "catalystcenter_device" "example" {
data "catalystcenter_pnp_device" "example" {
id = "76d24097-41c4-4558-a4d0-a8c07ac08470"
}
```
Expand Down
4 changes: 3 additions & 1 deletion docs/guides/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ description: |-

## 0.1.3 (unreleased)

- Add `catalystcenter_device_role` resource
- Add `catalystcenter_device` resource
- BREAKING CHANGE: Rename `catalystcenter_device` resource and data source to `catalystcenter_pnp_device`
- BREAKING CHANGE: Rename `catalystcenter_device_claim_site` resource and data source to `catalystcenter_pnp_device_claim_site`

## 0.1.2

Expand Down
12 changes: 6 additions & 6 deletions docs/resources/device.md → docs/resources/pnp_device.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "catalystcenter_device Resource - terraform-provider-catalystcenter"
page_title: "catalystcenter_pnp_device Resource - terraform-provider-catalystcenter"
subcategory: "Plug and Play"
description: |-
This resource can manage a Device.
This resource can manage a PnP Device.
---

# catalystcenter_device (Resource)
# catalystcenter_pnp_device (Resource)

This resource can manage a Device.
This resource can manage a PnP Device.

## Example Usage

```terraform
resource "catalystcenter_device" "example" {
resource "catalystcenter_pnp_device" "example" {
serial_number = "FOC12345678"
stack = false
pid = "C9300-24P"
Expand Down Expand Up @@ -43,5 +43,5 @@ resource "catalystcenter_device" "example" {
Import is supported using the following syntax:

```shell
terraform import catalystcenter_device.example "4b0b7a80-44c0-4bf2-bab5-fc24b4e0a17e"
terraform import catalystcenter_pnp_device.example "4b0b7a80-44c0-4bf2-bab5-fc24b4e0a17e"
```
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "catalystcenter_device_claim_site Resource - terraform-provider-catalystcenter"
page_title: "catalystcenter_pnp_device_claim_site Resource - terraform-provider-catalystcenter"
subcategory: "Plug and Play"
description: |-
This resource can manage a Device Claim Site.
This resource can manage a PnP Device Claim Site.
---

# catalystcenter_device_claim_site (Resource)
# catalystcenter_pnp_device_claim_site (Resource)

This resource can manage a Device Claim Site.
This resource can manage a PnP Device Claim Site.

## Example Usage

```terraform
resource "catalystcenter_device_claim_site" "example" {
resource "catalystcenter_pnp_device_claim_site" "example" {
device_id = "12345678-1234-1234-1234-123456789012"
site_id = "12345678-1234-1234-1234-123456789012"
type = "Default"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
data "catalystcenter_device" "example" {
data "catalystcenter_pnp_device" "example" {
id = "76d24097-41c4-4558-a4d0-a8c07ac08470"
}
1 change: 0 additions & 1 deletion examples/resources/catalystcenter_device/import.sh

This file was deleted.

1 change: 1 addition & 0 deletions examples/resources/catalystcenter_pnp_device/import.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
terraform import catalystcenter_pnp_device.example "4b0b7a80-44c0-4bf2-bab5-fc24b4e0a17e"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resource "catalystcenter_device" "example" {
resource "catalystcenter_pnp_device" "example" {
serial_number = "FOC12345678"
stack = false
pid = "C9300-24P"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resource "catalystcenter_device_claim_site" "example" {
resource "catalystcenter_pnp_device_claim_site" "example" {
device_id = "12345678-1234-1234-1234-123456789012"
site_id = "12345678-1234-1234-1234-123456789012"
type = "Default"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Device
name: PnP Device
rest_endpoint: /dna/intent/api/v1/onboarding/pnp-device
id_path: id
doc_category: Plug and Play
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Device Claim Site
name: PnP Device Claim Site
rest_endpoint: /dna/intent/api/v1/onboarding/pnp-device/site-claim
no_data_source: true
no_read: true
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 774d2d5

Please sign in to comment.