-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(activator): onboard new resource/data-source (#256)
# 📥 Pull Request ## ❓ What are you trying to address - Add new resource `fabric_activator` - Add new data-source `fabric_activator` - Add new data-source `fabric_activators` - Fix: missing preview note in data-source lists documentation - Misc: simplifies the code for IsPreviewMode
- Loading branch information
1 parent
81b8c38
commit 735f93a
Showing
46 changed files
with
1,781 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
kind: added | ||
body: Onboard new resource/data-source `fabric_activator` (also known as reflex). | ||
time: 2025-02-14T12:29:03.2906058+01:00 | ||
custom: | ||
Issue: "256" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
kind: fixed | ||
body: Missing preview note in list data-sources | ||
time: 2025-02-14T12:30:21.0523343+01:00 | ||
custom: | ||
Issue: "256" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "fabric_activator Data Source - terraform-provider-fabric" | ||
subcategory: "" | ||
description: |- | ||
Get a Fabric Activator (also known as Reflex). | ||
Use this data source to fetch a Activator https://learn.microsoft.com/fabric/real-time-intelligence/event-streams/add-destination-activator. | ||
-> This item does not support Service Principal. Please use a User context authentication. | ||
~> This data-source is in preview. To access it, you must explicitly enable the preview mode in the provider level configuration. | ||
--- | ||
|
||
# fabric_activator (Data Source) | ||
|
||
Get a Fabric Activator (also known as Reflex). | ||
|
||
Use this data source to fetch a [Activator](https://learn.microsoft.com/fabric/real-time-intelligence/event-streams/add-destination-activator). | ||
|
||
-> This item does not support Service Principal. Please use a User context authentication. | ||
|
||
~> This data-source is in **preview**. To access it, you must explicitly enable the `preview` mode in the provider level configuration. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
# Get item details by name | ||
data "fabric_activator" "example_by_name" { | ||
display_name = "example" | ||
workspace_id = "00000000-0000-0000-0000-000000000000" | ||
} | ||
# Get item details by id | ||
data "fabric_activator" "example_by_id" { | ||
id = "11111111-1111-1111-1111-111111111111" | ||
workspace_id = "00000000-0000-0000-0000-000000000000" | ||
} | ||
# Get item details with definition | ||
# Examples uses `id` but `display_name` can be used as well | ||
data "fabric_activator" "example_definition" { | ||
id = "11111111-1111-1111-1111-111111111111" | ||
workspace_id = "00000000-0000-0000-0000-000000000000" | ||
format = "Default" | ||
output_definition = true | ||
} | ||
# Access the content of the definition with JSONPath expression | ||
output "example_definition_content_jsonpath" { | ||
value = provider::fabric::content_decode(data.fabric_activator.example_definition.definition["ReflexEntities.json"].content, ".payload.tabs[0]") | ||
} | ||
# Access the content of the definition as JSON object | ||
output "example_definition_content_object" { | ||
value = provider::fabric::content_decode(data.fabric_activator.example_definition.definition["ReflexEntities.json"].content).payload.tabs[0] | ||
} | ||
# This is an invalid data source | ||
# Do not specify `id` and `display_name` in the same data source block | ||
# data "fabric_activator" "example" { | ||
# display_name = "example" | ||
# id = "11111111-1111-1111-1111-111111111111" | ||
# workspace_id = "00000000-0000-0000-0000-000000000000" | ||
# } | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `workspace_id` (String) The Workspace ID. | ||
|
||
### Optional | ||
|
||
- `display_name` (String) The Activator display name. | ||
- `format` (String) The Activator format. Possible values: `Default` | ||
- `id` (String) The Activator ID. | ||
- `output_definition` (Boolean) Output definition parts as gzip base64 content? Default: `false` | ||
|
||
!> Your terraform state file may grow a lot if you output definition content. Only use it when you must use data from the definition. | ||
|
||
- `timeouts` (Attributes) (see [below for nested schema](#nestedatt--timeouts)) | ||
|
||
### Read-Only | ||
|
||
- `definition` (Attributes Map) Definition parts. Possible path keys: **Default** format: `ReflexEntities.json` (see [below for nested schema](#nestedatt--definition)) | ||
- `description` (String) The Activator description. | ||
|
||
<a id="nestedatt--timeouts"></a> | ||
|
||
### Nested Schema for `timeouts` | ||
|
||
Optional: | ||
|
||
- `read` (String) A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). | ||
|
||
<a id="nestedatt--definition"></a> | ||
|
||
### Nested Schema for `definition` | ||
|
||
Read-Only: | ||
|
||
- `content` (String) Gzip base64 content of definition part. | ||
Use [`provider::fabric::content_decode`](../functions/content_decode.md) function to decode content. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "fabric_activators Data Source - terraform-provider-fabric" | ||
subcategory: "" | ||
description: |- | ||
List a Fabric Activators (also known as Reflex). | ||
Use this data source to list Activators https://learn.microsoft.com/fabric/real-time-intelligence/event-streams/add-destination-activator. | ||
-> This item does not support Service Principal. Please use a User context authentication. | ||
~> This data-source is in preview. To access it, you must explicitly enable the preview mode in the provider level configuration. | ||
--- | ||
|
||
# fabric_activators (Data Source) | ||
|
||
List a Fabric Activators (also known as Reflex). | ||
|
||
Use this data source to list [Activators](https://learn.microsoft.com/fabric/real-time-intelligence/event-streams/add-destination-activator). | ||
|
||
-> This item does not support Service Principal. Please use a User context authentication. | ||
|
||
~> This data-source is in **preview**. To access it, you must explicitly enable the `preview` mode in the provider level configuration. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "fabric_activators" "example" { | ||
workspace_id = "00000000-0000-0000-0000-000000000000" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `workspace_id` (String) The Workspace ID. | ||
|
||
### Optional | ||
|
||
- `timeouts` (Attributes) (see [below for nested schema](#nestedatt--timeouts)) | ||
|
||
### Read-Only | ||
|
||
- `values` (Attributes List) The list of Activators. (see [below for nested schema](#nestedatt--values)) | ||
|
||
<a id="nestedatt--timeouts"></a> | ||
|
||
### Nested Schema for `timeouts` | ||
|
||
Optional: | ||
|
||
- `read` (String) A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). | ||
|
||
<a id="nestedatt--values"></a> | ||
|
||
### Nested Schema for `values` | ||
|
||
Read-Only: | ||
|
||
- `description` (String) The Activator description. | ||
- `display_name` (String) The Activator display name. | ||
- `id` (String) The Activator ID. | ||
- `workspace_id` (String) The Workspace ID. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.