Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…r-fabric into support_polymorphic_gateway_datasource_and_resource
  • Loading branch information
badeamarjieh committed Mar 6, 2025
2 parents 45079bb + 9b7c1cf commit 728c498
Show file tree
Hide file tree
Showing 140 changed files with 3,996 additions and 219 deletions.
5 changes: 0 additions & 5 deletions .changes/unreleased/added-20250125-102124.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/unreleased/added-20250206-133034.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/unreleased/fixed-20250206-140422.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/unreleased/fixed-20250206-214937.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/unreleased/fixed-20250212-122940.yaml

This file was deleted.

16 changes: 16 additions & 0 deletions .changes/v0.1.0-beta.10.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
## v0.1.0-beta.10 - February 28, 2025

### ✨ Added

* [#256](https://github.com/microsoft/terraform-provider-fabric/issues/256) Onboard new resource/data-source `fabric_activator` (also known as reflex).
* [#197](https://github.com/microsoft/terraform-provider-fabric/issues/197) Onboard new resource/data-source `fabric_graphql_api`.
* [#255](https://github.com/microsoft/terraform-provider-fabric/issues/255) Onboard new resource/data-source `fabric_sql_database`.

### 💫 Changed

* [#258](https://github.com/microsoft/terraform-provider-fabric/issues/258) Added missing example for `fabric_ml_model` resource.
* [#258](https://github.com/microsoft/terraform-provider-fabric/issues/258) Added missing example for `fabric_kql_database` resource/data-source.

### 🪲 Fixed

* [#256](https://github.com/microsoft/terraform-provider-fabric/issues/256) Missing preview note in list data-sources
12 changes: 12 additions & 0 deletions .changes/v0.1.0-beta.9.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## v0.1.0-beta.9 - February 13, 2025

### ✨ Added

* [#215](https://github.com/microsoft/terraform-provider-fabric/issues/215) Definition support in the `fabric_kql_database` Resource / Data-Source
* [#237](https://github.com/microsoft/terraform-provider-fabric/issues/237) Enable API/SDK interaction logging.

### 🪲 Fixed

* [#235](https://github.com/microsoft/terraform-provider-fabric/issues/235) Error when referencing non-text source for Fabric Item Definition part.
* [#239](https://github.com/microsoft/terraform-provider-fabric/issues/239) Inconsistent result for dynamic_executor_allocation (min_executors/max_executors) when enabled is false.
* [#247](https://github.com/microsoft/terraform-provider-fabric/issues/247) Add support for missing `definition/expressions.tmdl` and `definition/relationships.tmdl` paths in the Semantic Model TMDL format.
6 changes: 3 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
// "ghcr.io/devcontainers/features/git:1": {
// "version": "latest"
// },
"ghcr.io/meaningful-ooo/devcontainer-features/fish:1": {},
"ghcr.io/meaningful-ooo/devcontainer-features/fish:2": {},
"ghcr.io/devcontainers/features/common-utils:2": {
"configureZshAsDefaultShell": true
},
// "ghcr.io/stuartleeks/dev-container-features/shell-history:0": {},
"ghcr.io/devcontainers/features/go:1": {
"version": "1.24.0"
"version": "1.24.1"
},
"ghcr.io/devcontainers/features/python:1": {
"version": "3.12"
Expand All @@ -36,7 +36,7 @@
// "ghcr.io/guiyomh/features/gomarkdoc:0": {},
// "ghcr.io/guiyomh/features/gotestsum:0": {},
"ghcr.io/devcontainers/features/terraform:1": {
"version": "1.10.5",
"version": "1.11.1",
"installSentinel": true,
"installTFsec": true,
"installTerraformDocs": true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
repo-token: ${{ github.token }}

- name: 💫 Initialize CodeQL
uses: github/codeql-action/init@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3.28.9
uses: github/codeql-action/init@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
with:
languages: ${{ matrix.language }}
queries: security-extended,security-and-quality
Expand All @@ -76,14 +76,14 @@ jobs:
run: task build

- name: 🩺 Perform CodeQL Analysis
uses: github/codeql-action/analyze@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3.28.9
uses: github/codeql-action/analyze@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
with:
category: "/language:${{matrix.language}}"
upload: never
output: codeql-results

- name: 📤 Upload CodeQL result
uses: github/codeql-action/upload-sarif@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3.28.9
uses: github/codeql-action/upload-sarif@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
with:
sarif_file: codeql-results
wait-for-processing: true
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
GORELEASER_CURRENT_TAG: ${{ github.event.client_payload.tag }}

- name: 📝 Attest Archives
uses: actions/attest-build-provenance@520d128f165991a6c774bcb264f323e3d70747f4 # v2.2.0
uses: actions/attest-build-provenance@c074443f1aee8d4aeeae555aebba3282517141b2 # v2.2.3
with:
subject-path: |
dist/*.zip
20 changes: 12 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ jobs:
task govulncheck || (echo "::warning::govulncheck found issues" && exit 0)
- name: ✔️ Run Go linters
uses: golangci/golangci-lint-action@051d91933864810ecd5e2ea2cfd98f6a5bca5347 # v6.3.2
uses: golangci/golangci-lint-action@2226d7cb06a077cd73e56eedd38eecad18e5d837 # v6.5.0
with:
version: latest
only-new-issues: true
Expand Down Expand Up @@ -318,16 +318,20 @@ jobs:
fail-fast: false
matrix:
cli: [terraform, tofu]
version: ["1.7", "1.8", "1.9", "1.10"]
version: ["1.7", "1.8", "1.9", "1.10", "1.11"]
exclude:
- cli: terraform
version: "1.7"
- cli: terraform
version: "1.9"
- cli: terraform
version: "1.10"
- cli: tofu
version: "1.8"
- cli: tofu
version: "1.10"
- cli: tofu
version: "1.11"
steps:
- name: ⤵️ Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand Down Expand Up @@ -406,7 +410,7 @@ jobs:

- name: 📤 Upload test results
if: always()
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
with:
name: ${{ format('{0}-{1}-test-results', matrix.cli, env.CLI_VERSION) }}
path: testresults.xml
Expand All @@ -415,7 +419,7 @@ jobs:

- name: 📤 Upload coverage results
if: always()
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
with:
name: ${{ format('{0}-{1}-test-coverage-results', matrix.cli, env.CLI_VERSION) }}
path: |
Expand Down Expand Up @@ -451,7 +455,7 @@ jobs:

- name: 📤 Upload Coverage summary
if: always()
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
with:
name: ${{ format('{0}-{1}-test-coverage-summary', matrix.cli, env.CLI_VERSION) }}
path: |
Expand All @@ -473,16 +477,16 @@ jobs:
id-token: write
steps:
- name: 📥 Download
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
with:
pattern: terraform-1_10-test-coverage*
pattern: terraform-1_11-test-coverage*
merge-multiple: true

- name: 📝 Publish
run: cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY

- name: 📤 Upload results to Codecov
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # v5.3.1
uses: codecov/codecov-action@0565863a31f2c772f9f0395002a31e3f06189574 # v5.4.0
with:
use_oidc: true
files: ./coverage.out
Expand Down
2 changes: 1 addition & 1 deletion .semver.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
alpha: 0
beta: 8
beta: 10
rc: 0
release: v0.1.0
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,36 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
and is generated by [Changie](https://github.com/miniscruff/changie).

## v0.1.0-beta.10 - February 28, 2025

### ✨ Added

* [#256](https://github.com/microsoft/terraform-provider-fabric/issues/256) Onboard new resource/data-source `fabric_activator` (also known as reflex).
* [#197](https://github.com/microsoft/terraform-provider-fabric/issues/197) Onboard new resource/data-source `fabric_graphql_api`.
* [#255](https://github.com/microsoft/terraform-provider-fabric/issues/255) Onboard new resource/data-source `fabric_sql_database`.

### 💫 Changed

* [#258](https://github.com/microsoft/terraform-provider-fabric/issues/258) Added missing example for `fabric_ml_model` resource.
* [#258](https://github.com/microsoft/terraform-provider-fabric/issues/258) Added missing example for `fabric_kql_database` resource/data-source.

### 🪲 Fixed

* [#256](https://github.com/microsoft/terraform-provider-fabric/issues/256) Missing preview note in list data-sources

## v0.1.0-beta.9 - February 13, 2025

### ✨ Added

* [#215](https://github.com/microsoft/terraform-provider-fabric/issues/215) Definition support in the `fabric_kql_database` Resource / Data-Source
* [#237](https://github.com/microsoft/terraform-provider-fabric/issues/237) Enable API/SDK interaction logging.

### 🪲 Fixed

* [#235](https://github.com/microsoft/terraform-provider-fabric/issues/235) Error when referencing non-text source for Fabric Item Definition part.
* [#239](https://github.com/microsoft/terraform-provider-fabric/issues/239) Inconsistent result for dynamic_executor_allocation (min_executors/max_executors) when enabled is false.
* [#247](https://github.com/microsoft/terraform-provider-fabric/issues/247) Add support for missing `definition/expressions.tmdl` and `definition/relationships.tmdl` paths in the Semantic Model TMDL format.

## v0.1.0-beta.8 - January 30, 2025

### 💥 Breaking
Expand Down
8 changes: 4 additions & 4 deletions DEVELOPER.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ Local development is still possible on Windows, Linux and macOS, but requires ad
#### Requirements

- [Git](https://git-scm.com/downloads) `>= 2.47.1`
- [Go](https://go.dev/doc/install) `>= 1.24.0`
- [Go](https://go.dev/doc/install) `>= 1.24.1`
- We recommend you to use Go version manager [go-nv/goenv](https://github.com/go-nv/goenv/blob/master/INSTALL.md)
- `goenv install 1.24.0`
- [Terraform](https://developer.hashicorp.com/terraform/downloads) `>= 1.10.5`
- `goenv install 1.24.1`
- [Terraform](https://developer.hashicorp.com/terraform/downloads) `>= 1.11.1`
- We recommend you to use Terraform version manager [tfutils/tfenv](https://github.com/tfutils/tfenv/blob/master/README.md)
- `tfenv install 1.10.5`, `tfenv use 1.10.5`
- `tfenv install 1.11.1`, `tfenv use 1.11.1`
- [Task](https://taskfile.dev/installation) `>= 3.40.1`

#### Linux
Expand Down
103 changes: 103 additions & 0 deletions docs/data-sources/activator.md
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.
Loading

0 comments on commit 728c498

Please sign in to comment.