Skip to content

Commit

Permalink
Add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
hkrutzer committed Jan 7, 2025
1 parent 490d588 commit 3f670f7
Show file tree
Hide file tree
Showing 10 changed files with 132 additions and 13 deletions.
48 changes: 48 additions & 0 deletions docs/data-sources/account.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "jambonz_account Data Source - jambonz"
subcategory: ""
description: |-
---

# jambonz_account (Data Source)



## Example Usage

```terraform
data "jambonz_account" "my_account" {
account_sid = "b42f0f47-3972-4361-a2a4-e69cf0e1e8c3"
}
```

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

### Required

- `account_sid` (String)

### Optional

- `device_calling_application_sid` (String)
- `registration_hook` (Attributes) (see [below for nested schema](#nestedatt--registration_hook))
- `sip_realm` (String)

### Read-Only

- `name` (String)
- `service_provider_sid` (String)

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

Read-Only:

- `method` (String)
- `password` (String)
- `url` (String)
- `username` (String)
- `webhook_sid` (String)
28 changes: 28 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "jambonz Provider"
subcategory: ""
description: |-
---

# jambonz Provider



## Example Usage

```terraform
provider "jambonz" {
endpoint = "https://jambonz.cloud/api/v1"
api_key = "ff6dad71-6015-4a1a-af22-1dc97f71d3b1"
}
```

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

### Required

- `api_key` (String) Jambonz API key. May also be provided via the JAMBONZ_API_KEY environment variable.
- `endpoint` (String) Jambonz API endpoint. May also be provided via the JAMBONZ_ENDPOINT environment variable.
39 changes: 39 additions & 0 deletions docs/resources/phone_number.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "jambonz_phone_number Resource - jambonz"
subcategory: ""
description: |-
---

# jambonz_phone_number (Resource)



## Example Usage

```terraform
resource "jambonz_phone_number" "test_num" {
account_sid = "85358b52-4264-4ec4-9d76-d5c5971b1ed5"
phone_number = "45111111111"
voip_carrier_sid = "6cb36139-47bc-4a11-882d-80af726a022a"
application_sid = "7e299ed5-53e5-4964-88d8-386a495b0c0c"
}
```

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

### Required

- `account_sid` (String)
- `phone_number` (String)
- `voip_carrier_sid` (String)

### Optional

- `application_sid` (String)

### Read-Only

- `phone_number_sid` (String)
3 changes: 3 additions & 0 deletions examples/data-sources/jambonz_account/data-source.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
data "jambonz_account" "my_account" {
account_sid = "b42f0f47-3972-4361-a2a4-e69cf0e1e8c3"
}
3 changes: 0 additions & 3 deletions examples/data-sources/scaffolding_example/data-source.tf

This file was deleted.

5 changes: 3 additions & 2 deletions examples/provider/provider.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
provider "scaffolding" {
# example configuration here
provider "jambonz" {
endpoint = "https://jambonz.cloud/api/v1"
api_key = "ff6dad71-6015-4a1a-af22-1dc97f71d3b1"
}
6 changes: 6 additions & 0 deletions examples/resources/jambonz_phone_number/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
resource "jambonz_phone_number" "test_num" {
account_sid = "85358b52-4264-4ec4-9d76-d5c5971b1ed5"
phone_number = "45111111111"
voip_carrier_sid = "6cb36139-47bc-4a11-882d-80af726a022a"
application_sid = "7e299ed5-53e5-4964-88d8-386a495b0c0c"
}
3 changes: 0 additions & 3 deletions examples/resources/scaffolding_example/resource.tf

This file was deleted.

8 changes: 4 additions & 4 deletions internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ func (p *JambonzProvider) Schema(ctx context.Context, req provider.SchemaRequest
resp.Schema = schema.Schema{
Attributes: map[string]schema.Attribute{
"endpoint": schema.StringAttribute{
MarkdownDescription: "Jambonz API endpoint",
Required: true,
Description: "Jambonz API endpoint. May also be provided via the JAMBONZ_ENDPOINT environment variable.",
Required: true,
},
"api_key": schema.StringAttribute{
MarkdownDescription: "Jambonz API key",
Required: true,
Description: "Jambonz API key. May also be provided via the JAMBONZ_API_KEY environment variable.",
Required: true,
},
},
}
Expand Down
2 changes: 1 addition & 1 deletion tools/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ import (
//go:generate terraform fmt -recursive ../examples/

// Generate documentation.
//go:generate go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs generate --provider-dir .. -provider-name scaffolding
//go:generate go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs generate --provider-dir .. -provider-name jambonz

0 comments on commit 3f670f7

Please sign in to comment.