diff --git a/.github/workflows/lint-test-code.yaml b/.github/workflows/lint-test-code.yaml index 76e3f0a1..f0c72812 100644 --- a/.github/workflows/lint-test-code.yaml +++ b/.github/workflows/lint-test-code.yaml @@ -23,7 +23,7 @@ jobs: uses: actions/checkout@v4 - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5.1.0 with: go-version: "${{ env.go_version }}" diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 981483db..7e720f7a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -20,8 +20,26 @@ permissions: contents: write jobs: + acceptance-tests: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Setup Just + uses: extractions/setup-just@v2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Inject Env File + run: echo "${{ secrets.ACCEPTANCE_ENV_FILE }}" > acceptance.env + + - name: Run Acceptance Tests + run: just acceptance-tests acceptance.env + goreleaser: runs-on: Signer + needs: acceptance-tests steps: - uses: actions/checkout@v4.2.2 with: @@ -37,6 +55,7 @@ jobs: with: go-version-file: 'go.mod' cache: true + - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6.0.0 with: diff --git a/.gitignore b/.gitignore index 3912dfa1..546c6a07 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,5 @@ terraform.tfstate* # python **/*.pyc .DS_Store + +*.env diff --git a/INSTALL.md b/INSTALL.md index 2a95435a..24a302ce 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -72,7 +72,7 @@ The following example uses Zsh (default) on macOS (Apple Silicon). ```console RELEASE=x.y.z - wget -q https://github.com/aruba-uxi/terraform-provider-hpeuxi/releases/download/v${RELEASE}/terraform-provider-hpeuxi_${RELEASE}_darwin_arm64.zip + wget https://github.com/aruba-uxi/terraform-provider-hpeuxi/releases/download/v${RELEASE}/terraform-provider-hpeuxi_${RELEASE}_darwin_arm64.zip ``` 3. Extract the plugin. diff --git a/Justfile b/Justfile index 6cc2d5d5..04ee1707 100644 --- a/Justfile +++ b/Justfile @@ -74,11 +74,14 @@ lint: python -m tools.lint-attribution lint + terraform fmt -recursive -check + fmt: python -m tools.lint-attribution format go run github.com/segmentio/golines@v0.12.2 -w . go run golang.org/x/tools/cmd/goimports@latest -local github.com/aruba-uxi -w . go run mvdan.cc/gofumpt@latest -w . + terraform fmt --recursive . tidy-provider: go mod tidy @@ -99,22 +102,26 @@ coverage-provider: tidy-tools: cd {{ TOOLS_PROVIDER_DIR }} && go mod tidy -acceptance-tests +ARGS='': +acceptance-tests ENV_PATH='' +ARGS='': #!/usr/bin/env bash - read -p "This is going to run requests against UXI backend. Continue (y/Y)? " -n 1 -r - echo - if [[ $REPLY =~ ^[Yy]$ ]] - then - # we run these seperately so that they do not interfere with each other since GoLang executes - # tests in different directories at the same time - for dir in "datasources" "resources" - do - echo "Running tests in $dir..." - TF_ACC=1 go test -v ./test/live/$dir/... -race {{ ARGS }} - done + if [ -z "{{ ENV_PATH }}" ]; then + echo "Error: ENV_PATH argument is required" >&2 + exit 1 + fi + + if [ ! -f "{{ ENV_PATH }}" ]; then + echo "Error: File specified ("{{ ENV_PATH }}") does not exist" >&2 + exit 1 fi + # we run these separately so that they do not interfere with each other since GoLang executes + # tests in different directories at the same time + for dir in "datasources" "resources" + do + echo "Running tests in $dir..." + env $(cat {{ ENV_PATH }} | xargs) TF_ACC=1 go test -v ./test/live/$dir/... -race {{ ARGS }} + done test +ARGS='': just test-client {{ ARGS }} diff --git a/README.md b/README.md index 83c85d64..42175cc6 100644 --- a/README.md +++ b/README.md @@ -160,22 +160,46 @@ just generate-config-api-client ## Running Acceptance Tests -Set the `GREENLAKE_UXI_CLIENT_ID` and `GREENLAKE_UXI_CLIENT_SECRET` environment variables for the acceptance test customer. The client credentials must have sufficient permissions execute create, read, update and destroy operations for the UXI customer. Also set the `UXI_HOST` environment variable to target the staging -environment. +Create a file called `acceptance.env` containing the following environment variables. See the table below for a description of the fields. -```bash -export HPEUXI_CLIENT_ID= -export HPEUXI_CLIENT_SECRET= -export HPEUXI_HOST_OVERRIDE=api.staging.capedev.io +``` +ACCEPTANCE_AGENT_ID= +ACCEPTANCE_AGENT_PROVISION_HOST= +ACCEPTANCE_AGENT_PROVISION_SERIAL= +ACCEPTANCE_CUSTOMER_ID= +ACCEPTANCE_GROUP_ID_ROOT= +ACCEPTANCE_SENSOR_ID= +ACCEPTANCE_SERVICE_TEST_ID= +ACCEPTANCE_WIRED_NETWORK_ID= +ACCEPTANCE_WIRELESS_NETWORK_ID= +HPEUXI_CLIENT_ID= +HPEUXI_CLIENT_SECRET= +HPEUXI_HOST_OVERRIDE= +HPEUXI_PROVISION_TOKEN= ``` +| Environment Variable | Description | +|-----------------------------------|------------------------------------------------------------------------------------------------------------------------------| +| ACCEPTANCE_AGENT_ID | ID of an agent on customer. | +| ACCEPTANCE_AGENT_PROVISION_SERIAL | Serial number of an agent to be provisioned. Keep this constant between test runs to avoid excessive provisioning of agents. | +| ACCEPTANCE_CUSTOMER_ID | ID of the customer against which the acceptance tests will be run. | +| ACCEPTANCE_GROUP_ID_ROOT | ID of the root group. | +| ACCEPTANCE_SENSOR_ID | ID of a hardware sensor on the customer. | +| ACCEPTANCE_SERVICE_TEST_ID | ID of a service test on the customer. | +| ACCEPTANCE_WIRED_NETWORK_ID | ID of a wired network on the customer. | +| ACCEPTANCE_WIRELESS_NETWORK_ID | ID of a wireless network on the customer. | +| DEVICE_GATEWAY_HOST | Host address of the device gateway (against which the agent provisioning will be run) | +| HPEUXI_CLIENT_ID | CLIENT_ID component of the UXI API credentials as obtained from Greenlake. | +| HPEUXI_CLIENT_SECRET | CLIENT_SECRET component of the UXI API credentials as obtained from Greenlake. | +| HPEUXI_HOST_OVERRIDE | Host address of the configuration API (against which the configuration API requests will be run). | +| HPEUXI_PROVISION_TOKEN | Token used to provision agents for the given customer. | + +Then run the following command to execute the acceptance tests against the given customer. + ```shell -just acceptance-tests +just acceptance-tests acceptance.env ``` -Note: it is possible to run acceptance tests against any UXI customer, if the configurations in -`test/live/config/config.go` are updated to values for the given customer. - ## Building and Distribution All builds must be signed by HPE before distribution. diff --git a/docs/index.md b/docs/index.md index 9e295e96..d2bf4639 100644 --- a/docs/index.md +++ b/docs/index.md @@ -3,18 +3,21 @@ page_title: "hpeuxi Provider" description: |- Interact with HPE Aruba Network UXI Configuration. + See https://developer.greenlake.hpe.com/docs/greenlake/guides/public/authentication/authentication/#configuring-api-client-credentials for more information on generating client credentials. --- # hpeuxi Provider Interact with HPE Aruba Network UXI Configuration. +See https://developer.greenlake.hpe.com/docs/greenlake/guides/public/authentication/authentication/#configuring-api-client-credentials for more information on generating client credentials. + ## Example Usage ```terraform provider "hpeuxi" { - client_id = "your_greenlake_uxi_client_id" - client_secret = "your_greenlake_uxi_client_secret" + client_id = "your_greenlake_uxi_client_id" + client_secret = "your_greenlake_uxi_client_secret" } ``` diff --git a/docs/resources/agent.md b/docs/resources/agent.md index 0d6ac94f..6202a31e 100644 --- a/docs/resources/agent.md +++ b/docs/resources/agent.md @@ -14,9 +14,9 @@ Manages an agent. ```terraform resource "hpeuxi_agent" "my_agent" { - name = "name" - notes = "notes" - pcap_mode = "light" + name = "name" + notes = "notes" + pcap_mode = "light" } ``` diff --git a/docs/resources/agent_group_assignment.md b/docs/resources/agent_group_assignment.md index e4a732c2..6a3fb361 100644 --- a/docs/resources/agent_group_assignment.md +++ b/docs/resources/agent_group_assignment.md @@ -4,18 +4,21 @@ page_title: "hpeuxi_agent_group_assignment Resource - hpeuxi" subcategory: "" description: |- Manages an agent group assignment. + Note: it is recommended to use a hpeuxi_group resource id as the group_id. This will help maintain dependencies between resources. This is useful when a destructive action is performed on an ancestor of the assigned group. --- # hpeuxi_agent_group_assignment (Resource) -Manages an agent group assignment. +Manages an agent group assignment. + +Note: it is recommended to use a `hpeuxi_group` **resource** `id` as the `group_id`. This will help maintain dependencies between resources. This is useful when a destructive action is performed on an ancestor of the assigned group. ## Example Usage ```terraform resource "hpeuxi_agent_group_assignment" "my_agent_group_assignment" { - agent_id = hpeuxi_agent.my_agent.id - group_id = hpeuxi_group.my_group.id + agent_id = hpeuxi_agent.my_agent.id + group_id = hpeuxi_group.my_group.id } ``` @@ -24,8 +27,8 @@ resource "hpeuxi_agent_group_assignment" "my_agent_group_assignment" { ### Required -- `agent_id` (String) The identifier of the agent to be assigned. Use agent id; `uxi_agent` resource id field or `uxi_agent` datasource id field here. -- `group_id` (String) The identifier of the group to be assigned to. Use group id; `uxi_group` resource id field or `uxi_group` datasource id field here. +- `agent_id` (String) The identifier of the agent to be assigned. Use `hpeuxi_agent` resource id field; `data.hpeuxi_agent` id field or agent id here. +- `group_id` (String) The identifier of the group to be assigned to. Use `hpeuxi_group` resource id field (recommended); `data.hpeuxi_group` id field or group id here. ### Read-Only diff --git a/docs/resources/group.md b/docs/resources/group.md index 69507355..4572e104 100644 --- a/docs/resources/group.md +++ b/docs/resources/group.md @@ -4,18 +4,21 @@ page_title: "hpeuxi_group Resource - hpeuxi" subcategory: "" description: |- Manages a group. + Note: building a group hierarchy by using an hpeuxi_group resource id as a child group's parent_group_id is recommended to maintain dependencies between linked groups. This will help maintain accurate state if the user attempts to change the parent of a non leaf group. --- # hpeuxi_group (Resource) -Manages a group. +Manages a group. + +Note: building a group hierarchy by using an `hpeuxi_group` **resource** `id` as a child group's `parent_group_id` is recommended to maintain dependencies between linked groups. This will help maintain accurate state if the user attempts to change the parent of a non leaf group. ## Example Usage ```terraform # Create level 1 group attached to the root node resource "hpeuxi_group" "level_1" { - name = "Parent Group" + name = "Parent Group" } # Create level 2 group attached to level 1 group @@ -34,7 +37,7 @@ resource "hpeuxi_group" "level_2" { ### Optional -- `parent_group_id` (String) The identifier of the parent of this group. Use hpeuxi_group resource or datasource id for this attribute. Alternatively leave blank to set group to highest level configurable node. +- `parent_group_id` (String) The identifier of the parent of this group. Use `hpeuxi_group` resource (recommended) or `data.hpeuxi_group` id for this attribute. Alternatively leave blank to set group to highest level configurable node. ### Read-Only diff --git a/docs/resources/network_group_assignment.md b/docs/resources/network_group_assignment.md index 7095a402..2fbc3057 100644 --- a/docs/resources/network_group_assignment.md +++ b/docs/resources/network_group_assignment.md @@ -4,18 +4,21 @@ page_title: "hpeuxi_network_group_assignment Resource - hpeuxi" subcategory: "" description: |- Manages a network group assignment. + Note: it is recommended to use a hpeuxi_group resource id as the group_id. This will help maintain dependencies between resources. This is useful when a destructive action is performed on an ancestor of the assigned group. --- # hpeuxi_network_group_assignment (Resource) Manages a network group assignment. +Note: it is recommended to use a `hpeuxi_group` **resource** `id` as the `group_id`. This will help maintain dependencies between resources. This is useful when a destructive action is performed on an ancestor of the assigned group. + ## Example Usage ```terraform resource "hpeuxi_network_group_assignment" "my_network_group_assignment" { - network_id = hpeuxi_wired_network.my_network.id - group_id = hpeuxi_group.my_group.id + network_id = hpeuxi_wired_network.my_network.id + group_id = hpeuxi_group.my_group.id } ``` @@ -24,8 +27,8 @@ resource "hpeuxi_network_group_assignment" "my_network_group_assignment" { ### Required -- `group_id` (String) The identifier of the group to be assigned to. Use group id; `uxi_group` resource id field or `uxi_group` datasource id field here. -- `network_id` (String) The identifier of the network to be assigned. Use wired network id; `uxi_wired_network` resource id field; `uxi_wired_network` datasource id field; wireless network id; `uxi_wireless_network` resource id field or `uxi_wireless_network` datasource id field here. +- `group_id` (String) The identifier of the group to be assigned to. Use `hpeuxi_group` resource id field (recommended); `data.hpeuxi_group` id field or group id here. +- `network_id` (String) The identifier of the network to be assigned. Use `hpeuxi_wired_network` resource id field; `data.hpeuxi_wired_network` id field; `hpeuxi_wireless_network` resource id field; `data.hpeuxi_wireless_network` id field wired network id; or wireless network id here. ### Read-Only diff --git a/docs/resources/sensor_group_assignment.md b/docs/resources/sensor_group_assignment.md index 9cc91270..4d5cd5f3 100644 --- a/docs/resources/sensor_group_assignment.md +++ b/docs/resources/sensor_group_assignment.md @@ -4,18 +4,21 @@ page_title: "hpeuxi_sensor_group_assignment Resource - hpeuxi" subcategory: "" description: |- Manages a sensor group assignment. + Note: it is recommended to use a hpeuxi_group resource id as the group_id. This will help maintain dependencies between resources. This is useful when a destructive action is performed on an ancestor of the assigned group. --- # hpeuxi_sensor_group_assignment (Resource) Manages a sensor group assignment. +Note: it is recommended to use a `hpeuxi_group` **resource** `id` as the `group_id`. This will help maintain dependencies between resources. This is useful when a destructive action is performed on an ancestor of the assigned group. + ## Example Usage ```terraform resource "hpeuxi_sensor_group_assignment" "my_sensor_group_assignment" { - sensor_id = hpeuxi_sensor.my_sensor.id - group_id = hpeuxi_group.my_group.id + sensor_id = hpeuxi_sensor.my_sensor.id + group_id = hpeuxi_group.my_group.id } ``` @@ -24,8 +27,8 @@ resource "hpeuxi_sensor_group_assignment" "my_sensor_group_assignment" { ### Required -- `group_id` (String) The identifier of the group to be assigned to. Use group id; `uxi_group` resource id field or `uxi_group` datasource id field here. -- `sensor_id` (String) The identifier of the sensor to be assigned. Use sensor id; `uxi_sensor` resource id field or `uxi_sensor` datasource id field here. +- `group_id` (String) The identifier of the group to be assigned to. Use `hpeuxi_group` resource id field (recommended); `data.hpeuxi_group` id field or group id here. +- `sensor_id` (String) The identifier of the sensor to be assigned. Use `hpeuxi_sensor` resource id field; `data.hpeuxi_sensor` id field or sensor id here. ### Read-Only diff --git a/docs/resources/service_test.md b/docs/resources/service_test.md index 3829e9f6..fd0d6679 100644 --- a/docs/resources/service_test.md +++ b/docs/resources/service_test.md @@ -14,7 +14,7 @@ Manages a service test. ```terraform resource "hpeuxi_service_test" "my_service_test" { - name = "name" + name = "name" # Deleting of service tests is not supported yet lifecycle { diff --git a/docs/resources/service_test_group_assignment.md b/docs/resources/service_test_group_assignment.md index 9072354b..c6bfc182 100644 --- a/docs/resources/service_test_group_assignment.md +++ b/docs/resources/service_test_group_assignment.md @@ -4,18 +4,21 @@ page_title: "hpeuxi_service_test_group_assignment Resource - hpeuxi" subcategory: "" description: |- Manages a service test group assignment. + Note: it is recommended to use a hpeuxi_group resource id as the group_id. This will help maintain dependencies between resources. This is useful when a destructive action is performed on an ancestor of the assigned group. --- # hpeuxi_service_test_group_assignment (Resource) Manages a service test group assignment. +Note: it is recommended to use a `hpeuxi_group` **resource** `id` as the `group_id`. This will help maintain dependencies between resources. This is useful when a destructive action is performed on an ancestor of the assigned group. + ## Example Usage ```terraform resource "hpeuxi_service_test_group_assignment" "my_service_test_group_assignment" { - service_test_id = hpeuxi_service_test.my_service_test.id - group_id = hpeuxi_group.my_group.id + service_test_id = hpeuxi_service_test.my_service_test.id + group_id = hpeuxi_group.my_group.id } ``` @@ -24,8 +27,8 @@ resource "hpeuxi_service_test_group_assignment" "my_service_test_group_assignmen ### Required -- `group_id` (String) The identifier of the group to be assigned to. Use group id; `uxi_group` resource id field or `uxi_group` datasource id field here. -- `service_test_id` (String) The identifier of the service test to be assigned. Use service test id; `uxi_service_test` resource id field or `uxi_service_test` datasource id field here. +- `group_id` (String) The identifier of the group to be assigned to. Use `hpeuxi_group` resource id field (recommended); `data.hpeuxi_group` id field or group id here. +- `service_test_id` (String) The identifier of the service test to be assigned. Use `hpeuxi_service_test` resource id field; `data.hpeuxi_service_test` id field or service test id here. ### Read-Only diff --git a/docs/resources/wired_network.md b/docs/resources/wired_network.md index 6824c65d..d6d623e4 100644 --- a/docs/resources/wired_network.md +++ b/docs/resources/wired_network.md @@ -14,7 +14,7 @@ Manages a wired network. ```terraform resource "hpeuxi_wired_network" "my_wired_network" { - name = "name" + name = "name" # Deleting of wired networks is not supported yet lifecycle { diff --git a/docs/resources/wireless_network.md b/docs/resources/wireless_network.md index 68039084..9152460b 100644 --- a/docs/resources/wireless_network.md +++ b/docs/resources/wireless_network.md @@ -14,7 +14,7 @@ Manages a wireless network. ```terraform resource "hpeuxi_wireless_network" "my_wireless_network" { - name = "name" + name = "name" # Deleting of wireless networks is not supported yet lifecycle { diff --git a/examples/provider/provider.tf b/examples/provider/provider.tf index 97f05be3..7c4ff7b3 100644 --- a/examples/provider/provider.tf +++ b/examples/provider/provider.tf @@ -1,4 +1,4 @@ provider "hpeuxi" { - client_id = "your_greenlake_uxi_client_id" - client_secret = "your_greenlake_uxi_client_secret" + client_id = "your_greenlake_uxi_client_id" + client_secret = "your_greenlake_uxi_client_secret" } diff --git a/examples/resources/hpeuxi_agent/resource.tf b/examples/resources/hpeuxi_agent/resource.tf index 14b1e389..9f952f9a 100644 --- a/examples/resources/hpeuxi_agent/resource.tf +++ b/examples/resources/hpeuxi_agent/resource.tf @@ -1,5 +1,5 @@ resource "hpeuxi_agent" "my_agent" { - name = "name" - notes = "notes" - pcap_mode = "light" + name = "name" + notes = "notes" + pcap_mode = "light" } diff --git a/examples/resources/hpeuxi_agent_group_assignment/resource.tf b/examples/resources/hpeuxi_agent_group_assignment/resource.tf index 784f5e28..7f3b8d2f 100644 --- a/examples/resources/hpeuxi_agent_group_assignment/resource.tf +++ b/examples/resources/hpeuxi_agent_group_assignment/resource.tf @@ -1,4 +1,4 @@ resource "hpeuxi_agent_group_assignment" "my_agent_group_assignment" { - agent_id = hpeuxi_agent.my_agent.id - group_id = hpeuxi_group.my_group.id + agent_id = hpeuxi_agent.my_agent.id + group_id = hpeuxi_group.my_group.id } diff --git a/examples/resources/hpeuxi_group/resource.tf b/examples/resources/hpeuxi_group/resource.tf index a8fcfdb0..b4188c3c 100644 --- a/examples/resources/hpeuxi_group/resource.tf +++ b/examples/resources/hpeuxi_group/resource.tf @@ -1,6 +1,6 @@ # Create level 1 group attached to the root node resource "hpeuxi_group" "level_1" { - name = "Parent Group" + name = "Parent Group" } # Create level 2 group attached to level 1 group diff --git a/examples/resources/hpeuxi_network_group_assignment/resource.tf b/examples/resources/hpeuxi_network_group_assignment/resource.tf index 1433abad..c985536c 100644 --- a/examples/resources/hpeuxi_network_group_assignment/resource.tf +++ b/examples/resources/hpeuxi_network_group_assignment/resource.tf @@ -1,4 +1,4 @@ resource "hpeuxi_network_group_assignment" "my_network_group_assignment" { - network_id = hpeuxi_wired_network.my_network.id - group_id = hpeuxi_group.my_group.id + network_id = hpeuxi_wired_network.my_network.id + group_id = hpeuxi_group.my_group.id } diff --git a/examples/resources/hpeuxi_sensor_group_assignment/resource.tf b/examples/resources/hpeuxi_sensor_group_assignment/resource.tf index f8ba57d4..8df7409a 100644 --- a/examples/resources/hpeuxi_sensor_group_assignment/resource.tf +++ b/examples/resources/hpeuxi_sensor_group_assignment/resource.tf @@ -1,4 +1,4 @@ resource "hpeuxi_sensor_group_assignment" "my_sensor_group_assignment" { - sensor_id = hpeuxi_sensor.my_sensor.id - group_id = hpeuxi_group.my_group.id + sensor_id = hpeuxi_sensor.my_sensor.id + group_id = hpeuxi_group.my_group.id } diff --git a/examples/resources/hpeuxi_service_test/resource.tf b/examples/resources/hpeuxi_service_test/resource.tf index 787e0904..12e953b0 100644 --- a/examples/resources/hpeuxi_service_test/resource.tf +++ b/examples/resources/hpeuxi_service_test/resource.tf @@ -1,5 +1,5 @@ resource "hpeuxi_service_test" "my_service_test" { - name = "name" + name = "name" # Deleting of service tests is not supported yet lifecycle { diff --git a/examples/resources/hpeuxi_service_test_group_assignment/resource.tf b/examples/resources/hpeuxi_service_test_group_assignment/resource.tf index 18083881..e9280cff 100644 --- a/examples/resources/hpeuxi_service_test_group_assignment/resource.tf +++ b/examples/resources/hpeuxi_service_test_group_assignment/resource.tf @@ -1,4 +1,4 @@ resource "hpeuxi_service_test_group_assignment" "my_service_test_group_assignment" { - service_test_id = hpeuxi_service_test.my_service_test.id - group_id = hpeuxi_group.my_group.id + service_test_id = hpeuxi_service_test.my_service_test.id + group_id = hpeuxi_group.my_group.id } diff --git a/examples/resources/hpeuxi_wired_network/resource.tf b/examples/resources/hpeuxi_wired_network/resource.tf index 59ee0bc5..9d5c5685 100644 --- a/examples/resources/hpeuxi_wired_network/resource.tf +++ b/examples/resources/hpeuxi_wired_network/resource.tf @@ -1,5 +1,5 @@ resource "hpeuxi_wired_network" "my_wired_network" { - name = "name" + name = "name" # Deleting of wired networks is not supported yet lifecycle { diff --git a/examples/resources/hpeuxi_wireless_network/resource.tf b/examples/resources/hpeuxi_wireless_network/resource.tf index 28830e85..22c63e98 100644 --- a/examples/resources/hpeuxi_wireless_network/resource.tf +++ b/examples/resources/hpeuxi_wireless_network/resource.tf @@ -1,5 +1,5 @@ resource "hpeuxi_wireless_network" "my_wireless_network" { - name = "name" + name = "name" # Deleting of wireless networks is not supported yet lifecycle { diff --git a/internal/provider/provider.go b/internal/provider/provider.go index 913722cf..de1096ee 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -60,7 +60,9 @@ func (p *hpeuxiConfigurationProvider) Schema( resp *provider.SchemaResponse, ) { resp.Schema = schema.Schema{ - Description: "Interact with HPE Aruba Network UXI Configuration.", + Description: "Interact with HPE Aruba Network UXI Configuration." + + "\n\nSee https://developer.greenlake.hpe.com/docs/greenlake/guides/public/authentication/authentication/#configuring-api-client-credentials " + + "for more information on generating client credentials.", Attributes: map[string]schema.Attribute{ "client_id": schema.StringAttribute{ Description: "The Client ID as obtained from HPE GreenLake API client credentials. " + diff --git a/internal/provider/resources/resource_agent_group_assignment.go b/internal/provider/resources/resource_agent_group_assignment.go index 55b25160..0bb2f006 100644 --- a/internal/provider/resources/resource_agent_group_assignment.go +++ b/internal/provider/resources/resource_agent_group_assignment.go @@ -52,7 +52,10 @@ func (r *agentGroupAssignmentResource) Schema( resp *resource.SchemaResponse, ) { resp.Schema = schema.Schema{ - Description: "Manages an agent group assignment.", + Description: "Manages an agent group assignment. " + + "\n\nNote: it is recommended to use a `hpeuxi_group` **resource** `id` as the `group_id`. " + + "This will help maintain dependencies between resources. This is useful when a " + + "destructive action is performed on an ancestor of the assigned group.", Attributes: map[string]schema.Attribute{ "id": schema.StringAttribute{ Description: "The identifier of the agent group assignment.", @@ -63,9 +66,9 @@ func (r *agentGroupAssignmentResource) Schema( }, "agent_id": schema.StringAttribute{ Description: "The identifier of the agent to be assigned. " + - "Use agent id; " + - "`uxi_agent` resource id field or " + - "`uxi_agent` datasource id field here.", + "Use `hpeuxi_agent` resource id field; " + + "`data.hpeuxi_agent` id field " + + "or agent id here.", Required: true, PlanModifiers: []planmodifier.String{ stringplanmodifier.RequiresReplace(), @@ -73,9 +76,9 @@ func (r *agentGroupAssignmentResource) Schema( }, "group_id": schema.StringAttribute{ Description: "The identifier of the group to be assigned to. " + - "Use group id; " + - "`uxi_group` resource id field or " + - "`uxi_group` datasource id field here.", + "Use `hpeuxi_group` resource id field (recommended); " + + "`data.hpeuxi_group` id field or " + + "group id here.", Required: true, PlanModifiers: []planmodifier.String{ stringplanmodifier.RequiresReplace(), diff --git a/internal/provider/resources/resource_group.go b/internal/provider/resources/resource_group.go index 9a9ceef8..816ed882 100644 --- a/internal/provider/resources/resource_group.go +++ b/internal/provider/resources/resource_group.go @@ -55,7 +55,11 @@ func (r *groupResource) Schema( resp *resource.SchemaResponse, ) { resp.Schema = schema.Schema{ - Description: "Manages a group.", + Description: "Manages a group. " + + "\n\nNote: building a group hierarchy by using an `hpeuxi_group` **resource** `id` as " + + "a child group's `parent_group_id` is recommended to maintain dependencies between " + + "linked groups. This will help maintain accurate state if the user attempts to " + + "change the parent of a non leaf group.", Attributes: map[string]schema.Attribute{ "id": schema.StringAttribute{ Description: "The identifier of the group.", @@ -70,7 +74,7 @@ func (r *groupResource) Schema( }, "parent_group_id": schema.StringAttribute{ Description: "The identifier of the parent of this group. " + - "Use hpeuxi_group resource or datasource id for this attribute. " + + "Use `hpeuxi_group` resource (recommended) or `data.hpeuxi_group` id for this attribute. " + "Alternatively leave blank to set group to highest level configurable node.", Optional: true, PlanModifiers: []planmodifier.String{ @@ -273,8 +277,6 @@ func (r *groupResource) getGroup( request := r.client.ConfigurationAPI.GroupsGet(ctx).Id(id) groupResponse, response, err := util.RetryForTooManyRequests(request.Execute) - // groupResponse, response, err := request.Execute() - // this causes a segfault errorPresent, errorDetail := util.RaiseForStatus(response, err) if errorPresent { return nil, errors.New(errorDetail) diff --git a/internal/provider/resources/resource_network_group_assignment.go b/internal/provider/resources/resource_network_group_assignment.go index 3b637c64..2502f506 100644 --- a/internal/provider/resources/resource_network_group_assignment.go +++ b/internal/provider/resources/resource_network_group_assignment.go @@ -52,7 +52,10 @@ func (r *networkGroupAssignmentResource) Schema( resp *resource.SchemaResponse, ) { resp.Schema = schema.Schema{ - Description: "Manages a network group assignment.", + Description: "Manages a network group assignment." + + "\n\nNote: it is recommended to use a `hpeuxi_group` **resource** `id` as the `group_id`. " + + "This will help maintain dependencies between resources. This is useful when a " + + "destructive action is performed on an ancestor of the assigned group.", Attributes: map[string]schema.Attribute{ "id": schema.StringAttribute{ Description: "The identifier of the network group assignment", @@ -63,12 +66,12 @@ func (r *networkGroupAssignmentResource) Schema( }, "network_id": schema.StringAttribute{ Description: "The identifier of the network to be assigned. " + - "Use wired network id; " + - "`uxi_wired_network` resource id field; " + - "`uxi_wired_network` datasource id field; " + - "wireless network id; " + - "`uxi_wireless_network` resource id field or " + - "`uxi_wireless_network` datasource id field here.", + "Use `hpeuxi_wired_network` resource id field; " + + "`data.hpeuxi_wired_network` id field; " + + "`hpeuxi_wireless_network` resource id field; " + + "`data.hpeuxi_wireless_network` id field " + + "wired network id; " + + "or wireless network id here.", Required: true, PlanModifiers: []planmodifier.String{ stringplanmodifier.RequiresReplace(), @@ -76,9 +79,9 @@ func (r *networkGroupAssignmentResource) Schema( }, "group_id": schema.StringAttribute{ Description: "The identifier of the group to be assigned to. " + - "Use group id; " + - "`uxi_group` resource id field or " + - "`uxi_group` datasource id field here.", + "Use `hpeuxi_group` resource id field (recommended); " + + "`data.hpeuxi_group` id field or " + + "group id here.", Required: true, PlanModifiers: []planmodifier.String{ stringplanmodifier.RequiresReplace(), diff --git a/internal/provider/resources/resource_sensor_group_assignment.go b/internal/provider/resources/resource_sensor_group_assignment.go index 20663000..cf30c838 100644 --- a/internal/provider/resources/resource_sensor_group_assignment.go +++ b/internal/provider/resources/resource_sensor_group_assignment.go @@ -52,7 +52,10 @@ func (r *sensorGroupAssignmentResource) Schema( resp *resource.SchemaResponse, ) { resp.Schema = schema.Schema{ - Description: "Manages a sensor group assignment.", + Description: "Manages a sensor group assignment." + + "\n\nNote: it is recommended to use a `hpeuxi_group` **resource** `id` as the `group_id`. " + + "This will help maintain dependencies between resources. This is useful when a " + + "destructive action is performed on an ancestor of the assigned group.", Attributes: map[string]schema.Attribute{ "id": schema.StringAttribute{ Description: "The identifier of the sensor group assignment", @@ -63,9 +66,9 @@ func (r *sensorGroupAssignmentResource) Schema( }, "sensor_id": schema.StringAttribute{ Description: "The identifier of the sensor to be assigned. " + - "Use sensor id; " + - "`uxi_sensor` resource id field or " + - "`uxi_sensor` datasource id field here.", + "Use `hpeuxi_sensor` resource id field; " + + "`data.hpeuxi_sensor` id field or " + + "sensor id here.", Required: true, PlanModifiers: []planmodifier.String{ stringplanmodifier.RequiresReplace(), @@ -73,9 +76,9 @@ func (r *sensorGroupAssignmentResource) Schema( }, "group_id": schema.StringAttribute{ Description: "The identifier of the group to be assigned to. " + - "Use group id; " + - "`uxi_group` resource id field or " + - "`uxi_group` datasource id field here.", + "Use `hpeuxi_group` resource id field (recommended); " + + "`data.hpeuxi_group` id field or " + + "group id here.", Required: true, PlanModifiers: []planmodifier.String{ stringplanmodifier.RequiresReplace(), diff --git a/internal/provider/resources/resource_service_group_assignment.go b/internal/provider/resources/resource_service_group_assignment.go index b4c8d84c..ddb16b9c 100644 --- a/internal/provider/resources/resource_service_group_assignment.go +++ b/internal/provider/resources/resource_service_group_assignment.go @@ -52,7 +52,10 @@ func (r *serviceTestGroupAssignmentResource) Schema( resp *resource.SchemaResponse, ) { resp.Schema = schema.Schema{ - Description: "Manages a service test group assignment.", + Description: "Manages a service test group assignment." + + "\n\nNote: it is recommended to use a `hpeuxi_group` **resource** `id` as the `group_id`. " + + "This will help maintain dependencies between resources. This is useful when a " + + "destructive action is performed on an ancestor of the assigned group.", Attributes: map[string]schema.Attribute{ "id": schema.StringAttribute{ Description: "The identifier of the service test group assignment", @@ -63,9 +66,9 @@ func (r *serviceTestGroupAssignmentResource) Schema( }, "service_test_id": schema.StringAttribute{ Description: "The identifier of the service test to be assigned. " + - "Use service test id; " + - "`uxi_service_test` resource id field or " + - "`uxi_service_test` datasource id field here.", + "Use `hpeuxi_service_test` resource id field; " + + "`data.hpeuxi_service_test` id field or " + + "service test id here.", Required: true, PlanModifiers: []planmodifier.String{ stringplanmodifier.RequiresReplace(), @@ -73,9 +76,9 @@ func (r *serviceTestGroupAssignmentResource) Schema( }, "group_id": schema.StringAttribute{ Description: "The identifier of the group to be assigned to. " + - "Use group id; " + - "`uxi_group` resource id field or " + - "`uxi_group` datasource id field here.", + "Use `hpeuxi_group` resource id field (recommended); " + + "`data.hpeuxi_group` id field or " + + "group id here.", Required: true, PlanModifiers: []planmodifier.String{ stringplanmodifier.RequiresReplace(), diff --git a/pkg/config-api-client/README.md b/pkg/config-api-client/README.md index 1dc854c7..d535d857 100644 --- a/pkg/config-api-client/README.md +++ b/pkg/config-api-client/README.md @@ -1,15 +1,15 @@ # Go API client for config_api_client -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 5.18.0 +- API version: 5.19.0 - Package version: 1.0.0 - Generator version: 7.9.0-SNAPSHOT - Build package: org.openapitools.codegen.languages.GoClientCodegen -For more information, please visit [http://we.dont.care.yet.com/contact](http://we.dont.care.yet.com/contact) +For more information, please visit [https://help.capenetworks.com/en/](https://help.capenetworks.com/en/) ## Installation diff --git a/pkg/config-api-client/api/.openapi.source.yaml b/pkg/config-api-client/api/.openapi.source.yaml index afb49dcc..fc4a62eb 100644 --- a/pkg/config-api-client/api/.openapi.source.yaml +++ b/pkg/config-api-client/api/.openapi.source.yaml @@ -1,18 +1,14 @@ openapi: 3.0.3 info: - title: Configuration Api - description: Nice description goes here - termsOfService: http://we.dont.care.yet.com/term-of-service + title: HPE Aruba Networking UXI Configuration + description: This document outlines the API contracts for HPE Aruba Networking UXI. contact: - name: We need a person - url: http://we.dont.care.yet.com/contact + name: HPE Aruba Networking UXI Support + url: https://help.capenetworks.com/en/ email: support@capenetworks.com - license: - name: No idea, but we need something - version: 5.18.0 + version: 5.19.0 servers: - url: https://api.capenetworks.com - - url: https://api.staging.capedev.io paths: /networking-uxi/v1alpha1/agents/{agent_uid}: delete: diff --git a/pkg/config-api-client/api/openapi.yaml b/pkg/config-api-client/api/openapi.yaml index af637b48..513937ce 100644 --- a/pkg/config-api-client/api/openapi.yaml +++ b/pkg/config-api-client/api/openapi.yaml @@ -2,17 +2,13 @@ openapi: 3.0.3 info: contact: email: support@capenetworks.com - name: We need a person - url: http://we.dont.care.yet.com/contact - description: Nice description goes here - license: - name: "No idea, but we need something" - termsOfService: http://we.dont.care.yet.com/term-of-service - title: Configuration Api - version: 5.18.0 + name: HPE Aruba Networking UXI Support + url: https://help.capenetworks.com/en/ + description: This document outlines the API contracts for HPE Aruba Networking UXI. + title: HPE Aruba Networking UXI Configuration + version: 5.19.0 servers: - url: https://api.capenetworks.com -- url: https://api.staging.capedev.io tags: - name: api - name: v1 diff --git a/pkg/config-api-client/api_configuration.go b/pkg/config-api-client/api_configuration.go index f46b0563..41d05cdf 100644 --- a/pkg/config-api-client/api_configuration.go +++ b/pkg/config-api-client/api_configuration.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/client.go b/pkg/config-api-client/client.go index cee8e542..a318bd66 100644 --- a/pkg/config-api-client/client.go +++ b/pkg/config-api-client/client.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ @@ -45,7 +45,7 @@ var ( queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") ) -// APIClient manages communication with the Configuration Api API v5.18.0 +// APIClient manages communication with the HPE Aruba Networking UXI Configuration API v5.19.0 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration diff --git a/pkg/config-api-client/configuration.go b/pkg/config-api-client/configuration.go index 66e522f4..41d95418 100644 --- a/pkg/config-api-client/configuration.go +++ b/pkg/config-api-client/configuration.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ @@ -101,10 +101,6 @@ func NewConfiguration() *Configuration { URL: "https://api.capenetworks.com", Description: "No description provided", }, - { - URL: "https://api.staging.capedev.io", - Description: "No description provided", - }, }, OperationServers: map[string]ServerConfigurations{}, } diff --git a/pkg/config-api-client/model_agent_group_assignment_post_agent.go b/pkg/config-api-client/model_agent_group_assignment_post_agent.go index 4a79cc10..c3c78be5 100644 --- a/pkg/config-api-client/model_agent_group_assignment_post_agent.go +++ b/pkg/config-api-client/model_agent_group_assignment_post_agent.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_agent_group_assignment_post_group.go b/pkg/config-api-client/model_agent_group_assignment_post_group.go index 2b4eebca..79d8aea7 100644 --- a/pkg/config-api-client/model_agent_group_assignment_post_group.go +++ b/pkg/config-api-client/model_agent_group_assignment_post_group.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_agent_group_assignment_post_request.go b/pkg/config-api-client/model_agent_group_assignment_post_request.go index d6be8d05..bf426368 100644 --- a/pkg/config-api-client/model_agent_group_assignment_post_request.go +++ b/pkg/config-api-client/model_agent_group_assignment_post_request.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_agent_group_assignment_post_response.go b/pkg/config-api-client/model_agent_group_assignment_post_response.go index c29507e9..f895b8d1 100644 --- a/pkg/config-api-client/model_agent_group_assignment_post_response.go +++ b/pkg/config-api-client/model_agent_group_assignment_post_response.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_agent_group_assignments_get_agent.go b/pkg/config-api-client/model_agent_group_assignments_get_agent.go index 32fb90ab..b15c4d66 100644 --- a/pkg/config-api-client/model_agent_group_assignments_get_agent.go +++ b/pkg/config-api-client/model_agent_group_assignments_get_agent.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_agent_group_assignments_get_group.go b/pkg/config-api-client/model_agent_group_assignments_get_group.go index 5e77c110..b15cfa29 100644 --- a/pkg/config-api-client/model_agent_group_assignments_get_group.go +++ b/pkg/config-api-client/model_agent_group_assignments_get_group.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_agent_group_assignments_get_item.go b/pkg/config-api-client/model_agent_group_assignments_get_item.go index e404e9e3..853d9e8f 100644 --- a/pkg/config-api-client/model_agent_group_assignments_get_item.go +++ b/pkg/config-api-client/model_agent_group_assignments_get_item.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_agent_group_assignments_get_response.go b/pkg/config-api-client/model_agent_group_assignments_get_response.go index b587ce05..187a6b8c 100644 --- a/pkg/config-api-client/model_agent_group_assignments_get_response.go +++ b/pkg/config-api-client/model_agent_group_assignments_get_response.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_agent_patch_request.go b/pkg/config-api-client/model_agent_patch_request.go index 6b94110d..cd8a7fa9 100644 --- a/pkg/config-api-client/model_agent_patch_request.go +++ b/pkg/config-api-client/model_agent_patch_request.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_agent_patch_response.go b/pkg/config-api-client/model_agent_patch_response.go index 93100794..02549946 100644 --- a/pkg/config-api-client/model_agent_patch_response.go +++ b/pkg/config-api-client/model_agent_patch_response.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_agent_pcap_mode.go b/pkg/config-api-client/model_agent_pcap_mode.go index 960cd3c6..0ccd9d49 100644 --- a/pkg/config-api-client/model_agent_pcap_mode.go +++ b/pkg/config-api-client/model_agent_pcap_mode.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_agents_get_item.go b/pkg/config-api-client/model_agents_get_item.go index 44fb856d..8946467b 100644 --- a/pkg/config-api-client/model_agents_get_item.go +++ b/pkg/config-api-client/model_agents_get_item.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_agents_get_response.go b/pkg/config-api-client/model_agents_get_response.go index 385e2563..96c515ab 100644 --- a/pkg/config-api-client/model_agents_get_response.go +++ b/pkg/config-api-client/model_agents_get_response.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_error_detail.go b/pkg/config-api-client/model_error_detail.go index 1f76d926..8e1ffc4c 100644 --- a/pkg/config-api-client/model_error_detail.go +++ b/pkg/config-api-client/model_error_detail.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_error_response.go b/pkg/config-api-client/model_error_response.go index e2ff635f..4fda3308 100644 --- a/pkg/config-api-client/model_error_response.go +++ b/pkg/config-api-client/model_error_response.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_group_patch_parent.go b/pkg/config-api-client/model_group_patch_parent.go index 14489cf4..9d29722f 100644 --- a/pkg/config-api-client/model_group_patch_parent.go +++ b/pkg/config-api-client/model_group_patch_parent.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_group_patch_request.go b/pkg/config-api-client/model_group_patch_request.go index 65e2b395..3fdaab92 100644 --- a/pkg/config-api-client/model_group_patch_request.go +++ b/pkg/config-api-client/model_group_patch_request.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_group_patch_response.go b/pkg/config-api-client/model_group_patch_response.go index 90ecb001..537b15c0 100644 --- a/pkg/config-api-client/model_group_patch_response.go +++ b/pkg/config-api-client/model_group_patch_response.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_group_post_parent.go b/pkg/config-api-client/model_group_post_parent.go index 3e24e79d..81316e6a 100644 --- a/pkg/config-api-client/model_group_post_parent.go +++ b/pkg/config-api-client/model_group_post_parent.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_group_post_request.go b/pkg/config-api-client/model_group_post_request.go index 96fc68fd..3f34f6cb 100644 --- a/pkg/config-api-client/model_group_post_request.go +++ b/pkg/config-api-client/model_group_post_request.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_group_post_response.go b/pkg/config-api-client/model_group_post_response.go index 0d906007..b412aa8f 100644 --- a/pkg/config-api-client/model_group_post_response.go +++ b/pkg/config-api-client/model_group_post_response.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_groups_get_item.go b/pkg/config-api-client/model_groups_get_item.go index 815f107a..edd2b004 100644 --- a/pkg/config-api-client/model_groups_get_item.go +++ b/pkg/config-api-client/model_groups_get_item.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_groups_get_parent.go b/pkg/config-api-client/model_groups_get_parent.go index ed98faeb..3239be5b 100644 --- a/pkg/config-api-client/model_groups_get_parent.go +++ b/pkg/config-api-client/model_groups_get_parent.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_groups_get_response.go b/pkg/config-api-client/model_groups_get_response.go index 97e075f5..d6e718e4 100644 --- a/pkg/config-api-client/model_groups_get_response.go +++ b/pkg/config-api-client/model_groups_get_response.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_ip_version.go b/pkg/config-api-client/model_ip_version.go index f3845093..a317eab7 100644 --- a/pkg/config-api-client/model_ip_version.go +++ b/pkg/config-api-client/model_ip_version.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_issue.go b/pkg/config-api-client/model_issue.go index 88bd8e10..a124d3da 100644 --- a/pkg/config-api-client/model_issue.go +++ b/pkg/config-api-client/model_issue.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_issue_subject.go b/pkg/config-api-client/model_issue_subject.go index c80dd79e..af12d228 100644 --- a/pkg/config-api-client/model_issue_subject.go +++ b/pkg/config-api-client/model_issue_subject.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_network_group_assignment_post_group.go b/pkg/config-api-client/model_network_group_assignment_post_group.go index a84fa8ed..3bf753e7 100644 --- a/pkg/config-api-client/model_network_group_assignment_post_group.go +++ b/pkg/config-api-client/model_network_group_assignment_post_group.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_network_group_assignment_post_network.go b/pkg/config-api-client/model_network_group_assignment_post_network.go index 00023a66..9596a44f 100644 --- a/pkg/config-api-client/model_network_group_assignment_post_network.go +++ b/pkg/config-api-client/model_network_group_assignment_post_network.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_network_group_assignment_post_request.go b/pkg/config-api-client/model_network_group_assignment_post_request.go index 8eff3871..c026d24a 100644 --- a/pkg/config-api-client/model_network_group_assignment_post_request.go +++ b/pkg/config-api-client/model_network_group_assignment_post_request.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_network_group_assignment_post_response.go b/pkg/config-api-client/model_network_group_assignment_post_response.go index 2ae045df..e3a2734d 100644 --- a/pkg/config-api-client/model_network_group_assignment_post_response.go +++ b/pkg/config-api-client/model_network_group_assignment_post_response.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_network_group_assignments_get_group.go b/pkg/config-api-client/model_network_group_assignments_get_group.go index de55ba38..de8c61e1 100644 --- a/pkg/config-api-client/model_network_group_assignments_get_group.go +++ b/pkg/config-api-client/model_network_group_assignments_get_group.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_network_group_assignments_get_item.go b/pkg/config-api-client/model_network_group_assignments_get_item.go index 26983800..5e5ceec2 100644 --- a/pkg/config-api-client/model_network_group_assignments_get_item.go +++ b/pkg/config-api-client/model_network_group_assignments_get_item.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_network_group_assignments_get_network.go b/pkg/config-api-client/model_network_group_assignments_get_network.go index 4eaa5154..dc726cd5 100644 --- a/pkg/config-api-client/model_network_group_assignments_get_network.go +++ b/pkg/config-api-client/model_network_group_assignments_get_network.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_network_group_assignments_get_response.go b/pkg/config-api-client/model_network_group_assignments_get_response.go index 9b740e21..bfe8279d 100644 --- a/pkg/config-api-client/model_network_group_assignments_get_response.go +++ b/pkg/config-api-client/model_network_group_assignments_get_response.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_sensor_group_assignment_post_group.go b/pkg/config-api-client/model_sensor_group_assignment_post_group.go index faf4f644..65f107b1 100644 --- a/pkg/config-api-client/model_sensor_group_assignment_post_group.go +++ b/pkg/config-api-client/model_sensor_group_assignment_post_group.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_sensor_group_assignment_post_request.go b/pkg/config-api-client/model_sensor_group_assignment_post_request.go index 859f1eec..ee23c802 100644 --- a/pkg/config-api-client/model_sensor_group_assignment_post_request.go +++ b/pkg/config-api-client/model_sensor_group_assignment_post_request.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_sensor_group_assignment_post_response.go b/pkg/config-api-client/model_sensor_group_assignment_post_response.go index 9af28cf5..f7329d3c 100644 --- a/pkg/config-api-client/model_sensor_group_assignment_post_response.go +++ b/pkg/config-api-client/model_sensor_group_assignment_post_response.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_sensor_group_assignment_post_sensor.go b/pkg/config-api-client/model_sensor_group_assignment_post_sensor.go index 7a7facdb..eb386554 100644 --- a/pkg/config-api-client/model_sensor_group_assignment_post_sensor.go +++ b/pkg/config-api-client/model_sensor_group_assignment_post_sensor.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_sensor_group_assignments_get_group.go b/pkg/config-api-client/model_sensor_group_assignments_get_group.go index 972658b9..20b93bd1 100644 --- a/pkg/config-api-client/model_sensor_group_assignments_get_group.go +++ b/pkg/config-api-client/model_sensor_group_assignments_get_group.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_sensor_group_assignments_get_item.go b/pkg/config-api-client/model_sensor_group_assignments_get_item.go index 51e0d2fa..3549f323 100644 --- a/pkg/config-api-client/model_sensor_group_assignments_get_item.go +++ b/pkg/config-api-client/model_sensor_group_assignments_get_item.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_sensor_group_assignments_get_response.go b/pkg/config-api-client/model_sensor_group_assignments_get_response.go index 2dcf5322..807780eb 100644 --- a/pkg/config-api-client/model_sensor_group_assignments_get_response.go +++ b/pkg/config-api-client/model_sensor_group_assignments_get_response.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_sensor_group_assignments_get_sensor.go b/pkg/config-api-client/model_sensor_group_assignments_get_sensor.go index 4346a74c..96402f1d 100644 --- a/pkg/config-api-client/model_sensor_group_assignments_get_sensor.go +++ b/pkg/config-api-client/model_sensor_group_assignments_get_sensor.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_sensor_patch_request.go b/pkg/config-api-client/model_sensor_patch_request.go index 76b8112d..6eca657e 100644 --- a/pkg/config-api-client/model_sensor_patch_request.go +++ b/pkg/config-api-client/model_sensor_patch_request.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_sensor_patch_response.go b/pkg/config-api-client/model_sensor_patch_response.go index 13b334a9..9a975d20 100644 --- a/pkg/config-api-client/model_sensor_patch_response.go +++ b/pkg/config-api-client/model_sensor_patch_response.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_sensor_pcap_mode.go b/pkg/config-api-client/model_sensor_pcap_mode.go index e890a81f..186f9dc9 100644 --- a/pkg/config-api-client/model_sensor_pcap_mode.go +++ b/pkg/config-api-client/model_sensor_pcap_mode.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_sensors_get_item.go b/pkg/config-api-client/model_sensors_get_item.go index 3fc579df..456ee27b 100644 --- a/pkg/config-api-client/model_sensors_get_item.go +++ b/pkg/config-api-client/model_sensors_get_item.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_sensors_get_response.go b/pkg/config-api-client/model_sensors_get_response.go index 6e043b97..293360bc 100644 --- a/pkg/config-api-client/model_sensors_get_response.go +++ b/pkg/config-api-client/model_sensors_get_response.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_service_test_group_assignment_post_group.go b/pkg/config-api-client/model_service_test_group_assignment_post_group.go index 00907d9f..56c21db3 100644 --- a/pkg/config-api-client/model_service_test_group_assignment_post_group.go +++ b/pkg/config-api-client/model_service_test_group_assignment_post_group.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_service_test_group_assignment_post_request.go b/pkg/config-api-client/model_service_test_group_assignment_post_request.go index 4bbe1973..504b31db 100644 --- a/pkg/config-api-client/model_service_test_group_assignment_post_request.go +++ b/pkg/config-api-client/model_service_test_group_assignment_post_request.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_service_test_group_assignment_post_response.go b/pkg/config-api-client/model_service_test_group_assignment_post_response.go index 5ce0873e..8cbd1062 100644 --- a/pkg/config-api-client/model_service_test_group_assignment_post_response.go +++ b/pkg/config-api-client/model_service_test_group_assignment_post_response.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_service_test_group_assignment_post_service_test_.go b/pkg/config-api-client/model_service_test_group_assignment_post_service_test_.go index 7f47f7b3..33e37403 100644 --- a/pkg/config-api-client/model_service_test_group_assignment_post_service_test_.go +++ b/pkg/config-api-client/model_service_test_group_assignment_post_service_test_.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_service_test_group_assignments_get_group.go b/pkg/config-api-client/model_service_test_group_assignments_get_group.go index 8a1bfa28..4d691edc 100644 --- a/pkg/config-api-client/model_service_test_group_assignments_get_group.go +++ b/pkg/config-api-client/model_service_test_group_assignments_get_group.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_service_test_group_assignments_get_item.go b/pkg/config-api-client/model_service_test_group_assignments_get_item.go index 0017fa4d..62c5fa8e 100644 --- a/pkg/config-api-client/model_service_test_group_assignments_get_item.go +++ b/pkg/config-api-client/model_service_test_group_assignments_get_item.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_service_test_group_assignments_get_response.go b/pkg/config-api-client/model_service_test_group_assignments_get_response.go index 0e951aa8..07ff878e 100644 --- a/pkg/config-api-client/model_service_test_group_assignments_get_response.go +++ b/pkg/config-api-client/model_service_test_group_assignments_get_response.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_service_test_group_assignments_get_service_test_.go b/pkg/config-api-client/model_service_test_group_assignments_get_service_test_.go index 16b30802..109c67c1 100644 --- a/pkg/config-api-client/model_service_test_group_assignments_get_service_test_.go +++ b/pkg/config-api-client/model_service_test_group_assignments_get_service_test_.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_service_tests_get_item.go b/pkg/config-api-client/model_service_tests_get_item.go index b544893f..de32d055 100644 --- a/pkg/config-api-client/model_service_tests_get_item.go +++ b/pkg/config-api-client/model_service_tests_get_item.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_service_tests_get_response.go b/pkg/config-api-client/model_service_tests_get_response.go index 24e0e417..bdf52ce7 100644 --- a/pkg/config-api-client/model_service_tests_get_response.go +++ b/pkg/config-api-client/model_service_tests_get_response.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_wired_networks_get_item.go b/pkg/config-api-client/model_wired_networks_get_item.go index 8c34e092..d8dbe82e 100644 --- a/pkg/config-api-client/model_wired_networks_get_item.go +++ b/pkg/config-api-client/model_wired_networks_get_item.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_wired_networks_get_response.go b/pkg/config-api-client/model_wired_networks_get_response.go index ed510244..e1b18745 100644 --- a/pkg/config-api-client/model_wired_networks_get_response.go +++ b/pkg/config-api-client/model_wired_networks_get_response.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_wireless_networks_get_item.go b/pkg/config-api-client/model_wireless_networks_get_item.go index dceeecf4..cb695537 100644 --- a/pkg/config-api-client/model_wireless_networks_get_item.go +++ b/pkg/config-api-client/model_wireless_networks_get_item.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_wireless_networks_get_response.go b/pkg/config-api-client/model_wireless_networks_get_response.go index ab566083..71bc7f9f 100644 --- a/pkg/config-api-client/model_wireless_networks_get_response.go +++ b/pkg/config-api-client/model_wireless_networks_get_response.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/response.go b/pkg/config-api-client/response.go index 4afbf7ab..6b0b4f82 100644 --- a/pkg/config-api-client/response.go +++ b/pkg/config-api-client/response.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/utils.go b/pkg/config-api-client/utils.go index 2983b96e..5c384701 100644 --- a/pkg/config-api-client/utils.go +++ b/pkg/config-api-client/utils.go @@ -3,11 +3,11 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. */ /* -Configuration Api +HPE Aruba Networking UXI Configuration -Nice description goes here +This document outlines the API contracts for HPE Aruba Networking UXI. -API version: 5.18.0 +API version: 5.19.0 Contact: support@capenetworks.com */ diff --git a/test/live/config/config.go b/test/live/config/config.go index 318c446a..10a7de29 100644 --- a/test/live/config/config.go +++ b/test/live/config/config.go @@ -4,42 +4,18 @@ Copyright 2024 Hewlett Packard Enterprise Development LP. package config -// These constants are from the customer: -// Configuration-API Acceptance Testing (844457745a1111ef880836000a52e73e) -// And therefore the client_id and client_secret used for the acceptance tests must match this -// customer. - -// This agent is permanently on the customer -const AgentPermanentID = "abeac07d-3c28-31be-b9e7-30002c753ed4" - -// An agent with this serial will get provisioned -const AgentCreateSerial = "56fb38331f19d278" - -// The customer ID of the acceptance test customer -const CustomerID = "9c16d493-7649-40bc-975b-07422d227c0b" - -// The root group ID -const GroupIDRoot = "07422d227c0b" - -// This wired network is permanently on the customer -const ( - WiredNetworkID = "ethernet-0ee5b46c2ef0" - WiredNetworkName = "tf-provider-acceptance-tests-ethernet-0" +import ( + "os" ) -// This wireless network is permanently on the customer -const ( - WirelessNetworkID = "ssid-bf704ff37dc0" - WirelessNetworkName = "tf-provider-acceptance-tests-ssid-0" +var ( + AgentID = os.Getenv("ACCEPTANCE_AGENT_ID") + AgentProvisionSerial = os.Getenv("ACCEPTANCE_AGENT_PROVISION_SERIAL") + CustomerID = os.Getenv("ACCEPTANCE_CUSTOMER_ID") + GroupIDRoot = os.Getenv("ACCEPTANCE_GROUP_ID_ROOT") + WiredNetworkID = os.Getenv("ACCEPTANCE_WIRED_NETWORK_ID") + WirelessNetworkID = os.Getenv("ACCEPTANCE_WIRELESS_NETWORK_ID") + ServiceTestID = os.Getenv("ACCEPTANCE_SERVICE_TEST_ID") + SensorID = os.Getenv("ACCEPTANCE_SENSOR_ID") + DeviceGatewayHost = os.Getenv("ACCEPTANCE_AGENT_PROVISION_HOST") ) - -// This service test is permanently on the customer -const ( - ServiceTestID = "6f81e43d-76f1-4a15-aafe-4ce2371d918a" - ServiceTestName = "tf-provider-acceptance-test-0" -) - -// This sensor is permanently on the customer -const SensorID = "4b031caf-cea8-411d-8928-79f518163dae" - -const DeviceGatewayHost = "https://device-gateway.staging.capedev.io" diff --git a/test/live/datasources/agent_group_assignment_test.go b/test/live/datasources/agent_group_assignment_test.go index a71876af..6ec2b6df 100644 --- a/test/live/datasources/agent_group_assignment_test.go +++ b/test/live/datasources/agent_group_assignment_test.go @@ -30,7 +30,7 @@ func TestAgentGroupAssignmentDataSource(t *testing.T) { data "hpeuxi_agent" "my_agent" { filter = { - id = "` + config.AgentPermanentID + `" + id = "` + config.AgentID + `" } } diff --git a/test/live/datasources/agent_test.go b/test/live/datasources/agent_test.go index 4b2c518e..1818f506 100644 --- a/test/live/datasources/agent_test.go +++ b/test/live/datasources/agent_test.go @@ -16,16 +16,16 @@ import ( ) func TestAgentDataSource(t *testing.T) { - agent := util.GetAgent(config.AgentPermanentID) + agent := util.GetAgent(config.AgentID) + resource.Test(t, resource.TestCase{ - PreCheck: func() {}, ProtoV6ProviderFactories: provider.TestAccProtoV6ProviderFactories, Steps: []resource.TestStep{ { Config: provider.ProviderConfig + ` data "hpeuxi_agent" "my_agent" { filter = { - id = "` + config.AgentPermanentID + `" + id = "` + config.AgentID + `" } } `, diff --git a/test/live/resources/agent_group_assignment_test.go b/test/live/resources/agent_group_assignment_test.go index 9380c67b..3d56939c 100644 --- a/test/live/resources/agent_group_assignment_test.go +++ b/test/live/resources/agent_group_assignment_test.go @@ -38,7 +38,7 @@ func TestAgentGroupAssignmentResource(t *testing.T) { data "hpeuxi_agent" "my_agent" { filter = { - id = "` + config.AgentPermanentID + `" + id = "` + config.AgentID + `" } } @@ -51,7 +51,7 @@ func TestAgentGroupAssignmentResource(t *testing.T) { resource.TestCheckResourceAttr( "hpeuxi_agent_group_assignment.my_agent_group_assignment", "agent_id", - config.AgentPermanentID, + config.AgentID, ), resource.TestCheckResourceAttrWith( "hpeuxi_agent_group_assignment.my_agent_group_assignment", @@ -92,7 +92,7 @@ func TestAgentGroupAssignmentResource(t *testing.T) { data "hpeuxi_agent" "my_agent" { filter = { - id = "` + config.AgentPermanentID + `" + id = "` + config.AgentID + `" } } @@ -111,7 +111,7 @@ func TestAgentGroupAssignmentResource(t *testing.T) { resource.TestCheckResourceAttr( "hpeuxi_agent_group_assignment.my_agent_group_assignment", "agent_id", - config.AgentPermanentID, + config.AgentID, ), resource.TestCheckResourceAttrWith( "hpeuxi_agent_group_assignment.my_agent_group_assignment", diff --git a/test/live/resources/agent_test.go b/test/live/resources/agent_test.go index 0bd9f902..15d35a83 100644 --- a/test/live/resources/agent_test.go +++ b/test/live/resources/agent_test.go @@ -25,7 +25,7 @@ func TestAgentResource(t *testing.T) { agentID, err := util.ProvisionAgent{ CustomerID: config.CustomerID, ProvisionToken: os.Getenv("HPEUXI_PROVISION_TOKEN"), - DeviceSerial: config.AgentCreateSerial, + DeviceSerial: config.AgentProvisionSerial, DeviceGatewayHost: config.DeviceGatewayHost, }.Provision() if err != nil { diff --git a/test/live/resources/network_group_assignment_test.go b/test/live/resources/network_group_assignment_test.go index a45e7d00..801c1a02 100644 --- a/test/live/resources/network_group_assignment_test.go +++ b/test/live/resources/network_group_assignment_test.go @@ -26,6 +26,7 @@ func TestNetworkGroupAssignmentResourceForWiredNetwork(t *testing.T) { var ( resourceIDBeforeRecreate string resourceIDAfterRecreate string + wiredNetwork = util.GetWiredNetwork(config.WiredNetworkID) ) // Test Wired Network Group Assignment @@ -40,7 +41,7 @@ func TestNetworkGroupAssignmentResourceForWiredNetwork(t *testing.T) { } resource "hpeuxi_wired_network" "my_network" { - name = "` + config.WiredNetworkName + `" + name = "` + wiredNetwork.Name + `" } import { @@ -96,7 +97,7 @@ func TestNetworkGroupAssignmentResourceForWiredNetwork(t *testing.T) { } resource "hpeuxi_wired_network" "my_network" { - name = "` + config.WiredNetworkName + `" + name = "` + wiredNetwork.Name + `" } import { @@ -186,6 +187,7 @@ func TestNetworkGroupAssignmentResourceForWirelessNetwork(t *testing.T) { var ( resourceIDBeforeRecreate string resourceIDAfterRecreate string + wirelessNetwork = util.GetWirelessNetwork(config.WirelessNetworkID) ) // Test Wired Network Group Assignment @@ -200,7 +202,7 @@ func TestNetworkGroupAssignmentResourceForWirelessNetwork(t *testing.T) { } resource "hpeuxi_wireless_network" "my_network" { - name = "` + config.WirelessNetworkName + `" + name = "` + wirelessNetwork.Name + `" } import { @@ -256,7 +258,7 @@ func TestNetworkGroupAssignmentResourceForWirelessNetwork(t *testing.T) { } resource "hpeuxi_wireless_network" "my_network" { - name = "` + config.WirelessNetworkName + `" + name = "` + wirelessNetwork.Name + `" } import { diff --git a/test/live/resources/service_test.go b/test/live/resources/service_test.go index ebca042b..b63efd99 100644 --- a/test/live/resources/service_test.go +++ b/test/live/resources/service_test.go @@ -31,7 +31,7 @@ func TestServiceTestResource(t *testing.T) { { Config: provider.ProviderConfig + ` resource "hpeuxi_service_test" "my_service_test" { - name = "` + config.ServiceTestName + `" + name = "` + serviceTest.Name + `" }`, ExpectError: regexp.MustCompile( @@ -42,7 +42,7 @@ func TestServiceTestResource(t *testing.T) { { Config: provider.ProviderConfig + ` resource "hpeuxi_service_test" "my_service_test" { - name = "` + config.ServiceTestName + `" + name = "` + serviceTest.Name + `" } import { @@ -66,7 +66,7 @@ func TestServiceTestResource(t *testing.T) { { Config: provider.ProviderConfig + ` resource "hpeuxi_service_test" "my_service_test" { - name = "` + config.ServiceTestName + `-updated-name" + name = "` + serviceTest.Name + `-updated-name" }`, ExpectError: regexp.MustCompile( `(?s)updating a service_test is not supported; service_tests can only be updated\s*through the dashboard`, diff --git a/test/live/resources/service_test_group_assignment_test.go b/test/live/resources/service_test_group_assignment_test.go index dba9d117..0933eed1 100644 --- a/test/live/resources/service_test_group_assignment_test.go +++ b/test/live/resources/service_test_group_assignment_test.go @@ -25,6 +25,7 @@ func TestServiceTestGroupAssignmentResource(t *testing.T) { var ( resourceIDBeforeRecreate string resourceIDAfterRecreate string + serviceTest = util.GetServiceTest(config.ServiceTestID) ) resource.Test(t, resource.TestCase{ @@ -38,7 +39,7 @@ func TestServiceTestGroupAssignmentResource(t *testing.T) { } resource "hpeuxi_service_test" "my_service_test" { - name = "` + config.ServiceTestName + `" + name = "` + serviceTest.Name + `" } import { @@ -95,7 +96,7 @@ func TestServiceTestGroupAssignmentResource(t *testing.T) { } resource "hpeuxi_service_test" "my_service_test" { - name = "` + config.ServiceTestName + `" + name = "` + serviceTest.Name + `" } // the new resources we wanna update the assignment to diff --git a/test/live/resources/wired_network_test.go b/test/live/resources/wired_network_test.go index aec8295f..97741b58 100644 --- a/test/live/resources/wired_network_test.go +++ b/test/live/resources/wired_network_test.go @@ -42,7 +42,7 @@ func TestWiredNetworkResource(t *testing.T) { { Config: provider.ProviderConfig + ` resource "hpeuxi_wired_network" "wired_network_0" { - name = "` + config.WiredNetworkName + `" + name = "` + wiredNetwork.Name + `" } import { diff --git a/test/live/resources/wireless_network_test.go b/test/live/resources/wireless_network_test.go index 71e96d34..6d250575 100644 --- a/test/live/resources/wireless_network_test.go +++ b/test/live/resources/wireless_network_test.go @@ -42,7 +42,7 @@ func TestWirelessNetworkResource(t *testing.T) { { Config: provider.ProviderConfig + ` resource "hpeuxi_wireless_network" "wireless_network_0" { - name = "` + config.WirelessNetworkName + `" + name = "` + wirelessNetwork.Name + `" } import { @@ -66,7 +66,7 @@ func TestWirelessNetworkResource(t *testing.T) { { Config: provider.ProviderConfig + ` resource "hpeuxi_wireless_network" "wireless_network_0" { - name = "` + config.WirelessNetworkName + `-updated-name" + name = "` + wirelessNetwork.Name + `-updated-name" }`, ExpectError: regexp.MustCompile( `(?s)updating a wireless_network is not supported; wireless_networks can only be\s*updated through the dashboard`,