Skip to content

Commit

Permalink
refactor: pull out duplicate io list schema
Browse files Browse the repository at this point in the history
  • Loading branch information
henryde committed May 2, 2024
1 parent d8531df commit 19555ee
Show file tree
Hide file tree
Showing 10 changed files with 158 additions and 119 deletions.
91 changes: 91 additions & 0 deletions docs/data-sources/buildingblock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "meshstack_buildingblock Data Source - terraform-provider-meshstack"
subcategory: ""
description: |-
Query a single Building Block by UUID.
---

# meshstack_buildingblock (Data Source)

Query a single Building Block by UUID.



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

### Required

- `metadata` (Attributes) Building Block metadata. UUID of the target Building Block must be set here. (see [below for nested schema](#nestedatt--metadata))

### Read-Only

- `api_version` (String) Building Block datatype version
- `kind` (String) meshObject type, always `meshBuildingBlock`.
- `spec` (Attributes) Building Block specification. (see [below for nested schema](#nestedatt--spec))
- `status` (Attributes) Current Building Block status. (see [below for nested schema](#nestedatt--status))

<a id="nestedatt--metadata"></a>
### Nested Schema for `metadata`

Required:

- `uuid` (String)

Read-Only:

- `created_on` (String)
- `definition_uuid` (String)
- `definition_version` (Number)
- `force_purge` (Boolean)
- `marked_for_deletion_by` (String)
- `marked_for_deletion_on` (String)
- `tenant_identifier` (String)


<a id="nestedatt--spec"></a>
### Nested Schema for `spec`

Read-Only:

- `display_name` (String)
- `inputs` (Attributes List) List of Building Block inputs. (see [below for nested schema](#nestedatt--spec--inputs))
- `parent_building_blocks` (Attributes List) (see [below for nested schema](#nestedatt--spec--parent_building_blocks))

<a id="nestedatt--spec--inputs"></a>
### Nested Schema for `spec.inputs`

Read-Only:

- `key` (String)
- `value` (String)
- `value_type` (String)


<a id="nestedatt--spec--parent_building_blocks"></a>
### Nested Schema for `spec.parent_building_blocks`

Read-Only:

- `buildingblock_uuid` (String)
- `definition_uuid` (String)



<a id="nestedatt--status"></a>
### Nested Schema for `status`

Read-Only:

- `outputs` (Attributes List) List of building block outputs. (see [below for nested schema](#nestedatt--status--outputs))
- `status` (String) Execution status. One of `WAITING_FOR_DEPENDENT_INPUT`, `WAITING_FOR_OPERATOR_INPUT`, `PENDING`, `IN_PROGRESS`, `SUCCEEDED`, `FAILED`.

<a id="nestedatt--status--outputs"></a>
### Nested Schema for `status.outputs`

Read-Only:

- `key` (String)
- `value` (String)
- `value_type` (String)
16 changes: 10 additions & 6 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "scaffolding-framework Provider"
page_title: "meshstack Provider"
subcategory: ""
description: |-
---

# scaffolding-framework Provider
# meshstack Provider



## Example Usage

```terraform
provider "scaffolding" {
# example configuration here
provider "meshstack" {
endpoint = "meshfed.url"
apikey = "API_KEY"
apisecret = "API_SECRET"
}
```

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

### Optional
### Required

- `endpoint` (String) Example provider attribute
- `apikey` (String) API Key to authenticate against the meshStack API
- `apisecret` (String) API Secret to authenticate against the meshStack API
- `endpoint` (String) URl of meshStack API, e.g. `https://api.my.meshstack.io`
31 changes: 0 additions & 31 deletions docs/resources/scaffolding_example.md

This file was deleted.

6 changes: 6 additions & 0 deletions examples/provider-install-verification/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ data "meshstack_buildingblock" "test" {
}
}

data "meshstack_buildingblock" "test_failed" {
metadata = {
uuid = "4570f298-1f6a-48d0-8f93-13dac606ceb0"
}
}

output "bb_provider_uuid" {
value = data.meshstack_buildingblock.test.metadata.definition_uuid
}
13 changes: 1 addition & 12 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,39 +6,32 @@ require (
github.com/hashicorp/terraform-plugin-docs v0.16.0
github.com/hashicorp/terraform-plugin-framework v1.4.2
github.com/hashicorp/terraform-plugin-go v0.19.1
github.com/hashicorp/terraform-plugin-log v0.9.0
github.com/hashicorp/terraform-plugin-testing v1.5.1
)

require (
github.com/Masterminds/goutils v1.1.1 // indirect
github.com/Masterminds/semver/v3 v3.1.1 // indirect
github.com/Masterminds/sprig/v3 v3.2.2 // indirect
github.com/ProtonMail/go-crypto v0.0.0-20230717121422-5aa5874ade95 // indirect
github.com/agext/levenshtein v1.2.2 // indirect
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
github.com/armon/go-radix v1.0.0 // indirect
github.com/bgentry/speakeasy v0.1.0 // indirect
github.com/cloudflare/circl v1.3.3 // indirect
github.com/fatih/color v1.13.0 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/uuid v1.3.1 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-checkpoint v0.5.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect
github.com/hashicorp/go-hclog v1.5.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-plugin v1.5.2 // indirect
github.com/hashicorp/go-uuid v1.0.3 // indirect
github.com/hashicorp/go-version v1.6.0 // indirect
github.com/hashicorp/hc-install v0.6.0 // indirect
github.com/hashicorp/hcl/v2 v2.18.0 // indirect
github.com/hashicorp/logutils v1.0.0 // indirect
github.com/hashicorp/terraform-exec v0.19.0 // indirect
github.com/hashicorp/terraform-json v0.17.1 // indirect
github.com/hashicorp/terraform-plugin-sdk/v2 v2.29.0 // indirect
github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect
github.com/hashicorp/terraform-registry-address v0.2.3 // indirect
github.com/hashicorp/terraform-svchost v0.1.1 // indirect
github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d // indirect
Expand All @@ -49,15 +42,12 @@ require (
github.com/mitchellh/cli v1.1.5 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
github.com/mitchellh/go-wordwrap v1.0.0 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/oklog/run v1.0.0 // indirect
github.com/posener/complete v1.2.3 // indirect
github.com/russross/blackfriday v1.6.0 // indirect
github.com/shopspring/decimal v1.3.1 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
github.com/zclconf/go-cty v1.14.0 // indirect
Expand All @@ -67,7 +57,6 @@ require (
golang.org/x/net v0.17.0 // indirect
golang.org/x/sys v0.13.0 // indirect
golang.org/x/text v0.13.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d // indirect
google.golang.org/grpc v1.59.0 // indirect
google.golang.org/protobuf v1.31.0 // indirect
Expand Down
Loading

0 comments on commit 19555ee

Please sign in to comment.