Skip to content

Commit

Permalink
add docCategoryAuthentication
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismarget-j committed Dec 15, 2024
1 parent 51ea053 commit ee747c8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
15 changes: 8 additions & 7 deletions apstra/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ const (
errBpClientCreateSummary = "Failed to create client for Blueprint %s"
errBpNotFoundSummary = "Blueprint %s not found"

docCategorySeparator = " --- "
docCategoryDesign = "Design" + docCategorySeparator
docCategoryResources = "Resource Pools" + docCategorySeparator
docCategoryDatacenter = "Reference Design: Datacenter" + docCategorySeparator
docCategoryFreeform = "Reference Design: Freeform" + docCategorySeparator
docCategoryRefDesignAny = "Reference Design: Shared" + docCategorySeparator
docCategoryDevices = "Devices" + docCategorySeparator
docCategorySeparator = " --- "
docCategoryAuthentication = "Authentication" + docCategorySeparator
docCategoryDesign = "Design" + docCategorySeparator
docCategoryResources = "Resource Pools" + docCategorySeparator
docCategoryDatacenter = "Reference Design: Datacenter" + docCategorySeparator
docCategoryFreeform = "Reference Design: Freeform" + docCategorySeparator
docCategoryRefDesignAny = "Reference Design: Shared" + docCategorySeparator
docCategoryDevices = "Devices" + docCategorySeparator
)
2 changes: 1 addition & 1 deletion apstra/ephemeral_api_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (o *ephemeralToken) Metadata(_ context.Context, req ephemeral.MetadataReque

func (o *ephemeralToken) Schema(_ context.Context, _ ephemeral.SchemaRequest, resp *ephemeral.SchemaResponse) {
resp.Schema = schema.Schema{
MarkdownDescription: "This Ephemeral Resource retrieves a unique API token and invalidates it on exit.",
MarkdownDescription: docCategoryAuthentication + "This Ephemeral Resource retrieves a unique API token and invalidates it on exit.",
Attributes: authentication.ApiToken{}.EphemeralAttributes(),
}
}
Expand Down
4 changes: 2 additions & 2 deletions docs/ephemeral-resources/api_token.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
page_title: "apstra_api_token Ephemeral Resource - terraform-provider-apstra"
subcategory: ""
subcategory: "Authentication"
description: |-
This Ephemeral Resource retrieves a unique API token and invalidates it on exit.
---

# apstra_api_token (Ephemeral Resource)


This Ephemeral Resource retrieves a unique API token and invalidates it on exit.


## Example Usage

```terraform
Expand Down

0 comments on commit ee747c8

Please sign in to comment.