Skip to content

Commit 27c1f76

Browse files
committed
style: formatting and generating additional comments
1 parent 7eef1cf commit 27c1f76

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

docs/data-sources/payment_method.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ Read a single payment method by workspace and identifier.
1515
```terraform
1616
data "meshstack_payment_method" "example" {
1717
metadata = {
18-
name = "my-payment-method"
19-
owned_by_workspace = "my-workspace-identifier"
18+
name = "my-payment-method"
19+
owned_by_workspace = "my-workspace-identifier"
2020
}
2121
}
2222
```

docs/resources/payment_method.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ page_title: "meshstack_payment_method Resource - terraform-provider-meshstack"
44
subcategory: ""
55
description: |-
66
Represents a meshStack payment method.
7+
~> Note: Managing payment methods requires an API key with sufficient admin permissions.
78
---
89

910
# meshstack_payment_method (Resource)
@@ -23,8 +24,8 @@ data "meshstack_workspace" "example" {
2324
2425
resource "meshstack_payment_method" "example" {
2526
metadata = {
26-
name = "my-payment-method"
27-
owned_by_workspace = data.meshstack_workspace.example.metadata.name
27+
name = "my-payment-method"
28+
owned_by_workspace = data.meshstack_workspace.example.metadata.name
2829
}
2930
3031
spec = {
@@ -86,6 +87,7 @@ Import is supported using the following syntax:
8687
The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example:
8788

8889
```shell
90+
#!/bin/bash
8991
# import via workspace and payment method identifier <workspace-identifier>.<payment-method-identifier>
9092
terraform import 'meshstack_payment_method.example' 'my-workspace-identifier.my-payment-method'
9193
```
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
data "meshstack_payment_method" "example" {
22
metadata = {
3-
name = "my-payment-method"
4-
owned_by_workspace = "my-workspace-identifier"
3+
name = "my-payment-method"
4+
owned_by_workspace = "my-workspace-identifier"
55
}
66
}

examples/resources/meshstack_payment_method/resource.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ data "meshstack_workspace" "example" {
66

77
resource "meshstack_payment_method" "example" {
88
metadata = {
9-
name = "my-payment-method"
10-
owned_by_workspace = data.meshstack_workspace.example.metadata.name
9+
name = "my-payment-method"
10+
owned_by_workspace = data.meshstack_workspace.example.metadata.name
1111
}
1212

1313
spec = {

0 commit comments

Comments
 (0)